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
<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 "net-proxy/http-replicator" >> /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="-O2 -march=pentium4"
<br>
CHOST="i686-pc-linux-gnu"
<br>
CXXFLAGS="${CFLAGS}"
<br>
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
<br>
GENTOO_MIRRORS="<a href="http://gentoo.osuosl.org/">http://gentoo.osuosl.org/</a>"
<br>
http_proxy="<a href="http://10.1.10.37.com:8080">http://10.1.10.37.com:8080</a>"
<br>
RESUMECOMMAND=" /usr/bin/wget -t 5 --passive-ftp \${URI} -O \${DISTDIR}/\${FILE}"
<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="-O2 -march=pentium3"
<br>
CHOST="i686-pc-linux-gnu"
<br>
CXXFLAGS="${CFLAGS}"
<br>
USE="mdadm"
<br>
SYNC="rsync://10.1.10.37/gentoo-portage"
<br>
http_proxy="<a href="http://10.1.10.37.com:8080">http://10.1.10.37.com:8080</a>"
<br>
RESUMECOMMAND=" /usr/bin/wget -t 5 --passive-ftp \${URI} -O \${DISTDIR}/\${FILE}"
<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="--dir /var/cache/http-replicator"
<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="$GENERAL_OPTS --user portage"
<br>
<br>
## Don't change or comment this out:
<br>
DAEMON_OPTS="$GENERAL_OPTS"
<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="$DAEMON_OPTS --external somehost:1234"
<br>
#DAEMON_OPTS="$DAEMON_OPTS --external username:password@host:port"
<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="$DAEMON_OPTS --alias /usr/portage/packages/All:All"
<br>
<br>
## Dir to hold the log file:
<br>
DAEMON_OPTS="$DAEMON_OPTS --log /var/log/http-replicator.log"
<br>
<br>
## Make the log messages less and less verbose.
<br>
## Up to four times to make it extremely quiet.
<br>
#DAEMON_OPTS="$DAEMON_OPTS --quiet"
<br>
#DAEMON_OPTS="$DAEMON_OPTS --quiet"
<br>
<br>
## Make the log messages extra verbose for debugging.
<br>
#DAEMON_OPTS="$DAEMON_OPTS --debug"
<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="$DAEMON_OPTS --ip 192.168.*.*"
<br>
DAEMON_OPTS="$DAEMON_OPTS --ip 10.*.*.*"
<br>
<br>
## The proxy port on which the server listens for http requests:
<br>
DAEMON_OPTS="$DAEMON_OPTS --port 8080"</span>
|
|