Problem installing SquidGuard with latest snapshot
-
When I installed the latest version of SquidGuard I get this error below:
Warning: fopen(/usr/local/etc/squidGuard/squidguard_conf.xml): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 1138 Warning: fwrite(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1139 Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1140 Warning: fopen(/usr/local/etc/squidGuard/squidguard_conf.xml): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 1138 Warning: fwrite(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1139 Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1140
I am running the following snapshot:
1.2.3-RC1
built on Sun Apr 19 06:26:37 EDT 2009I didn't have a problem with previous snapshots so not sure whats been changed.
Please let me know.
Thanks.
-
Any luck in fixing this? I've updated it to the latest snapshot tonight and re-installed the SquidGuard package. This is the error I get:
Warning: fopen(/usr/local/etc/squidGuard/squidguard_conf.xml): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 1137 Warning: fwrite(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1138 Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1139
-
Uninstall package
Check pkg_info from shell (SG must not be exists in list)
Install new -
Warning: fopen(/usr/local/etc/squidGuard/squidguard_conf.xml): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 1137 Warning: fwrite(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1138 Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1139 Warning: fopen(/usr/local/etc/squidGuard/squidguard_conf.xml): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 1137 Warning: fwrite(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1138 Warning: fclose(): supplied argument is not a valid stream resource in /etc/inc/pfsense-utils.inc on line 1139
$ pkg_info
arc-5.21o_1 Create & extract files from DOS .ARC files
arj-3.10.22_1 Open-source ARJ
clamav-0.93.1_2 Command line virus scanner written entirely in C
db41-4.1.25_4 The Berkeley DB package, revision 4.1
gd-2.0.35,1 A graphics library for fast creation of images
havp-0.88 HTTP Antivirus Proxy
jpeg-6b_4 IJG's jpeg compression utilities
lha-1.14i_6 Archive files using LZSS and Huffman compression (.lzh file
libgmp-4.2.2 A free library for arbitrary precision arithmetic
mysql-client-5.0.51a Multithreaded SQL database (client)
openldap-client-2.4.10 Open source LDAP client implementation
openldap-client-2.4.11 Open source LDAP client implementation
p5-GD-2.39 A perl5 interface to Gd Graphics Library version2
perl-5.8.8_1 Practical Extraction and Report Language
squid-2.6.21 HTTP Caching Proxy
squid_radius_auth-1.10 RADIUS authenticator for squid proxy 2.5 and later
unzoo-4.4_2 A zoo archive extractor
vnstat-1.6_3 A console-based network traffic monitorI did totally remove squid and squidguard, rebooted the router and then installed squid and squidguard respectively. Soon as I installed SG I get that above error.
-
I just uninstalled both Squid and SquidGuard on a test system and both worked fine.
It was on a 1.2.3-RC1 system with a snapshot from yesterday.
You might try updating to a newer snapshot and trying again, but there may be something else going on.
-
I found out what the problem was:
squid[4170]: 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.So I ran squid -z to create the necessary swap folders. Funny thing is I've used squid before and it ran without problems until the recent update of squid.
I guess somewhere along the lines of the install script it didn't create what it needed on my setup.
Thanks for the help.