resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Problem with config addon #852

Open VasiliyJ opened 1 year ago

VasiliyJ commented 1 year ago

Good day. I have installed the addon version 1.3.7. All options are default. Home Assistant OS 9.2, Home Assistant Core 2022.10.5, Home Assistant Supervisor 2022.10.0 The addon launches, a tileboard tab opens in the sidebar, and I see the demo page. Then I created a folder \config\tileboard and a file config.js in it. The config.js is a renamed config.example.js. The addon starts up, but when I try to open a tileboard tab in the sidebar, I see the following error in the logs:

[error] 388#388: 1 open() "/var/www/tileboard/config.js" failed (13: Permission denied), client: 172.30.32.2, server: abc67f79-tileboard, request: "GET /config.js?r=1666542022031 HTTP/1.1", host: "192.168.17.4:8123", referrer: "http://192.168.17.4:8123/api/hassio_ingress/VNx1GRmVoNh5q3HYrmoyg1Sm-SnaIvU4qUQN1dtTFB4/" [info] 388#388: 1 client 172.30.32.2 closed keepalive connection

N3rdix commented 1 year ago

Not sure if it fixes your issue, but you could check if the cors_allowed_origin needs to be set (https://www.home-assistant.io/integrations/http/) to allow your tileboard resource. I had similar issues accessing the API from Tileboard

VasiliyJ commented 1 year ago

I tried different options: http://192.168.17.4:8123/hassio/addon/abc67f79_tileboard http://192.168.17.4:8125 (specifying a separate port 8125 for the tileboard) But it doesn't work. In any case, thanks for trying to help.