Installation problems Torizon IDE Extension in VS Code

Hi Community,

I have several problems getting in with the Torizon IDE Extension in VS Code. My config is a Verdin iMx8M Plus on a Yavia. I set a static IP adress, installed the Torizon IDE Extension in VS Code and by clicking on the button Verify all with WSL2 is done.
When I connect to WSL2 the Torizon extension icon isn’t on the right side, so I have to uninstall the Torizon IDE Extension and also the tcb-vscode and I see the icon after reinstalling. (first problem).

After this I can connect to the board and will get the error message: The terminal process “/bin/bash ‘–norc’, ‘–noprofile’” failed to launch (exit code: 127).
I get the following Output:

[03-27 16:50:30.896] Activating Torizon IDE ...
[03-27 16:50:30.896] Torizon IDE version :: 2.8.1
[03-27 16:50:31.182] Latest Torizon IDE published :: 2.8.118
[03-27 16:50:31.183] Telemetry is enabled
[03-27 16:50:31.183] 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 16:50:31.183] 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 16:50:31.183] Resolving host IP address ...
[03-27 16:50:31.447] Host IP address OK
[03-27 16:50:31.451] Docker installed OK
[03-27 16:50:31.566] Docker running OK
[03-27 16:50:31.796] Docker compose OK
[03-27 16:50:31.838] ERROR :: PowerShell Core is not installed. Please install: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.2
[03-27 16:50:31.842] git OK
[03-27 16:50:31.846] dig OK
[03-27 16:50:31.849] avahi-resolve OK
[03-27 16:50:31.852] nmap OK
[03-27 16:50:31.856] iputils-ping OK
[03-27 16:50:31.859] file OK
[03-27 16:50:31.863] sshpass OK
[03-27 16:50:31.866] net-tools OK
[03-27 16:50:31.869] rsync OK
[03-27 16:50:31.869] Cloning project templates
[03-27 16:50:31.869] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-27 16:50:31.869] Templates branch: bookworm-7
[03-27 16:50:31.869] Templates tag/hash: tos7
[03-27 16:50:31.888] Project templates clone of branch bookworm-7 OK
[03-27 16:50:32.430] Project templates fetched OK
[03-27 16:50:32.440] Checkout templates repo to tag tos7 OK
[03-27 16:50:33.019] Error trying to install PowerShell
[03-27 16:50:33.065] ERROR :: PowerShell Core is not installed. Please install: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.2
[03-27 16:50:33.065] Checking connected devices ...
[03-27 16:50:33.066] Scanning Torizon devices ...
[03-27 16:50:33.069] Debian bookworm packages list load OK
[03-27 16:50:33.069] ERROR :: Errors during the initialization of Torizon IDE Extension.
[03-27 16:50:33.069] HOUSTON WE HAVE A PROBLEM!
[03-27 16:50:33.069] PLEASE READ THE LOGS!
[03-27 16:50:33.113] ERROR :: Device 192.168.10.100.local has invalid data in local storage
[03-27 16:50:33.113] WARNING :: Device 192.168.10.100.local will be removed from local storage
[03-27 16:50:33.113] WARNING :: Please reconnect the Torizon device
[03-27 16:50:33.167] Device 192.168.10.100.local removed from local storage
[03-27 16:50:33.167] Disconnecting from 192.168.10.100.local ...
[03-27 16:50:33.206] Device 192.168.10.100.local removed from local storage
[03-27 16:50:51.737] Trying to connect to 192.168.10.100
[03-27 16:51:37.029] Connected to 192.168.10.100

In the user → .log folder there is an
updater.log with: ‘sudo: /opt/updater/updater.xsh: command not found’ inside. And a wslSocket.log with ‘Docker is running!’

  1. Which and how can I install the Power Shell Core?
  2. Is this the right folder with the posted logs in it?
  3. How can I reset the user in this Torizon WSL? I have also the problem, that I can not Create a project. I will get the error message: The terminal process “/bin/bash ‘–norc’, ‘–noprofile’” failed to launch (exit code: 127). when I want to create this. And additionally to this I forgot the correct password.

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 here to help you with the issues you’re facing with the Torizon IDE Extension and related components on your Toradex platform.

  1. Torizon IDE Extension Visibility Issue: This is a known issue when using WSL2. Please ensure that the Torizon IDE Extension is correctly installed within your WSL2 environment. You can find more details on this here.

  2. PowerShell Core Installation Error: While specific documentation on installing PowerShell Core in this context isn’t available, generally, you can install PowerShell Core on WSL2 by following the official Microsoft instructions for Linux distributions.

  3. Project Creation Issues: Please verify that Docker is properly configured and running. Ensure that the necessary ports (22 for SSH, 2375 for Docker API, 5002 for Local Registry, and 2222 for Container SSH) are open and accessible between your development machine and the board. More information can be found here and here.

  4. Device Connection Issues: If you encounter invalid device data in local storage, the system will automatically remove the device. You will need to reconnect it. More details are available here.

For resetting the WSL environment or recovering a forgotten password, while specific Toradex documentation isn’t available, you might consider general WSL2 reset procedures or password recovery methods for your Linux distribution.

I hope this helps resolve your issues. If you have further questions, feel free to ask.

Best regards,
Toradex AI Assistant

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

Troubleshooting | Toradex Developer Center.

Greetings @benjamin.weyand,

Which and how can I install the Power Shell Core?

The logs you shared have a link on how to install Powershell:

[03-27 16:50:33.065] ERROR :: PowerShell Core is not installed. Please install: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.2

Is this the right folder with the posted logs in it?

I’m not familiar with that updater.log file you found. Though it doesn’t seem to container a lot of helpful information. All logs meant for the user should be visible in VSCode.

How can I reset the user in this Torizon WSL? I have also the problem, that I can not Create a project. I will get the error message: The terminal process “/bin/bash ‘–norc’, ‘–noprofile’” failed to launch (exit code: 127). when I want to create this. And additionally to this I forgot the correct password.

What do you mean exactly by “reset the user”? Did you delete it or something? Regarding the password I’m not sure how much i can help you there. Perhaps it would be just more straightforward to re-install the Torizon WSL, which should reset everything to a default state.

Finally, if you are still having issues try using the pre-release version of the Torizon extension. There should be a button to switch the version in VSCode on the extensions page.

Best Regards,
Jeremias

Hi Jeremias,

right now I found a way to install the Power Shell by starting wsl in the Windows PowerShell with sudo apt-get install -y powershell. Output: [03-28 06:21:51.681] PowerShell OK

And with wsl -u root and passwd <username> I could reset the password. A re-install of the Torizon WSL didn’t work but perhaps this was also the wrong procedure. I deleted the Windows-Features ‘VM-platform’ and ‘Windows-Subsystem for Linux’ so that the Torizon-WSL was deleted, too. But when I reinstalled it, I couldn’t create a new user. It seems that the settings are saved and I didn’t find the place where. An uninstallation of VS Code with the user data wasn’t helpful, too.

Right now I have the following 2 problems:

  1. When I start to connect to the WSL 2 by clicking on the button

    I don’t find the Torizon extension on the left side and I have to re-install it

  1. I get the message: The terminal process "/bin/bash '--norc', '--noprofile'" terminated with exit code: 64. when I want to create a project:

[03-28 06:45:14.650] Creating application gpio based on template cppConsole

[03-28 06:45:15.572] ERROR :: Error trying to create project

As seen in another post I switched to the Pre-Release-Version and can create a c+±project. When I want to debug I get this information in the output:

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pulling 1/1
 ! neu-debug Warning Get "http://192.168.112.94:5002/v2/": dial tcp 192.168.112.94:5002: connect: network is unreachable                       0.2s 
WARNING: Some service image(s) must be built from source by running:
    docker compose build neu-debug
1 error occurred:
        * Error response from daemon: Get "http://192.168.112.94:5002/v2/": dial tcp 192.168.112.94:5002: connect: network is unreachable



 *  The terminal process "/usr/bin/bash '-c', 'DOCKER_HOST=192.168.10.100:2375 LOCAL_REGISTRY=192.168.112.94 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2230 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull neu-debug'" terminated with exit code: 1.

And at first, when I start the Extension there is:

03-28 09:52:35.218] Torizon IDE extension activated

[03-28 09:52:35.252] Checking host ip sanity ...

[03-28 09:52:36.263] Project templates clone of branch bookworm-7 OK

[03-28 09:52:36.310] Checkout templates repo to tag tos7 OK

[03-28 09:52:36.606] ERROR :: Error trying to pull application templates

[03-28 09:52:36.606] 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>

Hey @benjamin.weyand

a fix was released, you can use now the v3.0.1 that this should be fixed. Let us know.

I tried the version 3.0.1 but it seems that there is something wrong with the Docker engine. All other tests I did I had the Docker Desktop for Windows installed.

For the tests with the version 3.0.1 I uninstalled VS Code and the WSL Torizon to get all of them re-installed. Before the reinstallation of those I uninstalled the Docker Desktop for Windows, too and didn’t reinstall this.

But with debugging I get this message again:

With the first connection to my device after re-installation I saw those files in the opened PowerShell:

> Executing task: run-docker-registry-wsl <

> Executing task: run-docker-registry <
Container Runtime: docker
Run Arguments: -d -p 5002:5000 --restart=always registry:2
Container Name: registry
Container does not exists. Starting ...
Cmd: docker run --name registry -d -p 5002:5000 --restart=always registry:2
Unable to find image 'registry:2' locally

Output:

[03-31 09:30:50.194] Activating Torizon IDE ...
[03-31 09:30:50.194] Torizon IDE version :: 3.0.1
[03-31 09:30:50.742] Latest Torizon IDE published :: 3.0.1
[03-31 09:30:50.742] Telemetry is enabled
[03-31 09:30:50.742] 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-31 09:30:50.742] 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-31 09:30:50.742] Resolving host IP address ...
[03-31 09:30:51.831] Host IP address OK
[03-31 09:30:51.837] Docker installed OK
[03-31 09:30:51.992] Docker running OK
[03-31 09:30:52.235] Docker compose OK
[03-31 09:30:52.239] PowerShell OK
[03-31 09:30:52.242] git OK
[03-31 09:30:52.245] dig OK
[03-31 09:30:52.249] avahi-resolve OK
[03-31 09:30:52.252] nmap OK
[03-31 09:30:52.255] iputils-ping OK
[03-31 09:30:52.258] file OK
[03-31 09:30:52.262] sshpass OK
[03-31 09:30:52.301] iproute2 OK
[03-31 09:30:52.305] rsync OK
[03-31 09:30:52.309] python3 OK
[03-31 09:30:52.312] pipx OK
[03-31 09:30:52.313] Cloning project templates
[03-31 09:30:52.313] Templates repo: https://github.com/torizon/vscode-torizon-templates.git
[03-31 09:30:52.313] Templates branch: bookworm-7
[03-31 09:30:52.313] Templates tag/hash: tos7
[03-31 09:30:52.313] Templates pull: false
[03-31 09:30:52.318] Project templates clone of branch bookworm-7 OK
[03-31 09:30:52.724] Project templates fetched OK
[03-31 09:30:52.731] Checkout templates repo to tag tos7 OK
[03-31 09:30:53.894] xonsh installation OK
[03-31 09:30:53.894] Checking connected devices ...
[03-31 09:30:53.895] Scanning Torizon devices ...
[03-31 09:30:53.898] Debian bookworm packages list load OK
[03-31 09:30:53.898] Debug id_rsa OK
[03-31 09:30:53.962] Checking host ip sanity ...
[03-31 09:30:54.305] Torizon IDE extension activated
[03-31 09:30:56.418] Host ip is OK
[03-31 09:30:56.469] Device 192.168.10.100 set as Docker Host
[03-31 09:34:57.498] ERROR :: pull-container-torizon-debug-arm64 failed with exit code 1

 *  Executing task: DOCKER_HOST=192.168.10.100:2375 LOCAL_REGISTRY=192.168.112.94 TAG=arm64 GPU=-imx8 DEBUG_SSH_PORT=2230 DEBUG_PORT1= DEBUG_PORT2= DEBUG_PORT3= docker compose pull gpiotest-debug 

WARN[0000] The "DOCKER_LOGIN" variable is not set. Defaulting to a blank string. 
[+] Pulling 1/1
 ! gpiotest-debug Warning Get "http://192.168.112.94:5002/v2/": dial tcp 192.168.112.94:5002: connect: network is unreachable                                                                                         0.0s 
