-
Notifications
You must be signed in to change notification settings - Fork 168
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
Not list files after set "ENFORCE_BASEPATH": true #171
Comments
Please try to start the configurator without the enforced basepath, then open a file within the basepath. That way the configurator will re-open the same file and path at the next startup. Then stop the configurator, enable enforce basepath, then start again. It should then start with the file you had open last and display the content of the directory. I assume you get the error because prior to shutting down the configurator you had a file open that was outside of the basepath. The configurator remembers this and tries to access the same file when you restart the configurator, even though with the enforced basepath access to that file is now denied. Does this solution work? |
Nope. i migrated to docker and there configurator work perfect. But I special try to reproduce situation in dev environment and receive same result Log: Because its not affecting me now, you can close this issue without resolution, just for your information. |
I have the same problem right now. I can't navigate... 😞 |
There´re any ways to fully restart or reset the plugging? I uninstall and install but the problem persist. |
I don't know why this is happening. As a workaround you should be able to open a specific folder manually. To do this, open the JavaScript console of your browser and execute the function It would also be interesting if this problem persists when you use another browser, and if learing the browser cache can solve the problem as well. |
There are two options:
|
I don't use hassio and the ingress-functionality, so I don't know what the problem could be. Please head over to the forum at https://community.home-assistant.io to see if someone there knows why this is happening. |
The problem it's not with ingress. When I access from local network with local IP it still happening. |
Could you make another screenshot like above when accessing locally? And instead of the preview-tab please open the response-tab. |
Hello, what I do wrong?
I setup configurator via pip3 install
/etc/hass/settings.conf
{
"LISTENIP": "0.0.0.0",
"PORT": 3218,
"GIT": false,
"BASEPATH": "/home/hass/.homeassistant/",
"ENFORCE_BASEPATH": true,
"SSL_CERTIFICATE": null,
"SSL_KEY": null,
"IGNORE_SSL": false,
"HASS_API": "http://127.0.0.1:8123/api/",
"HASS_WS_API": null,
"HASS_API_PASSWORD": "Long time live access token"
"USERNAME": null,
"PASSWORD": null,
"ALLOWED_NETWORKS": [],
"ALLOWED_DOMAINS": [],
"BANNED_IPS": [],
"BANLIMIT": 0,
"IGNORE_PATTERN": [],
"DIRSFIRST": true,
"HIDEHIDDEN": true,
"SESAME": null,
"SESAME_TOTP_SECRET": null,
"VERIFY_HOSTNAME": null,
"ENV_PREFIX": "HC_",
"NOTIFY_SERVICE": "persistent_notification.create"
}
/etc/systemd/system/[email protected]
[Unit]
Description=HASS-Configurator
After=network-online.target
[Service]
Type=simple
User=%i
WorkingDirectory=/home/hass/.homeassistant/
ExecStart=/usr/local/bin/hass-configurator /etc/hass/settings.conf
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
======================================================
/var/log/syslog
Nov 10 19:41:13 axius hass-configurator[1123]: INFO:2019-11-10 19:41:13,977:hass_configurator.configurator:192.168.1.123 - "GET / HTTP/1.1" 200 -
Nov 10 19:41:14 axius hass-configurator[1123]: INFO:2019-11-10 19:41:14,854:hass_configurator.configurator:192.168.1.123 - "GET /api/listdir?path=. HTTP/1.1" 200 -
Nov 10 19:41:14 axius hass-configurator[1123]: WARNING:2019-11-10 19:41:14,855:hass_configurator.configurator:Access denied.
======================================================
======================================================
If I change "ENFORCE_BASEPATH": to false all start working good, but possible to change directory and list file system, what I want to avoid.
The text was updated successfully, but these errors were encountered: