Search squid archive

FW: ERROR: No running copy! - SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a solution to this problem!

First off, I figured out why cache.log and access.log were 0 bytes:
It turns out squid 2.6.STABLE1 puts its logs in /var/log/squid, while
2.6.STABLE9 puts them in another directory altogether. I think it was
/var/spool/squid/logs. It was entirely by accident that I happened to find
them.

The problem of no running copy: The first line of the log I posted below was
a clue: DNS tests failed. It turns out my routing tables were somehow messed
up. I could ping and lynx, though, which made it more confusing. Once I
fixed the routing tables, squid was able to start normally.

I now have *yet another* problem with squid, which I will post in a new
message.

Thanks for the help.

-----Original Message-----
From: Angela Burrell [mailto:angela@xxxxxxxxxxxxxxxxxxx]
Sent: March 7, 2007 5:45 PM
To: squid users
Subject: RE:  ERROR: No running copy!


I have some additional information to report. First of all, the cache.log
and access.log are still 0 bytes.

I ran squid with -X -s (Xtra super logging, log to syslog) and got the
following new error messages in my /var/log/syslog file: (because it is in
syslog I do not know if all messages were generated from squid or not; also
because the error msgs are redundant I have only copied a single line of
each)

Mar  7 17:17:10 proxy squid[27306]: ipcache_init: DNS name lookup tests
failed.
Mar  7 17:17:10 proxy squid[27304]: Squid Parent: child process 27306 exited
due to signal 6
Mar  7 17:17:13 proxy (squid): Memory pools are 'off'; limit: 0.00 MB
Mar  7 17:17:13 proxy (squid): diskd started
Mar  7 17:17:13 proxy squid[27375]: Starting Squid Cache version 2.6.STABLE9
for amd64-debian-linux-gnu...
Mar  7 17:17:13 proxy squid[27375]: Process ID 27375
Mar  7 17:17:13 proxy squid[27304]: Squid Parent: child process 27375
started
Mar  7 17:17:13 proxy squid[27375]: With 1024 file descriptors available
Mar  7 17:17:13 proxy squid[27375]: Using epoll for the IO loop
Mar  7 17:17:13 proxy squid[27375]: Performing DNS Tests...
Mar  7 17:17:16 proxy squid[27377]: execvp failed: (2) No such file or
directory
Mar  7 17:17:16 proxy squid[27377]: Squid Parent: child process 0 started
Mar  7 17:17:16 proxy squid[27377]: Squid Parent: child process -1 exited
with status 1
Mar  7 17:17:16 proxy squid[27377]: Exiting due to repeated, frequent
failures

I hope this rings a bell with somebody. I'm stuck here.

Thanks again.


-----Original Message-----
From: Angela Burrell [mailto:angela@xxxxxxxxxxxxxxxxxxx]
Sent: March 7, 2007 8:44 AM
To: Samit
Cc: squid users
Subject: RE:  ERROR: No running copy!


After I uninstalled the old squid, I reset them to zero (rm cache.log, touch
cache.log) and same for access.log. They are still zero.

-----Original Message-----
From: Samit [mailto:janasamit@xxxxxxxxxxxx]
Sent: March 6, 2007 11:43 PM
To: Angela Burrell
Cc: squid users
Subject: Re:  ERROR: No running copy!


What is the file size of the log files inside /var/log/squid?

Angela Burrell wrote:
> Help help!
>
> The version of squid that was available for my distro (2.6.STABLE1) didn't
> work for me, I installed it with apt-get on Ubuntu Edgy 6.10 for amd64
> kernel 2.6.17.
>
> So I removed it and installed 2.6.STABLE9 from source. I cannot get it to
> run.
>
> when I do /etc/init.d/squid start it says [ok] and if I do /usr/sbin/squid
> it returns a command prompt (no errors). squid -k parse also returns no
> errors.
>
> However squid -k check, squid -k reload (etc) give this error:
>
> squid: ERROR: No running copy
>
> /var/log/squid/cache.log has not been touched since I uninstalled the old
> squid. /var/log/messages has some things in it that i found very
unhelpful:
>
> Mar  6 18:51:36 proxy squid[2286]: Squid Parent: child process 2288
started
> Mar  6 18:51:39 proxy squid[2290]: Squid Parent: child process 0 started
> Mar  6 18:51:39 proxy squid[2290]: Squid Parent: child process -1 exited
> with status 1
> Mar  6 18:51:39 proxy squid[2288]: Squid Parent: child process 2290
started
> Mar  6 18:51:42 proxy squid[2292]: Squid Parent: child process 0 started
> Mar  6 18:51:42 proxy squid[2292]: Squid Parent: child process -1 exited
> with status 1
> Mar  6 18:51:42 proxy squid[2290]: Squid Parent: child process 2292
started
> Mar  6 18:51:45 proxy squid[2294]: Squid Parent: child process 0 started
> Mar  6 18:51:45 proxy squid[2294]: Squid Parent: child process -1 exited
> with status 1
> Mar  6 18:51:45 proxy squid[2292]: Squid Parent: child process 2294
started
> Mar  6 18:51:45 proxy squid[2292]: Squid Parent: child process 2294 exited
> with status 1
> Mar  6 18:51:45 proxy squid[2290]: Squid Parent: child process 2292 exited
> with status 1
> Mar  6 18:51:48 proxy squid[2296]: Squid Parent: child process 0 started
> Mar  6 18:51:48 proxy squid[2296]: Squid Parent: child process -1 exited
> with status 1
> Mar  6 18:51:48 proxy squid[2290]: Squid Parent: child process 2296
started
> Mar  6 18:51:48 proxy squid[2290]: Squid Parent: child process 2296 exited
> with status 1
> Mar  6 18:51:48 proxy squid[2288]: Squid Parent: child process 2290 exited
> with status 1
> Mar  6 18:51:51 proxy squid[2298]: Squid Parent: child process 0 started
> Mar  6 18:51:51 proxy squid[2298]: Squid Parent: child process -1 exited
> with status 1
> Mar  6 18:51:51 proxy squid[2288]: Squid Parent: child process 2298
started
>
> I have read the FAQ and the information that it has does not apply to me
> (i.e. find the PID and put it in a file)
>
> root@proxy:/var# ps -fu squid
> UID	PID	PPID	C	STIME	TTY
> root@proxy:/var#
>
> as you can see there is nothing running.
>
> My squidGuards start normally then stop immediately:
> 2007-03-06 18:52:36 [2404] squidGuard 1.2.0 started (1173225156.467)
> 2007-03-06 18:52:36 [2404] squidGuard ready for requests (1173225156.489)
> 2007-03-06 18:52:36 [2404] squidGuard stopped (1173225156.733)
>
> Please help!!
>
>

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux