1 |
On 12:09 Fri 27 Jan , Dan Sheffner wrote: |
2 |
> I'm trying to get the http replicator working. I'm not sure what I'm doing |
3 |
> wrong. |
4 |
|
5 |
I assume you were using the howto: |
6 |
|
7 |
http://gentoo-wiki.com/HOWTO_Download_Cache_for_LAN-Http-Replicator |
8 |
|
9 |
I noticed a couple of minor differences from my settings: |
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 |
|
21 |
Don't the "[1]" and "[2]" in the lines below invalidate them as URL's? They |
22 |
don't work in a browser, maybe wget can use them? |
23 |
|
24 |
> GENTOO_MIRRORS="[1]http://gentoo.osuosl.org/" |
25 |
> http_proxy="[2]http://10.1.10.37.com:8080" |
26 |
> RESUMECOMMAND=" /usr/bin/wget -t 5 --passive-ftp \${URI} -O |
27 |
> \${DISTDIR}/\${FILE}" |
28 |
> |
29 |
> Below is what my client make.conf |
30 |
> |
31 |
> # These settings were set by the catalyst build script that automatically |
32 |
> built this stage |
33 |
> # Please consult /etc/make.conf.example for a more detailed example |
34 |
> CFLAGS="-O2 -march=pentium3" |
35 |
> CHOST="i686-pc-linux-gnu" |
36 |
> CXXFLAGS="${CFLAGS}" |
37 |
> USE="mdadm" |
38 |
> SYNC="rsync://10.1.10.37/gentoo-portage" |
39 |
|
40 |
Same URL issue here: |
41 |
|
42 |
> http_proxy="[3]http://10.1.10.37.com:8080" |
43 |
> RESUMECOMMAND=" /usr/bin/wget -t 5 --passive-ftp \${URI} -O |
44 |
> \${DISTDIR}/\${FILE}" |
45 |
> |
46 |
> Here is the proof that the rights are correct |
47 |
> localhost ~ # ls -ld /var/cache/http-replicator/ |
48 |
> drwxrwxrwx 2 portage portage 8192 Jan 25 21:53 /var/cache/http-replicator/ |
49 |
> |
50 |
My permissions were a bit different: |
51 |
|
52 |
drwxr-xr-x 2 portage portage 36568 Jan 25 10:15 /var/cache/http-replicator/ |
53 |
|
54 |
> I run the command repcacheman and it works fine with the below output |
55 |
> |
56 |
> Found 22746 ebuilds. |
57 |
> |
58 |
> Extracting the checksums.... |
59 |
> Done! |
60 |
> |
61 |
> SUMMARY: |
62 |
> Found 0 duplicate file(s). |
63 |
> Deleted 0 dupe(s). |
64 |
> Found 19 new file(s). |
65 |
> Added 0 of those file(s) to the cache. |
66 |
> Rejected 0 corrupt or incomplete file(s). |
67 |
> 19 Unknown file(s) that are not listed in portage |
68 |
> You may want to delete them yourself.... |
69 |
> |
70 |
> Done! |
71 |
> |
72 |
> When I go to start the server it says. And this is where I believe it |
73 |
> fails. |
74 |
> I have also tried repcacheman --user portage --dir |
75 |
> /var/cache/http-replicator |
76 |
> |
77 |
> localhost / # /etc/init.d/http-replicator restart |
78 |
> * Stopping Http-Replicator ... |
79 |
> No http-replicator found running; none killed. [ ok ] |
80 |
> * Starting Http-Replicator ... |
81 |
> usage: http-replicator [options] |
82 |
> |
83 |
> http-replicator: error: invalid directory '/var/cache/http-replicator' [ |
84 |
> ok ] |
85 |
|
86 |
My /etc/conf.d/http-replicator looks identical |
87 |
> |
88 |
> Below is my /etc/conf.d/http-replicator |
89 |
> |
90 |
Hope these notes help. It works great once in place. |
91 |
|
92 |
Good luck |
93 |
|
94 |
Bill Roberts |