Skip to content

Misleading error about WSLInterop #33931

Description

Describe the bug

WSL 2.0, Ubuntu 24.04
az CLI version: 2.89.1

az login command reported misleading error that WSL interopt is disabled but it finally redirects to external browser and works as expected

Related command

az login

Errors

grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
WSL Interopability is disabled. Please enable it before using WSL.
grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
[error] WSL Interoperability is disabled. Please enable it before using WSL.

Issue script & Debug output

On WSL interopt is enabled and working:

$cat /etc/wsl.conf
[interop]
enabled=true
appendWindowsPath=false

$echo $WSL_INTEROP
/run/WSL/725_interopls 

$ls /proc/sys/fs/binfmt_misc
/proc/sys/fs/binfmt_misc/WSLInterop-late  python3.12  register  status

$cat /proc/sys/fs/binfmt_misc/WSLInterop-late
enabled
interpreter /init
flags: P
offset 0
magic 4d5a

Expected behavior

az login should work without misleading error and correctly detect WSL interop

Environment Summary

az cli: 2.89.1
WSL 2.0, Ubuntu 24.04

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamact-identity-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions