Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid msgget failed

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 3.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      quiricada
      last edited by

      hi,

      pfsense 2.0.1-release (i386)

      dashboard shows
      memory usage is usually around 30%
      disk usage is 1%

      squid was working fine, then it won't start at all!

      so i googled and check the pfsense boards

      am not very familiar with freebsd and pfsense; but it seems that i do have enough disk space.
      i've uninstalled squid, deleted /var/squid/cache, then installed squid again, squid still won't start.

      it looks like a very simple error that i can't decipher, can someone point out the obvious error?

      df -h
      Filesystem        Size    Used  Avail Capacity  Mounted on
      /dev/ad0s1a    35G    478M    32G    1%    /
      devfs                1.0K    1.0K      0B  100%    /dev
      /dev/md0        3.6M    46K    3.3M    1%    /var/run
      devfs                1.0K    1.0K      0B  100%    /var/dhcpd/dev

      from /var/log/system.log
      …
      Oct  1 12:49:46 abcgh squid[17345]: Exiting due to repeated, frequent failures
      Oct  1 12:49:48 abcgh php: : SQUID is installed but not started.  Not installing "nat" rules.
      Oct  1 12:49:48 abcgh php: : SQUID is installed but not started.  Not installing "pfearly" rules.
      Oct  1 12:49:48 abcgh php: : SQUID is installed but not started.  Not installing "filter" rules.
      Oct  1 12:50:10 abcgh Squid_Alarm[17864]: Squid has exited.  Reconfiguring filter.
      Oct  1 12:50:10 abcgh Squid_Alarm[18310]: Attempting restart…
      Oct  1 12:50:10 abcgh squid[19899]: Squid Parent: child process 20208 started
      Oct  1 12:50:10 abcgh squid[20208]: msgget failed
      Oct  1 12:50:10 abcgh squid[19899]: Squid Parent: child process 20208 exited due to signal 6
      Oct  1 12:50:10 abcgh kernel: pid 20208 (squid), uid 62: exited on signal 6
      Oct  1 12:50:13 abcgh Squid_Alarm[23802]: Reconfiguring filter…
      Oct  1 12:50:13 abcgh squid[19899]: Squid Parent: child process 24672 started
      Oct  1 12:50:13 abcgh check_reload_status: Reloading filter
      Oct  1 12:50:13 abcgh squid[24672]: msgget failed
      Oct  1 12:50:13 abcgh squid[19899]: Squid Parent: child process 24672 exited due to signal 6
      Oct  1 12:50:13 abcgh kernel: pid 24672 (squid), uid 62: exited on signal 6
      Oct  1 12:50:14 abcgh Squid_Alarm[27244]: Squid has resumed. Reconfiguring filter.
      Oct  1 12:50:15 abcgh check_reload_status: Reloading filter
      Oct  1 12:50:16 abcgh squid[19899]: Squid Parent: child process 29631 started
      Oct  1 12:50:17 abcgh squid[29631]: msgget failed
      Oct  1 12:50:17 abcgh squid[19899]: Squid Parent: child process 29631 exited due to signal 6
      Oct  1 12:50:17 abcgh kernel: pid 29631 (squid), uid 62: exited on signal 6
      Oct  1 12:50:20 abcgh squid[19899]: Squid Parent: child process 45884 started
      Oct  1 12:50:20 abcgh squid[45884]: msgget failed
      Oct  1 12:50:20 abcgh squid[19899]: Squid Parent: child process 45884 exited due to signal 6
      Oct  1 12:50:20 abcgh kernel: pid 45884 (squid), uid 62: exited on signal 6
      Oct  1 12:50:23 abcgh squid[19899]: Squid Parent: child process 49111 started
      Oct  1 12:50:24 abcgh squid[49111]: msgget failed
      Oct  1 12:50:24 abcgh squid[19899]: Squid Parent: child process 49111 exited due to signal 6
      Oct  1 12:50:24 abcgh kernel: pid 49111 (squid), uid 62: exited on signal 6
      Oct  1 12:50:24 abcgh squid[19899]: Exiting due to repeated, frequent failures
      …

      from /var/squid/logs/cache.log
      ...
      2012/10/01 15:01:48| Starting Squid Cache version 2.7.STABLE9 for i386-portbld-freebsd8.1...
      2012/10/01 15:01:48| Process ID 47887
      2012/10/01 15:01:48| With 5248 file descriptors available
      2012/10/01 15:01:48| Using kqueue for the IO loop
      2012/10/01 15:01:48| DNS Socket created at 0.0.0.0, port 26089, FD 11
      2012/10/01 15:01:48| Adding domain localdomain from /etc/resolv.conf
      2012/10/01 15:01:48| Adding nameserver 127.0.0.1 from /etc/resolv.conf
      2012/10/01 15:01:48| Adding nameserver 124.106.5.2 from /etc/resolv.conf
      2012/10/01 15:01:48| Adding nameserver 124.106.6.2 from /etc/resolv.conf
      2012/10/01 15:01:48| Adding nameserver 208.67.222.222 from /etc/resolv.conf
      2012/10/01 15:01:48| Adding nameserver 208.67.220.220 from /etc/resolv.conf
      2012/10/01 15:01:48| helperOpenServers: Starting 3 'squidGuard' processes
      2012/10/01 15:01:48| Referer logging is disabled.
      2012/10/01 15:01:48| logfileOpen: opening log /dev/null
      2012-10-01 15:01:49 [48114] (squidGuard): can't write to logfile /var/log/squidGuard.log
      2012-10-01 15:01:49 [48083] (squidGuard): can't write to logfile /var/log/squidGuard.log
      2012-10-01 15:01:49 [48083] New setting: logdir: /var/squidGuard/log
      2012-10-01 15:01:49 [48083] New setting: dbhome: /var/db/squidGuard
      2012-10-01 15:01:49 [48114] New setting: logdir: /var/squidGuard/log
      2012-10-01 15:01:49 [48114] New setting: dbhome: /var/db/squidGuard
      2012-10-01 15:01:49 [48114] init domainlist /var/db/squidGuard/abc/domains
      2012-10-01 15:01:49 [48114] loading dbfile /var/db/squidGuard/abc/domains.db
      2012-10-01 15:01:49 [48083] init domainlist /var/db/squidGuard/abc/domains
      2012-10-01 15:01:49 [48083] loading dbfile /var/db/squidGuard/abc/domains.db
      2012-10-01 15:01:49 [48314] (squidGuard): can't write to logfile /var/log/squidGuard.log
      2012-10-01 15:01:49 [48314] New setting: logdir: /var/squidGuard/log
      2012-10-01 15:01:49 [48314] New setting: dbhome: /var/db/squidGuard
      2012-10-01 15:01:49 [48314] init domainlist /var/db/squidGuard/abc/domains
      2012-10-01 15:01:49 [48314] loading dbfile /var/db/squidGuard/abc/domains.db
      2012/10/01 15:01:48| Unlinkd pipe opened on FD 20
      2012/10/01 15:01:48| Swap maxSize 102400 + 8192 KB, estimated 8507 objects
      2012/10/01 15:01:48| Target number of buckets: 425
      2012/10/01 15:01:48| Using 8192 Store buckets
      2012/10/01 15:01:48| Max Mem  size: 8192 KB
      2012/10/01 15:01:48| Max Swap size: 102400 KB
      2012/10/01 15:01:48| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
      2012/10/01 15:01:48| Store logging disabled
      2012/10/01 15:01:48| storeDiskdInit: msgget: (28) No space left on device
      FATAL: msgget failed
      Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
      CPU Usage: 0.061 seconds = 0.015 user + 0.046 sys
      Maximum Resident Size: 5028 KB
      Page faults with physical i/o: 0
      …

      thanks much

      1 Reply Last reply Reply Quote 0
      • J
        jacob81286
        last edited by

        run the following commands should take care of it.

        /usr/local/libexec/squid/ssl_crtd -c -s /var/squid/lib/ssl_db
        

        if you get an error delete /var/squid/lib directory and run the command again squid will recreate it
        This command starts squid with the config file.

        /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf
        

        If this doesn't work for you might have to reinitialize the cache with the following command.

        /usr/local/sbin/squid -z
        
        1 Reply Last reply Reply Quote 0
        • Q
          quiricada
          last edited by

          thanks for reply.

          1 i can't find the ssl_crdt command
          /usr/local/libexec/squid/ssl_crtd -c -s /var/squid/lib/ssl_db

          2 can't find this directory
          delete /var/squid/lib directory

          i think i must be running a different version of pfsense/squid.

          3 /usr/local/sbin/squid -z
          i've been seeing a lot of this command, so i decided to jump in using this

          http://wiki.squid-cache.org/SquidFaq/OperatingSquid#I_want_to_restart_Squid_with_an_empty_cache

          and so far, squid been up.

          thanks much for the reply

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.