Hi,

I am trying to restore files from one of my backups. In the Restore tab of 
the webui, I select the client and then after a delay I get the following 
error message:

{"id":"#","xhr":{"readyState":4,"responseText":"Decoding failed: Syntax 
errorError: API 2 not available on director.\n                      Please 
upgrade to verison 15.2.2 or greater and/or compile with jansson 
support.","status":200,"statusText":"OK"}

Bareos is running on an Ubuntu 20.04 server with hostname cscisbu01, and I 
am trying to access a backup from a client with hostname csspfile01. I 
initially got this error while on 23.0.4~pre169.6644119b5-114. I upgraded 
bareos on both the server and client to the most recent version via apt, 
which brought me up to 23.0.5~pre146.7e91df1c0-130 with no apparent change 
in behavior.

I have successfully restored files within the last couple of months on this 
server from the same client, and have not changed any configurations since 
then. 

I've attached my apache2 error logs, which contain some possibly-relevant 
php errors. I didn't see anything relevant in /var/log/bareos/bareos.log or 
/var/log/bareos/bareos-audit.log, but can provide those or anything else if 
needed. 

Thanks,

-Toma

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/bareos-users/4ea3f42e-9b0e-4c3f-b28d-a2f382b3d81an%40googlegroups.com.
[Wed Oct 23 10:43:25.200618 2024] [php7:warn] [pid 1600] [client 
143.229.6.129:58339] 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 173, referer: 
https://cscisbu01.my.domain/bareos-webui/restore/versions?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:43:25.200656 2024] [php7:notice] [pid 1600] [client 
143.229.6.129:58339] PHP Notice:  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://cscisbu01.my.domain/bareos-webui/restore/versions?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:44:25.261033 2024] [php7:warn] [pid 1600] [client 
143.229.6.129:58339] 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 173, referer: 
https://cscisbu01.my.domain/bareos-webui/restore/versions?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:44:25.261079 2024] [php7:notice] [pid 1600] [client 
143.229.6.129:58339] PHP Notice:  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://cscisbu01.my.domain/bareos-webui/restore/versions?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:47:47.662850 2024] [php7:warn] [pid 2664] [client 
143.229.6.129:58406] PHP Warning:  Invalid argument supplied for foreach() in 
/usr/share/bareos-webui/module/Restore/view/restore/restore/index.phtml on line 
171, referer: https://cscisbu01.my.domain/bareos-webui/dashboard/
[Wed Oct 23 10:47:50.269815 2024] [php7:warn] [pid 2664] [client 
143.229.6.129:58406] PHP Warning:  Invalid argument supplied for foreach() in 
/usr/share/bareos-webui/module/Restore/view/restore/restore/versions.phtml on 
line 169, referer: https://cscisbu01.my.domain/bareos-webui/restore/
[Wed Oct 23 10:47:52.158591 2024] [php7:warn] [pid 2664] [client 
143.229.6.129:58406] PHP Warning:  Invalid argument supplied for foreach() in 
/usr/share/bareos-webui/module/Restore/view/restore/restore/index.phtml on line 
171, referer: https://cscisbu01.my.domain/bareos-webui/restore/versions
[Wed Oct 23 10:48:56.874611 2024] [php7:warn] [pid 2664] [client 
143.229.6.129:58406] 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 173, referer: 
https://cscisbu01.my.domain/bareos-webui/restore/?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:48:56.874655 2024] [php7:notice] [pid 2664] [client 
143.229.6.129:58406] PHP Notice:  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://cscisbu01.my.domain/bareos-webui/restore/?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:49:56.934843 2024] [php7:warn] [pid 2664] [client 
143.229.6.129:58406] 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 173, referer: 
https://cscisbu01.my.domain/bareos-webui/restore/?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000
[Wed Oct 23 10:49:56.934874 2024] [php7:notice] [pid 2664] [client 
143.229.6.129:58406] PHP Notice:  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://cscisbu01.my.domain/bareos-webui/restore/?jobid=&client=csspfile01-fd&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000

Reply via email to