I have installed apt-cacher in a Debian Lenny (fully updated) I also
have apache on that server (if this matters), the problem is that at
startup apt-cacher tries to start twice, the first one goes well, and
the second is unable to bind the port (TCP 3142) because it is taken
by the first run.
This is my /etc/default/apt-cacher
************
# set to 1 to start the daemon at boot time
AUTOSTART=1
****************************
And this is the output for cat /var/log/boot | grep apt-cacher
**************************
Wed May 21 09:03:05 2008: Starting Apt-Cacher: apt-cacher.
Wed May 21 09:03:29 2008: Starting Apt-Cacher: apt-cacherUnable to
bind socket ( port 3142), trying again in 5 seconds.
Wed May 21 09:03:39 2008: Unable to bind socket ( port 3142),
/usr/sbin/apt-cacher not started.
**************************
If I run ps auxw | grep apt-cacher
I can see it running, and it is working and responding to requests, If I run
/etc/init.d/apt-cacher restart
it respond, that it cannot bind port 3142, Even though it is running,
there is not /var/run/apt-cacher file If I kill the running apt-cacher
instance (using kill) I can then start it using the
/etc/init.d/apt-cacher start command, and then a /var/run/apt-cacher
appears.
I do not know who is starting the first instance or the second, If I
rename the file
/etc/rc2.d/S20apt-cacher to /etc/rc2.d/K20apt-cacher, it start just
once, but who is starting that? my file /etc/rc.local is empty, you
could say let it that way, because now is working, but I can not do a
/etc/init.d/apt-cacher restart, and most of all, I want to understand
what is going on,
thanks in advance and hope I have not inserted too much garbage and
yet enough info.
--
Guillermo Garron
"Linux IS user friendly... It's just selective about who its friends are."
http://feeds.feedburner.com/go2linux
http://www.go2linux.org
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-25-2008, 11:20 AM
Mark Hindley
apt-cacher starting twice
On Wed, May 21, 2008 at 09:35:37AM -0400, Guillermo Garron wrote:
> Hi,
>
> I have installed apt-cacher in a Debian Lenny (fully updated) I also
> have apache on that server (if this matters), the problem is that at
> startup apt-cacher tries to start twice, the first one goes well, and
> the second is unable to bind the port (TCP 3142) because it is taken
> by the first run.
Sorry about this. Have you made any changed to
/etc/apt-cacher/apt-cacher.conf?
Could you enable debugging, make sure there are no daemons running and
then send the output of the error.log with debugging enabled.
Thanks,
Mark
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org