custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
153 stars 45 forks source link

When launching setup wizard: "500 Internal Server Error Server got itself in trouble" #278

Closed gerolori closed 1 year ago

gerolori commented 1 year ago

Unless all relevant information is provided, I can't help you

Describe the bug I did a clean install of grocy as an addon and tried to delete the non working grocy custom component and start over. Grocy as addon installed and setted up succesfully (port 9192 visible even outside home assistant, so all good). Custom component deleted, than restarted HA, than installed it again and restart one more time. When I go in devices and set up the custom component an error pops up after 30 sec or so: Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

Expected behavior Should prompt the address, api key and port selection window

To Reproduce Steps to reproduce the behavior: HA Settings > Devices & Services > Add Integration > Grocy

General information to help debugging:

What sensors do you have enabled? Are they working and/or what state are they in? Do you have the corresponding functions enabled in Grocy? None, I couldn't set them up

What is your installed versions of Home Assistant, Grocy and this integration? Home Assistant: 10.3 (Supervisor 2023.07.1) Grocy: 0.19.1 Grocy custom component: 4.8.0

How do you have Grocy installed? Add-on or external? Add-on

Have you added debugging to the log, and what does the log say? Don't know how to do that :(

gerolori commented 1 year ago

Found out the issue I'm running home assistant os in a VM, so i tried prerouting port 9192 to the ip of the vm but for some reason it didn't work. Using the ip of the actual vm and not the one of the host actually worked! Hope it helps someone