From: Micha <ear...@gm...> - 2005-01-25 11:48:36
|
I would be interested if you found out the reason for this problem. greetings, micha. Jonathan Koren <jk...@cs...>: > I'm running 1.9.24 on debian. > > I run apt-poxy on both my laptop and a server. I recently moved the cache > from the laptop to the server by simply tarring up /var/cache/apt-proxy, > transfering it, and then untaring it. This was a 1.1 gig tranfer. > > The problem I'm having is that when apt-proxy starts on the server it > spends hours and hours recycling, and whenever apt-proxy restarts, the > entire process starts all over again. Furthermore, I believe that this > recycling is the cause of the "503 Service Unavailable" I receive when I > try and access the cache through apt. > > I used to be able to simply untar .debs into the cache with no problems > back when apt-cache was a bash script. I have two questions. First, > what's causing this? It looks like a permissions problem, but the > permissions look fine. My second question is why is a this database > needed when it wasn't before, and why does it take 2-3 seconds to recycle > each file? > > Thanks. > > Here's the part of log: > > 2005/01/15 15:02 CST [-] Starting factory <apt_proxy.apt_proxy.Factory instance at 0x40535b2c> > 2005/01/15 15:02 CST [-] set uid/gid 103/65534 > 2005/01/15 15:02 CST [-] [debug] Verifying database: /var/cache/apt-proxy/.apt-proxy/db/access.db > 2005/01/15 15:02 CST [-] [db] /var/cache/apt-proxy/.apt-proxy/db/access.db could not be opened, moved to /var/cache/apt-proxy/.apt-proxy/db/access.db.error > 2005/01/15 15:02 CST [-] [db] Recreating /var/cache/apt-proxy/.apt-proxy/db/access.db > 2005/01/15 15:02 CST [-] [debug] Opening database /var/cache/apt-proxy/.apt-proxy/db/access.db > 2005/01/15 15:02 CST [-] [recycle] Adopting new file: /debian/.apt-proxy > 2005/01/15 15:02 CST [-] [recycle] Adopting new file: /debian/pool/non-US/non-free/r/rsaref2/rsaref2_19940415-3_i386.deb > 2005/01/15 15:02 CST [-] [recycle] Adopting new file: /debian/pool/non-US/non-free/s/speak-freely/speak-freely_7.2-1_i386.deb > > and the relevant file permissions: > > bubbles:/var/cache/apt-proxy/.apt-proxy/db# ls -la > total 1764 > drwx------ 2 aptproxy nogroup 4096 Jan 15 15:02 ./ > drwxr-xr-x 4 aptproxy nogroup 4096 Jul 29 12:10 ../ > -rw------- 1 aptproxy nogroup 638976 Jan 15 16:35 access.db > -rw------- 1 aptproxy nogroup 1318912 Jan 15 04:45 access.db.error > -rw------- 1 aptproxy nogroup 12288 Dec 7 21:52 access.db.previous > -rw------- 1 aptproxy nogroup 45056 Jan 15 04:45 packages.db > -rw------- 1 aptproxy nogroup 176128 Dec 7 21:56 packages.db.previous > -rw------- 1 aptproxy nogroup 12288 Jan 14 10:47 update.db > -rw------- 1 aptproxy nogroup 12288 Oct 21 11:29 update.db.error > -rw------- 1 aptproxy nogroup 12288 Dec 7 21:56 update.db.previous |