Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file editor add-on doesn't work #1820

Closed
gx19970920 opened this issue Feb 7, 2021 · 5 comments
Closed

file editor add-on doesn't work #1820

gx19970920 opened this issue Feb 7, 2021 · 5 comments

Comments

@gx19970920
Copy link

gx19970920 commented Feb 7, 2021

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

  • Add-on with the issue: File editor
  • Add-on release with the issue: 5.2.0
  • Last working add-on release (if known): no
  • Operating environment (OS/Supervised): hassio(supervisor-2021.01.7) on the docker of Phicomm N1

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
Copy link

FrankElias commented Feb 7, 2021

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Member

frenck commented Feb 15, 2021

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

danielperna84/hass-configurator#177

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

@frenck frenck closed this as completed Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants