Update and fresh install of Torizon IDE Extension failures

I had torizon working about a year ago and just getting back into the code side of things.
I decided to update to the new torizon IDE Extension on a windows 10 machine.
uninstalled the old extension and went through the new installation process. on that machine after verifying the extension when I click connect to wsl2 VS code will just hang until I close it. docker is running and I can run the a hello world.
So I decided to try on a windows 11 machine with out VS code.
on it the extension will verify but when I connect to wsl2 I do not have the Torizon extension available. after search here and trying a few items I am still stuck. docker does run a hello world
no matter which machine I try I can not get to the point were I was and connect to a device before attempting this update. Now I am a Visual studio guy and have not done much with VS code or WSL. So this is still fairly foreign to me.
so any help is appreciated but at the moment I can not use Vs code and torizon.

my wsl version is:
WSL version: 2.4.10.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5716
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.3194


Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

I’m sorry to hear about the difficulties you’re experiencing with the Torizon IDE Extension on your Windows machines. Let’s go through some steps to help resolve these issues:

  1. Verify WSL2 and Docker Setup:

    • Ensure WSL2 is properly installed and configured. You can check this by running wsl --list --verbose in a command prompt to confirm your distributions are running under WSL2.
    • Make sure Docker Desktop is set up to use the WSL2 backend, as this is crucial for integration.
  2. Check VS Code Connection to WSL2:

    • Open a WSL2 terminal and type code . to launch VS Code connected to your WSL2 environment. This ensures VS Code operates within the WSL2 context.
    • Verify that the bottom left corner of VS Code indicates it is connected to WSL2.
  3. Troubleshoot VS Code Hanging:

    • If VS Code hangs, open the Developer Tools by selecting Developer: Toggle Developer Tools from the command palette. Check the Console tab for any error messages that might indicate the cause.
  4. Ensure Torizon Extension Visibility:

    • After connecting to WSL2, ensure the Torizon extension is installed in the WSL2 environment. Check the Extensions view in VS Code while connected to WSL2.
  5. General Troubleshooting:

    • Restart your computer and try the setup process again to ensure all services are running correctly.
    • Ensure your Windows and WSL2 are up to date with the latest updates and patches.

By following these steps, you should be able to diagnose and potentially resolve the issues you’re facing. I hope this helps you get back to developing with Torizon smoothly.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Torizon IDE Installation Wizard for Windows - Early Access Feedback Thread.

wsl state:
PS C:\Users\LonHemmen> wsl --list --verbose
NAME STATE VERSION

Greetings @Lon,

With the current information it’s hard to say what exactly could be wrong. So it just hangs? No logs or anything else to examine?

From your screenshots I see you seem to be using the installation wizard is that correct? Have you tried manual installation to see if you get a different result?

With regards to your Docker setup. Do you have Docker Desktop installed in Windows, or do you have the Docker engine installed in WSL 2? To be clear you should only have one or the other installed. Having both installed can cause strange issues.

Best Regards,
Jeremias

I am still trying to figure out where to find logs for VS code. like I said I a long time VS studio user so VS code is a bit different.

Yes I used the installation wizard on a windows 11 machine. I have gone through the manual installation and made it farther at least. I can see my device and start a project from a torizon example. but now when I try to run a debugging session. I end up with the attached error. Before I opened sample project my docker would run a hello world. now I am unable to due to an incorrect username or password error. which I think is tied to the screen I am posting here.

It just seems like the information I get from the websites and links are out of sink and I am missing a step. I just know that a year ago I followed the instructions and it just worked. this time 2 pc’s both fail.

Okay this looks better. Based on the screenshot you shared, it seems like a Docker issue now. The extension is trying to start a registry container, but then it seems like the container disappears after it starts, somehow. Then it tries to start it but fails to.

How do you have Docker installed exactly? Do you have Docker Desktop in Windows, or do you have Docker engine in the WSL2 instance?

Either one can work, though typically the Docker engine in WSL2 is less problematic from what I’ve seen from others. It’s important though you only have 1 of these installed otherwise there can be strange issues.

Best Regards,
Jeremias

I had docker desktop already installed. so I think that is what the torizon ide used… I am not even sure how to tell if I have in installed in WSL2.
I am going to remove everything and start over again on one machine.

I am not even sure how to tell if I have in installed in WSL2.

Do you recall running any commands in WSL 2 to install the Docker engine? If not, then you probably didn’t install it there and only have Docker Desktop.

