From: Olivier B. <Oli...@pu...> - 2005-01-24 13:24:31
|
Hello, we are using apt-proxy on a site with about 40 GNU/Debian systems, and we are happy with it. So, thanks for it. apt-proxy is package 1.9.24 from main GNU/Debian repository. We have sometime errors in the logs like: ... File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line 11= 12, in insert_request log.debug("Serving from cache for additional client: " + self.local_f= ile + " size:" + str(self.size)) exceptions.AttributeError: FetcherFile instance has no attribute 'size' I have try to change: log.debug("Serving from cache for additional client: " + self.local= _file + " size:" + str(self.size)) with: try: log.debug("Serving from cache for additional client: " + self.l= ocal_file + " size:" + str(self.size)) except AttributeError: log.debug("Serving from cache for additional client: " + self.l= ocal_file + " size: zero!") His this a correct fix ? And if not, any other suggestions ? Thanks in advance. Olivier --=20 Olivier Bornet | fran=E7ais : http://puck.ch/f Swiss Ice Hockey Results | english : http://puck.ch/e http://puck.ch/ | deutsch : http://puck.ch/g Oli...@pu... | italiano : http://puck.ch/i Get my PGP-key at http://puck.ch/pgp or at http://pgp.mit.edu/ |
From: Jon T. <red...@ea...> - 2005-01-24 14:05:33
|
On Monday 24 January 2005 08:24 am, Olivier Bornet wrote: > ... > File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line > 1112, in insert_request log.debug("Serving from cache for additional > client: " + self.local_file + " size:" + str(self.size)) > exceptions.AttributeError: FetcherFile instance has no attribute 'size' > Recently, I saw these when I added a new backend to apt-proxy. As I figured= =20 out, the problem is ownership of the cached files. Apt-proxy was creating the backend directory (/var/lib/apt-proxy/{backend})= =20 with owner root.root instead of aptproxy.nobody. Once I changed ownership o= f=20 the directory and restarted apt-proxy, everything was fine. =2D-=20 This email sent with peace, love and Linux. =2D----BEGIN GEEK CODE BLOCK----- Version: 3.12 GB d s: a C++ UL++++ P++ L++++ E- W++ N+ o-- K w--=20 O M+ V PS+ PE++ Y+ PGP++ t+ 5 X++ R* tv+ b++ DI++ D---=20 G e h--- r++ y++=20 =2D-----END GEEK CODE BLOCK------ |
From: Olivier B. <Oli...@pu...> - 2005-01-25 08:23:31
|
Hi Jon, On Mon, Jan 24, 2005 at 09:05:16AM -0500, Jon Tyler wrote: > On Monday 24 January 2005 08:24 am, Olivier Bornet wrote: > > ... > > File "/usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py", line > > 1112, in insert_request log.debug("Serving from cache for additional > > client: " + self.local_file + " size:" + str(self.size)) > > exceptions.AttributeError: FetcherFile instance has no attribute 'size' > > >=20 > Recently, I saw these when I added a new backend to apt-proxy. As I figur= ed=20 > out, the problem is ownership of the cached files. >=20 > Apt-proxy was creating the backend directory (/var/lib/apt-proxy/{backend= })=20 > with owner root.root instead of aptproxy.nobody. Once I changed ownership= of=20 > the directory and restarted apt-proxy, everything was fine. It's maybe related. I also have see strange ownership for some directories. Is it correct to put all the directories/files under /var/cache/apt-proxy owned by aptproxy ? (on my setup, it's /var/cache/apt-proxy, not /var/lib/apt-proxy). Good day. Olivier --=20 Olivier Bornet | fran=E7ais : http://puck.ch/f Swiss Ice Hockey Results | english : http://puck.ch/e http://puck.ch/ | deutsch : http://puck.ch/g Oli...@pu... | italiano : http://puck.ch/i Get my PGP-key at http://puck.ch/pgp or at http://pgp.mit.edu/ |
From: Chris H. <ha...@de...> - 2005-01-25 12:00:53
|
On Tuesday 25 Jan 2005 08:23, Olivier Bornet wrote: > Is it correct to put all the directories/files under > /var/cache/apt-proxy owned by aptproxy ? > (on my setup, it's /var/cache/apt-proxy, not /var/lib/apt-proxy). Yes that's correct Chris |
From: Jon T. <red...@ea...> - 2005-01-25 14:51:56
|
On Tuesday 25 January 2005 07:00 am, Chris Halls wrote: > On Tuesday 25 Jan 2005 08:23, Olivier Bornet wrote: > > Is it correct to put all the directories/files under > > /var/cache/apt-proxy owned by aptproxy ? > > (on my setup, it's /var/cache/apt-proxy, not /var/lib/apt-proxy). > > Yes that's correct > Chris It is /var/cache/apt-proxy on mine as well. That's what happens when you=20 compose from memory. ;) =2D-=20 This email sent with peace, love and Linux. =2D----BEGIN GEEK CODE BLOCK----- Version: 3.12 GB d s: a C++ UL++++ P++ L++++ E- W++ N+ o-- K w--=20 O M+ V PS+ PE++ Y+ PGP++ t+ 5 X++ R* tv+ b++ DI++ D---=20 G e h--- r++ y++=20 =2D-----END GEEK CODE BLOCK------ |