WARNING: Some service image(s) must be built from source by running:
    docker compose build gpiotest-debug
1 error occurred:
        * Error response from daemon: Get "http://192.168.112.94:5002/v2/": dial tcp 192.168.112.94:5002: connect: network is unreachable

Additionally the debug output tells me:

Starting: "ssh" -T -q -p 2230 -o StrictHostKeyChecking=no -o "UserKnownHostsFile /dev/null" torizon@192.168.10.100 "/usr/bin/gdb --interpreter=mi"
"ssh" exited with code 255 (0xFF).

So I followed the hints on this site: https://developer.toradex.com/software/development-resources/ssh/

But also no success.

Perhaps it will help to know what I’ve done after installing the Torizon OS7 (I use the PREEMPT_RT 7.2.0-devel-202503+build.7). I set a static ip adress by using the commands nmcli con mod network0 ipv4.addresses "192.168.10.100/24" and nmcli con mod network0 ipv4.method manual
My notebooks ip adress is in the same ip area (192.168.10.110) and subnet mask is (255.255.255.0). I don’t know where the network issue comes from. I am connected to the device and can also create a project correctly but there is a problem by pulling the image from the local server.

Why is the LOCAL_REGISTRY ip adress 192.168.112.94? Is this because of the setting in daemon.json?

Could this be a problem? Shall / can I change it to the ip adress of my notebook?

The use of the Torizon arm64 is the correct for debugging?

Why is the LOCAL_REGISTRY ip adress 192.168.112.94? Is this because of the setting in daemon.json?

When you add your device to the extension it writes what it thinks is the IP address of your PC to the device’s daemon.json file. If you’re saying this “192.168.112.94” address is not your PC address then that would explain the strange behavior with connections you are observing. You should manually correct this if you can.

Best Regards,
Jeremias

The ip adress "192.168.112.94’ is the ip adress of my WiFi but I’m connected to the board by cable.

I can change the daemon.json by using sudo nano /etc/docker/daemon.json but every time I want to debug it gets overwrite to the WiFi adress. I tried to fill in the ip-adress in the settings for the extension (user & remote) but it seems that this setting has no function:

Network bridge doesn’t work, too. Anything else I can try?

Update: Every time I set the device to default the ip adress will be overwritten. And I have to change the Host_ip in workspace. Now I have to look for this error:

I think the problem is, that the device doesn’t have a connection to the internet. Board network and company network are seperated. Is there a possibility to do this without internet connection?

The ip adress "192.168.112.94’ is the ip adress of my WiFi but I’m connected to the board by cable.

Wait so what IP address can the Toradex board use to contact your PC?

Network bridge doesn’t work, too. Anything else I can try?

There is a setting that can overwrite the automatic IP mechanism of the project. This setting is detailed here: Workspace - Settings | Toradex Developer Center

I think the problem is, that the device doesn’t have a connection to the internet. Board network and company network are seperated. Is there a possibility to do this without internet connection?

In theory, for the VSCode extension the board should only need to contact your PC that is running VSCode. That said, I’ve never tried such a setup myself. I’ve always done so with the board also having internet connection.

Best Regards,
Jeremias

In my example the following static ip adresses are given:

Yavia Board - 192.168.10.100
Notebook - 192.168.10.110

When I fill in the notebook-ip-adress in the workspace setting

the host-ip won’t be overwritten in the settings.json by starting the debugging so I changed it manually but the error message when pulling the docker is the same as before:

but the error message when pulling the docker is the same as before:

Wait did you also change the IP address in the /etc/docker/daemon.json file on your module to match your Notebook IP address?

Best Regards,
Jeremias

Wait did you also change the IP address in the /etc/docker/daemon.json file on your module to match your Notebook IP address?

Yes, I changed it, too.

Could you share what this file contains on your device?

Best Regards,
Jeremias

So I tried it this morning again and it works without any changes. I don’t understand why because I restarted the system a few times yesterday…

So I tried it this morning again and it works without any changes. I don’t understand why because I restarted the system a few times yesterday…

Well that’s good to hear it works now. Perhaps some change wasn’t taking full effect yesterday for some reason.

Best Regards,
Jeremias

Thanks for the help. I think one of the main solutions was the update to 3.0.1 and the overwrite of the host ip.

Well in any case, glad the issues got worked out.