Best Regards,
Jeremias

Hi Lon,

Any updates for us here?

Best,

Michael Park
Toradex

Sorry, I received my first batch of PCB’s in and got busy testing the new hardware. I am now satisfied my PCB design is good so I will start back in on this. I am going to start from scratch again and try to only install docker not docker desktop.

ok back at this and it is worse than before.

I have 2 boards now active. one of our own design and the ixora dev platform. they are both on the cloud and I can update and send containers to them.

I decided to start from scratch and removed Visual studio code and WSL. deleted all associated folders for Visual studio code.

I have installed visual studio code. attempted to install the torizon extention and let it go through it’s process. it went pretty good then failed on no powershell installed. so I got power shell installed in the wsl2 torizon instance. everything looks good. it even found one of the boards.
Docker is installed in WSL and runs hello world.

now if I try to create a project from a template. I get errors trying to create project.
The terminal process “/bin/bash ‘–norc’, ‘–noprofile’” failed to launch (exit code: 64).

[03-26 15:21:58.927] Creating application make1 based on template cppConsole
[03-26 15:21:59.539] ERROR :: Error trying to create project

I know the you tube video show a quick easy installation on windows 10 or 11. but I have yet to have an installation work either using the extension or doing it manually on 3 different machines.

I am about to give up on this.

I understand your frustration. For us to help you here, we will need further information about your situation.

First thing, you observe the following error when trying to create a project:

The terminal process “/bin/bash ‘–norc’, ‘–noprofile’” failed to launch (exit code: 64).

When you start VSCode and the Torizon IDE extension initializes it should print various logs related to the initialization in the VSCode terminal. Could you share these logs so we can see if there is nothing amiss on startup.

it went pretty good then failed on no powershell installed. so I got power shell installed in the wsl2 torizon instance.

Just to confirm after installing powershell in WSL2, you can run pwsh in WSL2?

Best Regards,
Jeremias

ok not sure which log files you want but here is the output window when I try to create project from a template:

[03-27 07:23:28.533] Activating Torizon IDE ...
[03-27 07:23:28.533] Torizon IDE version :: 2.8.1
[03-27 07:23:28.767] Latest Torizon IDE published :: 2.8.118
[03-27 07:23:28.767] Telemetry is enabled
[03-27 07:23:28.767] Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://developer.toradex.com/torizon/application-development/ide-extension/reference-documentation/data-collection/#how-to-opt-in-or-out
[03-27 07:23:28.767] Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
[03-27 07:23:28.767] Resolving host IP address ...
[03-27 07:23:28.985] Host IP address OK
[03-27 07:23:28.990] Docker installed OK
[03-27 07:23:29.067] Docker running OK
[03-27 07:23:29.198] Docker compose OK
[03-27 07:23:29.201] PowerShell OK
[03-27 07:23:29.203] git OK
[03-27 07:23:29.207] dig OK
[03-27 07:23:29.211] avahi-resolve OK
[03-27 07:23:29.215] nmap OK
[03-27 07:23:29.217] iputils-ping OK
[03-27 07:23:29.222] file OK
[03-27 07:23:29.227] sshpass OK
[03-27 07:23:29.229] net-tools OK
[03-27 07:23:29.232] rsync OK
[03-27 07:23:29.232] Cloning project templates
[03-27 07:23:29.232] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-27 07:23:29.233] Templates branch: bookworm-7
[03-27 07:23:29.233] Templates tag/hash: tos7
[03-27 07:23:30.325] Project templates clone of branch bookworm-7 OK
[03-27 07:23:30.327] Checking connected devices ...
[03-27 07:23:30.327] Scanning Torizon devices ...
[03-27 07:23:30.329] Debian bookworm packages list load OK
[03-27 07:23:30.329] Torizon IDE extension activated
[03-27 07:23:30.348] Checking host ip sanity ...
[03-27 07:23:30.354] Checkout templates repo to tag tos7 OK
[03-27 07:23:32.235] Host ip is OK
[03-27 07:23:32.240] Device 10.10.10.87 set as Docker Host
[03-27 07:23:32.240] No workspace opened
[03-27 07:29:28.076] Creating application make1 based on template cmakeConsole
[03-27 07:29:28.569] ERROR :: Error trying to create project

this is pwrshell on wsl

if you let me know what logs you need I can get them. but from the developer logs folder in VS Code there really isn’t much.

besides my previous reply and after trying a few more things. I have the about from the devloper console. not sure if this helps at all.

