SNMPv3 set by HTTP API failed

(vyos-1.5-rolling-202408062043)
I got a SNMPv3 set problem when set SNMPv3 related entries. I got perl locale warning and the set failed.
e.g.
curl --request POST ‘http://localhost/configure’ --form data=‘{“op”: “set”, “path”: [“service”, “snmp”,“v3”,“user”,“user2”,“group”,“default”]}’ --form key=‘webkey’

And got error as follow:
{“success”: false, “error”: “perl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLC_CTYPE = "C.UTF-8",\n\tLANG = "en_US.UTF-8"\n are supported and installed on your system.\nperl: warning: Falling back to the standard locale ("C").\n[[service snmp]] failed\nCommit failed\n”, “data”: null}

It is no problem by using configure CLI. There is no problem to set any SNMPv2 date by HTTP API.

Bug tracked via ⚓ T6688 SNMPv3 set by HTTP API failed - thanks for reporting

This topic was automatically closed after 14 days. New replies are no longer allowed.