[1ff53fdb-8812-4a5b-bd04-04cddac2fa89] Script action failed with Command 'configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json ' returned non-zero exit status 1. at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 482, in execute subprocess.check_call(script_command, env=self.config_environment, shell=True, File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json ' returned non-zero exit status 1.
opnsense-revert -r 22.7.6 os-haproxy
Message from py39-urllib3-1.26.10,1:--Since version 1.25 HTTPS connections are now verified by default which is donevia "cert_reqs = 'CERT_REQUIRED'". While certificate verification can bedisabled via "cert_reqs = 'CERT_NONE'", it's highly recommended to leave it on.Various consumers of net/py-urllib3 already have implemented routines thateither explicitly enable or disable HTTPS certificate verification (e.g. viaconfiguration settings, CLI arguments, etc.).Yet it may happen that there are still some consumers which don't explicitlyenable/disable certificate verification for HTTPS connections which could thenlead to errors (as is often the case with self-signed certificates).In case of an error one should try first to temporarily disable certificateverification of the problematic urllib3 consumer to see if that approach willremedy the issue.You may need to manually remove /usr/local/etc/ssl/cert.pem if it is no longer needed.You may need to manually remove /usr/local/openssl/cert.pem if it is no longer needed.
A related message in the log looks like this:Code: [Select][1ff53fdb-8812-4a5b-bd04-04cddac2fa89] Script action failed with Command 'configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json 'returned non-zero exit status 1.
[1ff53fdb-8812-4a5b-bd04-04cddac2fa89] Script action failed with Command 'configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json 'returned non-zero exit status 1.
service haproxy start
root@kbl:~ # service haproxy starthaproxy already running? (pid=88652).root@kbl:~ # service haproxy stopWaiting for PIDS: 88652.root@kbl:~ # service haproxy startStarting haproxy.
Is there another logfile from the startup process?
@fraenki, my router is headless. Is there any other way of finding the failed on startup message logs?
Script action failed with Command 'configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json ' returned non-zero exit status 1.
configctl template reload OPNsense/HAProxy 2 > /dev/null ; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json
root@kbl:~ # configctl template reload OPNsense/HAProxy 2 > /dev/null ; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json{"modified": [], "deleted": [], "add_count": 0, "remove_count": 0, "update_count": 0, "del_count": 0}
[8c855732-8a22-4ffd-9648-d93ea83bf186] Inline action failed with not all arguments converted during string formatting at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 506, in execute inline_act_parameters = self.parameters % tuple(parameters) TypeError: not all arguments converted during string formatting
configctl template reload OPNsense/HAProxy 2 > /dev/null
opnsense-patch -c plugins -a kulikov-a ce7711c
/usr/local/etc/rc.d/haproxy: WARNING: failed precmd routine for haproxy
WARNING: failed precmd routine for haproxy
log host1.localdomain:9901 len 8096 local0 info
[WARNING] (59447) : parsing [/usr/local/etc/haproxy.conf.staging:107] : a 'http-request' rule placed after a 'use_backend' rule will still be processed before.[WARNING] (59447) : parsing [/usr/local/etc/haproxy.conf.staging:109] : a 'http-request' rule placed after a 'use_backend' rule will still be processed before.Warnings were found.Configuration file is valid
Could it be that there was some update that if there's a config file "warning" that startup is prevented (on purpose)?
start_precmd="$command -c -f $haproxy_config > /var/log/haproxybootconfcheck.log 2>&1"