webviewElement.ts:484 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:484
P @ overlayWebview.ts:249
claim @ overlayWebview.ts:135
claim @ webviewEditorInput.ts:138
hb @ webviewEditor.ts:172
setInput @ webviewEditor.ts:163
await in setInput
U @ editorPanes.ts:447
M @ editorPanes.ts:255
openEditor @ editorPanes.ts:132
(anonymous) @ editorGroupView.ts:1272
Kb @ editorGroupView.ts:1296
Jb @ editorGroupView.ts:1254
openEditor @ editorGroupView.ts:1158
openEditor @ editorService.ts:581
openWebview @ webviewWorkbenchService.ts:293
$createWebviewPanel @ mainThreadWebviewPanels.ts:165
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1208
fire @ event.ts:1239
fire @ ipc.net.ts:652
A @ ipc.net.ts:1022
(anonymous) @ ipc.net.ts:879
B @ event.ts:1208
fire @ event.ts:1239
acceptChunk @ ipc.net.ts:394
(anonymous) @ ipc.net.ts:350
(anonymous) @ browserSocketFactory.ts:231
B @ event.ts:1208
fire @ event.ts:1239
j.onload @ browserSocketFactory.ts:92
mainCreateProject.js:40 WEBVIEW loaded
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:358 cmakeConsole
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
mainCreateProject.js:212 msg received MessageEvent {isTrusted: true, data: {…}, origin: 'vscode-webview://1jqr12ln76n151k6fa84io11plop8dhcqf98d9l5lm0llvvgnge1', lastEventId: '', source: Window, …}
console.ts:137 [Extension Host] [03-27 12:55:32.787] Creating application make1 based on template cmakeConsole
notificationsAlerts.ts:42 The terminal process "/bin/bash '--norc', '--noprofile'" failed to launch (exit code: 64).
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1208
C @ event.ts:1219
fire @ event.ts:1243
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
Uc @ terminalInstance.ts:1626
await in Uc
(anonymous) @ terminalInstance.ts:1404
B @ event.ts:1208
fire @ event.ts:1239
pb @ terminalProcessManager.ts:653
(anonymous) @ terminalProcessManager.ts:374
B @ event.ts:1208
fire @ event.ts:1239
handleExit @ basePty.ts:65
(anonymous) @ remoteTerminalBackend.ts:95
B @ event.ts:1208
fire @ event.ts:1239
B @ event.ts:1208
fire @ event.ts:1239
l @ ipc.ts:691
t @ ipc.ts:759
s @ ipc.ts:748
(anonymous) @ ipc.ts:550
B @ event.ts:1208
C @ event.ts:1219
fire @ event.ts:1243
fire @ ipc.net.ts:652
A @ ipc.net.ts:1022
(anonymous) @ ipc.net.ts:879
B @ event.ts:1208
fire @ event.ts:1239
acceptChunk @ ipc.net.ts:394
(anonymous) @ ipc.net.ts:350
(anonymous) @ browserSocketFactory.ts:231
B @ event.ts:1208
fire @ event.ts:1239
j.onload @ browserSocketFactory.ts:92
console.ts:137 [Extension Host] [03-27 12:55:33.260] ERROR :: Error trying to create project
notificationsAlerts.ts:42 Error trying to create project
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1208
C @ event.ts:1219
fire @ event.ts:1243
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1208
fire @ event.ts:1239
fire @ ipc.net.ts:652
A @ ipc.net.ts:1022
(anonymous) @ ipc.net.ts:879
B @ event.ts:1208
fire @ event.ts:1239
acceptChunk @ ipc.net.ts:394
(anonymous) @ ipc.net.ts:350
(anonymous) @ browserSocketFactory.ts:231
B @ event.ts:1208
fire @ event.ts:1239
j.onload @ browserSocketFactory.ts:92

Well those logs did not reveal any further information as I would hope they would.

I’m discussing your case here with the maintainers of our VSCode extension. They suggested maybe trying the pre-release version of the extension. You can swap the version on the extension page:

We’re not sure if this will fix whatever issue is going on here. But, at the very least the pre-release version has some changes that produce more logs in the case of an error or issue. Which may provide the information we need to narrow down what exactly is failing during project creation.

Best Regards,
Jeremias

Ok. I switched. then closed VS Code for fresh go.
Here is the log. there is an error with get here.

