Squid 3 fails on latest 2.2-RC



  • Squid service fails to start up after a clean install. No logs or cache being generated. Transparent settings on/off has no effect either. Anyone else seen this?

    Squid 3.4.10_2 pkg 0.2
    2.2-RC (amd64) built on Sun Dec 28 04:04:04 CST 2014

    Dec 28 11:48:55 squid[62389]: Exiting due to repeated, frequent failures
    Dec 28 11:48:55 squid[62389]: Squid Parent: (squid-1) process 74012 will not be restarted due to repeated, frequent failures
    Dec 28 11:48:55 squid[62389]: Squid Parent: (squid-1) process 74012 exited with status 1
    Dec 28 11:48:55 squid[62389]: Squid Parent: (squid-1) process 74012 started
    Dec 28 11:48:52 squid[62389]: Squid Parent: (squid-1) process 73806 exited with status 1
    Dec 28 11:48:52 squid[62389]: Squid Parent: (squid-1) process 73806 started
    Dec 28 11:48:50 Squid_Alarm[69026]: Squid has resumed. Reconfiguring filter.
    Dec 28 11:48:49 squid[62389]: Squid Parent: (squid-1) process 67986 exited with status 1
    Dec 28 11:48:49 squid[62389]: Squid Parent: (squid-1) process 67986 started
    Dec 28 11:48:45 squid[62389]: Squid Parent: (squid-1) process 63325 exited with status 1
    Dec 28 11:48:45 squid[62389]: Squid Parent: (squid-1) process 63325 started
    Dec 28 11:48:42 squid[62389]: Squid Parent: (squid-1) process 62923 exited with status 1
    Dec 28 11:48:42 squid[62389]: Squid Parent: (squid-1) process 62923 started
    Dec 28 11:48:42 squid[62389]: Squid Parent: will start 1 kids
    Dec 28 11:47:58 syslogd: kernel boot file is /boot/kernel/kernel



  • I am having the same issue….I was about to ask if there was a work around....Please advise?



  • I´m using the same version. What I did was:

    Check was happening with:
    squid -dM -f /usr/pbi/squid-amd64/etc/squid/squid.conf

    Then create links for squid to find files. I think that the pbi is searching things in the old package way.
    ln -s /usr/pbi/squid-amd64/etc/squid /usr/local/etc/squid
    ln -s /usr/pbi/squid-amd64/local/libexec/squid /usr/local/libexec/squid

    This should works.



  • I reverted to 2.1.5 for now as I do not have another test machine.

    Can anyone confirm the above commands fix the issue?



  • Same problem for me.. It works fine in 2.1.5

    2.2-RC (amd64)
    built on Tue Dec 30 15:16:19 CST 2014
    FreeBSD pfSense.localdomain 10.1-RELEASE-p3 FreeBSD 10.1-RELEASE-p3 #0 8bdb2f8(releng/10.1)-dirty: Tue Dec 30 15:58:58 CST 2014 root@pfsense-22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10 amd64



  • @Asterix:

    I reverted to 2.1.5 for now as I do not have another test machine.

    Can anyone confirm the above commands fix the issue?

    I was able to get it to work with 2.2-RC (amd64) built on Wed Dec 24 14:16:30 CST 2014. I might have added the following command with those listed above
    ln -s /lib/libmd.so.6 /usr/lib/libmd5.so.1



  • I've been having the same problem on a customer's machine. The install would stall out while creating the cache and then the web gui wouldn't load anymore unless I rebooted the machine from the console.
    Executing the above lines solved the problem.
    Thank you!



  • I did

    squid -dM -f /usr/pbi/squid-amd64/etc/squid/squid.conf

    ln -s /usr/pbi/squid-amd64/etc/squid /usr/local/etc/squid
    ln -s /usr/pbi/squid-amd64/local/libexec/squid /usr/local/libexec/squid

    Then
    ln -s /lib/libmd.so.6 /usr/lib/libmd5.so.1

    and now got past the libmd5.so.1 problem but now I see libecap.so.2 not found



  • @Topper727:

    problem but now I see libecap.so.2 not found

    I've sent a pull request to fix it.



  • thank you.. i let you know how it goes.  Wait.. there was update I thought you did but that did not fix.

    squid3 v3.4.10_2 pkg 0.2.1



  • Need to wait a new pbi with modified compile args.



  • If I had a way to test and see debug info and such I would help more with packages and pfsense.  I just don't know what tools to use to be able to test.  Only way I know is edit one file look for problem, change and then put file in system and see how it runs. If nothing happens then blank nothing knowing where fails.. Point me in direction to build a testing setup



  • @Topper727:

    Point me in direction to build a testing setup

    You mean build a pbi or check squid gui package files?



  • Hi!
    Same issue here. How do we know when the recompiled package is available ? The filename of the package only contains the squid version not the package version.

    Btw, there are some other folks having the same issue here: https://forum.pfsense.org/index.php?topic=84638.0

    /Anders



  • There are several topics about Squid issues, here's another one about broken transparent proxy:

    https://forum.pfsense.org/index.php?topic=85280.15
    

    Cheers.



  • build a pbi .. not seen any tool for windows to help making one..



  • Squid3 on 2.2 hasn't worked for me since last November, to the point where I've stopped testing it out of frustration.



  • https://forum.pfsense.org/index.php?topic=84638.0

    Also there here this post too.



  • Is anyone working to fix the package?





  • My CPU is at 100% with squid running now. I have a dual core 2.2 ghz Intel CPU.. what could be going on?

    last pid: 70216;  load averages:  2.41,  2.34,  2.23  up 0+00:48:28    00:41:21
    182 processes: 5 running, 157 sleeping, 4 zombie, 16 waiting

    Mem: 292M Active, 1233M Inact, 389M Wired, 552K Cache, 642M Buf, 2013M Free
    Swap: 8192M Total, 8192M Free

    PID USERNAME PRI NICE  SIZE    RES STATE  C  TIME    WCPU COMMAND
    42894 squid    52    0 12532K  2104K wait    0  4:45  13.18% /usr/pbi/.pbirun /usr/local/libexec/squid/
    40460 squid    52    0 12532K  2104K wait    1  4:46  12.60% /usr/pbi/.pbirun /usr/local/libexec/squid/
      11 root    155 ki31    0K    32K CPU1    1  4:25  1.37% [idle{idle: cpu1}]
      11 root    155 ki31    0K    32K RUN    0  4:24  0.78% [idle{idle: cpu0}]
    86386 root      20    0  147M 63528K uwait  1  0:29  0.59% /usr/local/bin/suricata -i ue0 -D -c /usr/
    17821 root      20    0  195M 71216K nanslp  0  0:17  0.39% /usr/local/bin/ntopng -d /var/db/ntopng -G
    94325 root      22    0  219M 33708K piperd  0  0:00  0.39% php-fpm: pool lighty (php-fpm)
        0 root    -16    0    0K  224K swapin  0  1:48  0.00% [kernel{swapper}]
        0 root    -92    0    0K  224K -      0  0:08  0.00% [kernel{em0 que}]
        4 root    -16    -    0K    32K -      1  0:03  0.00% [cam{doneq0}]
    86386 root      20    0  147M 63528K nanslp  1  0:03  0.00% /usr/local/bin/suricata -i ue0 -D -c /usr/
      21 root      16    -    0K    16K syncer  0  0:03  0.00% [syncer]
      12 root    -60    -    0K  256K WAIT    0  0:02  0.00% [intr{swi4: clock}]
        0 root    -92    0    0K  224K -      1  0:02  0.00% [kernel{em1 que}]
      12 root    -88    -    0K  256K WAIT    0  0:02  0.00% [intr{irq258: ahci0}]
    27027 unbound  20    0 47016K 19060K kqread  1  0:02  0.00% /usr/local/sbin/unbound -c /var/unbound/un
    99163 root      20    0 24580K  4960K kqread  1  0:02  0.00% redis-server: /usr/pbi/ntopng-amd64/local/
    17821 root      20    0  195M 71216K nanslp  0  0:02  0.00% /usr/local/bin/ntopng -d /var/db/ntopng -G



  • @Topper727:

    PID USERNAME PRI NICE  SIZE    RES STATE  C  TIME    WCPU COMMAND
    42894 squid    52    0 12532K  2104K wait    0  4:45  13.18% /usr/pbi/.pbirun /usr/local/libexec/squid/
    40460 squid    52    0 12532K  2104K wait    1  4:46  12.60% /usr/pbi/.pbirun /usr/local/libexec/squid/

    25% for squid?



  • I even stopped the services for squid and still see 100% CPU and this top info

    last pid:  2494;  load averages:  2.17,  2.27,  2.21  up 0+01:08:08    00:06:33
    174 processes: 5 running, 149 sleeping, 4 zombie, 16 waiting

    Mem: 146M Active, 1326M Inact, 388M Wired, 996K Cache, 535M Buf, 2066M Free
    Swap: 8192M Total, 8192M Free

    PID USERNAME PRI NICE  SIZE    RES STATE  C  TIME    WCPU COMMAND
    57726 squid    52    0 12532K  2104K wait    1  7:10  12.79% /usr/pbi/.pbirun /usr/local/libexec/squid/
    61536 squid    52    0 12532K  2104K wait    1  7:09  12.70% /usr/pbi/.pbirun /usr/local/libexec/squid/
      11 root    155 ki31    0K    32K RUN    0  5:03  0.88% [idle{idle: cpu0}]
      11 root    155 ki31    0K    32K RUN    1  5:05  0.68% [idle{idle: cpu1}]
    44769 root      28    0  219M 40428K piperd  0  0:01  0.59% php-fpm: pool lighty (php-fpm)
        0 root    -16    0    0K  224K swapin  0  1:49  0.00% [kernel{swapper}]
    52461 root      20    0  195M 73220K nanslp  1  0:25  0.00% /usr/local/bin/ntopng -d /var/db/ntopng -G
        0 root    -92    0    0K  224K -      1  0:24  0.00% [kernel{em1 que}]
        0 root    -92    0    0K  224K -      0  0:19  0.00% [kernel{em0 que}]
    47895 root      20    0 21160K  4360K select  0  0:10  0.00% /usr/local/sbin/miniupnpd -f /var/etc/mini
    94400 root      20    0 28172K 18060K select  1  0:07  0.00% /usr/local/sbin/ntpd -g -c /var/etc/ntpd.c
      21 root      16    -    0K    16K syncer  1  0:04  0.00% [syncer]
    8469 root      20    0  487M 97220K bpf    1  0:03  0.00% /usr/local/bin/snort -R 16771 -D -q –supp
        4 root    -16    -    0K    32K -      1  0:03  0.00% [cam{doneq0}]
      12 root    -60    -    0K  256K WAIT    0  0:03  0.00% [intr{swi4: clock}]
    13870 _dhcp    20    0 14704K  2444K select  0  0:03  0.00% dhclient: em0 (dhclient)
    34198 root      20    0 24580K  5060K kqread  1  0:02  0.00% redis-server: /usr/pbi/ntopng-amd64/local/
      12 root    -72    -    0K  256K WAIT    0  0:02  0.00% [intr{swi1: netisr 0}]



  • I finally got it to work by disabling the antivirus. Haven't done anything to configure the antivirus yet.



  • I am having the same issue with pbirun taking all the available CPU on 2.2 I am running 3.4.10_2 pkg 0.2.8.

    The only thing I have been able to do is kill the processes but I have very basic settings no AV or anything. Has much come out as a fix?



  • What I just went through for a friends pfsense firewall was a learning experience.  I install fresh copy of 2.2.2 I think then he did all the updates but squid3 would not work in transparent mode.

    I checked the permissions and the owners to my own copy that works for cache folder and PID file. Since he had errors for bad cache folders and couldn't fix with squid -z.  after deleting all the squid cache folders and recreating and all that still not run..

    Last thing I did is delete EVERY instance of SQUID on the system after fixing permissions and then installed squid3 again and it all works for him now.

    My system is working squid3 and Antivirus and so is a brand new friends firewall .. squid can't beat me!

    Don't give up and I will never fail I tell myself!