linuxserver / docker-mods

Documentation and Examples of base container modifications
GNU General Public License v3.0
1.03k stars 268 forks source link

[BUG] Python3 is not installing for me #941

Open bladecell opened 3 weeks ago

bladecell commented 3 weeks ago

Is there an existing issue for this?

Name of mod

linuxserver/mods:code-server-python3

Name of base container

linuxserver/code-server

Current Behavior

When I launch the container, no python, nor python3 commnad is found.

abc@4d798ddfd839:/userFolder/CodeServer/$ python
bash: python: command not found
abc@4d798ddfd839:/userFolder/CodeServer/$ python3
bash: python3: command not found

Expected Behavior

I had it working flawlessly yesterday, the code-server container updated overnight to version 4.92.2 I believe

Steps To Reproduce

  1. Unraid server with the code-server docker template

Environment

- OS: Unraid 6.12.6

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='code-server'
  --net='bum'
  -e TZ="Europe/Budapest"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="vault"
  -e HOST_CONTAINERNAME="code-server"
  -e 'PASSWORD'=''
  -e 'HASHED_PASSWORD'=''
  -e 'SUDO_PASSWORD'=<password>
  -e 'SUDO_PASSWORD_HASH'=''
  -e 'PROXY_DOMAIN'='code-server.my.domain'
  -e 'DEFAULT_WORKSPACE'='/config/workspace'
  -e 'DOCKER_MODS'='linuxserver/mods:universal-cron|linuxserver/mods:code-server-python3|linuxserver/mods:universal-package-install|linuxserver/mods:code-server-rust'
  -e 'INSTALL_PACKAGES'='texlive-latex-base|texlive-fonts-recommended|texlive-fonts-extra|texlive-latex-extra|texlive-lang-european|texlive-science|texlive-lang-czechslovak|libnss3|libnspr4|libdbus-1-3|libatk1.0-0|libatk-bridge2.0-0|libcups2|libdrm2|libxkbcommon0|libatspi2.0-0|libxcomposite1|libxdamage1|libxfixes3|libxrandr2|libgbm1|libpango-1.0-0|libasound2|build-essential|python3-pip|clang-format'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8443]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/code-server-logo.png'
  -l 'swag'='enable'
  -l 'swag_address'=<address>
  -l 'swag_port'='8443'
  -l 'swag_url'=<url>
  -l 'swag_auth'=<auth>
  -p '8443:8443/tcp'
  -v '/mnt/user/appdata/':'/data_appdata/':'rw'
  -v '/mnt/user/data/':'/userFolder':'rw'
  -v '/mnt/user/appdata/code-server':'/config':'rw' 'linuxserver/code-server:latest'
Unable to find image 'linuxserver/code-server:latest' locally
latest: Pulling from linuxserver/code-server
Digest: sha256:4914ed4bc7e7342ef9d9cc30abda9cbcd486d79eac37db4bbe70df91135a1ef3
Status: Downloaded newer image for linuxserver/code-server:latest
4d798ddfd8396b4552d6013534860d2ed77ce7468b75ac8d8924f8456a247c21

### Container logs

