Hi,
I cannot restore data with bareos-webui since I have upgraded to the Version >= 22.0.0 . After choosing any client in the restore mask it takes long and then it shows the following error:
Error: API 2 not available on director.
Please upgrade to version 15.2.2 or greater and/or compile with jansson support.
The /var/log/apache2/error.log file of apache shows on Ubuntu 22.04 the following errors:
[Wed Mar 01 16:23:03.363167 2023] [proxy_fcgi:error] [pid 45055:tid 139926658086464] [client XX.XX.XX.XX:3193] AH01071: Got error 'PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /usr/share/bareos-webui/module/Restore/src/Restore/Form/RestoreForm.php on line 418PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /usr/share/bareos-webui/module/Restore/view/restore/restore/index.phtml on line 178', referer:
https://backup.xxx.xxxx.com/bareos-webui/dashboard/[Wed Mar 01 16:25:10.812211 2023] [proxy_fcgi:error] [pid 45055:tid 139926658086464] [client XX.XX.XX.XX:3196] AH01071: Got error 'PHP message: PHP Warning: unpack(): Type N: not enough input, need 4, have 0 in /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php on line 173PHP message: PHP Warning: Trying to access array offset on value of type bool in /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php on line 174PHP message: PHP Warning: unpack(): Type N: not enough input, need 4, have 0 in /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php on line 173PHP message: PHP Warning: Trying to access array offset on value of type bool in /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php on line 174', referer:
https://backup.xx.xx.com/bareos-webui/restore/
The command ".bvfs_update" does not solve the problem because it takes long and it does not finish after many days.
Is there a solution for this? I have the most recent Version 22.0.3~pre29.b63b6ea0 now.