platformio-vscode-ide: Could not start PIO Home server: Error: timeout

Temporary solution

  1. Please open PlatformIO IDE Terminal
  2. Type pio home command, it should force PIO Core to download all required packages
  3. Restart PlatformIO IDE.

P.S: Please check that your OS/Firewall does not block 127.0.0.1:8010 port. PlatformIO Home works on this port.


Description of problem

Leave a comment…

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

Configuration

VSCode: 1.25.1 PIO IDE: v0.17.3 System: Windows_NT, 10.0.10240, x64

Exception

Could not start PIO Home server: Error: timeout

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 11
  • Comments: 69 (12 by maintainers)

Most upvoted comments

After I install WSL2, PlatformIO doesn’t works.! WSL2 uses 127.0.0.1 as it’s local domain. And PIO also seems to use the same URL.

This worked for me pip3 install semantic-version platformio

Then restarted vscode and everything is ok now.

Change Pio Home Server Http Port number to any available port from 0 like this image below.

image

好像并没有解决

Tenia el mismo problema y me funciono

  • desinstalar visual y todas las carpetas relacionada
  • volvi a instalarlo después Python
  • En el buscador pondras “alias” y desactivas los instaladores de Python, volví a instalar platformIO y listo

I was having the same problems and have fixed this on Ubuntu recently upgraded to 21.04:

  • I had python3.9 installed but platformio was using python3.7 and trying to access some of the libraries from 3.7 which were not accessible.
  • I have uninstalled the semantic-version using pip 3.9 pip3.9 uninstall semantic-version
    • if Errno13. then just do a sudo rm -rf /usr/lib/python3/dist-packages/semantic_version*
  • Python3.7 on ubuntu 21.04 is broken (libffi does not exist)
  • Installed pyenv following these instructions
  • pyenv install 3.7.11
  • pyenv global 3.7.11
  • Installed semantic-version and platformio pip install semantic-version platformio
  • Restart VSCode
  • Let PlatformIO reinstall itself, now it will finish and open up

I fixed it by disconnected networks.

Step 1 Just disconnected your computer network, then execute pio home, obviously you will get the error.

Step 2 Then reconnected your network, execute pio home again, it’s working.

I documented this issue on my blog.

It was confusing, but this action did solve my problem.

My version: VS Code version: 1.70.2 PlatformIO version: 6.1.4

On Window 10, 11, It can be only a network driver error, just restart the network service running as administrator: net stop winnat net start winnat.

I had this issue, and nothing helped. To investigate, I installed with pip:

sudo -H pip install platformio

Then I could run strace pio home command in the terminal and I noticed it hangs on accessing /run/uuidd/request - so I removed it:

sudo rm /run/uuidd/request

Then after forcefully killing the process, when I ran pio home command again, it could finish successfully. I installed PIO in vscode again, and it finally worked!

I was having the same problems and have fixed this on Ubuntu recently upgraded to 21.04:

* I had python3.9 installed but platformio was using python3.7 and trying to access some of the libraries from 3.7 which were not accessible.

* I have uninstalled the semantic-version using pip 3.9 `pip3.9 uninstall semantic-version`
  
  * if Errno13. then just do a `sudo rm -rf /usr/lib/python3/dist-packages/semantic_version*`

* Python3.7 on ubuntu 21.04 is broken (libffi does not exist)

* Installed [pyenv following these instructions](https://github.com/pyenv/pyenv-installer)

* `pyenv install 3.7.11`

* `pyenv global 3.7.11`

* Installed semantic-version and platformio `pip install semantic-version platformio`

* Restart VSCode

* Let PlatformIO reinstall itself, now it will finish and open up

I only ran pip install semantic-version platformio and it works! thx

I had the same issue on Ubuntu 22.04 and Visual Code to v1.70.1 (currently the latest). Resolved after sudo apt install platformio and running command pio home in shell (Visual Code | PlatformIO Core CLI) which starts the web browser correctly. Then restart PlatformIO. Thanks!

I battled this issue for a hot minute. I solved it for windows. I had to uninstall vs code. I then had to delete all files and folder for vs code and platformio. I was then able to reinstall vs code and platformio individually. now it opens and runs…

en mac os lo que me funciono

  • Ir a la extensión
  • Configuración de extensión
  • Platformio-ide: Custom PATH
  • mi ruta fue /Users/usuario/.platformio

la carpeta de platformio no la movi, esa fue la ruta por defecto de la instalación.

Lo que hice fue mover la carpeta .PlatformIO en disco local C y despues reinicie.

Sorry, I can’t help here. It seems you broke VSCode configuration. Please open VSCode preferences for PlatformIO IDE and RESET evrything to the default state. Also, you can remove %HOME_DIR%/.platformio folder and restart VSCode.

I recommend to open discussin at https://community.platformio.org/. We don’t provide help here.