Squid 2.7.9 cant edit
-
this is the error i get when i click save:
Warning: opendir(/var/squid/cache): failed to open dir: Not a directory in /usr/local/pkg/squid.inc on line 62 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/pkg/squid.inc on line 63 Warning: opendir(/var/squid/cache): failed to open dir: Not a directory in /usr/local/pkg/squid.inc on line 62 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/pkg/squid.inc on line 63 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/squid.inc:62) in /usr/local/www/pkg_edit.php on line 35
-
happens with version 3 as well heres the output:
Warning: opendir(/var/squid/cache): failed to open dir: Not a directory in /usr/local/pkg/squid.inc on line 61 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/pkg/squid.inc on line 62 Warning: opendir(/var/squid/cache): failed to open dir: Not a directory in /usr/local/pkg/squid.inc on line 61 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/pkg/squid.inc on line 62 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/squid.inc:61) in /usr/local/www/pkg_edit.php on line 35
-
Which screen are you trying to save from? What cache type do you have selected?
And can you show the output of:
ls -ld /var/squid
and
ls -lR /var/squid
That second one would be quite large if the cache dirs were there, but they appear not to be, so it would be helpful if the output is of reasonable size.
-
the screens i am trying to save from are all of them.
only way to un/reinstall squid 2 is to install version 3, remove 2 then remove 3.ls -ld /var/squid
drwxr-xr-x 4 proxy proxy 512 Jun 29 17:41 /var/squid
ls -lR /var/squid
total 4
drwxr-xr-x 2 proxy proxy 512 Jun 29 17:35 acl
-rw-r–r-- 1 proxy proxy 0 Jun 29 16:49 cache
drwxr-xr-x 2 proxy proxy 1024 Jun 22 00:00 log/var/squid/acl:
total 0/var/squid/log:
total 22618
-rw-r----- 1 proxy proxy 1113200 Jun 11 15:21 access.log
-rw-r----- 1 proxy proxy 2225603 Jun 10 23:21 access.log.0
-rw-r----- 1 proxy proxy 1938246 Jun 9 22:48 access.log.1
-rw-r----- 1 proxy proxy 2920 May 31 23:09 access.log.10
-rw-r----- 1 proxy proxy 4089 May 30 16:19 access.log.11
-rw-r----- 1 proxy proxy 500204 May 29 13:52 access.log.12
-rw-r----- 1 proxy proxy 1244461 May 28 23:53 access.log.13
-rw-r----- 1 proxy proxy 1320224 Jun 8 23:59 access.log.2
-rw-r----- 1 proxy proxy 2277983 Jun 7 23:24 access.log.3
-rw-r----- 1 proxy proxy 827284 Jun 6 23:34 access.log.4
-rw-r----- 1 proxy proxy 1350779 Jun 5 23:41 access.log.5
-rw-r----- 1 proxy proxy 1294377 Jun 4 22:52 access.log.6
-rw-r----- 1 proxy proxy 3099038 Jun 3 23:24 access.log.7
-rw-r----- 1 proxy proxy 670125 Jun 2 23:59 access.log.8
-rw-r----- 1 proxy proxy 719420 Jun 1 11:14 access.log.9
-rw-r----- 1 proxy proxy 4141950 Jun 30 08:43 cache.log
-rw-r----- 1 proxy proxy 747 Jun 21 16:42 cache.log.0
-rw-r----- 1 proxy proxy 375 Jun 20 00:00 cache.log.1
-rw-r----- 1 proxy proxy 53767 Jun 11 15:55 cache.log.10
-rw-r----- 1 proxy proxy 6289 Jun 10 21:48 cache.log.11
-rw-r----- 1 proxy proxy 10530 Jun 9 20:49 cache.log.12
-rw-r----- 1 proxy proxy 533 Jun 8 18:55 cache.log.13
-rw-r----- 1 proxy proxy 375 Jun 19 00:00 cache.log.2
-rw-r----- 1 proxy proxy 2777 Jun 18 12:54 cache.log.3
-rw-r----- 1 proxy proxy 531 Jun 17 11:13 cache.log.4
-rw-r----- 1 proxy proxy 447 Jun 16 16:37 cache.log.5
-rw-r----- 1 proxy proxy 447 Jun 15 11:14 cache.log.6
-rw-r----- 1 proxy proxy 741 Jun 14 11:26 cache.log.7
-rw-r----- 1 proxy proxy 375 Jun 13 00:00 cache.log.8
-rw-r----- 1 proxy proxy 375 Jun 12 00:00 cache.log.9 -
That is very odd, somehow cache is a file and not a directory.
-
so..what does that mean, do I have to reinstall from scratch? I did the steps on another thread that you commented on, it was the one where you had them deleted the cache, squid was only taking up 2% of the drive.
If thats my only recourse, which files/directories would I need to backup if I want to keep my statistics?
-
nah, just rm /var/squid/cache and press save on the main squid page, that may do it.
Or reinstall the squid package after removing that file.
I may add a check to squid's install routing to ensure that doesn't happen, but I won't have time to do it today.
-
looks like it (did the save option) fixed it thank you, I am currently using squid 3, are there any caveats to it over ver 2?
-
I'm not sure, I haven't ever tried the squid3 package.
-
well, just tested and it doesnt seem to work with havp or i have a problem with the install, I am reverting back to ver 2 to check.
Edit: Yep, ver 3 doesnt support HVAP yet