Squid cannot start after fresh install on latest 2.0 snapshots
-
2.0-BETA4 (amd64)
built on Mon Aug 16 02:32:13 UTC 2010New install from CD. I restored a config from a previous install but it did not contain any package information.
With the restored config in place I installed the squid package and according to the main package interface the install was successful and the service started, but on the Status>Services page squid shows as stopped. The system log shows the following entries (newest at top):
Aug 16 02:20:04 php: : SQUID is installed but not started. Not installing "filter" rules.
Aug 16 02:20:04 last message repeated 9 times
Aug 16 02:20:04 php: : Could not find gateway for interface(wan).
Aug 16 02:20:04 php: : SQUID is installed but not started. Not installing "nat" rules.
Aug 16 02:20:02 check_reload_status: reloading filter
Aug 16 02:19:42 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -D' returned exit code '1', the output was '/libexec/ld-elf.so.1: Shared object "libmd5.so.1" not found, required by "squid"'
Aug 16 02:19:42 php: /pkg_mgr_install.php: Starting Squid
Aug 16 02:19:42 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -z' returned exit code '1', the output was '/libexec/ld-elf.so.1: Shared object "libmd5.so.1" not found, required by "squid"'
Aug 16 02:19:42 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -k kill' returned exit code '1', the output was '/libexec/ld-elf.so.1: Shared object "libmd5.so.1" not found, required by "squid"I googled this error and found not a single result relating to pfsense, although it seems to have to do with a missing libwww package?
-
Ok, so I dug a little deeper:
pkg_add -r libwww Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/libwww.tbz... Done. pkg_add: package 'libwww-5.4.0_4' or its older version already installed
libwww is installed.
find / -name libmd5.so.1 /usr/local/lib/libmd5.so.1
And there's the supposedly missing file. Some help?
-
Looks like amd64 packages are having a problem. Somehow some of them are being mixed up with their 32-bit counterparts, resulting in libs that won't load on amd64. I'm checking into it.
-
32-bit and 64-bit squid should be OK now. Both were rebuilt today and I've tried them out and they are starting again.
-
Not so lucky here. I installed the squid package anew, and although I'm not getting the libmd5 errors, squid starts, then in under a minute it dies. The redirect filters don't automatically deconfigure and my http requests get black-holed.
I had to remove the squid package and restart pfsense just to get web connectivity back, and now although the packages page shows squid as not installed, the Status>Services page shows squid in a stopped state.
The error in the system log after squid crashed was, to the best of my recall, "squid -k failed", "failed to kill pid xxxx", "last message repeated 8 times", and then finall "squid exited due to signal 6". I was under some pressure to get things up and running again, so I didn't think to copy the logs. I have remote syslogging enabled but I don't see anything relevant captured there.
I have attached the last portion of /var/squid/logs/cache.log though. There's a whole lot of "mimeLoadIconFile: /usr/local/etc/squid/icons/(null): (2) No such file or directory" in there and some "FATAL: Received Segment Violation…dying." too. I don't know what to make of it.
-
I just looked at my VM and it is also crashing with signal 6 errors.
I'll have to look at it deeper tomorrow.
-
Not sure why, but the packages that were compiled by the new automated system weren't working quite right. I replaced the squid binaries with the previous ones I did by hand, and my VM is no longer seeing squid crashes.
-
It's working in my VM now, but slower than before. I'll update my other thread for that.
-
Ok, squid installed and ran (slowly) in my vm, so I decided to give it another try on my home machine. Unfortunately it still exits immediately (which is significantly sooner than before) on signal 6. From the system log (recent on top):
Aug 18 18:06:55 kernel: pid 29420 (squid), uid 62: exited on signal 6 Aug 18 18:06:55 squid[29389]: Squid Parent: child process 29420 exited due to signal 6 Aug 18 18:06:55 squid[29389]: Squid Parent: child process 29420 started
I have /var/squid mounted from a separate partition. The permissions look correct to me, but maybe there's a problem here?
ls -lah /var/squid total 10 drwxr-xr-x 5 proxy proxy 512B Aug 18 18:15 . drwxr-xr-x 26 root wheel 512B Aug 15 19:15 .. drwxrwxr-x 2 proxy proxy 512B Aug 15 19:09 .snap drwxr-xr-x 2 proxy proxy 512B Aug 18 18:15 acl drwxr-xr-x 18 proxy proxy 512B Aug 18 18:15 cache
-
I haven't reinstalled the package in a couple days, is this still happening for you?
-
Still having this issue on 2.0 BETA4 20100906 2035. Just did a fresh install still have the problem.
-
Anyone have any luck with squid on BETA4 x86-64? I'm having the same errors:
2010/09/11 20:07:45| Beginning Validation Procedure
2010/09/11 20:07:45| Completed Validation Procedure
2010/09/11 20:07:45| Validated 0 Entries
2010/09/11 20:07:45| store_swap_size = 0k
FATAL: Received Segment Violation…dying.
2010/09/11 20:07:45| storeDirWriteCleanLogs: Starting...
2010/09/11 20:07:45| Finished. Wrote 0 entries. -
nope not working on x64,
just switch to 32bit version,
but, if you are using PPTP VPN, forget it, after you enable VPN, its not working any more, until you disableVPN again :) -
I have squid 2.7.9-1 package installed in a vm pfsense. It runs, but performance is poor (there is an open thread for that too).
I have squid 2.7.9-2 package installed in another pfsense instance (hardware), and squid still exits on signal 6.
I see that 2.7.9-3 is now available, so will have to test that.
-
Looks like it's still got signal 6 issues. Seems no matter how it's compiled by the automated system (I've tried making several changes) it still has those issues for whatever reason, but when I compile it by hand, it works.
-
Yeah, I updated to the latest pakage version (1.2.9-3) in my amd64 vm and it's crashing again.
-
I am having a Squid issue using the latest amd64 pfSense-2.0-BETA4-20101002-1259.iso. Below is the error I am getting. I checked the squid.inc, squid.xml and squid.conf and all state user proxy and group proxy. If I chown -R squid:squid /var/squid then squid -z the cache is created and I can start squid. However if I make any change to the gui it will reset owner of /var/squid to proxy:proxy. I have only noticed this with the latest version of squid.
Any help would be greatly appreciated.
Thanks
Oct 3 00:27:34 php: /pkg_mgr_install.php: Creating squid cache subdirs in /var/squid/cache Oct 3 00:27:34 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -k shutdown' returned exit code '1', the output was 'squid: ERROR: No running copy' Oct 3 00:27:39 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -k kill' returned exit code '1', the output was 'squid: ERROR: No running copy' Oct 3 00:27:45 php: /pkg_mgr_install.php: Stopping any running proxy monitors Oct 3 00:27:46 php: /pkg_mgr_install.php: Starting Squid Oct 3 00:27:46 php: /pkg_mgr_install.php: Starting a proxy monitor script Oct 3 00:27:46 check_reload_status: reloading filter Oct 2 19:27:46 squid[51372]: Squid Parent: child process 51774 started Oct 2 19:27:46 squid[51774]: Cannot open '/var/squid/logs/access.log' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf. Oct 2 19:27:46 squid[51372]: Squid Parent: child process 51774 exited due to signal 6 Oct 3 00:27:46 kernel: pid 51774 (squid), uid 100: exited on signal 6 Oct 3 00:27:47 php: /pkg_mgr_install.php: Reloading Squid for configuration sync Oct 3 00:27:47 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -k reconfigure' returned exit code '1', the output was 'squid: ERROR: No running copy' Oct 3 00:27:47 check_reload_status: reloading filter Oct 3 00:27:47 php: /pkg_mgr_install.php: Reloading Squid for configuration sync Oct 3 00:27:47 php: /pkg_mgr_install.php: The command '/usr/local/sbin/squid -k reconfigure' returned exit code '1', the output was 'squid: ERROR: No running copy'
-
That is the same error (signal 6 crash) that everyone else in this thread has. It's a known issue.
-
Thanks Jimp,
To the best of your knowledge is there a work around?
I am not a programmer but I would be happy to help with testing. Just let me know if there is anything i can do to help.
-
No, not right now. It's a problem with the package builder itself.
-
Hi, any update on this?
I really want to use squid but I don't want to switch to i386. -
I've been trying to work on it over the past couple days but haven't yet had any more luck/progress. It's still unclear why it is crashing in that manner, or which component/aspect of the build system is to blame for certain.
I haven't tried it yet this morning to see if the changes I made yesterday would have had any effect with the full automated build from overnight.
-
I would give it a try if it wouldn't totally wreck all http traffic (https is still fine though).
-
That's why I test it on a VM I use for development that has no LAN (unless I put another VM behind it) :-)
-
Hi, any update on this?
I really want to use squid but I don't want to switch to i386.i have 64bit machine, and i switch to 32bit version, and it works perfect for me.
try to swich to 32bit until guys solve this problem .regards
-
I've disabled the automated building of squid and replaced the bad file with a known good version, so this should be safe for now.
-
Great news. Thanks.
-
No go here, unfortunately.
Oct 20 16:41:53 squid[3030]: Exiting due to repeated, frequent failures Oct 20 16:41:53 kernel: pid 29106 (squid), uid 62: exited on signal 6 Oct 20 16:41:53 squid[3030]: Squid Parent: child process 29106 exited due to signal 6 Oct 20 16:41:53 squid[3030]: Squid Parent: child process 29106 started Oct 20 16:41:50 kernel: pid 28361 (squid), uid 62: exited on signal 6 Oct 20 16:41:50 squid[3030]: Squid Parent: child process 28361 exited due to signal 6 Oct 20 16:41:49 squid[3030]: Squid Parent: child process 28361 started Oct 20 16:41:46 kernel: pid 27840 (squid), uid 62: exited on signal 6 Oct 20 16:41:46 squid[3030]: Squid Parent: child process 27840 exited due to signal 6 Oct 20 16:41:46 squid[3030]: Squid Parent: child process 27840 started Oct 20 16:41:43 squid[3030]: Squid Parent: child process 27032 exited due to signal 6 Oct 20 16:41:43 kernel: pid 27032 (squid), uid 62: exited on signal 6 Oct 20 16:41:42 squid[3030]: Squid Parent: child process 27032 started Oct 20 16:41:39 kernel: pid 3267 (squid), uid 62: exited on signal 6 Oct 20 16:41:39 squid[3030]: Squid Parent: child process 3267 exited due to signal 6 Oct 20 16:41:39 check_reload_status: reloading filter Oct 20 16:41:39 squid[3030]: Squid Parent: child process 3267 started Oct 20 16:41:39 php: /pkg_edit.php: Starting Squid
2.0-BETA4 (amd64)
built on Wed Oct 20 16:17:09 UTC 2010
FreeBSD 8.1-RELEASE-p1
CPU Type Intel(R) Xeon(R) CPU 5150 @ 2.66GHz
(virtual machine)
Updated squid within the last hour. -
Did you delete the package, and then install it again, or just hit the 'pkg' button? You may have to delete it first.
-
You're right, it started now. Thanks.