apx icon indicating copy to clipboard operation
apx copied to clipboard

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

Open sid3425 opened this issue 2 years ago • 9 comments

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.

sid3425 avatar Aug 07 '24 14:08 sid3425

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

taukakao avatar Aug 07 '24 15:08 taukakao

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

sid3425 avatar Aug 07 '24 16:08 sid3425

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.

Paragrimm avatar Oct 23 '24 18:10 Paragrimm

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 avatar Nov 11 '24 22:11 jardon

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 avatar Nov 11 '24 22:11 jardon

./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 avatar Nov 11 '24 23:11 jardon

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>

jardon avatar Nov 11 '24 23:11 jardon

@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.

taukakao avatar Nov 13 '24 02:11 taukakao

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

tarn-jihas avatar Nov 15 '24 00:11 tarn-jihas