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

    Error installing Squid on pfSense 23.01-DEVELOPMENT

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 299 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.
    • T
      T145
      last edited by

      The following error occurs under the squid_resync_cache function when installing and running Squid:

      >>> Installing pfSense-pkg-squid... 
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      pfSense repository is up to date.
      All repositories are up to date.
      The following 13 package(s) will be affected (of 0 checked):
      
      New packages to be INSTALLED:
      	arc: 5.21p [pfSense]
      	arj: 3.10.22_9 [pfSense]
      	brotli: 1.0.9,1 [pfSense]
      	c-icap: 0.5.10,2 [pfSense]
      	c-icap-modules: 0.5.5 [pfSense]
      	clamav: 0.105.1_1,1 [pfSense]
      	krb5: 1.20 [pfSense]
      	libmspack: 0.10.1 [pfSense]
      	pfSense-pkg-squid: 0.4.45_9 [pfSense]
      	squid: 5.7 [pfSense]
      	squid_radius_auth: 1.10 [pfSense]
      	squidclamav: 7.2 [pfSense]
      	unzoo: 4.4_2 [pfSense]
      
      Number of packages to be installed: 13
      
      The process will require 32 MiB more space.
      9 MiB to be downloaded.
      [1/13] Fetching libmspack-0.10.1.pkg: .......... done
      [2/13] Fetching krb5-1.20.pkg: .......... done
      [3/13] Fetching squidclamav-7.2.pkg: .......... done
      [4/13] Fetching clamav-0.105.1_1,1.pkg: .......... done
      [5/13] Fetching arj-3.10.22_9.pkg: .......... done
      [6/13] Fetching arc-5.21p.pkg: ..... done
      [7/13] Fetching c-icap-0.5.10,2.pkg: .......... done
      [8/13] Fetching brotli-1.0.9,1.pkg: .......... done
      [9/13] Fetching squid_radius_auth-1.10.pkg: .. done
      [10/13] Fetching c-icap-modules-0.5.5.pkg: .......... done
      [11/13] Fetching pfSense-pkg-squid-0.4.45_9.pkg: ......... done
      [12/13] Fetching squid-5.7.pkg: .......... done
      [13/13] Fetching unzoo-4.4_2.pkg: ... done
      Checking integrity... done (0 conflicting)
      [1/13] Installing libmspack-0.10.1...
      [1/13] Extracting libmspack-0.10.1: ......... done
      [2/13] Installing arj-3.10.22_9...
      [2/13] Extracting arj-3.10.22_9: .......... done
      [3/13] Installing arc-5.21p...
      [3/13] Extracting arc-5.21p: ...... done
      [4/13] Installing brotli-1.0.9,1...
      [4/13] Extracting brotli-1.0.9,1: .......... done
      [5/13] Installing unzoo-4.4_2...
      [5/13] Extracting unzoo-4.4_2: ..... done
      [6/13] Installing krb5-1.20...
      [6/13] Extracting krb5-1.20: .......... done
      [7/13] Installing clamav-0.105.1_1,1...
      ===> Creating groups.
      Creating group 'clamav' with gid '106'.
      Using existing group 'mail'.
      ===> Creating users
      Creating user 'clamav' with uid '106'.
      Adding user 'clamav' to group 'mail'.
      [7/13] Extracting clamav-0.105.1_1,1: .......... done
      [8/13] Installing c-icap-0.5.10,2...
      ===> Creating groups.
      Creating group 'c_icap' with gid '959'.
      ===> Creating users
      Creating user 'c_icap' with uid '959'.
      [8/13] Extracting c-icap-0.5.10,2: .......... done
      [9/13] Installing squidclamav-7.2...
      [9/13] Extracting squidclamav-7.2: .......... done
      [10/13] Installing squid_radius_auth-1.10...
      [10/13] Extracting squid_radius_auth-1.10: .... done
      [11/13] Installing c-icap-modules-0.5.5...
      [11/13] Extracting c-icap-modules-0.5.5: .......... done
      [12/13] Installing squid-5.7...
      ===> Creating groups.
      Creating group 'squid' with gid '100'.
      ===> Creating users
      Creating user 'squid' with uid '100'.
      ===> Creating homedir(s)
      ===> Pre-installation configuration for squid-5.7
      [12/13] Extracting squid-5.7: .......... done
      [13/13] Installing pfSense-pkg-squid-0.4.45_9...
      [13/13] Extracting pfSense-pkg-squid-0.4.45_9: .......... done
      Saving updated package information...
      done.
      Loading package configuration... done.
      Configuring package components...
      Loading package instructions...
      Custom commands...
      Executing custom_php_install_command()...done.
      Executing custom_php_resync_config_command()...
      Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squid.inc:1610
      Stack trace:
      #0 /usr/local/pkg/squid.inc(2273): squid_resync_cache()
      #1 /etc/inc/pkg-utils.inc(787) : eval()'d code(1): squid_resync()
      #2 /etc/inc/pkg-utils.inc(787): eval()
      #3 /etc/inc/pkg-utils.inc(912): eval_once('squid_resync();')
      #4 /etc/rc.packages(76): install_package_xml('squid')
      #5 {main}
        thrown in /usr/local/pkg/squid.inc on line 1610
      PHP ERROR: Type: 1, File: /usr/local/pkg/squid.inc, Line: 1610, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squid.inc:1610
      Stack trace:
      #0 /usr/local/pkg/squid.inc(2273): squid_resync_cache()
      #1 /etc/inc/pkg-utils.inc(787) : eval()'d code(1): squid_resync()
      #2 /etc/inc/pkg-utils.inc(787): eval()
      #3 /etc/inc/pkg-utils.inc(912): eval_once('squid_resync();')
      #4 /etc/rc.packages(76): install_package_xml('squid')
      #5 {main}
        thrownpkg-static: POST-INSTALL script failed
      =====
      Message from squid_radius_auth-1.10:
      
      --
      ===>   NOTICE:
      
      The squid_radius_auth port currently does not have a maintainer. As a result, it is
      more likely to have unresolved issues, not be up-to-date, or even be removed in
      the future. To volunteer to maintain this port, please create an issue at:
      
      https://bugs.freebsd.org/bugzilla
      
      More information about port maintainership is available at:
      
      https://docs.freebsd.org/en/articles/contributing/#ports-contributing
      =====
      Message from squid-5.7:
      
      --
      o You can find the configuration files for this package in the
             directory /usr/local/etc/squid.
      
           o The default cache directory is /var/squid/cache/.
             The default log directory is /var/log/squid/.
      
             Note:
             You must initialize new cache directories before you can start
             squid.  Do this by running "squid -z" as 'root' or 'squid'.
             If your cache directories are already initialized (e.g. after an
             upgrade of squid) you do not need to initialize them again.
      
           o When using DiskD storage scheme remember to read documentation:
               http://wiki.squid-cache.org/Features/DiskDaemon
             and alter your kern.ipc defaults in /boot/loader.conf. DiskD will not
             work reliably without this. Last recomendations were:
      
               kern.ipc.msgmnb=8192
               kern.ipc.msgssz=64
               kern.ipc.msgtql=2048
      
           o The default configuration will deny everyone but the local host and
             local networks as defined in RFC 1918 for IPv4 and RFCs 4193 and
             4291 for IPv6 access to the proxy service.  Edit the "http_access
             allow/deny" directives in /usr/local/etc/squid/squid.conf
             to suit your needs.
      
           o If AUTH_SQL option is set, please, don't forget to install one of
             following perl modules depending on database you like:
               databases/p5-DBD-mysql
               databases/p5-DBD-Pg
               databases/p5-DBD-SQLite
      
           To enable Squid, set squid_enable=yes in either
           /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/squid
           Please see /usr/local/etc/rc.d/squid for further details.
      
           Note:
           If you just updated your Squid installation from an earlier version,
           make sure to check your Squid configuration against the 3.4 default
           configuration file /usr/local/etc/squid/squid.conf.sample.
      
           /usr/local/etc/squid/squid.conf.documented is a fully annotated
           configuration file you can consult for further reference.
      
           Additionally, you should check your configuration by calling
           'squid -f /path/to/squid.conf -k parse' before starting Squid.
      =====
      Message from pfSense-pkg-squid-0.4.45_9:
      
      --
      Please visit Services - Squid Proxy Server menu to configure the package and enable the proxy.
      >>> Cleaning up cache... done.
      Success
      

      Anyone know of a solution?

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