Final step missing in setting up dev environment

aloha,
I followed the instructions on Set up Development Environment | Home Assistant Developer Docs for setting up a dev environment (windows 11 with wsl and latest docker desktop runtime …

  • all looks good: HA core containter is up and running
  • i can access localhost:8123
  • BUT it shows me the “HA unable to connect …retryingg in x seconds…” screen

is it an issue with missing portmappings ?

or any other advice ?

thanx in advance
cheerz from vienna




Have you started the HomeAssiatant task? Commands → run taak → Homeassistant

1 Like

Run it.

1 Like

ok … just did the “Run” and it shows lots of log output and finishes with “done” in terminal of vs studio code BUT with still the same effect that localhost:8123 shows the HA logo with “unable to connect”

  • there must be still something small be missing
  • will try on another machine to see whether this is an issue of my instance here
    cheerz

ok … just some information here :wink:

started a HA debug session with following results:

  • seems to be some access issues…
  • complains that there is no config/ folder found (see exception output in terminal screenshot)
  • and I tried to manually create a config folder in homeassistant workspace
  • BUT there I also get “…Error EACCESS, permission denied…”

can anyone point me to some clearance and sorry for my noob questions :wink:
cheerz

it seems like you didn’t set it up properly.
When you run HA, it will automatically create these folders in the dev container. Are you 100% sure you followed this correctly? What operating system are you running on?

hmmm I am quite sure that I did what was written in the setup doc

  • windows11 with wsl
  • docker desktop
  • vs code

shall I try to delete all containers / images ?

what else could be missing …

You should be using wsl2 not wsl, though that will not be the cause of your problems. I use this development method, so I’mnot sure what you can be doing wrong

when pressing play on the debug tab, what launch are you using?

  • using the plain “Home Assistant” launch
  • and on WSL2

Then I’m not sure why it’s not working. It’s a very simple setup.

Did you follow the wsl section in the developement docs?

ohaaa …

  • i now just stopped and deleted all containers / images
  • restarted the vs code environment
  • and voila this time it fully built all instances
  • and the HA core is online and responding as expecting

again “… have you tried to turn it off and on again…” worked

thanx to all for your support

1 Like