[03-27 14:43:43.389] Activating Torizon IDE ...
[03-27 14:43:43.389] Torizon IDE version :: 2.8.118
[03-27 14:43:43.570] Latest Torizon IDE published :: 2.8.118
[03-27 14:43:43.570] Telemetry is enabled
[03-27 14:43:43.570] Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://developer.toradex.com/torizon/application-development/ide-extension/reference-documentation/data-collection/#how-to-opt-in-or-out
[03-27 14:43:43.570] Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
[03-27 14:43:43.570] Resolving host IP address ...
[03-27 14:43:44.230] Host IP address OK
[03-27 14:43:44.234] Docker installed OK
[03-27 14:43:44.292] Docker running OK
[03-27 14:43:44.370] Docker compose OK
[03-27 14:43:44.374] PowerShell OK
[03-27 14:43:44.377] git OK
[03-27 14:43:44.379] dig OK
[03-27 14:43:44.381] avahi-resolve OK
[03-27 14:43:44.384] nmap OK
[03-27 14:43:44.386] iputils-ping OK
[03-27 14:43:44.390] file OK
[03-27 14:43:44.393] sshpass OK
[03-27 14:43:44.408] iproute2 OK
[03-27 14:43:44.411] rsync OK
[03-27 14:43:44.415] python3 OK
[03-27 14:43:44.417] pipx OK
[03-27 14:43:44.418] Cloning project templates
[03-27 14:43:44.418] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-27 14:43:44.418] Templates branch: bookworm-7
[03-27 14:43:44.418] Templates tag/hash: tos7
[03-27 14:43:44.418] Templates pull: true
[03-27 14:43:44.418] Templates properties has been changed, cleaning up .apollox
[03-27 14:43:45.510] Project templates clone of branch bookworm-7 OK
[03-27 14:43:45.542] Checkout templates repo to tag tos7 OK
[03-27 14:43:45.799] Cloning project templates
[03-27 14:43:45.799] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-27 14:43:45.799] Templates branch: bookworm-7
[03-27 14:43:45.799] Templates tag/hash: tos7
[03-27 14:43:45.799] Templates pull: true
[03-27 14:43:46.843] Project templates clone of branch bookworm-7 OK
[03-27 14:43:46.872] Checkout templates repo to tag tos7 OK
[03-27 14:43:47.130] ERROR :: Error trying to pull application templates
[03-27 14:43:47.131] You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>


[03-27 14:44:02.823] xonsh installation OK
[03-27 14:44:02.824] Checking connected devices ...
[03-27 14:44:02.824] Scanning Torizon devices ...
[03-27 14:44:02.828] Debian bookworm packages list load OK
[03-27 14:44:02.828] Torizon IDE extension activated
[03-27 14:44:02.843] Checking host ip sanity ...
[03-27 14:44:03.967] Host ip is OK
[03-27 14:44:04.014] Device 10.10.10.87 set as Docker Host
[03-27 14:44:04.014] No workspace opened

but it did try to create a console project.

logs:

[03-27 14:45:35.253] Activating Torizon IDE ...
[03-27 14:45:35.253] Torizon IDE version :: 2.8.118
[03-27 14:45:35.556] Latest Torizon IDE published :: 2.8.118
[03-27 14:45:35.556] Telemetry is enabled
[03-27 14:45:35.556] Extension collects completely anonymous telemetry data about templates usage. Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information. Check: https://developer.toradex.com/torizon/application-development/ide-extension/reference-documentation/data-collection/#how-to-opt-in-or-out
[03-27 14:45:35.556] Telemetry allows us to accurately gauge templates usage. This data will help us to focus better on the most used templates, adding new features and putting effort in the right place.
[03-27 14:45:35.557] Resolving host IP address ...
[03-27 14:45:36.141] Host IP address OK
[03-27 14:45:36.145] Docker installed OK
[03-27 14:45:36.227] Docker running OK
[03-27 14:45:36.367] Docker compose OK
[03-27 14:45:36.370] PowerShell OK
[03-27 14:45:36.374] git OK
[03-27 14:45:36.376] dig OK
[03-27 14:45:36.379] avahi-resolve OK
[03-27 14:45:36.381] nmap OK
[03-27 14:45:36.384] iputils-ping OK
[03-27 14:45:36.386] file OK
[03-27 14:45:36.390] sshpass OK
[03-27 14:45:36.400] iproute2 OK
[03-27 14:45:36.403] rsync OK
[03-27 14:45:36.406] python3 OK
[03-27 14:45:36.410] pipx OK
[03-27 14:45:36.410] Cloning project templates
[03-27 14:45:36.410] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-27 14:45:36.410] Templates branch: bookworm-7
[03-27 14:45:36.410] Templates tag/hash: tos7
[03-27 14:45:36.410] Templates pull: true
[03-27 14:45:36.414] Project templates clone of branch bookworm-7 OK
[03-27 14:45:37.093] Project templates fetched OK
[03-27 14:45:37.173] Checkout templates repo to tag tos7 OK
[03-27 14:45:37.475] Cloning project templates
[03-27 14:45:37.475] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-27 14:45:37.475] Templates branch: bookworm-7
[03-27 14:45:37.475] Templates tag/hash: tos7
[03-27 14:45:37.475] Templates pull: true
[03-27 14:47:51.723] ERROR :: Error trying to clone application templates of branch bookworm-7
[03-27 14:47:51.724] Cloning into '/home/powis/.apollox'...
fatal: unable to access 'https://github.com/torizon/vscode-torizon-templates.git/': Failed to connect to github.com port 443 after 134223 ms: Couldn't connect to server

