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.23k stars 196 forks source link

Could not start PIO Home server: Timeout error #3408

Open Baerschen1 opened 1 year ago

Baerschen1 commented 1 year ago

Solutions

  1. Try to restart VSCode. Very often it helps.
  2. If you use a proxy or custom SSL certificate, please disable Http: Proxy Strict SSL.
  3. If you use custom antivirus tools or firewalls, please ensure that they don't block PlatformIO. You will need to add PlatformIO Core Directory to the "whitelist".
  4. Open PlatformIO CLI, and type pio home. The PIO Home should be opened in your default web browser (which means all packages are downloaded). Restart VSCode.

If the steps above didn't help you, please leave a comment below with further details and we will help you ASAP! 🤝

Exception

  Error: Could not start PIO Home server: Timeout error
    at Timeout._onTimeout (c:\Users\Michael Schiefer\.vscode\extensions\platformio.platformio-ide-2.99.3-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10339)
    at listOnTimeout (node:internal/timers:559:17)
    at process.processTimers (node:internal/timers:502:7)
HalilGeta commented 1 year ago

Hi,

Error: Detected unknown package 'contrib-pysite'

ut4uss commented 1 year ago

Error: Could not start PIO Home server: Timeout error at Timeout._onTimeout (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10444) at listOnTimeout (node:internal/timers:559:17) at process.processTimers (node:internal/timers:502:7)...

I tried all the methods listed above, but it didn't work. What did I do wrong? In the browser, the start page (http://127.0.0.1:8008/) works...

ivankravets commented 1 year ago

@ut4uss, could you try to set platformio-ide.pioHomeServerHttpPort to 45001? Also, does http://127.0.0.1:45001/ work if you start IDE?

ut4uss commented 1 year ago

It does not work... In the "settings.yson" file, I set the port 8008, 45001, 45002 ...

"platformio-ide.pioHomeServerHttpPort": 45001, "platformio-ide.pioHomeServerHttpHost": "127.0.0.1",

ivankravets commented 1 year ago

@ut4uss please contact me directly via me@ikravets.com. I would be thankful if you provide us with a remote session to debug this issue. Thanks in advance.

ut4uss commented 1 year ago

Шалом Шаббат! Ось на що лається налагоджувальна консоль VScode, інструмент аналізу: Debugging information is available via VSCode > Help > Toggle Developer Tools > Console. Failed to install PlatformIO IDE.

workbench.desktop.main.js:90 [Extension Host] Error: PlatformIO Core has not been installed yet! at u.value (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:802556) at async j.check (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:10439) at async /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:45062 T @ workbench.desktop.main.js:90 workbench.desktop.main.js:620 ERR [Extension Host] (node:2201) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use exe --trace-deprecation ... to show where the warning was created) workbench.desktop.main.js:90 [Extension Host] (node:2201) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use exe --trace-deprecation ... to show where the warning was created) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:620 ERR [Extension Host] Error: bad_status at /home/duke/.vscode/extensions/kiteco.kite-0.147.0/dist/kite-extension.js:2:53954 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) workbench.desktop.main.js:90 [Extension Host] Error: bad_status at /home/duke/.vscode/extensions/kiteco.kite-0.147.0/dist/kite-extension.js:2:53954 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:1904 Overwriting grammar scope name to file mapping for scope source.yaml. Old grammar file: file:///usr/share/code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json. New grammar file: file:///home/duke/.vscode/extensions/redhat.vscode-yaml-1.12.2/syntaxes/yaml.tmLanguage.json register @ workbench.desktop.main.js:1904 workbench.desktop.main.js:90 [Extension Host] Error: Could not find portable Python for linux_x86_64 at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:805094 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async u.value (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:804487) at async j.install (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:10606) at async /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:45694 T @ workbench.desktop.main.js:90 workbench.desktop.main.js:620 ERR [Extension Host] (node:2201) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead workbench.desktop.main.js:90 [Extension Host] (node:2201) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] runCommand /usr/bin/python3 Array(3) Object workbench.desktop.main.js:90 [Extension Host] /usr/bin/python3 Error: Error: The Python 3.9.2 (/usr/bin/python3) interpreter is not compatible. Reason: Could not find distutils module

at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303 at ChildProcess.o (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601) at ChildProcess.emit (node:events:526:28) at ChildProcess.emit (node:domain:475:12) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Socket.emit (node:domain:475:12) at Pipe. (node:net:687:12) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] runCommand /home/duke/anaconda3/bin/python3 Array(3) Object workbench.desktop.main.js:90 [Extension Host] /home/duke/anaconda3/bin/python3 Error: Error: The Python 3.8.3 (/home/duke/anaconda3/bin/python3) interpreter is not compatible. Reason: Conda is not supported

at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303 at ChildProcess.o (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601) at ChildProcess.emit (node:events:526:28) at ChildProcess.emit (node:domain:475:12) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Socket.emit (node:domain:475:12) at Pipe. (node:net:687:12) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] runCommand /home/duke/anaconda3/bin/python Array(3) Object workbench.desktop.main.js:90 [Extension Host] /home/duke/anaconda3/bin/python Error: Error: The Python 3.8.3 (/home/duke/anaconda3/bin/python) interpreter is not compatible. Reason: Conda is not supported

at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303 at ChildProcess.o (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601) at ChildProcess.emit (node:events:526:28) at ChildProcess.emit (node:domain:475:12) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Socket.emit (node:domain:475:12) at Pipe. (node:net:687:12) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] runCommand /usr/bin/python3 Array(3) Object workbench.desktop.main.js:620 ERR [Extension Host] Error: bad_status at /home/duke/.vscode/extensions/kiteco.kite-0.147.0/dist/kite-extension.js:2:53954 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) workbench.desktop.main.js:90 [Extension Host] Error: bad_status at /home/duke/.vscode/extensions/kiteco.kite-0.147.0/dist/kite-extension.js:2:53954 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] /usr/bin/python3 Error: Error: The Python 3.9.2 (/usr/bin/python3) interpreter is not compatible. Reason: Could not find distutils module

at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303 at ChildProcess.o (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601) at ChildProcess.emit (node:events:526:28) at ChildProcess.emit (node:domain:475:12) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Socket.emit (node:domain:475:12) at Pipe. (node:net:687:12) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] runCommand /bin/python3 Array(3) Object workbench.desktop.main.js:90 [Extension Host] /bin/python3 Error: Error: The Python 3.9.2 (/bin/python3) interpreter is not compatible. Reason: Could not find distutils module

at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303 at ChildProcess.o (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601) at ChildProcess.emit (node:events:526:28) at ChildProcess.emit (node:domain:475:12) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Socket.emit (node:domain:475:12) at Pipe. (node:net:687:12) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:750 Error: Error: The Python 3.9.2 (/usr/bin/python3) interpreter is not compatible. Reason: Could not find distutils module at /home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303 at ChildProcess.o (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601) at ChildProcess.emit (node:events:526:28) at ChildProcess.emit (node:domain:475:12) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Socket.emit (node:domain:475:12) at Pipe.... c @ workbench.desktop.main.js:750 workbench.desktop.main.js:90 [Extension Host] rejected promise not handled within 1 second: Error: PlatformIO Core is not installed T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] stack trace: Error: PlatformIO Core is not installed at O (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:6713) at M (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:6811) at A.value (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:808249) at A.value (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:813593) at A.value (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:813947) at B.switchToProject (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:36815) at new B (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:35816) at Object.activate (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:41070) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:1997 [[object Object]]PlatformIO Core is not installed $onExtensionRuntimeError @ workbench.desktop.main.js:1997 workbench.desktop.main.js:1997 Error: PlatformIO Core is not installed at O (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:6713) at M (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:6811) at A.value (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:808249) at A.value (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:813593) at A.value (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:813947) at B.switchToProject (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:36815) at new B (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:35816) at Object.activate (vscode-file://vscode-app/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:41070) $onExtensionRuntimeError @ workbench.desktop.main.js:1997 workbench.desktop.main.js:90 [Extension Host] rejected promise not handled within 1 second: Error: PlatformIO Core is not installed T @ workbench.desktop.main.js:90 workbench.desktop.main.js:90 [Extension Host] stack trace: Error: PlatformIO Core is not installed at O (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:6713) at L (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:7114) at BA.host (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10522) at new Promise () at BA (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10397) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async Module.dA (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10112) at async E.getWebviewContent (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:4567) at async E.newPanel (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:4035) at async E.toggle (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:3594) at async m.h (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:125789) T @ workbench.desktop.main.js:90 workbench.desktop.main.js:1997 [[object Object]]PlatformIO Core is not installed $onExtensionRuntimeError @ workbench.desktop.main.js:1997 workbench.desktop.main.js:1997 Error: PlatformIO Core is not installed at O (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:6713) at L (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:7114) at BA.host (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10522) at new Promise () at BA (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10397) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async Module.dA (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10112) at async E.getWebviewContent (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:4567) at async E.newPanel (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:4035) at async E.toggle (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:3594) at async m.h (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:125789)

вт, 18 квіт. 2023 р. о 22:00 Ivan Kravets @.***> пише:

@ut4uss https://github.com/ut4uss, could you try to set platformio-ide.pioHomeServerHttpPort https://docs.platformio.org/en/latest/integration/ide/vscode.html#platformio-ide-piohomeserverhttpport to 45001? Also, does http://127.0.0.1:45001/ work if you start IDE?

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

ivankravets commented 1 year ago

Could you check this issue https://github.com/platformio/platformio-vscode-ide/issues/907 ?

thermseekr commented 1 year ago

Hi Ivan, hi all

I spent most of today trying to install and run PIO. And the most weird, it's on a machine that has had it running before. First, Core refused to install, disabling the AV solved that part. Now Home installs but won't start. It times out. PIO CLI fails in the same way, and trying directly in the browser returns a page not found error. It may still be something related to the environment, as central adm keeps restricting things more and more everyday, or maybe it's something else in my PC, but I couldn't pinpoint the cause yet.

Can you help me move forward?

Thank you in advance.

image

image

[Extension Host] Found compatible PlatformIO Core 6.1.7 -> C:\Users\tales.maschio\.platformio\penv\Scripts\platformio.exe
console.ts:137 [Extension Host] PIO Core State 
{core_version: '6.1.7', python_version: '3.11.3', core_dir: 'C:\\Users\\tales.maschio\\.platformio', cache_dir: 'C:\\Users\\tales.maschio\\.platformio\\.cache', penv_dir: 'C:\\Users\\tales.maschio\\.platformio\\penv', …}
console.ts:137 [Extension Host] runCommand C:\Users\tales.maschio\.platformio\penv\Scripts\python.exe 
(14) ['-m', 'platformio', '-c', 'vscode', 'home', '--port', 8008, '--host', '127.0.0.1', '--session-id', '23da7162f70a651f99bed7b90e58810156493ed9', '--shutdown-timeout', 3600, '--no-open']

{_id: 'C:\\Users\\tales.maschio\\.platformio\\penv\\Scripts\\python.exe-0.5862289237306766'}
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
    at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
    at listOnTimeout (node:internal/timers:559:17)
    at process.processTimers (node:internal/timers:502:7)
console.ts:137 [Extension Host] runCommand C:\Users\tales.maschio\.platformio\penv\Scripts\python.exe 
(14) ['-m', 'platformio', '-c', 'vscode', 'home', '--port', 8008, '--host', '127.0.0.1', '--session-id', '23da7162f70a651f99bed7b90e58810156493ed9', '--shutdown-timeout', 3600, '--no-open']

{_id: 'C:\\Users\\tales.maschio\\.platformio\\penv\\Scripts\\python.exe-0.11763642717472722'}
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
    at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
    at listOnTimeout (node:internal/timers:559:17)
    at process.processTimers (node:internal/timers:502:7)
console.ts:137 [Extension Host] runCommand C:\Users\tales.maschio\.platformio\penv\Scripts\python.exe 
(14) ['-m', 'platformio', '-c', 'vscode', 'home', '--port', 8008, '--host', '127.0.0.1', '--session-id', '23da7162f70a651f99bed7b90e58810156493ed9', '--shutdown-timeout', 3600, '--no-open']

{_id: 'C:\\Users\\tales.maschio\\.platformio\\penv\\Scripts\\python.exe-0.760075246264907'}
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
    at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
    at listOnTimeout (node:internal/timers:559:17)
    at process.processTimers (node:internal/timers:502:7)
notificationsAlerts.ts:42 Error: Could not start PIO Home server: Timeout error     at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)  at listOnTimeout (node:internal/timers:559:17)  at process.processTimers (node:internal/timers:502:7)...
log.ts:441   ERR [Extension Host] Error: Could not start PIO Home server: Timeout error
    at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
    at listOnTimeout (node:internal/timers:559:17)
    at process.processTimers (node:internal/timers:502:7)
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
    at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
    at listOnTimeout (node:internal/timers:559:17)
    at process.processTimers (node:internal/timers:502:7)
ivankravets commented 1 year ago

Please open PlatformIO Core CLI in VSCode and type

pio home

Do you see any errors?

thermseekr commented 1 year ago

The command times out and says "Error:" without any further information:

image

ivankravets commented 1 year ago

PlatformIO Core can't download a package/write to disk. Something blocks it. Do you use any espionage software such as russian Kaspersky?

thermseekr commented 1 year ago

We use Bitdefender from Romania and Crowdstrike from USA. I disabled Bitdefender for testing purposes but results were the same. For disabling Crowdstrike I must ask to the central administration, haven't done that yet, but can do if needed. Our computers are part of a Windows Active Directory system but I'm local admin, maybe I should start VSCode as admin? Will try that and report back.

thermseekr commented 1 year ago

Do you use any espionage software

Not that we know, at least... Other thing I can do is monitor what's happening with Wireshark. Will try that too.

thermseekr commented 1 year ago

No difference when running VSCode as admin, as expected.

After running PlatformIO for the first time, installation of PIO Home takes a long time and at the end I get this:

image

and this:

image

So really looks like installation is timing out even tho I get a "finished" message.

ivankravets commented 1 year ago

Please contact me@ikravets.com directly to keep this thread clean. If we find a solution, we will share it here. Thanks!

thermseekr commented 1 year ago

Hello Ivan.

I finally managed to run PlatformIO.

I had tried before to install using an external network connection, one that has direct access to the internet without any firewall, but at that time I had the antivirus active so PIO Core would not install. After I disabled the AV, PIO Core installed even under the protected network, but PIO Home was still not going. Today I connected back to the open network and PIO Home finished installed and ran normally.

So the conclusion is:

After PIO Home finished its thing I returned to the protected network and all seems to be running well. I will report these problems to the people running our AV and FW systems and ask them to check what's wrong.

Thank you very much for your support. Best regards from Brazil.

Tales

ivankravets commented 1 year ago

@thermseekr, do you have access to the following resources when FW is enabled?

thermseekr commented 1 year ago

@ivankravets yes, positive for both.

danipaez09 commented 1 year ago

Hi, i have this error

error

I am trying to create a project for an STM card in an mbed environment. I created the folder by executing the 'pio home' command, however when I open it in VSCode, the folders that relate to the mbed do not appear in the 'src' folder. try to reinstall the VSCode and python and nothing

Kymaro commented 1 year ago

@thermseekr, do you have access to the following resources when FW is enabled?

Hi, I have the same issue here. I can access to those website but can't use PIO in VSCode. From what I understand, VSCode doesn't use the custom Windows SSL Certificate my company installed.

ivankravets commented 1 year ago

Have you disabled "Http: Proxy Strict SSL"? See https://docs.platformio.org/en/latest/integration/ide/vscode.html#proxy-server-support

Please disable and restart VSCode.

Kymaro commented 1 year ago

Works fine, thanks for the info.

humid-sirocco commented 1 year ago

Hi friends. If you find yourself experiencing issues with corporate CA certificate not being recognized, I'd recommend use of the win-ca VScode package, its sole purpose is exposing the windows CA certificates to vscode extensions. No need to disable verification of the proxy strict SSL.

See here: https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca&ssr=false#overview

iottrends commented 1 year ago

