Hi all,
I wrote a script to add an ACL & http_request_rule to my HAProxy config. If I call the script from the commandline (or an other script that I call from the commandline or via ssh from an other machine from the commandline, everything works as expected. But all these methods fail when called from cron. The script runs and everything else in the script looks good (includig the PUT’s of the ACL and http_request rule) but on the commit of the transaction I receive an code 406 error eg: COMMIT HAPtransaction_result: {“code”:406,“message”:“transaction dd6d4c14-95ca-4245-9efe-1111a8f7abf6 is outdated and cannot be committed”}
I have tried a lot of solutions given at various places to add user environment variables, but none have solved this problem.
I do have other scripts run from cron that work well, only this one behaves this way.
Does anybody here have an idea what to try next? Any help is appriciated.