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
vladimirdjuricic commented 2 years ago

pip install platformio

before that upgrade pip, if needed: /usr/bin/python3 -m pip install --upgrade pip

dvlopez2010 commented 2 years ago

My problem was resolved by a uninstall, searching through the files on my computer and deleting everything associated with vscode, emptying the recycle bin, performing a disk clean up, rebooting the PC, and then reinstalling vscode.

On Fri, Aug 26, 2022, 3:21 AM tiberilucaSPI @.***> wrote:

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

  • uninstall, deleting directory .vscode and .platformio, reinstall -> nothing
  • uninstall, deleting directory .vscode and .platformio, reinstall in different location -> nothing
  • disabled every security program (windows firewall, defender)
  • changed ui language

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

— Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-vscode-ide/issues/205#issuecomment-1228145408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYGSHG44VJE3TWGSCBFOXPTV3BWA5ANCNFSM4FLRIYXQ . You are receiving this because you commented.Message ID: @.***>

Tranks27 commented 2 years ago

My problem was with python installation. I had a fresh ubuntu 20.04 image, so I needed to install some python dev tools. sudo apt update sudo apt -y upgrade python3 -V sudo apt install -y build-essential libssl-dev libffi-dev python3-dev

colorker commented 2 years ago

将 Pio Home Server Http 端口号从 0 更改为任何可用端口,如下图所示。

图片

think you! It goog use for me.

vky2207 commented 2 years ago

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

me too eror in time out

vky2207 commented 2 years ago

Screenshot (595) hallo guys can help me eror this one?

vky2207 commented 2 years ago

afbeelding hmm

close your antivirus

vky2207 commented 2 years ago

image please help eror "was not declared in this scope

rocketfuze commented 2 years ago

I have had this problem for months as well with my Windows 10 PC on a corporate network. I read through all of the above comments several times, trying different solutions including: VSCode and platformio reinstalls (including running VSCode in portable mode), .platformio/.vscode folder/subfolder deletions, using different home server ports, attempting to whitelist ports, and temporarily disabling the antivirus firewall to no avail. Nothing helped with getting PIO home to startup.

However, today I inadvertently resolved this issue(!!) while trying to fix my python path (python3) and install requirements for another extension. It turned out that I had installed several different versions of python3 in the past and had not cleaned up the entries in my system path environment variable! Once I deleted other python install folders in two other places and (probably mainly) deleted the old python path variables, PIO suddenly started happily reinstalling and when I started PIO home, it loaded!

It seems rather 'elementary' now, but take it from me: make sure your system path to your python3 folder is right, without other leftovers (or Python installations) causing PIO install issues.

Hopefully this helps someone else, as I don't think anyone has posted this particular cause yet...maybe I missed it if so.

chrissivo commented 2 years ago

Hi @rocketfuze ,

Thanks for posting your solution. I am working on a similar device (Windows 10, corporate network), tried out the different hints, but didn't succeed so far. So i deleted a Python 3.10-installation and when opening VS Code again, PlatformIO was reinstalling again. However, it did not load.

Can you tell me, which version of Python you are using? Is it 3.11.0 or an older one?

rocketfuze commented 2 years ago

I'm using Python 3.10, but I wouldn't guess that matters. The (only) python variables I have added currently in my system path are to the installation folder as follows:

C:\Users...\Python\Python310\Scripts C:\Users...\Python\Python310

Hope this helps you @chrissivo!

chrissivo commented 2 years ago

Thanks, @rocketfuze for this information. But no, it didn't. I replaced Python 3.11.0 with Python 3.10.8. I tried to install it for the local user and for everybody. Also changed the environment variables. I opened ports from 8008 to 8100. Nothing helped so far. I still get timeouts. But thanks for getting back that fast.

I at least figured out, that if I'm simply disconnecting, I get an error message, that he couldn't download some packets. So I guess this what he's actually trying before starting the server but cannot for some reasons.

chrissivo commented 2 years ago

Finally I found a solution working for me: https://community.platformio.org/t/ssl-error-platform-io/19920/2

"In VS Code File>Preferences>Settings search for ssl, Application>Proxy Uncheck Proxy Strict SSL."

rocketfuze commented 2 years ago

Yes @chrissivo, I remember now that I also have to run with that same setting unchecked, but it has been a while since I had gotten it working before with just that, so I didn't think to mention it...apologies for leaving out that important piece! Glad you were able to get yours working as well.

minorikawafuso commented 1 year ago

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

vky2207 commented 1 year ago

Screenshot (603)

help me guys, wheater library or someting find eror this one thanks all

Howbyt commented 1 year ago

After automatically restarts,My computer keep it that way: 微信图片_20230726151638 Please help me gays.

ivankravets commented 1 year ago

@Howbyt, could you try to remove C:/Users/%PROFILE_NAME%/.platformio folder and restart VSCode?

If you use proxy server, please check this docs https://docs.platformio.org/en/latest/integration/ide/vscode.html#proxy-server-support

Howbyt commented 1 year ago

I've tried that, but it doesn't work。But after I set python to open in administrator mode by default,it works。No idea why