Any solution for this?? I am doing it on ubuntu 20.4 root@labuser-OptiPlex-5050:/home/labuser/Downloads# python3 get-platformio.py Installer version: 1.1.3 Platform: Linux-5.0.0-23-generic-x86_64-with-glibc2.25 Python version: 3.6.9 (default, Mar 10 2023, 16:46:00) [GCC 8.4.0] Python path: /usr/bin/python3 Creating a virtual environment at /root/.platformio/penv /usr/bin/python3 Error: Could not create PIO Core Virtual Environment. Please report to https://github.com/platformio/platformio-core-installer/issues

ivankravets commented 1 year ago

Could you remove ~/.platformio/penv folder and restart VSCode? It should be fixed now.

niboon39 commented 10 months ago

Hi 11 Jan 2024 I can run it. I installed python 3.6.15 and python get_platformio.py.

Python 3.6.15

https://stackoverflow.com/questions/72102435/how-to-install-python3-6-on-ubuntu-22-04

Python get_platformio.py (Follow Local download topic.)

https://docs.platformio.org/en/stable/core/installation/methods/installer-script.html

Screenshot from 2024-01-11 03-55-03

ivankravets commented 10 months ago

@niboon39 could your issue be linked with https://github.com/platformio/platformio-core-installer/issues/85 ?

djswirl commented 10 months ago

I had the smae problem, thanks to AI all sorted, these are the steps I took

CMD: pio update

CMD: pip uninstall platformio CMD: pip install -U platformio

Open VScode and install PIO Extension again

JosefWN commented 10 months ago

Is anyone looking into this? The ticket is a year old but it happened to me today, I just installed PlatformIO for the first time. If it's unstable I'm hesitant to spend time on onboarding myself.

ivankravets commented 10 months ago

@JosefWN, have you resoled your issue? What is your OS?

JosefWN commented 10 months ago

MacOS, but I already removed it, maybe I will give it a spin in the future!

ivankravets commented 10 months ago

We updated built-in Python for macOS. It should solve your issue. Please remove ~/.platformio folder and install PlatformIO IDE Extension.

JosefWN commented 10 months ago

Where did you do that? The latest commit is from last month in this repo, and the latest release for the VS Code plugin was 2023-12-23? I installed it for the first time 4 days ago. Anyhow, I am not spending more time on this for now.

OmarBannour commented 4 months ago

Error: Could not start PIO Home server: Timeout error at Timeout._onTimeout (c:\Users\Igor.vscode\extensions\platformio.platformio-ide-3.0.0-win32-x64\node_modules\platformio-node-helpers\dist\webpack:\platformio-node-helpers\src\home.js:182:9) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) i need help

Buom01 commented 4 months ago

Removed platformio-core package solved the issue on my CachyOS (Arch based) system.

HazemRagabElsayed commented 4 months ago

image

HazemRagabElsayed commented 4 months ago

I have a problem with this platformio

ivankravets commented 4 months ago

@HazemRagabElsayed , do you use espionage software (some call it "antivirus")? Please disable it for a while or add PlatformIO to the whitelist. It seems it blocks PlatformIO's subprocess PIO Home.

HazemRagabElsayed commented 4 months ago

Yes I disabled all of defenders(security and firewall defender) and same problem is encountered

On Mon, Jul 29, 2024, 10:37 PM Ivan Kravets @.***> wrote:

@HazemRagabElsayed https://github.com/HazemRagabElsayed , do you use espionage software (some call it "antivirus")? Please disable it for a while or add PlatformIO to the whitelist. It seems it blocks PlatformIO's subprocess PIO Home.

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

HazemRagabElsayed commented 3 months ago

@HazemRagabElsayed , do you use espionage software (some call it "antivirus")? Please disable it for a while or add PlatformIO to the whitelist. It seems it blocks PlatformIO's subprocess PIO Home.

Problem is solved it was because I installed Atmel studio and when I delete it and try to install PlatformIO again it is installed successfully

LoanHanu commented 2 months ago

I got the same warnings. Is there no any solution to set up PlatformIO environment in offline computer?

shubham-vunet commented 2 months ago

For me the issue was fixed by removing an environment variable SSLKEYLOGFILE from the Windows.

Patuteee commented 22 hours ago

Al escribir "pio home" me aparece lo siguiente en rojo:

pio : El término 'pio' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de
acceso, compruebe que dicha ruta es correcta e inténtelo de nuevo. En línea: 1 Carácter: 1