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
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):
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):
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.
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.