1 |
I'm trying to get the http replicator working. I'm not sure what I'm doing |
2 |
wrong. Below are the steps I did to prep the machine. I know that the user |
3 |
portage has write/read access as specified in /etc/conf.d/http-replicator. I |
4 |
also went over step by step with a user that has been using this before this |
5 |
package was put into portage. ANY HELP WOULD BE GREATLY Appreciated. |
6 |
|
7 |
|
8 |
echo "net-proxy/http-replicator" >> /etc/portage/packcage.keywords |
9 |
emerge http-replicator |
10 |
|
11 |
Below is what my make.conf looks like on the server |
12 |
|
13 |
# These settings were set by the catalyst build script that automatically |
14 |
built this stage |
15 |
# Please consult /etc/make.conf.example for a more detailed example |
16 |
CFLAGS="-O2 -march=pentium4" |
17 |
CHOST="i686-pc-linux-gnu" |
18 |
CXXFLAGS="${CFLAGS}" |
19 |
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" |
20 |
GENTOO_MIRRORS="http://gentoo.osuosl.org/" |
21 |
http_proxy="http://10.1.10.37.com:8080" |
22 |
RESUMECOMMAND=" /usr/bin/wget -t 5 --passive-ftp \${URI} -O |
23 |
\${DISTDIR}/\${FILE}" |
24 |
|
25 |
Below is what my client make.conf |
26 |
|
27 |
# These settings were set by the catalyst build script that automatically |
28 |
built this stage |
29 |
# Please consult /etc/make.conf.example for a more detailed example |
30 |
CFLAGS="-O2 -march=pentium3" |
31 |
CHOST="i686-pc-linux-gnu" |
32 |
CXXFLAGS="${CFLAGS}" |
33 |
USE="mdadm" |
34 |
SYNC="rsync://10.1.10.37/gentoo-portage" |
35 |
http_proxy="http://10.1.10.37.com:8080" |
36 |
RESUMECOMMAND=" /usr/bin/wget -t 5 --passive-ftp \${URI} -O |
37 |
\${DISTDIR}/\${FILE}" |
38 |
|
39 |
Here is the proof that the rights are correct |
40 |
localhost ~ # ls -ld /var/cache/http-replicator/ |
41 |
drwxrwxrwx 2 portage portage 8192 Jan 25 21:53 /var/cache/http-replicator/ |
42 |
localhost ~ # |
43 |
|
44 |
|
45 |
I run the command repcacheman and it works fine with the below output |
46 |
|
47 |
Found 22746 ebuilds. |
48 |
|
49 |
Extracting the checksums.... |
50 |
Done! |
51 |
|
52 |
SUMMARY: |
53 |
Found 0 duplicate file(s). |
54 |
Deleted 0 dupe(s). |
55 |
Found 19 new file(s). |
56 |
Added 0 of those file(s) to the cache. |
57 |
Rejected 0 corrupt or incomplete file(s). |
58 |
19 Unknown file(s) that are not listed in portage |
59 |
You may want to delete them yourself.... |
60 |
|
61 |
|
62 |
Done! |
63 |
|
64 |
When I go to start the server it says. And this is where I believe it fails. |
65 |
|
66 |
I have also tried repcacheman --user portage --dir |
67 |
/var/cache/http-replicator |
68 |
|
69 |
localhost / # /etc/init.d/http-replicator restart |
70 |
* Stopping Http-Replicator ... |
71 |
No http-replicator found running; none killed. [ ok ] |
72 |
* Starting Http-Replicator ... |
73 |
usage: http-replicator [options] |
74 |
|
75 |
http-replicator: error: invalid directory '/var/cache/http-replicator' [ ok |
76 |
] |
77 |
|
78 |
|
79 |
Below is my /etc/conf.d/http-replicator |
80 |
|
81 |
## Config file for http-replicator |
82 |
## sourced by init scripts automatically |
83 |
## GENERAL_OPTS used by repcacheman |
84 |
## DAEMON_OPTS used by http-replicator |
85 |
|
86 |
|
87 |
## Set the cache dir |
88 |
GENERAL_OPTS="--dir /var/cache/http-replicator" |
89 |
|
90 |
## Change UID/GID to user after opening the log and pid file. |
91 |
## 'user' must have read/write access to cache dir: |
92 |
GENERAL_OPTS="$GENERAL_OPTS --user portage" |
93 |
|
94 |
## Don't change or comment this out: |
95 |
DAEMON_OPTS="$GENERAL_OPTS" |
96 |
|
97 |
## Do you need a proxy to reach the internet? |
98 |
## This will forward requests to an external proxy server: |
99 |
## Use one of the following, not both: |
100 |
#DAEMON_OPTS="$DAEMON_OPTS --external somehost:1234" |
101 |
#DAEMON_OPTS="$DAEMON_OPTS --external username:password@host:port" |
102 |
|
103 |
## Local dir to serve clients. Great for serving binary packages |
104 |
## See PKDIR and PORTAGE_BINHOST settings in 'man make.conf' |
105 |
## --alias /path/to/serve:location will make /path/to/serve |
106 |
## browsable at |
107 |
http://http-replicator.com:port/location<http://http-replicator.com/location> |
108 |
DAEMON_OPTS="$DAEMON_OPTS --alias /usr/portage/packages/All:All" |
109 |
|
110 |
## Dir to hold the log file: |
111 |
DAEMON_OPTS="$DAEMON_OPTS --log /var/log/http-replicator.log" |
112 |
|
113 |
## Make the log messages less and less verbose. |
114 |
## Up to four times to make it extremely quiet. |
115 |
#DAEMON_OPTS="$DAEMON_OPTS --quiet" |
116 |
#DAEMON_OPTS="$DAEMON_OPTS --quiet" |
117 |
|
118 |
## Make the log messages extra verbose for debugging. |
119 |
#DAEMON_OPTS="$DAEMON_OPTS --debug" |
120 |
|
121 |
## The ip addresses from which access is allowed. Can be used as many times |
122 |
## as necessary. Access from localhost is allowed by default. |
123 |
DAEMON_OPTS="$DAEMON_OPTS --ip 192.168.*.*" |
124 |
DAEMON_OPTS="$DAEMON_OPTS --ip 10.*.*.*" |
125 |
|
126 |
## The proxy port on which the server listens for http requests: |
127 |
DAEMON_OPTS="$DAEMON_OPTS --port 8080" |