[03-27 14:47:51.724] ERROR :: Error reading templates metadata {getTemplatesVersion}: Error: ENOENT: no such file or directory, open '/home/powis/.apollox/templates.json'
[03-27 14:47:51.724] ERROR :: Xonsh is not installed, Xonsh is required.
[03-27 14:47:51.725] Checking connected devices ...
[03-27 14:47:51.725] Scanning Torizon devices ...
[03-27 14:47:51.728] Debian bookworm packages list load OK
[03-27 14:47:51.729] Debug id_rsa OK
[03-27 14:47:51.729] ERROR :: Errors during the initialization of Torizon IDE Extension.
[03-27 14:47:51.729] HOUSTON WE HAVE A PROBLEM!
[03-27 14:47:51.729] PLEASE READ THE LOGS!
[03-27 14:47:51.729] ERROR :: Please share this log on https://community.toradex.com
[03-27 14:47:52.791] WARNING :: Device not reached! Please check if the device is turned on and connected to the network.
[03-27 14:47:52.791] ERROR :: apalis-imx8-14760601.hsd1.mo.comcast.net.local not reached

so maybe this helps

Well that is interesting now we’re seeing a new set of errors/issues.

In your most recent logs it almost seems like some kind of network issue. Specifically an issue with trying to fetch the Github repository where the project templates are:

[03-27 14:47:51.723] ERROR :: Error trying to clone application templates of branch bookworm-7
[03-27 14:47:51.724] Cloning into '/home/powis/.apollox'...
fatal: unable to access 'https://github.com/torizon/vscode-torizon-templates.git/': Failed to connect to github.com port 443 after 134223 ms: Couldn't connect to server

Is this just a temporary network issue, or do you get this issue every single time?

I also see the IDE can’t reach your device either:

[03-27 14:47:52.791] WARNING :: Device not reached! Please check if the device is turned on and connected to the network.
[03-27 14:47:52.791] ERROR :: apalis-imx8-14760601.hsd1.mo.comcast.net.local not reached

Though I don’t know if that’s a network issue as well, or your device is genuinely offline.

Best Regards,
Jeremias

yes I saw that also. but I was able to open a terminal to the device and ping it. and the device has been staying connected to the network. from all indications. could it be the wsl messing up?

so this morning I come in do a fresh restart and decide to try again.

Now I was able to pull a project template and have it grab what it needed. when I try to debug the template I get the following:

Executing task: xonsh .conf/validate-deps-running.xsh 


⚠️ VALIDATING ENVIRONMENT


✅ Environment is valid!

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ ! -z "10.10.10.87" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: bash -c [[ "aarch64" == "aarch64" ]] && true || false 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sleep 1 

 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: sshpass -p torizon scp -P 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /home/powis/pyconsole/docker-compose.yml torizon@10.10.10.87:~/ 

Warning: Permanently added '10.10.10.87' (ED25519) to the list of known hosts.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST=10.10.10.87:2375 docker image prune -f --filter=dangling=true 

Total reclaimed space: 0B
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: docker compose -p torizon stop pyconsole pyconsole-debug && docker compose -p torizon rm -f pyconsole pyconsole-debug 

No stopped containers
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: xonsh /home/powis/pyconsole/.conf/torizon-packages.xsh arm64 

