Hi @gsw-belgium,
Good to hear that you solved this problem with reading/writing the Bacula configuration.
Thanks for providing the bdirjson output.
For this faillock error when adding an autochanger device, this action requires adding sudo entries for:
1) start/stop/restart Bacula storage daemon - this is needed if you want to be able to execute start/stop/restart Bacula storage daemon (for loading new storage daemon configuration). If you prefer restarting Bacula storage daemon manually in command line, this is fine as well.
To configure this function with the sudo entries, you can go to:
[Main menu] => [Page: API Panel] => [log in to API] => [Page: Settings] => [Page: Actions]
After setting it up and adding appropriate sudo entries, you will be able to start/stop and restart Bacula SD directly on the web interface.
2) In case magnetic tape autochangers or VTLs, the sudo entry is required for mtx-changer script as well if you plan to manage this autochanger via Bacularis (load/unload tapes in slots, bulk label action with/without barcodes, move tapes to I/O ports ...etc.). On the last step of the new tape storage wizard we display information about need of these sudo command. If you don't need this function in Bacularis, then this sudo entry is not needed.
It can look for example like here:
apache ALL = (root) NOPASSWD: /usr/libexec/bacula/mtx-changer
Without configuring sudo for these two functions, this faillock error can appear because Bacularis will try to execute commands that are not configured. This will happen in moments of using these functions, of course, not automatically.
Best regards,
Marcin Haba (gani)