<div dir="ltr"><div><div>Hello,<br><br></div>How do I correct this error.<br></div><div><br>ERROR opening swap log /var/cache/squid/swap.state: (5) Input/output error<br>FATAL: UFSSwapDir::openLog: Failed to open swap log.<br><br></div><div>Background: Running squid 3.4.7 on a freescale machine (T4240QDS) with ubuntu 12.04. <br></div><div>/usr/sbin/squid -k parse and /usr/sbin/squid -z didnt give any errors.<br>On running /usr/sbin/squid -NCd1 I get the above error.<br></div><div><br>root@t4240qds:~# /usr/sbin/squid -NCd1<br>2015/02/03 06:12:27| Set Current Directory to /var/cache/squid<br>2015/02/03 06:12:27| Starting Squid Cache version 3.4.7 for poweEXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 137660<br>rpc-fsl_networking-linux-gnu...<br>2015/02/03 06:12:27| Process ID 2520<br>2015/02/03 06:12:27| Process Roles: master worker<br>2015/02/03 06:12:27| With 1024 file descriptors available<br>2015/02/03 06:12:27| Initializing IP Cache...<br>2015/02/03 06:12:27| parseEtcHosts: /etc/hosts: (13) Permission denied<br>2015/02/03 06:12:27| DNS Socket created at [::], FD 4<br>2015/02/03 06:12:27| DNS Socket created at 0.0.0.0, FD 5<br>2015/02/03 06:12:27| Adding nameserver 10.116.65.126 from squid.conf<br>2015/02/03 06:12:27| Logfile: opening log daemon:/var/logs/access.log<br>2015/02/03 06:12:27| Logfile Daemon: opening log /var/logs/access.log<br>2015/02/03 06:12:27| Store logging disabled<br>2015/02/03 06:12:27| Swap maxSize 102400 + 262144 KB, estimated 28041 objects<br>2015/02/03 06:12:27| Target number of buckets: 1402<br>2015/02/03 06:12:27| Using 8192 Store buckets<br>2015/02/03 06:12:27| Max MemĀ  size: 262144 KB<br>2015/02/03 06:12:27| Max Swap size: 102400 KB<br>2015/02/03 06:12:27| ERROR opening swap log /var/cache/squid/swap.state: (5) Input/output error<br>FATAL: UFSSwapDir::openLog: Failed to open swap log.<br><br></div><div>Since I am booting the machine from an sd card I tried to delete the entire root filesystem and thus even swap.state file however it wouldn't get deleted. Did a filesystem check using e2fsck, but still swap.state won't get deleted.<br><br></div></div>