Torizon IDE Installation Wizard for Windows

Hello!

I’ve recently had to reinitialize my VS code due to issues with running some of the Torizon IDE tasks. I started from scratch but am currently having an issue with the Torizon IDE Installation Wizard for Windows. Torizon WSL 2 is installed however there is no window for user creation and the “Configure Torizon WSL 2” is automatically checked. I’ve tried reinstalling WSL and can confirm Ubuntu installation and user creation works correctly. If I try to run Torizon in PowerShell, I get:

Welcome to the Torizon WSL 2 v1.0.0

Error: user not created
Error cause: Impossible condition

Bye!

Thank you in advance!

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


I can help you resolve this Torizon WSL 2 user creation issue. Based on the error message you’re seeing, this is a known issue that can be fixed with a specific command.

Fix for “Error: user not created” Issue

If you were affected by this issue, run the following in a Windows side terminal(1):

wsl sudo -E /opt/updater/updater.ps1 -User <distro_user>

(1)

Where <distro_user> must be the login name that you register on your Torizon Development Environment for WSL 2 distro(1). This should fix the issue(1).

Alternative Solution Using Password File

If the above doesn’t work, there’s an alternative workaround(2):

  1. Create a folder with the name .torizon at(2):

    C:\Users\Public
    

    (2)

  2. Create a file called password.txt at(2):

    C:\Users\Public\.torizon
    

    (2)

  3. Into the file add the following content(2):

    newUser:newPassword
    

    (2)

    Here you can set the preferred name and password for your new distro login(2).

  4. Close VS Code (if not closed yet) and then start the extension installation process again(2).

  5. Important: Remove the password.txt file as soon as the distro configures the new user(2).

This is a mechanism that exists to automate tests(2).

Prerequisites Check

Before proceeding, ensure you have WSL 2 properly installed(3). You can verify this by:

  1. Checking which version of WSL you are running(3)
  2. If WSL 1 is installed, upgrade version from WSL 1 to WSL 2(3)

The Torizon IDE Extension requires WSL 2 to function properly(3).

**


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hey @quDev ,

Can you post the full terminal logs you receive after loading the IDE?

-Eric

Hi @eric.tx ,

I was able to resolve my issue, The Remote Explorer extension in VS Code was hanging on to a Torizon WSL reference. So, the Torizon IDE Installation Wizard for Windows was tricked into thinking the distribution was already configured, skipping the initial user creation. Once I removed the reference, everything worked fine.

Thank you for your time!

I just saw the same problem. For me it was caused by logging into a PC where another user had already configured Torizon. What worked for me to get past the message “Error: user not created” was to delete the file C:\Users\Public\.torizon\.configured. After I did that the Torizon Extension was able to configure WSL for my user account and it restored the file I had deleted.