```bash
[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:universal-cron to container
[mod-init] Downloading linuxserver/mods:universal-cron from lscr.io
[mod-init] Installing linuxserver/mods:universal-cron
[mod-init] linuxserver/mods:universal-cron applied to container
[mod-init] Adding linuxserver/mods:code-server-python3 to container
[mod-init] Downloading linuxserver/mods:code-server-python3 from lscr.io
[mod-init] Installing linuxserver/mods:code-server-python3
[mod-init] linuxserver/mods:code-server-python3 applied to container
[mod-init] Adding linuxserver/mods:universal-package-install to container
[mod-init] Downloading linuxserver/mods:universal-package-install from lscr.io
[mod-init] Installing linuxserver/mods:universal-package-install
[mod-init] linuxserver/mods:universal-package-install applied to container
[mod-init] Adding linuxserver/mods:code-server-rust to container
[mod-init] Downloading linuxserver/mods:code-server-rust from lscr.io
[mod-init] Installing linuxserver/mods:code-server-rust
[mod-init] linuxserver/mods:code-server-rust applied to container
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
all values are hidden
      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝
all values are hidden
   Brought to you by linuxserver.io
───────────────────────────────────────
all values are hidden
To support LSIO projects visit:
https://www.linuxserver.io/donate/
all values are hidden
───────────────────────────────────────
GID/UID
───────────────────────────────────────
all values are hidden
User UID:    99
User GID:    100
───────────────────────────────────────
Linuxserver.io version: 4.92.2-ls228
Build-date: 2024-08-20T15:12:41+00:00
───────────────────────────────────────

setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
New password: Retype new password: passwd: password updated successfully
**** Adding texlive-latex-base to OS package install list ****
**** Adding texlive-fonts-recommended to OS package install list ****
**** Adding texlive-fonts-extra to OS package install list ****
**** Adding texlive-latex-extra to OS package install list ****
**** Adding texlive-lang-european to OS package install list ****
**** Adding texlive-science to OS package install list ****
**** Adding texlive-lang-czechslovak to OS package install list ****
**** Adding libnss3 to OS package install list ****
**** Adding libnspr4 to OS package install list ****
**** Adding libdbus-1-3 to OS package install list ****
**** Adding libatk1.0-0 to OS package install list ****
**** Adding libatk-bridge2.0-0 to OS package install list ****
**** Adding libcups2 to OS package install list ****
**** Adding libdrm2 to OS package install list ****
**** Adding libxkbcommon0 to OS package install list ****
**** Adding libatspi2.0-0 to OS package install list ****
**** Adding libxcomposite1 to OS package install list ****
**** Adding libxdamage1 to OS package install list ****
**** Adding libxfixes3 to OS package install list ****
**** Adding libxrandr2 to OS package install list ****
**** Adding libgbm1 to OS package install list ****
**** Adding libpango-1.0-0 to OS package install list ****
**** Adding libasound2 to OS package install list ****
**** Adding build-essential to OS package install list ****
**** Adding python3-pip to OS package install list ****
**** Adding clang-format to OS package install list ****
**** Adding python3 to package install list ****
**** adding build-essential to install list ****
**** unpacking rust tar ****
new crontab file is missing newline before EOF, can't install.
**** installing rust ****
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'rust-std-x86_64-unknown-linux-gnu'
install: installing component 'rust-docs'
install: installing component 'rust-docs-json-preview'
install: installing component 'rust-demangler-preview'
install: installing component 'cargo'
install: installing component 'rustfmt-preview'
install: installing component 'rls-preview'
install: installing component 'rust-analyzer-preview'
install: installing component 'llvm-tools-preview'
install: installing component 'clippy-preview'
install: installing component 'rust-analysis-x86_64-unknown-linux-gnu'
install: installing component 'llvm-bitcode-linker-preview'
all values are hidden
    rust installed.
all values are hidden
[pkg-install-init] **** Installing all mod packages ****
Get:1 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/multiverse Sources [355 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/main Sources [1,713 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/universe Sources [24.3 MB]
Get:7 http://archive.ubuntu.com/ubuntu noble/restricted Sources [21.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1,808 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [117 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [19.3 MB]
Get:11 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [331 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Sources [9,592 B]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/main Sources [186 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/universe Sources [333 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/restricted Sources [22.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [518 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [449 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [16.9 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [354 kB]
Get:20 http://archive.ubuntu.com/ubuntu noble-security/restricted Sources [22.7 kB]
Get:21 http://archive.ubuntu.com/ubuntu noble-security/main Sources [111 kB]
Get:22 http://archive.ubuntu.com/ubuntu noble-security/multiverse Sources [6,961 B]
Get:23 http://archive.ubuntu.com/ubuntu noble-security/universe Sources [294 kB]
Get:24 http://archive.ubuntu.com/ubuntu noble-security/main amd64 Packages [404 kB]
Get:25 http://archive.ubuntu.com/ubuntu noble-security/universe amd64 Packages [337 kB]
Get:26 http://archive.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [12.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [354 kB]
Fetched 51.9 MB in 3s (18.3 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package libasound2 is a virtual package provided by:
  liboss4-salsa-asound2 4.2-build2020-1ubuntu3
  libasound2t64 1.2.11-1build2 (= 1.2.11-1build2)
all values are hidden
E: Package 'libasound2' has no installation candidate
[custom-init] No custom files found, skipping...
starting with no password
[2024-08-23T06:39:43.155Z] info  code-server 4.92.2 de65bfc9477f61bc22d0b1a23085d1f18bb25202
[2024-08-23T06:39:43.201Z] info  Using user-data-dir /config/data
[2024-08-23T06:39:43.223Z] info  Using config file /config/.config/code-server/config.yaml
[2024-08-23T06:39:43.223Z] info  HTTP server listening on http://0.0.0.0:8443/
[2024-08-23T06:39:43.223Z] info    - Authentication is disabled
[2024-08-23T06:39:43.223Z] info    - Not serving HTTPS
[2024-08-23T06:39:43.223Z] info    - Proxying the following domain:
[2024-08-23T06:39:43.223Z] info      - {{port}}.code-server.my.domain
[2024-08-23T06:39:43.223Z] info  Using proxy URI in PORTS tab: //{{port}}.code-server.my.domain
[2024-08-23T06:39:43.224Z] info  Session server listening on /config/data/code-server-ipc.sock
[08:39:43] 
all values are hidden
all values are hidden
all values are hidden
all values are hidden
Connection to 127.0.0.1 8443 port [tcp/*] succeeded!
[ls.io-init] done.
[08:39:43] Extension host agent started.
[08:39:43] [172.22.0.1][6b8d5834][ManagementConnection] Unknown reconnection token (never seen).
[08:39:43] [172.22.0.1][45fe7d35][ExtensionHostConnection] Unknown reconnection token (never seen).
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[08:40:24] [172.22.0.1][fed33b6b][ManagementConnection] New connection established.
[08:40:25] [172.22.0.1][ea38fc39][ExtensionHostConnection] New connection established.
[08:40:25] [172.22.0.1][ea38fc39][ExtensionHostConnection] <5128> Launched Extension Host Process.
Roxedus commented 3 weeks ago

You are adding a package in INSTALL_PACKAGES that does not exist in ubuntu noble, libasound2. which stops all apt operations.

zktaiga commented 2 weeks ago

You are adding a package in INSTALL_PACKAGES that does not exist in ubuntu noble, libasound2. which stops all apt operations.

Can confirm something broke upstream. I'm using a linuxserver image with the following:

      - DOCKER_MODS=linuxserver/mods:universal-package-install
      - INSTALL_PACKAGES=python3

The image (ZNC) got an update today, and something broke the python installation:

root@e2e4b9554376:/# python3
bash: python3: command not found
root@e2e4b9554376:/# python
bash: python: command not found

I've verified to check if it's a regression in the image itself but even older images fail, so the issue is elsewhere.

aptalca commented 2 weeks ago

That's likely a separate issue. Scarf.sh seems to be having issues. But you didn't post full logs, so we can't be sure.

zktaiga commented 2 weeks ago

That's likely a separate issue. Scarf.sh seems to be having issues. But you didn't post full logs, so we can't be sure.

Aye, my bad:

znc  | [mod-init] Running Docker Modification Logic
znc  | [mod-init] Adding linuxserver/mods:universal-package-install to container
znc  | [mod-init] (ERROR) linuxserver/mods:universal-package-install digest could not be fetched from lscr.io
zktaiga commented 2 weeks ago

FWIW, this works as a workaround for me: https://github.com/linuxserver/docker-mods/issues/872#issuecomment-2037467075