Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot reenable podman extension, getting Extension error: command 'podman.onboarding.installWSL' already exists #4593

Closed
odockal opened this issue Nov 1, 2023 · 7 comments · Fixed by #5246

Comments

@odockal
Copy link
Contributor

odockal commented Nov 1, 2023

Bug description

I was facing a strange issue, after some time of playing around podman machines, pulling images, starting a containers, etc., I have seen a missing rootful, usermode, etc buttons in the create a new machine form. @lstocchi Also reported something similar.

I tried to disable and re-enable podman extension and got this:

Extension error: command 'podman.onboarding.installWSL' already exists

Operating system

Windows 10 Professional

Installation Method

Installer from website/GitHub releases

Version

next (development version)

Steps to reproduce

  1. Have podman desktop started (update: Probably we need to go through the onboarding, so podman installed is also requirement)
  2. go to Settings -> Extensions -> Podman
  3. Disable extension
  4. Assert: all seems fine
  5. Enable extension
  6. Assert: all is back running/available
    Actual result: It gets stuck in enabling. Console shows an error. To get full error - force reload, aka. CTRL + R

Relevant log output

Dev console log:

main ↪️ Activating extension podman-desktop.podman failed error:Error: command 'podman.onboarding.installWSL' already exists

Error stack trace:
Extension error: command 'podman.onboarding.installWSL' already exists
Stack trace
Error: command 'podman.onboarding.installWSL' already exists at xd.registerCommand (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\packages\main\dist\index.cjs:14:42009) at Object.registerCommand (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\packages\main\dist\index.cjs:92:37250) at WSL2Check.init (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\extensions\podman\builtin\podman.cdix\dist\extension.js:1023:42) at activate (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\extensions\podman\builtin\podman.cdix\dist\extension.js:5310:31) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Sre.activateExtension (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\packages\main\dist\index.cjs:92:44728) at async Sre.loadExtension (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\packages\main\dist\index.cjs:92:36990) at async Sre.startExtension (C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\packages\main\dist\index.cjs:92:46120) at async C:\Users\Ondrej\AppData\Local\Programs\podman-desktop\resources\app.asar\packages\main\dist\index.cjs:382:16958 at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:88640)

Additional context

Workaround - restart podman desktop (fully)

@rostalan
Copy link
Contributor

rostalan commented Nov 3, 2023

Same issue here, I'll just add some screensshots:

image

The enable button in the overview section 'Extensions' seems to be missing.

image

After clicking the enable button in detail of Podman extension, it gets stuck enabling, as @odockal said.

@benoitf
Copy link
Collaborator

benoitf commented Dec 13, 2023

@odockal I'm not reproducing this issue

@odockal
Copy link
Contributor Author

odockal commented Dec 13, 2023

@benoitf Just right now I was able to reproduce.

@odockal
Copy link
Contributor Author

odockal commented Dec 13, 2023

@benoitf Windows is expected platform.

@odockal
Copy link
Contributor Author

odockal commented Dec 13, 2023

@benoitf I believe that we also need to install podman since podman.onboarding.installWSL needs to be registered.

@odockal
Copy link
Contributor Author

odockal commented Dec 13, 2023

Moreover, the disable-enable action introduces duplicated Podman resource objects in Resources.

@benoitf
Copy link
Collaborator

benoitf commented Dec 13, 2023

ok got it, specific to windows
should be easy to fix

@benoitf benoitf self-assigned this Dec 13, 2023
benoitf added a commit to benoitf/desktop that referenced this issue Dec 13, 2023
fixes containers#4593
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit that referenced this issue Dec 13, 2023
fixes #4593
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit to benoitf/desktop that referenced this issue Dec 13, 2023
fixes containers#4593
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit that referenced this issue Dec 13, 2023
fixes #4593
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants