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

    Squid crashes frequently need help !!!

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 3.1k 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.
    • M
      mlabenda
      last edited by

      I just installed squid on 1.2
      Comes up and works fine for some seconds and then it shows up in "services" stopped.

      System Logs tells me this

      May 27 18:08:13 squid[3071]: Exiting due to repeated, frequent failures
      May 27 18:08:13 squid[3071]: Squid Parent: child process 3867 exited due to signal 6
      May 27 18:08:13 kernel: pid 3867 (squid), uid 62: exited on signal 6
      May 27 18:08:13 squid[3867]: 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.
      May 27 18:08:13 squid[3071]: Squid Parent: child process 3867 started
      May 27 18:08:10 squid[3071]: Squid Parent: child process 3631 exited due to signal 6
      May 27 18:08:10 squid[3631]: 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.
      May 27 18:08:10 kernel: pid 3631 (squid), uid 62: exited on signal 6
      May 27 18:08:10 squid[3071]: Squid Parent: child process 3631 started
      May 27 18:08:10 check_reload_status: reloading filter
      May 27 18:08:07 Squid_Alarm[3372]: Squid has resumed. Reconfiguring filter.
      May 27 18:08:07 squid[3071]: Squid Parent: child process 3241 exited due to signal 6
      May 27 18:08:07 squid[3241]: 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.
      May 27 18:08:07 kernel: pid 3241 (squid), uid 62: exited on signal 6
      May 27 18:08:07 squid[3071]: Squid Parent: child process 3241 started
      May 27 18:08:06 php: /pkg_edit.php: Reloading Squid for configuration sync
      May 27 18:08:04 squid[3071]: Squid Parent: child process 3094 exited due to signal 6
      May 27 18:08:04 squid[3094]: 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.
      May 27 18:08:04 kernel: pid 3094 (squid), uid 62: exited on signal 6
      May 27 18:08:03 squid[3071]: Squid Parent: child process 3094 started
      May 27 18:08:03 Squid_Alarm[3091]: Reconfiguring filter…
      May 27 18:08:00 squid[3071]: Squid Parent: child process 3074 exited due to signal 6
      May 27 18:08:00 kernel: pid 3074 (squid), uid 62: exited on signal 6
      May 27 18:08:00 squid[3074]: 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.
      May 27 18:08:00 squid[3071]: Squid Parent: child process 3074 started
      May 27 18:08:00 Squid_Alarm[3064]: Attempting restart…
      May 27 18:08:00 Squid_Alarm[3062]: Squid has exited. Reconfiguring filter.
      May 27 18:07:11 squid[2380]: Exiting due to repeated, frequent failures
      May 27 18:07:11 squid[2380]: Squid Parent: child process 2894 exited due to signal 6
      May 27 18:07:11 kernel: pid 2894 (squid), uid 62: exited on signal 6
      May 27 18:07:11 squid[2894]: 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.
      May 27 18:07:11 squid[2380]: Squid Parent: child process 2894 started
      May 27 18:07:08 squid[2380]: Squid Parent: child process 2885 exited due to signal 6
      May 27 18:07:08 kernel: pid 2885 (squid), uid 62: exited on signal 6
      May 27 18:07:08 squid[2885]: 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.
      May 27 18:07:07 squid[2380]: Squid Parent: child process 2885 started
      May 27 18:07:04 squid[2380]: Squid Parent: child process 2877 exited due to signal 6
      May 27 18:07:04 kernel: pid 2877 (squid), uid 62: exited on signal 6
      May 27 18:07:04 squid[2877]: 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.
      May 27 18:07:04 squid[2380]: Squid Parent: child process 2877 started
      May 27 18:07:02 Squid_Alarm[2645]: Squid has resumed. Reconfiguring filter.
      May 27 18:07:01 squid[2380]: Squid Parent: child process 2404 exited due to signal 6
      May 27 18:07:01 squid[2404]: 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.
      May 27 18:07:01 kernel: pid 2404 (squid), uid 62: exited on signal 6
      May 27 18:07:01 squid[2380]: Squid Parent: child process 2404 started
      May 27 18:07:00 Squid_Alarm[2401]: Reconfiguring filter…
      May 27 18:06:58 squid[2380]: Squid Parent: child process 2383 exited due to signal 6
      May 27 18:06:58 kernel: pid 2383 (squid), uid 62: exited on signal 6
      May 27 18:06:58 squid[2383]: 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.
      May 27 18:06:57 squid[2380]: Squid Parent: child process 2383 started
      May 27 18:06:57 Squid_Alarm[2373]: Attempting restart…
      May 27 18:06:57 Squid_Alarm[2371]: Squid has exited. Reconfiguring filter.
      May 27 18:06:08 squid[1740]: Exiting due to repeated, frequent failures
      May 27 18:06:08 squid[1740]: Squid Parent: child process 2245 exited due to signal 6
      May 27 18:06:08 kernel: pid 2245 (squid), uid 62: exited on signal 6
      May 27 18:06:08 squid[2245]: 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.

      This is the squid part of my config.xml

      <service><name>squid</name>
      <rcfile>squid.sh</rcfile>
      <executable>squid</executable>
      <description>Proxy server Service</description></service>
      <squid><config><active_interface>lan,opt1,opt2</active_interface>
      <allow_interface><transparent_proxy>on</transparent_proxy>
      <private_subnet_proxy_off><log_enabled>on</log_enabled>
      <log_dir>/var/squid/log</log_dir>
      <proxy_port>3128</proxy_port>
      <icp_port><visible_hostname>babelfish.ibmg.local</visible_hostname>
      <admin_email>mlabenda@ibml.com</admin_email>
      <error_language>English</error_language>
      <disable_xforward>on</disable_xforward>
      <disable_via>on</disable_via>
      <uri_whitespace>strip</uri_whitespace></icp_port></private_subnet_proxy_off></allow_interface></config>
      <config><active_interface>lan,opt2</active_interface>
      <allow_interface>on</allow_interface>
      <transparent_proxy><private_subnet_proxy_off><log_enabled><log_dir>/var/squid/log</log_dir>
      <proxy_port>3128</proxy_port>
      <icp_port><visible_hostname>localhost</visible_hostname>
      <admin_email>admin@localhost</admin_email>
      <error_language>English</error_language>
      <disable_xforward><disable_via><uri_whitespace>strip</uri_whitespace></disable_via></disable_xforward></icp_port></log_enabled></private_subnet_proxy_off></transparent_proxy></config></squid>
      <squidcache><config><harddisk_cache_size>256</harddisk_cache_size>
      <harddisk_cache_location>/var/squid/cache</harddisk_cache_location>
      <memory_cache_size>512</memory_cache_size>
      <minimum_object_size>0</minimum_object_size>
      <maximum_object_size>4</maximum_object_size>
      <level1_subdirs>32</level1_subdirs>
      <memory_replacement>heap GDSF</memory_replacement>
      <cache_replacement>heap LFUDA</cache_replacement>
      <donotcache><enable_offline></enable_offline></donotcache></config></squidcache>

      Known Problem ?
      Any Idea how i can fix this ?

      Microsoft gives you "Windows"
      Opensource gives you the whole house

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        Run 'squid -z' …

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • M
          mlabenda
          last edited by

          I have done that, but did not helped.

          But when i change back the Level 1 subdirectories from 32 back 16 it works….

          Bug in in the package ?

          Microsoft gives you "Windows"
          Opensource gives you the whole house

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