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

Subsystem based on Ubuntu stack fails to launch with either exit code 1 or 255 #386

Open
sid3425 opened this issue Aug 7, 2024 · 9 comments
Labels

Comments

@sid3425
Copy link

sid3425 commented Aug 7, 2024

On a fresh installation of Vanilla OS 2, any apx subsystem created using the provided Ubuntu substack, which is based on the ubuntu:latest container image, fails to launch with either an exit code 255 or exit code 1 with the following error message:

ssaxena@apx-vso-pico:~$ apx Test enter
Starting container...                   	 [ OK ]
Installing basic packages...            	 Error: An error occurred
Error: An error occurred while entering the container: exit status 1
Usage:
  apx Test enter [flags]

Flags:
  -h, --help   help for enter

  ERROR   An error occurred while entering the container: exit status 1

Here, Test refers to the Ubuntu subsystem that I created. Resetting the subsystem and deletion does not seem to solve this issue. On the other hand using other stacks such as Fedora works normally, and I am able to install, update, run and remove packages without any issues.

@taukakao
Copy link
Member

taukakao commented Aug 7, 2024

I can't reproduce this.
Could you make sure you are on the latest version with: "apx -v", it should be "v2.4.3"

@sid3425
Copy link
Author

sid3425 commented Aug 7, 2024

apx -v shows version 2.4.3 which is the latest, I think either there is a bug with apx that may cause this by not installing packages correctly while setting up the image or an issue with the ubuntu:latest image itself

@taukakao taukakao added the triage label Aug 7, 2024
@Paragrimm
Copy link

I can confirm this. I'm trying to setup a dev environment for my game project and I've created a special stack for that. I'm not sure if it just takes really really long or if it's actually crashing, because my other stack uses ubuntu:latest aswell, but works flawless.

I guess that there's something wrong with a package or something.

This is my stack config:
┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Name ┊ la ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Base ┊ ubuntu:latest ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Packages ┊ git, git-lfs, blender, ┊
┊ ┊ vscodium, wget, unzip, ┊
┊ ┊ mono-complete, dotnet-sdk-8.0 ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼
┊ Package manager ┊ apt ┊
┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┼

I'm using the same packages on my Steam Deck where I've installed an ubuntu distrobox btw.

@jardon
Copy link
Member

jardon commented Nov 11, 2024

ive tried to replicate this. I get a 255 error code despite the container starting. ive noticed that i do get a Error: OCI runtime error: crun: ptsname: Inappropriate ioctl for device error, but im not sure if thats related.

@jardon
Copy link
Member

jardon commented Nov 11, 2024

jardon@lagann:~$ /.system/usr/share/apx/distrobox/distrobox ls
ID           | NAME                 | STATUS             | IMAGE                         
be98810ce40a | apx-snapcraft        | Created            | docker.io/library/ubuntu:noble
d5c26674f19b | apx-vso-pico         | Up 6 hours         | ghcr.io/vanilla-os/vso:main   
ba7c22209523 | apx-test             | Exited (100) 3 minutes ago | docker.io/library/ubuntu:latest

@jardon
Copy link
Member

jardon commented Nov 11, 2024

./distrobox create --additional-flags --label=stack=la --label=name=test --label=nvidia=true --label=manager=apx --image ubuntu:latest --name apx-test --no-entry --yes --pull --nvidia --additional-packages git git-lfs blender vscodium wget unzip mono-complete dotnet-sdk-8.0
ERROR: Invalid flag '--label=name=test'

@jardon
Copy link
Member

jardon commented Nov 11, 2024

im wondering if youre getting the same error that I am. can you open a host-shell and give the output of:

/.system/usr/share/apx/distrobox/distrobox ls
/.system/usr/share/apx/distrobox/distrobox enter --name <name-of-subsystem>

@taukakao
Copy link
Member

@Paragrimm

┊ Packages ┊ git, git-lfs, blender, ┊ ┊ ┊ vscodium, wget, unzip, ┊ ┊ ┊ mono-complete, dotnet-sdk-8.0 ┊

Installing blender, mono and dotnet will take quite a lot of time.

Apart from that, I don't think vscodium is a official ubuntu package.

@tarn-jihas
Copy link

Can confirm, when i stop a container i am unable to start it up again. I get "Error OCI runtime error: crun: ptsname: Innapropriate ioctl for device
Error: An error occured while entering the container: exit status 255

Fresh install Vanilla OS 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants