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

Squid failed frequently, cache rotate issue? Disk consistency?

Scheduled Pinned Locked Moved Cache/Proxy
3 Posts 2 Posters 1.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.
  • F
    flotho
    last edited by Apr 3, 2015, 11:00 AM

    Hy everyone,

    I'm working on the latest pfsense release with an uptodate squid.
    I have issues with cache rotate.
    When I run this command :

    /usr/local/pkg/swapstate_check.php clean; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/local/etc/squid/squid.conf  
    

    Squid failed an in the logs I have this message :

    2015/04/03 12:31:40 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1...
    2015/04/03 12:31:40 kid1| ERROR: /var/squid/cache/02: (2) No such file or directory
    FATAL:  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.
    Squid Cache (Version 3.4.10): Terminated abnormally.
    CPU Usage: 0.094 seconds = 0.058 user + 0.036 sys
    Maximum Resident Size: 235120 KB
    Page faults with physical i/o: 0
    2015/04/03 12:33:10 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1...
    
    

    Yet, the 02 directory exists! Sometimes it's on the 00 /  01 etc…

    Just starting starting squid don't seems to cause troubles

    Any advice?

    1 Reply Last reply Reply Quote 0
    • P
      periko
      last edited by Apr 3, 2015, 9:00 PM

      Have u already create again the cache directory?

      
         squid -z
      
      

      Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
      www.bajaopensolutions.com
      https://www.facebook.com/BajaOpenSolutions
      Quieres aprender PfSense, visita mi canal de youtube:
      https://www.youtube.com/c/PedroMorenoBOS

      1 Reply Last reply Reply Quote 0
      • F
        flotho
        last edited by Apr 9, 2015, 12:18 PM

        Yes,

        I recreate the cache and deactivate the cron. Since that no more problem on squid except that the cache is not clearing each day ;-).

        I'll retry the command once I will have less traffic

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received