opnsense / plugins

OPNsense plugin collection
https://opnsense.org/
BSD 2-Clause "Simplified" License
810 stars 593 forks source link

/net/haproxy: Cron for Sync SSL certificates will not work. #4035

Open z3rb3rus-2024 opened 3 weeks ago

z3rb3rus-2024 commented 3 weeks ago

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug If i plan a job to Sync the SSL Certificates for HAProxy there is the following Error: Inline action failed with not all arguments converted during string formatting at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/actions/inline.py", line 44, in execute act_parameters = self.parameters % tuple(parameters) ~~~~^~~~~~~ TypeError: not all arguments converted during string formatting

The Error is in the file

plugins/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf

In the section [cert_sync_bulk] command:configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json

It should be something like this:

[cert_sync_bulk] command:configctl -q template reload OPNsense/HAProxy; /usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output json

Could you please correct this issue. Many thanks in advanced.