platformio / platformio-vscode-ide

PlatformIO IDE for VSCode: The next generation integrated development environment for IoT
https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide
Apache License 2.0
1.22k stars 195 forks source link

Could not start PIO Home server: Error: timeout #205

Closed AmrKhaledNowahy closed 2 years ago

AmrKhaledNowahy commented 6 years ago

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
ivankravets commented 6 years ago

Could you reproduce this issue after restart?

ivankravets commented 6 years ago

Please reopen if you still need help

figure0 commented 5 years ago

Could not start PIO Home server: Error: timeout #205

NitrofMtl commented 4 years ago

after running pio home, restart IDE, pio loading page stay stuck on :

 PlatformIO: IntelliSense Index Rebuild

WIN10 vscode 1.49.1 PIO 2.1.0

sebby49 commented 4 years ago

i got the same problem as NitrofMtl

sebby49 commented 4 years ago

afbeelding can somebody tell me why its not working as it should i been messing with this for a week already reading all kinds of solutions but nothing works like wtf is it so hard to just put a firmware out there that works so noobs like me don't get seriously frustrated

ivankravets commented 4 years ago

Do you use antivirus software?

sebby49 commented 4 years ago

Yes its AVG and i had turned it of before and that didnt workVerzonden vanaf mijn Samsung Galaxy-smartphone. -------- Oorspronkelijk bericht --------Van: Ivan Kravets notifications@github.com Datum: 19-10-2020 09:54 (GMT+01:00) Aan: platformio/platformio-vscode-ide platformio-vscode-ide@noreply.github.com Cc: sebby49 sajp.van.swelm@t-mobilethuis.nl, Comment comment@noreply.github.com Onderwerp: Re: [platformio/platformio-vscode-ide] Could not start PIO Home server: Error: timeout (#205) Do you use antivirus software?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

ivankravets commented 4 years ago

It blocks PlatformIO from running PlatformIO home local server.

You can try to run it from PlatformIO CLI pio home

Does it work?

P.S: there is nothing useful from today’s antivirus software. It damages your machines and walks around your files looking for sweet things. Check Internet what Avast does in user machines.

sebby49 commented 4 years ago

i already noticed i can turn of the firewall but the AVG engine i can't turn of means i have to uninstal it to shut down also i am a complete noob in coding etc so to me its all gibberisch

sebby49 commented 4 years ago

now i uninstalled AVG software and this is what i get same thing afbeelding

ivankravets commented 4 years ago

Check a debug information, see details in the output window.

sebby49 commented 4 years ago

afbeelding hmm

ivankravets commented 4 years ago

Do you use the latest PlatformIO IDE extension 2.1.3? Please wait for a few seconds when PlatformIO loads, then start debug.

sebby49 commented 4 years ago

yes i have the latest version and it fails to install the IO core and now the intellisense index rebuild keeps spinning forever

ivankravets commented 4 years ago

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.

haloyrap commented 3 years ago

yo soluciones buscando la carpeta .platformio y pegándola en el disco local de mi sistema operativo. no es crear una carpeta es buscar la carpeta y pegarla.

cpvcristian commented 3 years ago

yo soluciones buscando la carpeta .platformio y pegándola en el disco local de mi sistema operativo. no es crear una carpeta es buscar la carpeta y pegarla.

Buenas, de dónde la copiaste y dónde la pegaste?

shj8893 commented 3 years ago

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.

mick-git commented 3 years ago

Ola!

Não consigo instala a plataformaIO, segue em anexo a falha ... Até desinstalei o python, mas segue dando falha.

Captura de tela 2021-07-22 214725 Por favor me ajuda!

luigimannoni commented 3 years ago

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

evex111 commented 3 years ago

Tenia el mismo problema y me funciono

RafaRomero8 commented 3 years ago

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

lmindiola commented 3 years ago

en mac os lo que me funciono

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

JC-Electronics-Design commented 3 years ago

I had the same issue on macOS Big Sur Version 11.6. I resolved the issue by downgrading to a previous version of platformIO and then updating to the newest version again. I thought I'd share this, since it might help someone else. 🙂

ivankravets commented 3 years ago

@JonathanCaes could you update PlatformIO IDE extension to the latest version, removed folders below, and restart VSCode?

It seems the issue is linked with the outdated Python 3.8 version.

Does it work now?

Lissanro commented 3 years ago

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!

migueldiago commented 2 years ago

I "solved" the issue in Kubuntu 20.04 by downgrading from v2.4.0 to the previous version (v2.3.4). It looks like it's working now.

ivankravets commented 2 years ago

@migueldiago what was your error message?

x2764tech commented 2 years ago

(Win10) Windows Firewall didn't prompt me to add rules for platformio.exe - doing this manually solved the issue

bestboxhenry commented 2 years ago

好像并没有解决

Franciraldo commented 2 years ago

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.

jonathand03 commented 2 years ago

[ubuntu 22.04] just install pip from python3 : sudo apt install python3-pip, worked for me! and reinstall the extesion again! pio upgrade gave me the suggestion to install pip

mhakimih1988 commented 2 years ago

Thank you dear @jonathand03 That worked for me as well.

growolff commented 2 years ago

This worked for me pip3 install semantic-version platformio

Then restarted vscode and everything is ok now.

terdong commented 2 years ago

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

image

probstn commented 2 years ago

I tried a really long time but now I got PlatformIO working again. A 100% fix is to delete .platformio and .vscode folder in C:\users\. ATTENTION: all your vscode extensions will be gone.

5t1ckyF4pD4p commented 2 years ago

I uninstalled and reinstalled everything many times and "pip3 install semantic-version platformio" worked for me, too. Thank you growolff!!!!

somehibs commented 2 years ago

Platform IO Home would lock up when opening VSCode, apparently during Intellisense Index rebuild.

This happened after I deleted my .platformio folder for the first time in a long time. The root cause is actually re-downloading all dependencies.

While dependencies are downloading, there is no output in VSCode. This causes a UX issue, where the user is waiting for a PlatformIO VSCode Task to complete, but the name of the task is unrelated to the actual task being performed by pio.

Waiting for all of the dependencies to install by watching the contents of .platformio/packages slowly fill up gave me enough patience to wait for the task to complete. When it did, my IDE returned back to normal.

Simply, don't bother deleting any other folder than .platformio, and make sure you wait patiently for your libraries to re-download. I suggest monitoring network traffic, or the output folder.

Cristian-tec commented 2 years ago

Sorry please. I´m sorry . Upload fail!! Is solved close atom and reopen vscode .

Sorry for the incovenence

dvlopez2010 commented 2 years ago

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...

ivankravets commented 2 years ago

Please reopen if you still need help

Dragondude1960 commented 2 years ago

I am having this problem on Ubuntu 22.04. Latest VScode and latest PIO. It works fine on Win10 but not on Linux.

ivankravets commented 2 years ago

@Dragondude1960 does it work if you open PlatformIO CLI and type pio home?

dangcongtao commented 2 years ago

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!

Yess. thanks for that it helps me solve the same problem(Ubuntu 22.04 LTS with Vs Code)

lingdeyiyicifang commented 2 years ago

it may due to the UI language, i changed the language to English and the problem solved.

Erriez commented 2 years ago

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!

tiberilucaSPI commented 2 years ago

i had the same issue on windows 7, visual studio code 1.70.2, i tryed every solution but nothing.

A strange fact is that the server always choose the 8008 port, even if i change it manually even if i change the pio home server http port fro

For knowledge, my pc is under a corporate network that use a self signed certificate but i don't think is it because it work well on my laptop.

thanks

obiscr commented 2 years ago

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

AlonsoSolis commented 2 years ago

Hello I got this error since I install the Platformio: image