-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unknown error occurred #2
Comments
Error resolved: tz environmental variable is needed for Home Assistant docker installs. |
Hi Robert. I am still getting this 'Unknown error occured' even after I set the TZ environment variable in Home Assistant Docker. I have never had this issue in the past but it seems it won't go away after this HA update. Can you help please? |
Edit: I thought I was responding to the original poster. Unknown error can mean many things. Please post the related log here so I can get more info about what is going on. Go to Settings --> System --> General and make sure you have a timezone set. Also, go to your user profile and make sure timezone is set there. If that doesn't work, please paste the related log here. |
I tried changing it from HA UI and also from Terminal, but still no success. This is the log: This error originated from a custom integration. Logger: aiohttp.server Error handling request |
Looks like you have some conflicting timezone issues on the OS that you're running the container on.
|
I set it to Europe/Bucharest when I installed HA. I used this command: docker run -d This is what ls -l /etc/localtime gets: pi@raspberrypi:~ $ ls -l /etc/localtime Both Profile and System time zones within HA are set to Europe/Bucharest. I even get the correct time when i run 'date' in docker. I have no idea where /Africa/Lusaka comes from or how I can get rid of it. Edit: for what is worth I reinstalled HA when I switched apartments and once again after I had some problems with the server. Both times this integration worked flawlessly. |
Run After that run |
I ran those commands and it shows correct timezone Europe/Bucharest, however it still won't let me login and I get the same error. This error originated from a custom integration. Logger: aiohttp.server Error handling request Edit: Isn't there a way to unlink the Africa/Lusaka symlink? I couldn't find any working solution. |
In that case it looks to be an issue within the Home Assistant docker container. You'll need to get into the Home Assistant container shell and execute the |
To get into your container, run the following command |
Ok did that and I got Africa/Lusaka. How do I change it? |
You can use an editor to directly edit the /etc/timezone file. If you haven't used vi before:
|
Well that solved it. Thank you very much especially for the quick responses. Your integration is flawless and you're awesome to say the least! |
Glad I could help! Appreciate the kind words. |
After installing this I keep getting the following error
I'm logged out on every mobile device that used the petkit account before,
The text was updated successfully, but these errors were encountered: