Squid 2.7.9_4.2 fails to fully install on 2.1 Dev



  • This is a fresh install of pfSense-2.1-DEVELOPMENT-i386 dated Sept 30 from jimp/ipv6

    The 1st issue is that certain pfSense windows won't load in the GUI (ie: packages).
    That issue is solved here: http://forum.pfsense.org/index.php/topic,41559.msg216529.html.

    Next:
    I setup DNS in General.  I changed the firmware update address to http://updates.pfsense.org/_updaters .

    The first package I install is Squid 2.7.9_4.2.  It completes with no errors in the status window.

    When I navigate to Services -> Proxy Server I get: Warning: dir(/usr/local/etc/squid/errors/): failed to open dir: No such file or directory in /etc/inc/pfsense-utils.inc on line 432 Fatal error: Call to a member function read() on a non-object in /etc/inc/pfsense-utils.inc on line 433

    Through trial and error I determined the following directories are not created:
    /usr/local/libexec/
    /usr/local/etc/squid/

    The following file is also not created:
    /usr/local/sbin/squid

    I copied the above (dir+subdirs+files) from a working copy (2.0 REL dated 9/13 & 2.7.9_4.2) and Squid is now running.
    I also confirmed permissions and ownership.

    I haven't tested the results of my file grafting yet. I'm not proposing it as a solution.
    I can't say for sure that I've identified all of the missing files.

    This is mostly to bring attention to the issue - and help define it.

    Thanks



  • This is a followup to the above post:

    I installed squidGuard from the package menu. It installed without any errors.

    However, squidGuard failed to start and gave the following error:

    php: /pkg_edit.php: The command '/usr/local/sbin/squid -D' returned exit code '6', the output was 'FATAL: url_rewrite_program /usr/local/bin/squidGuard: (2) No such file or directory Squid Cache (Version 2.7.STABLE9): Terminated abnormally. CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys Maximum Resident Size: 2796 KB Page faults with physical i/o: 0'

    /usr/local/bin/squidGuard  was missing.  I copied it - the same way I mentioned in the post above - and matched file permissions.

    I rebooted the system and neither squid nor squidGuard were running.

    If I tried to launch squidGuard I got:

    Oct 12 20:35:20 	squid[48088]: Squid Parent: child process 6566 exited due to signal 6
    Oct 12 20:35:20 	kernel: pid 6566 (squid), uid 62: exited on signal 6
    Oct 12 20:35:20 	squid[6566]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:35:20 	squid[48088]: Squid Parent: child process 6566 started
    Oct 12 20:35:17 	kernel: pid 60008 (squid), uid 62: exited on signal 6
    Oct 12 20:35:17 	squid[48088]: Squid Parent: child process 60008 exited due to signal 6
    Oct 12 20:35:17 	squid[60008]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:35:17 	squid[48088]: Squid Parent: child process 60008 started
    Oct 12 20:35:14 	kernel: pid 48673 (squid), uid 62: exited on signal 6
    Oct 12 20:35:14 	squid[48088]: Squid Parent: child process 48673 exited due to signal 6
    Oct 12 20:35:14 	squid[48673]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:35:14 	check_reload_status: Reloading filter
    Oct 12 20:35:14 	squid[48088]: Squid Parent: child process 48673 started
    Oct 12 20:35:14 	php: /pkg_edit.php: Starting Squid
    Oct 12 20:35:13 	check_reload_status: Syncing firewall
    Oct 12 20:35:13 	check_reload_status: Syncing firewall
    Oct 12 20:35:07 	squid[45239]: Exiting due to repeated, frequent failures
    Oct 12 20:35:07 	squid[45239]: Squid Parent: child process 27751 exited due to signal 6
    Oct 12 20:35:07 	kernel: pid 27751 (squid), uid 62: exited on signal 6
    Oct 12 20:35:07 	squid[27751]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:35:07 	squid[45239]: Squid Parent: child process 27751 started
    Oct 12 20:35:04 	squid[45239]: Squid Parent: child process 15287 exited due to signal 6
    Oct 12 20:35:04 	kernel: pid 1527 (squid), uid 62:exited on sigal 6
    Oct 12 20:35:04 	squid[15287]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:35:04 	squid[45239]: Squid Parent: child process 15287 started
    Oct 12 20:35:01 	squid[45239]: Squid Parent: child process 14014 exited due to signal 6
    Oct 12 20:35:01 	kernel: pid 14014 (squid), uid 62: exited on signal 6
    Oct 12 20:35:01 	squid[14014]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:35:01 	squid[45239]: Squid Parent: child process 14014 started
    Oct 12 20:34:58 	kernel: pid 2344 (squid), uid 62: exited on signal 6
    Oct 12 20:34:58 	squid[45239]: Squid Parent: child process 2344 exited due to signal 6
    Oct 12 20:34:58 	squid[2344]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:58 	squid[45239]: Squid Parent: child process 2344 started
    Oct 12 20:34:56 	php: /pkg_edit.php: The command '/usr/local/sbin/squid -k reconfigure' returned exit code '1', the output was 'squid: ERROR: Could not send signal 1 to process 45668: (3) No such process'
    Oct 12 20:34:56 	php: /pkg_edit.php: Reloading Squid for configuration sync
    Oct 12 20:34:55 	check_reload_status: Reloading filter
    Oct 12 20:34:55 	check_reload_status: Syncing firewall
    Oct 12 20:34:55 	kernel: pid 45668 (squid), uid 62: exited on signal 6
    Oct 12 20:34:55 	squid[45239]: Squid Parent: child process 45668 exited due to signal 6
    Oct 12 20:34:55 	squid[45668]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:55 	check_reload_status: Reloading filter
    Oct 12 20:34:55 	squid[45239]: Squid Parent: child process 45668 started
    Oct 12 20:34:55 	php: /pkg_edit.php: Starting Squid
    Oct 12 20:34:54 	squid[63255]: Exiting due to repeated, frequent failures
    Oct 12 20:34:54 	squid[63255]: Squid Parent: child process 41436 exited due to signal 6
    Oct 12 20:34:54 	kernel: pid 41436 (squid), uid 62: exited on signal 6
    Oct 12 20:34:54 	squid[41436]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:54 	squid[63255]: Squid Parent: child process 41436 started
    Oct 12 20:34:51 	squid[63255]: Squid Parent: child process 39789 exited due to signal 6
    Oct 12 20:34:51 	kernel: pid 39789 (squid), uid 62: exited on signal 6
    Oct 12 20:34:51 	squid[39789]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:51 	squid[63255]: Squid Parent: child process 39789 started
    Oct 12 20:34:48 	squid[63255]: Squid Parent: child process 22692 exited due to signal 6
    Oct 12 20:34:48 	kernel: pid 22692 (squid), uid 62: exited on signal 6
    Oct 12 20:34:48 	squid[22692]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:48 	squid[63255]: Squid Parent: child process 22692 started
    Oct 12 20:34:45 	squid[63255]: Squid Parent: child process 11366 exited due to signal 6
    Oct 12 20:34:45 	kernel: pid 11366 (squid), uid 62: exited on signal 6
    Oct 12 20:34:45 	squid[11366]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:45 	squid[63255]: Squid Parent: child process 11366 started
    Oct 12 20:34:42 	squid[63255]: Squid Parent: child process 63693 exited due to signal 6
    Oct 12 20:34:42 	kernel: pid 63693 (squid), uid 62: exited on signal 6
    Oct 12 20:34:42 	squid[63693]: The url_rewriter helpers are crashing too rapidly, need help!
    Oct 12 20:34:41 	check_reload_status: Reloading filter
    Oct 12 20:34:41 	squid[63255]: Squid Parent: child process 63693 started
    Oct 12 20:34:41 	php: /pkg_edit.php: Starting Squid
    

    I tried launching squidGuard from the command line below```
    /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf

    
    and got
    
    

    /libexec/ld-elf.so.1: Shared object "libdb-4.2.so.2" not found, required by "squidGuard"

    
    Which led me here: [http://forum.pfsense.org/index.php/topic,26299.0.html](http://forum.pfsense.org/index.php/topic,26299.0.html)
    
    So I ran:```
     pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/db42.tbz
    

    and relaunched squidGuard and it's up.

    I could have caused this squidGuard issue by what I did in the post above.

    However it sounds like another incomplete package install - so, I don't know.


    So - does anyone know what's up?

    I've done an upgrade and a clean install with this 2.1 Dev version and had the same squid issues both times.
    They were both on the same hardware.

    Outside of my the issues here - pfSense-2.1-DEVELOPMENT-i386 looks like a good release. 
    Other bugs were wiped out with it. (CPU racing - ntpd no starting - repeated crash reports)

    I'd really like to know more.  Some feedback would be really groovy.

    Thanks


  • Rebel Alliance Developer Netgate

    The package system on 2.1 is being rewritten to work with PBIs instead of normal packages, so things are in a bit of a flux there.

    Bottom line is that 2.1 is under heavy development at this stage, open for large changes that have the potential to break things until they settle down. So things may work now (and often do) but it's far from stable in terms of ready to use for all features.

    At the moment things are pretty quiet on there (aside from packages) but we are getting ready to move to FreeBSD 9.x and a new version of pf and many other changes that will be very disruptive. Once that point is passed, overlaying the code on top of 2.0 as many do now will not be possible.



  • I also have problems installing Squid on PFSense 2.1 DEV (i386).
    When installing the package, on the re configuring filter part, I briefly get the following warning:
    Warning: unlink(/etc/squid/squid.conf): No such file or directory in /etc/inc/pkg-utils.inc on line 794 Warning: symlink(): No such file or directory in /etc/inc/pkg-utils.inc on line 795

    Then, the package seems to have installed successfully, but when I access the "Proxy Server" from the Services menu, I get this error:
    Warning: dir(/usr/local/etc/squid/errors/): failed to open dir: No such file or directory in /etc/inc/pfsense-utils.inc on line 432 Fatal error: Call to a member function read() on a non-object in /etc/inc/pfsense-utils.inc on line 433

    Anyone can give me an idea what to do and how can I troubleshoot this ?

    Thanks a lot.


Locked