I am using the PBS integration of Homepage (https://gethomepage.dev) to show a widget with an overview of PBS status.
This uses an API Token for authentication.
I have it running on PBS 3 with no problem and now have set up a new PBS 4 instance. I created a user apiuser@pbs, gave it Audit permissions on / (with propagation = yes) and set up an API token apiuser@pbs!homepage with the same permissions.
In homepage, I get the dreaded JSON parse error ("JSON.parse: unexpected character at line 1 column 1 of the JSON data") and when I look at homepage's logs, I see:
So I am quite sure it is an authentication problem. I tested with elevated privileges (essentially Admin for both user and token) to no avail.
Then, I set up a new user testuser@pbs and token testuser@pbs!homepage on my trusty PBS 3.0 and changed URL, username and password on the homepage side and hey, presto - everything works. That is to say: I know how to set this up and it works for a PBS 3 instance. The only difference I can think of is that the new PBS 4 instance is in a different VLAN, but I verified that port 8007 can be accessed from homepage.
So, did PBS 4.0 (most current updates applied, i.e. 4.0.12-1) introduce an API authentication problem?
When I tried calling:
it worked, though.
This uses an API Token for authentication.
I have it running on PBS 3 with no problem and now have set up a new PBS 4 instance. I created a user apiuser@pbs, gave it Audit permissions on / (with propagation = yes) and set up an API token apiuser@pbs!homepage with the same permissions.
In homepage, I get the dreaded JSON parse error ("JSON.parse: unexpected character at line 1 column 1 of the JSON data") and when I look at homepage's logs, I see:
Code:
[2025-08-08T06:58:26.130Z] error: <credentialedProxyHandler> HTTP Error 401 calling https://aaa.bbb:8007/api2/json/nodes/localhost/status
So I am quite sure it is an authentication problem. I tested with elevated privileges (essentially Admin for both user and token) to no avail.
Then, I set up a new user testuser@pbs and token testuser@pbs!homepage on my trusty PBS 3.0 and changed URL, username and password on the homepage side and hey, presto - everything works. That is to say: I know how to set this up and it works for a PBS 3 instance. The only difference I can think of is that the new PBS 4 instance is in a different VLAN, but I verified that port 8007 can be accessed from homepage.
So, did PBS 4.0 (most current updates applied, i.e. 4.0.12-1) introduce an API authentication problem?
When I tried calling:
Code:
curl -k -H 'Authorization: PBSAPIToken=apiuser@pbs!homepage:65554979-e675-4d56-xxxx-41699b0f0b81' https://aaa.bbb:8007/api2/json/nodes/localhost/status
it worked, though.
Last edited: