NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.7k stars 13.83k forks source link

X11docker not operational #301480

Closed ErinaInit closed 6 months ago

ErinaInit commented 6 months ago

Describe the bug

The system x11docker package does not works as planned.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set up docker(I'm not currently using rootless at the time)
  2. Switch to a shell with x11docker with nix-shell -p x11docker nx-libs
  3. pull some necessary docker images, such as x11docker/xfce x11docker/xserver
  4. make some attempts: x11docker --desktop x11docker/fvwm

Expected behavior

A window should popup and display something.

Additional Context

The final error message for fvwm was:

x11docker ERROR: No container command specified and no CMD or ENTRYPOINT found in image.

  Type 'x11docker --help' for usage information
  Debug options: '--verbose' (full log) or '--debug' (log excerpt).
  Logfile will be: /home/erina/.cache/x11docker/x11docker.log
  Please report issues at https://github.com/mviereck/x11docker

The following error is also seen some times:

x11docker ERROR: start_container(): Did not receive PID of PID1 in container.
  Maybe the container immediately stopped for unknown reasons.
  Just in case, check if host and image architecture are compatible:
  Host architecture: amd64 (x86_64), image architecture: amd64.

I have this potentially important warning that was thrown:

/nix/store/k1yz4qzbi84hzxrg9ybl2prxx8caaj4r-x11docker-7.6.0/bin/.x11docker-wrapped: line 1099: -: command not found
x11docker WARNING: parse_inspect(): Error while parsing json for
  Architecture     (Line 5611)

Note that running x11docker/fvwm using docker run x11docker/fvwm works fine(with no x output)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.23, NixOS, 24.05 (Uakari), 24.05pre604424.d8fe5e6c92d0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/home/erina/.nix-defexpr/channels/nixpkgs`
ErinaInit commented 6 months ago

Adding jq solves the problem of not parsing json

It displays a grey window and then throws the error that says that Did not receive PID of PID1 in container.

ErinaInit commented 6 months ago

Actually this worked once per many attempts, I'm moving this issue to x11docker instead.