Bug #3105

squid stop after restore if cache enabled

Added by Filippo Carletti over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-squid
Target version:v6.6
Security class: Resolution:
Affected version:v6.6 NEEDINFO:No

Description

After restoring a backup-config where squid cache was enabled, the squid daemon didn't start with the error:

ERROR: /var/spool/squid/00: (2) No such file or directory
FATAL:  Failed to verify one of the swap directories, Check cache.log
        for details.  Run 'squid -z' to create swap directories
        if needed, or if running Squid for the first time.

Associated revisions

Revision 6ee5defa
Added by Giacomo Sanchietti over 6 years ago

createlinks: add nethserver-squid-check-cache to nethserver-squid-update event. Refs #3105

History

#1 Updated by Filippo Carletti over 6 years ago

Workaround:
go to web proxy server-manager page and hit Clear cache.

#2 Updated by Filippo Carletti over 6 years ago

Steps to reproduce:
service squid stop
rm -rf /var/spool/squid/*
signal-event nethserver-squid-update
service squid status
-> squid is stopped

#3 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#4 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#5 Updated by Giacomo Sanchietti over 6 years ago

  • Target version set to v6.6

#6 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-squid-1.3.2-1.4.g8d5d7a1.ns6.noarch.rpm
Test case
  • Check the bug is not reproducible

#8 Updated by Filippo Carletti over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
[root@ns65 ~]# rpm -q nethserver-squid
nethserver-squid-1.3.2-1.4.g8d5d7a1.ns6.noarch
[root@ns65 ~]# service squid stop                  [  OK  ]
[root@ns65 ~]# rm -rf /var/spool/squid/*
[root@ns65 ~]# signal-event nethserver-squid-update
[root@ns65 ~]# service squid status
squid (pid  19167) is running...

#9 Updated by Giacomo Sanchietti over 6 years ago

Released in nethserver-updates:
  • nethserver-squid-1.3.3-1.ns6.noarch.rpm

#10 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Also available in: Atom PDF