Hi pkg-discuss I have set up a mirror of pkg.o.o/dev by using rsync, and I'm having problems with getting clients to use the mirror at all. This is the PKG_DUMP_STATS output from pkg when installing a small package: URL Good Err Conn Speed Size Used CSpeed Qual pkg.e.c 0 4 1 2 MB/s 2.97 kB True 0.018482 -5430 pkg.o.o 14 0 2 568 kB/s 2.18 MB True 0.193024 367
My mirror on top is not used at all, and has a horribly low quality. I tried to increase the logging on the mirror in order to see if I could figure out what the 4 errors was which was encountered by the client, and got the following output: ip.re.mo.ved - - [27/Jan/2010:12:00:17] "GET /file/0/e7893c8b053bd1447b30379339a585e74d9949f5 HTTP/1.1" 404 761 "" "pkg/f4ce7d1913be (sunos i86pc; 5.11 snv_130; full; pkg)" ip.re.mo.ved - - [27/Jan/2010:12:00:17] "GET /file/0/81c6079cc404e061864b4e03e446c82f7d854299 HTTP/1.1" 404 761 "" "pkg/f4ce7d1913be (sunos i86pc; 5.11 snv_130; full; pkg)" ip.re.mo.ved - - [27/Jan/2010:12:00:17] "GET /file/0/6e905b06a6e2e93f8baa111d55737b66b6c74016 HTTP/1.1" 404 761 "" "pkg/f4ce7d1913be (sunos i86pc; 5.11 snv_130; full; pkg)" ip.re.mo.ved - - [27/Jan/2010:12:00:17] "GET /file/0/be075f5d03ee1d95ec9c9159a92d1ec18d8894a0 HTTP/1.1" 404 761 "" "pkg/f4ce7d1913be (sunos i86pc; 5.11 snv_130; full; pkg)" And that is despite the files exists on the mirror server: -rw-r--r-- 1 root root 446 Jan 8 2009 file/6e/6e905b06a6e2e93f8baa111d55737b66b6c74016 -rw-r--r-- 1 root root 12288 Dec 19 00:36 file/81/81c6079cc404e061864b4e03e446c82f7d854299 -rw-r--r-- 1 root root 4348 Jan 8 2009 file/be/be075f5d03ee1d95ec9c9159a92d1ec18d8894a0 -rw-r--r-- 1 root root 1264 Sep 25 22:38 file/e7/e7893c8b053bd1447b30379339a585e74d9949f5 I did however notice that the iso file which contains all files for the 2009.06 release is structured differently in the "file" directory, where the above files are located in another level of subfolders, such as: file/[hash digits 1-2]/[hash digits 3-8]/[file hash] And if I set my mirror to point at that file tree, it will serve out files just fine, I do however want to host the entire repository instead of just the 2009.06 release. So how do I get the mirror to find the files? Should I create the six digit sub-folders myself and move the files into those folders? - This will give a mess every time the repository is updated with rsync. Can I change how pkg.depotd tries to find the files, so I will look at the path matching the structure from rsync? Or, should the rsync server be updated to match the working file structure, the structure found on the 2009.06 repo iso? -- Kind regards Jeppe Toustrup _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
