Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-portage-dev
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-portage-dev@g.o
From: Dan Sheffner <dsheffner@...>
Subject: http-replicator: error: invalid directory '/var/cache/http-replicator' [ ok ]
Date: Fri, 27 Jan 2006 12:11:13 -0600
<span class="postbody">I'm trying to get the http replicator working.
I'm not sure what I'm doing wrong. Below are the steps I did to prep
the machine. I know that the user portage has write/read access as
specified in /etc/conf.d/http-replicator. I also went over step by step
with a user that has been using this before this package was put into
portage. ANY HELP WOULD BE GREATLY Appreciated.
<br>

<br>

<br>
echo &quot;net-proxy/http-replicator&quot; &gt;&gt; /etc/portage/packcage.keywords 
<br>
emerge http-replicator 
<br>

<br>
Below is what my make.conf looks like on the server 
<br>

<br>
# These settings were set by the catalyst build script that automatically built this stage 
<br>
# Please consult /etc/make.conf.example for a more detailed example 
<br>
CFLAGS=&quot;-O2 -march=pentium4&quot; 
<br>
CHOST=&quot;i686-pc-linux-gnu&quot; 
<br>
CXXFLAGS=&quot;${CFLAGS}&quot; 
<br>
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot; 
<br>
GENTOO_MIRRORS=&quot;<a href="http://gentoo.osuosl.org/">http://gentoo.osuosl.org/</a>&quot; 
<br>
http_proxy=&quot;<a href="http://10.1.10.37.com:8080">http://10.1.10.37.com:8080</a>&quot; 
<br>
RESUMECOMMAND=&quot; /usr/bin/wget -t 5 --passive-ftp \${URI} -O \${DISTDIR}/\${FILE}&quot; 
<br>

<br>
Below is what my client make.conf 
<br>

<br>
# These settings were set by the catalyst build script that automatically built this stage 
<br>
# Please consult /etc/make.conf.example for a more detailed example 
<br>
CFLAGS=&quot;-O2 -march=pentium3&quot; 
<br>
CHOST=&quot;i686-pc-linux-gnu&quot; 
<br>
CXXFLAGS=&quot;${CFLAGS}&quot; 
<br>
USE=&quot;mdadm&quot; 
<br>
SYNC=&quot;rsync://10.1.10.37/gentoo-portage&quot; 
<br>
http_proxy=&quot;<a href="http://10.1.10.37.com:8080">http://10.1.10.37.com:8080</a>&quot; 
<br>
RESUMECOMMAND=&quot; /usr/bin/wget -t 5 --passive-ftp \${URI} -O \${DISTDIR}/\${FILE}&quot; 
<br>

<br>
Here is the proof that the rights are correct
<br>
localhost ~ # ls -ld /var/cache/http-replicator/
<br>
drwxrwxrwx  2 portage portage 8192 Jan 25 21:53 /var/cache/http-replicator/
<br>
localhost ~ #
<br>

<br>

<br>
I run the command repcacheman and it works fine with the below output 
<br>

<br>
Found 22746 ebuilds. 
<br>

<br>
Extracting the checksums.... 
<br>
Done! 
<br>

<br>
SUMMARY: 
<br>
Found 0 duplicate file(s). 
<br>
Deleted 0 dupe(s). 
<br>
Found 19 new file(s). 
<br>
Added 0 of those file(s) to the cache. 
<br>
Rejected 0 corrupt or incomplete file(s). 
<br>
19 Unknown file(s) that are not listed in portage 
<br>
You may want to delete them yourself.... 
<br>

<br>

<br>
Done! 
<br>

<br>
When I go to start the server it says. And this is where I believe it fails. 
<br>
I have also tried repcacheman --user portage --dir /var/cache/http-replicator 
<br>

<br>
localhost / # /etc/init.d/http-replicator restart 
<br>
* Stopping Http-Replicator ... 
<br>
No http-replicator found running; none killed. [ ok ] 
<br>
* Starting Http-Replicator ... 
<br>
usage: http-replicator [options] 
<br>

<br>
http-replicator: error: invalid directory '/var/cache/http-replicator' [ ok ]
<br>

<br>

<br>
Below is my /etc/conf.d/http-replicator
<br>

<br>
## Config file for http-replicator
<br>
## sourced by init scripts automatically
<br>
## GENERAL_OPTS used by repcacheman
<br>
## DAEMON_OPTS used by http-replicator
<br>

<br>

<br>
## Set the cache dir
<br>
GENERAL_OPTS=&quot;--dir /var/cache/http-replicator&quot;
<br>

<br>
## Change UID/GID to user after opening the log and pid file.
<br>
## 'user' must have read/write access to cache dir:
<br>
GENERAL_OPTS=&quot;$GENERAL_OPTS --user portage&quot;
<br>

<br>
## Don't change or comment this out:
<br>
DAEMON_OPTS=&quot;$GENERAL_OPTS&quot;
<br>

<br>
## Do you need a proxy to reach the internet?
<br>
## This will forward requests to an external proxy server:
<br>
## Use one of the following, not both:
<br>
#DAEMON_OPTS=&quot;$DAEMON_OPTS --external somehost:1234&quot;
<br>
#DAEMON_OPTS=&quot;$DAEMON_OPTS --external username:password@host:port&quot;
<br>

<br>
## Local dir to serve clients.  Great for serving binary packages
<br>
## See PKDIR and PORTAGE_BINHOST settings in 'man make.conf'
<br>
## --alias /path/to/serve:location will make /path/to/serve
<br>
## browsable at <a href="http://http-replicator.com/location" target="_blank">http://http-replicator.com:port/location</a>
<br>
DAEMON_OPTS=&quot;$DAEMON_OPTS --alias /usr/portage/packages/All:All&quot;
<br>

<br>
## Dir to hold the log file:
<br>
DAEMON_OPTS=&quot;$DAEMON_OPTS --log /var/log/http-replicator.log&quot;
<br>

<br>
## Make the log messages less and less verbose.
<br>
## Up to four times to make it extremely quiet.
<br>
#DAEMON_OPTS=&quot;$DAEMON_OPTS --quiet&quot;
<br>
#DAEMON_OPTS=&quot;$DAEMON_OPTS --quiet&quot;
<br>

<br>
## Make the log messages extra verbose for debugging.
<br>
#DAEMON_OPTS=&quot;$DAEMON_OPTS --debug&quot;
<br>

<br>
## The ip addresses from which access is allowed. Can be used as many times
<br>
## as necessary. Access from localhost is allowed by default.
<br>
DAEMON_OPTS=&quot;$DAEMON_OPTS --ip 192.168.*.*&quot;
<br>
DAEMON_OPTS=&quot;$DAEMON_OPTS --ip 10.*.*.*&quot;
<br>

<br>
## The proxy port on which the server listens for http requests:
<br>
DAEMON_OPTS=&quot;$DAEMON_OPTS --port 8080&quot;</span>
Replies:
Re: http-replicator: error: invalid directory '/var/cache/http-replicator' [ ok ]
-- Brian Harring
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
update portage cache progress patch
Next by thread:
Re: http-replicator: error: invalid directory '/var/cache/http-replicator' [ ok ]
Previous by date:
Re: making aux_get more usable for vardbapi
Next by date:
Re: making aux_get more usable for vardbapi


Updated Jun 17, 2009

Summary: Archive of the gentoo-portage-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.