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

    SQUID: The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 3.6k 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.
    • N
      Nachtfalke
      last edited by

      Hi,

      I got this in syslog - even if I did a full reinstall or a uninstallation and then a new installation again.

      May 3 23:36:31 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:31 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:26: syntax error /tmp/rules.test.packages:29: syntax error /tmp/rules.test.packages:30: syntax error /tmp/rules.test.packages:33: syntax error /tmp/rules.test.packages:34: syntax error'
      May 3 23:36:31 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:31 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:23: syntax error /tmp/rules.test.packages:24: syntax error /tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:27: syntax error /tmp/rules.test.packages:28: syntax error /tmp/rules.test.packages:29: syntax error'
      May 3 23:36:31 	check_reload_status: syncing firewall
      May 3 23:36:30 	check_reload_status: reloading filter
      May 3 23:36:30 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:30 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:26: syntax error /tmp/rules.test.packages:29: syntax error /tmp/rules.test.packages:30: syntax error /tmp/rules.test.packages:33: syntax error /tmp/rules.test.packages:34: syntax error'
      May 3 23:36:30 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:30 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:23: syntax error /tmp/rules.test.packages:24: syntax error /tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:27: syntax error /tmp/rules.test.packages:28: syntax error /tmp/rules.test.packages:29: syntax error'
      May 3 23:36:30 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:30 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:26: syntax error /tmp/rules.test.packages:29: syntax error /tmp/rules.test.packages:30: syntax error /tmp/rules.test.packages:33: syntax error /tmp/rules.test.packages:34: syntax error'
      May 3 23:36:30 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:30 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:23: syntax error /tmp/rules.test.packages:24: syntax error /tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:27: syntax error /tmp/rules.test.packages:28: syntax error /tmp/rules.test.packages:29: syntax error'
      May 3 23:36:30 	check_reload_status: syncing firewall
      May 3 23:36:29 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:29 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:26: syntax error /tmp/rules.test.packages:29: syntax error /tmp/rules.test.packages:30: syntax error /tmp/rules.test.packages:33: syntax error /tmp/rules.test.packages:34: syntax error'
      May 3 23:36:29 	check_reload_status: reloading filter
      May 3 23:36:29 	php: /pkg_mgr_install.php: Reloading Squid for configuration sync
      May 3 23:36:29 	php: : There was an error while parsing the package filter rules for /usr/local/pkg/squid.inc.
      May 3 23:36:29 	php: : The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code '1', the output was '/tmp/rules.test.packages:23: syntax error /tmp/rules.test.packages:24: syntax error /tmp/rules.test.packages:25: syntax error /tmp/rules.test.packages:27: syntax error /tmp/rules.test.packages:28: syntax error /tmp/rules.test.packages:29: syntax error'
      May 3 23:36:29 	check_reload_status: reloading filter
      May 3 23:36:29 	php: /pkg_mgr_install.php: Reloading Squid for configuration sync
      May 3 23:36:29 	check_reload_status: syncing firewall
      May 3 23:36:28 	squid[5175]: Squid Parent: child process 5372 started
      May 3 23:36:28 	check_reload_status: reloading filter
      May 3 23:36:28 	php: /pkg_mgr_install.php: Starting a proxy monitor script
      May 3 23:36:28 	php: /pkg_mgr_install.php: Starting Squid
      May 3 23:36:27 	php: /pkg_mgr_install.php: Stopping any running proxy monitors
      May 3 23:36:27 	check_reload_status: syncing firewall
      May 3 23:35:07 	check_reload_status: syncing firewall
      May 3 23:35:06 	php: /pkg_mgr_install.php: Beginning package installation for squid.
      

      I am using:
      2.0-RC1 (amd64) built on Sun May 1 02:30:09 EDT 2011

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

        Can't tell what is wrong unless you post the contents of /tmp/rules.test.packages along with the error messages so the "invalid" lines can be inspected.

        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
        • N
          Nachtfalke
          last edited by

          Stange….I deleted all files and directories in /tmp/ and reinstalled squid and no more problems in system log.

          I will come back if the problem returns and post the hopefully necessary files.

          Nevertheless - thanks

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