Search squid archive

Re: SQUID Logrotate problem

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

 



Here are simple steps to reproduce the problem I see with 3.1.12:

1. Add "127.0.0.1 bogus" to your /etc/hosts
2. Add "http_port bogus:8080" to your squid.conf
3. Restart squid
4. Modify /etc/hosts so that "bogus" no longer resolves
5. Force a log rotation: logrotate -f /etc/logrotate.d/squid3
which produces:

2011/07/21 21:22:05| http(s)_port: failed to resolve Host/IP: bogus
FATAL: Bungled squid.conf line 13: http_port bogus:8080
Squid Cache (Version 3.1.12): Terminated abnormally.
CPU Usage: 0.016 seconds = 0.004 user + 0.012 sys
Maximum Resident Size: 17936 KB
Page faults with physical i/o: 0
error: error running shared postrotate script for '/var/log/squid3/*.log '

Logrotate will have already moved the files, but no new access.log/cache.log will be created.

6. Fix /etc/hosts so that "bogus" once again resolves to localhost
7. Force log rotation again.
8. Logs aren't rotated (my logrotate won't rotate if missing), and squid still won't create the log files.

Also see the same with 3.1.6 from the Debian repositories.

Regards,
--Will


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

  Powered by Linux