On Sun, Jan 30, 2011 at 07:00:31PM +0100, Stephan Austermühle wrote:
> Hi Mark!
> 
> Am 30.01.2011 16:55, schrieb Mark Hindley:
> 
> >> Some requests to the apt-cacher fail with the error message
> > Only some? Which don't?
> 
> Yes, only some requests failed. I haven't found a rule but I can provide
> you the error and access log files.
> 
> > Were they root:root before or something else?
> 
> They were root:root before.
> 
> > What is your setting for group and user in
> > /etc/apt-cacher/apt-cacher.conf? Have these been changed recently?
> 
> This is in the config file:
> 
>       group=www-data
>       user=www-data
> 
> It hasn't been changed recently. The only major change was an upgrade
> from Lenny to Squeeze.
> 
> > If you had the default settings, I would expect user and group to both
> > be www-data in the conffile and /var/cache/apt-cacher to be created mode
> > 0755 and owned by www-data:www-data.
> 
> So this may either be an upgrade issue or the problem (probably caused
> by me years ago) was present before but impact is visible only after the
> upgrade.

Yes, I think so. When (approximately!) was your original apt-cacher
install? I wonder if it was before the option to run as www-data was
introduced. That was also before I was maintainer and I don't have the
sources, so I am a bit in the dark. Judging from the changelog that was
before version 0.9.....

If so, I suspect that you had root:root /var/cache/apt-cacher from the
original install, and it has only become an issue on upgrade from 1.6.4
to 1.6.12 which need to create the socket there and runs as www-data by
default.

It may also be that the socket would be better in /var/run, but that is
a separate issue really.

Your workaround of chown www-data:www-data /var/cache/apt-cacher is fine
as far as I know and is the way a new installation will be.

I will work a patch to check ownership and also consider the location of
the socket.

Cheers

Mark



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to