SQUID: The command '/sbin/pfctl -nf /tmp/rules.test.packages' returned exit code
-
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 -
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.
-
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