home-assistant / addons

:heavy_plus_sign: Docker add-ons for Home Assistant
https://home-assistant.io/hassio/
Apache License 2.0
1.57k stars 1.52k forks source link

file editor add-on doesn't work #1820

Closed gx19970920 closed 3 years ago

gx19970920 commented 3 years ago

The problem

I use hassio on the docker of Phicomm N1. file editor add-on can be install but can't be opened in WEB UI.

Environment

Problem-relevant configuration

dirsfirst: true
enforce_basepath: false
git: false
ignore_pattern:
  - __pycache__
  - .cloud
  - .storage
  - deps
ssh_keys: []

Traceback/Error logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
INFO:2021-02-07 18:30:44,173:hass_configurator.configurator:Starting server
INFO:2021-02-07 18:30:44,175:hass_configurator.configurator:Listening on: http://0.0.0.0:8099
WARNING:2021-02-07 18:42:13,035:hass_configurator.configurator:Client IP not within allowed networks.
INFO:2021-02-07 18:42:13,036:hass_configurator.configurator:172.30.32.1 - "GET / HTTP/1.1" 420 -
WARNING:2021-02-07 19:21:02,894:hass_configurator.configurator:Client IP banned.
INFO:2021-02-07 19:21:02,895:hass_configurator.configurator:172.30.32.1 - "GET / HTTP/1.1" 420 -

Additional information

FrankElias commented 3 years ago

similar here: It starts, but does not render correctly (seems like missing CSS?).

Environment

Version | core-2021.2.1
-- | --
Installation Type | Home Assistant OS
Development | false
Supervisor | true
Docker | true
Virtual Environment | false
Python Version | 3.8.7
Operating System Family | Linux
Operating System Version | 5.4.79-v8
CPU Architecture | aarch64
Timezone | Europe/Paris

Host Operating System | Home Assistant OS 5.10
-- | --
Update Channel | stable
Supervisor Version | supervisor-2021.01.7
Docker Version | 19.03.13
Disk Total | 228.5 GB
Disk Used | 16.3 GB
Healthy | true
Supported | true
Board | rpi4-64
Supervisor API | ok
Version API | ok
Installed Add-ons | ESPHome (1.16.0), Check Home Assistant configuration (3.6.0), File editor (5.2.0), Glances (0.10.0), Bitwarden RS (0.7.0), Log Viewer (0.9.1), Mosquitto broker (5.1), InfluxDB (4.0.1), Grafana (6.1.0), Bookstack (0.8.1), Grocy (0.11.0), MariaDB (2.2.1), Nextcloud (0.7), Terminal & SSH (9.0.0), HDD Tools (0.46), motionEye (0.11.0), chrony (2.0.0), Node-RED (8.1.0)

Configuration

dirsfirst: true
enforce_basepath: false
git: false
ignore_pattern:
  - __pycache__
  - .cloud
  - .storage
  - deps
ssh_keys: []

File editor Logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
INFO:2021-02-07 13:14:15,548:hass_configurator.configurator:Starting server
INFO:2021-02-07 13:14:15,549:hass_configurator.configurator:Listening on: http://0.0.0.0:8099
INFO:2021-02-07 13:14:37,895:hass_configurator.configurator:172.30.32.2 - "GET / HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,245:hass_configurator.configurator:172.30.32.2 - "GET /material-icons.fallback.css HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,248:hass_configurator.configurator:172.30.32.2 - "GET /style.css HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,282:hass_configurator.configurator:172.30.32.2 - "GET /jquery-3.4.1.min.js HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,285:hass_configurator.configurator:172.30.32.2 - "GET /materialize.min.js HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,288:hass_configurator.configurator:172.30.32.2 - "GET /js-yaml.min.js HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,330:hass_configurator.configurator:172.30.32.2 - "GET /flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 HTTP/1.1" 200 -
INFO:2021-02-07 13:14:38,585:hass_configurator.configurator:172.30.32.2 - "GET /api/listdir?path=. HTTP/1.1" 200 -

Screen output image

FrankElias commented 3 years ago

topic resolved for me: It seems my AdGuard Home installation blocked some cloudflare CSS loads. blocked CSS was: https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/3.4.93/css/materialdesignicons.min.css

@FKSRZgaoximg : maybe check in Chrome / F12 on Console errors and extend your posting.

Cheers, F

gx19970920 commented 3 years ago

topic resolved for me: It seems my AdGuard Home installation blocked some cloudflare CSS loads. blocked CSS was: https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/3.4.93/css/materialdesignicons.min.css

@FKSRZgaoximg : maybe check in Chrome / F12 on Console errors and extend your posting.

Cheers, F

thank you very much, I'll try your method as soon as possible.

tobiasff3200 commented 3 years ago

This error could be solved by including these files in the addon and serve them from the home-assistant server. This would also make it useable offline.

frenck commented 3 years ago

This is an upstream issue. Add-on wrap existing applications, in this case hass-configurator, there seems to be an upstream request already:

https://github.com/danielperna84/hass-configurator/issues/177

One the upstream editor gets these capabilities, we can upgrade the add-on too.