Applying torizonPackages.json: 
Applying to Dockerfile.debug ...
✅ Dockerfile.debug
Applying to Dockerfile ...
✅ Dockerfile
torizonPackages.json applied
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose build --pull --build-arg SSHUSERNAME=torizon --build-arg APP_ROOT=/home/torizon/app --build-arg IMAGE_ARCH=arm64 --build-arg DEBUG_SSH_PORT=6502 --build-arg GPU=-imx8 pyconsole-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Compose can now delegate builds to bake for better performance.
 To do so, set COMPOSE_BAKE=true.
[+] Building 0.6s (14/14) FINISHED                                                                                                                                                         docker:default
 => [pyconsole-debug internal] load build definition from Dockerfile.debug                                                                                                                           0.0s
 => => transferring dockerfile: 2.79kB                                                                                                                                                               0.0s
 => [pyconsole-debug internal] load metadata for docker.io/torizon/debian:4                                                                                                                          0.5s
 => [pyconsole-debug internal] load .dockerignore                                                                                                                                                    0.0s
 => => transferring context: 117B                                                                                                                                                                    0.0s
 => [pyconsole-debug 1/8] FROM docker.io/torizon/debian:4@sha256:35f84027ccab01b4790ee0b4942632070b8b96d022e70de0b9cd6dfe5f68da24                                                                    0.0s
 => [pyconsole-debug internal] load build context                                                                                                                                                    0.0s
 => => transferring context: 43B                                                                                                                                                                     0.0s
 => CACHED [pyconsole-debug 2/8] RUN apt-get -q -y update &&     apt-get -q -y install     openssl     openssh-server     rsync     file     screen     python3-minimal     python3-pip     python3  0.0s
 => CACHED [pyconsole-debug 3/8] RUN apt-get -q -y update &&     apt-get -q -y install     &&     apt-get clean && apt-get autoremove &&     rm -rf /var/lib/apt/lists/*                             0.0s
 => CACHED [pyconsole-debug 4/8] RUN python3 -m venv /home/torizon/app/.venv --system-site-packages                                                                                                  0.0s
 => CACHED [pyconsole-debug 5/8] COPY requirements-debug.txt /requirements-debug.txt                                                                                                                 0.0s
 => CACHED [pyconsole-debug 6/8] RUN . /home/torizon/app/.venv/bin/activate &&     pip3 install --upgrade pip && pip3 install -r requirements-debug.txt &&     rm requirements-debug.txt &&     cho  0.0s
 => CACHED [pyconsole-debug 7/8] RUN mkdir /var/run/sshd &&     sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g'         -i /etc/pam.d/sshd &&     if test torizon !  0.0s
 => CACHED [pyconsole-debug 8/8] RUN rm -r /etc/ssh/ssh*key &&     dpkg-reconfigure openssh-server                                                                                                   0.0s
 => [pyconsole-debug] exporting to image                                                                                                                                                             0.0s
 => => exporting layers                                                                                                                                                                              0.0s
 => => writing image sha256:41bf9fb21f0fd8216e0d2e6bf69ccab5c7f511df1ff7b18b08d5f95001821b85                                                                                                         0.0s
 => => naming to localhost:5002/pyconsole-debug:arm64                                                                                                                                                0.0s
 => [pyconsole-debug] resolving provenance for metadata file                                                                                                                                         0.0s
[+] Building 1/1
 ✔ pyconsole-debug  Built                                                                                                                                                                            0.0s 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: DOCKER_HOST= docker compose push pyconsole-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
Get "http://localhost:5002/v2/": dial tcp 127.0.0.1:5002: connect: connection refused

 *  The terminal process "/bin/bash '-c', 'DOCKER_HOST= docker compose push pyconsole-debug'" failed to launch (exit code: 1). 
 *  Terminal will be reused by tasks, press any key to close it. 

it just seem like during the initial install of the extension items were skipped or missed. every time I make a change I get a little bit further but never quite there.

I did get this error on the first attempt at debugging. but ran the following command in an attempt to get it running:

docker run -d -p 5002:5000 --name registry registry:2

which gets me to where we are now.

For reference for other users who might be looking at this. We resolved this over a call.

The extension was updated to the latest version (3.0.1 at the time of writing). We also removed an old registry container that was running in WSL with the wrong configuration. Finally, we removed the old templates repository in WSL located at /home/<username>/.apollx. After doing that and restarting VSCode we were able to create a project and do the full debug process.

The issue seems to have been caused by remnants from installing/uninstalling old versions of the extension perhaps.

Best Regards,
Jeremias

1 Like