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

    Problem installing SquidGuard with latest snapshot

    Scheduled Pinned Locked Moved 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
    6 Posts 3 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.
    • D
      Darkk
      last edited by

      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 2009

      I didn't have a problem with previous snapshots so not sure whats been changed.

      Please let me know.

      Thanks.

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

        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

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

          Uninstall package
          Check pkg_info from shell (SG must not be exists in list)
          Install new

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

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

            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 monitor

            I 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.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              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.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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

                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.

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