[Bug 1405351] Re: First run: Failed to verify one of the swap directories
Stanislav German-Evtushenko
1405351 at bugs.launchpad.net
Wed Dec 24 07:33:19 UTC 2014
** Patch added: "etc-init-squid3.conf.patch"
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1405351/+attachment/4286888/+files/etc-init-squid3.conf.patch
** Description changed:
Prerequisites:
- Ubuntu 14.04
- squid3
Problem:
- we have got the following message in the log on a first start:
2014/12/24 10:14:20| ERROR: /var/spool/squid3/07: (2) No such file or directory
2014/12/24 10:14:20 kid1| Making directories in /var/spool/squid3/07
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.
+ for details. Run 'squid -z' to create swap directories
+ if needed, or if running Squid for the first time.
Squid Cache (Version 3.3.8): Terminated abnormally.
CPU Usage: 0.043 seconds = 0.030 user + 0.012 sys
Maximum Resident Size: 101168 KB
Page faults with physical i/o: 0
2014/12/24 10:14:20 kid1| Making directories in /var/spool/squid3/08
2014/12/24 10:14:20 kid1| Making directories in /var/spool/squid3/09
2014/12/24 10:14:20 kid1| Making directories in /var/spool/squid3/0A
2014/12/24 10:14:20 kid1| Making directories in /var/spool/squid3/0B
Solution:
- - swap creation process should not be daemonized, the patch is bellow
- ---------------------------------------------------------------------------------------------------------------
- --- /etc/init/squid3.conf.orig 2014-11-25 17:42:27.000000000 +0300
- +++ /etc/init/squid3.conf 2014-12-24 10:26:19.626955561 +0300
- @@ -49,7 +49,7 @@
- if [ "$cache_type" = "coss" -a -d "$cache_dir" -a ! -f "$cache_dir/stripe" ] ||
- [ "$cache_type" != "coss" -a -d "$cache_dir" -a ! -d "$cache_dir/00" ]
- then
- - /usr/sbin/squid3 $SQUID_ARGS -z -f $CONFIG
- + /usr/sbin/squid3 -N $SQUID_ARGS -z -f $CONFIG
- fi
- end script
-
- ---------------------------------------------------------------------------------------------------------------
+ - swap creation process should not be daemonized, the patch is attached
Best regards,
Stanislav German-Evtushenko
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid3 in Ubuntu.
https://bugs.launchpad.net/bugs/1405351
Title:
First run: Failed to verify one of the swap directories
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1405351/+subscriptions
More information about the Ubuntu-server-bugs
mailing list