OpenWRT widget API error #3454
Replies: 10 comments 3 replies
|
Thanks for posting a discussion about homepage here on GitHub. Homepage now uses a fancy new AI tool thanks to our friends at Glime, so the answer below is the AI bot's attempt to answer your question. If you feel it's sufficient you can mark the answer and close this post, otherwise feel free to leave it open of course! Thanks for using Homepage! ❤️ Based on the information provided and the context from the sources, it seems like there might be a configuration issue with the OpenWRT widget setup in your
If after these steps the issue persists, you may want to reach out for support using the 'Ask AI' button on the documentation pages, open a GitHub discussion, or check out the This comment was generated by Glime. |
|
Same issue here |
|
Try installing uhttpd-mod-ubus opkg update
opkg install uhttpd-mod-ubus |
|
I've "solved" this by using After that I've encountered another issue but I've already created a PR for that #3576 |
|
I just went to make a new discussion thread but then realised this one is still open. I'm experiencing exactly the same issue. Using The docs say to set up an ACL for the homepage user, and then set up a new user. I have done both of these steps, opting for a crypt(5) password. I am using the actual password in the service widget password configuration, for avoidance of doubt. However, I cannot seem to get it to work. All I see in homepage is the error: The docker logs show nothing useful, unfortunately. I've verified that the homepage user can actually login by creating a user session for them on the router. See below: root@GL-AX1800:~# ubus call session login '{"username": "homepage", "password": "*******"}'
{
"ubus_rpc_session": "1bf7b7333bc8750a34f84226e7c65d22",
"timeout": 300,
"expires": 299,
"acls": {
"access-group": {
"homepage": [
"read"
]
},
"ubus": {
"network.device": [
"status"
],
"network.interface.lan": [
"status"
],
"network.interface.wan": [
"status"
],
"system": [
"info"
]
}
},
"data": {
"username": "homepage"
}
}I had noticed on a previous bug report that had the same error I am getting that installing Any help would be greatly appreciated. I've opened this as a discussion rather than a bug report incase there is something I've missed. Below I am attaching all relevant configuration files I can think of: On my OpenWRT Router:/usr/share/rpcd/acl.d/homepage.json: {
"homepage": {
"description": "Homepage widget",
"read": {
"ubus": {
"network.interface.wan": ["status"],
"network.interface.lan": ["status"],
"network.device": ["status"],
"system": ["info"]
}
}
}
}/etc/config/rpcd: config rpcd
option socket /var/run/ubus/ubus.sock
option timeout 30
config login
option username 'root'
option password '$p$root'
list read '*'
list write '*'
config login
option username 'homepage'
option password '$1$<redacted>'
list read homepageIn the LXC I am running homepage from:services.yaml: - Networking:
- Router:
icon: si-wikiquote
href: http://192.168.0.1/
ping: 192.168.0.1
widget:
type: openwrt
url: https://192.168.0.1 # I have tried http and https here, neither work
username: homepage
password: ******* |
|
Same here with Homepage v0.9.13 and OpenWrt 23.05.5 on a GL-MT6000 |
|
This discussion has been automatically closed due to inactivity. See our contributing guidelines for more details. |
|
This is still an issue and should not be closed. |
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
I followed the homepage instructions on setting up OpenWRT, but I am seeing an API error, details in the fields below.
I tried the following:
homepageandrootuserinterfaceName, usingwanandlanI found this thread, but it doesn't seem to be the same issue.
homepage version
v0.8.13 (986a181, May 6, 2024)
Installation method
Docker
Configuration
error: undefined
API Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
GET /api/services/proxy?type=openwrt&group=Services&service=Abijah&endpoint=undefined
500
Internal Server Error
All reactions