linuxserver / docker-nextcloud

GNU General Public License v3.0
677 stars 128 forks source link

[BUG] Cannot use docker mod for MediaDC (Issue is the same as #342) #434

Open ultimategrandson opened 2 months ago

ultimategrandson commented 2 months ago

Is there an existing issue for this?

Current Behavior

Added media dc docker mod to container and it fails at building wheel hexamming. Same as #342

Expected Behavior

No response

Steps To Reproduce

  1. Add docker mod
  2. Start container

Environment

- OS: Fedora 40
- How docker service was installed: Podman quadlet

CPU architecture

x86-64

Docker creation

Podman Quadlet configuration

[Unit]
Description=NextCloud
Wants=network-online.target
After=network-online.target

[Container]
Pod=nextcloud.pod
Image=lscr.io/linuxserver/nextcloud:latest
Environment=PUID=1010 PGID=1012 UMASK=002
Environment=DOCKER_MODS=linuxserver/mods:nextcloud-memories|linuxserver/mods:nextcloud-mediadc
Volume=/mnt/data/app-data/next-cloud:/config:Z
Volume=/mnt/data/next-cloud:/data:z
AutoUpdate=registry

[Service]
Restart=always

[Install]
WantedBy=default.target

Container logs

[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:nextcloud-memories to container
[mod-init] Downloading linuxserver/mods:nextcloud-memories from lscr.io
[mod-init] Installing linuxserver/mods:nextcloud-memories
[mod-init] linuxserver/mods:nextcloud-memories applied to container
[mod-init] Adding linuxserver/mods:nextcloud-mediadc to container
[mod-init] Downloading linuxserver/mods:nextcloud-mediadc from lscr.io
[mod-init] Installing linuxserver/mods:nextcloud-mediadc
[mod-init] linuxserver/mods:nextcloud-mediadc applied to container
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1010
User GID:    1012
───────────────────────────────────────

using keys found in /config/keys
Initializing nextcloud 29.0.0.19 (this can take a while) ...
Setting permissions
Initializing finished
**** Adding perl5 and its deps to package install lists ****
**** Adding pillow-heif, hexhamming, pywavelets and their deps to package install lists ****
[pkg-install-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/17) Installing perl (5.38.2-r0)
(2/17) Installing perl-error (0.17029-r2)
(3/17) Installing perl-git (2.43.0-r0)
(4/17) Installing git-perl (2.43.0-r0)
(5/17) Installing mpdecimal (2.5.1-r2)
(6/17) Installing python3 (3.11.9-r0)
(7/17) Installing python3-pycache-pyc0 (3.11.9-r0)
(8/17) Installing pyc (3.11.9-r0)
(9/17) Installing python3-pyc (3.11.9-r0)
(10/17) Installing py3-parsing (3.1.1-r0)
(11/17) Installing py3-parsing-pyc (3.1.1-r0)
(12/17) Installing py3-packaging (23.2-r0)
(13/17) Installing py3-packaging-pyc (23.2-r0)
(14/17) Installing py3-setuptools (68.2.2-r0)
(15/17) Installing py3-setuptools-pyc (68.2.2-r0)
(16/17) Installing supervisor (4.2.5-r4)
(17/17) Installing supervisor-pyc (4.2.5-r4)
Executing busybox-1.36.1-r15.trigger
OK: 405 MiB in 299 packages
[pkg-install-init] **** Installing all pip packages ****
[pkg-install-init] **** Creating venv ****
Requirement already satisfied: pip in /lsiopy/lib/python3.11/site-packages (24.0)
Collecting wheel
  Downloading wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Requirement already satisfied: setuptools in /lsiopy/lib/python3.11/site-packages (65.5.0)
Collecting setuptools
  Downloading setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
Downloading wheel-0.43.0-py3-none-any.whl (65 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 kB 9.1 MB/s eta 0:00:00
Downloading setuptools-69.5.1-py3-none-any.whl (894 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 65.6 MB/s eta 0:00:00
Installing collected packages: wheel, setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.0
    Uninstalling setuptools-65.5.0:
      Successfully uninstalled setuptools-65.5.0
Successfully installed setuptools-69.5.1 wheel-0.43.0
Looking in links: https://wheel-index.linuxserver.io/alpine-3.19/
Collecting scipy
  Downloading scipy-1.13.0-cp311-cp311-musllinux_1_1_x86_64.whl.metadata (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 7.9 MB/s eta 0:00:00
Collecting asn1crypto
  Downloading asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
Collecting cryptography
  Downloading cryptography-42.0.5-cp39-abi3-musllinux_1_2_x86_64.whl.metadata (5.3 kB)
Collecting hexhamming
  Downloading hexhamming-2.2.3.tar.gz (15 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting numpy
  Downloading numpy-1.26.4-cp311-cp311-musllinux_1_1_x86_64.whl.metadata (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 32.8 MB/s eta 0:00:00
Collecting pillow
  Downloading pillow-10.3.0-cp311-cp311-musllinux_1_1_x86_64.whl.metadata (9.2 kB)
Collecting pillow-heif
  Downloading pillow_heif-0.16.0-cp311-cp311-musllinux_1_2_x86_64.whl.metadata (9.3 kB)
Collecting pynacl
  Downloading PyNaCl-1.5.0-cp36-abi3-musllinux_1_1_x86_64.whl.metadata (8.6 kB)
Collecting pywavelets
  Downloading pywavelets-1.6.0-cp311-cp311-musllinux_1_1_x86_64.whl.metadata (9.0 kB)
Collecting cffi>=1.12 (from cryptography)
  Downloading cffi-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.12->cryptography)
  Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Downloading scipy-1.13.0-cp311-cp311-musllinux_1_1_x86_64.whl (38.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.8/38.8 MB 3.8 MB/s eta 0:00:00
Downloading asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 105.0/105.0 kB 48.6 MB/s eta 0:00:00
Downloading cryptography-42.0.5-cp39-abi3-musllinux_1_2_x86_64.whl (4.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 5.4 MB/s eta 0:00:00
Downloading numpy-1.26.4-cp311-cp311-musllinux_1_1_x86_64.whl (18.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.1/18.1 MB 4.5 MB/s eta 0:00:00
Downloading pillow-10.3.0-cp311-cp311-musllinux_1_1_x86_64.whl (4.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 2.4 MB/s eta 0:00:00
Downloading pillow_heif-0.16.0-cp311-cp311-musllinux_1_2_x86_64.whl (8.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.6/8.6 MB 4.5 MB/s eta 0:00:00
Downloading PyNaCl-1.5.0-cp36-abi3-musllinux_1_1_x86_64.whl (1.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 114.1 MB/s eta 0:00:00
Downloading pywavelets-1.6.0-cp311-cp311-musllinux_1_1_x86_64.whl (4.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 4.4 MB/s eta 0:00:00
Downloading cffi-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl (476 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 476.4/476.4 kB 82.1 MB/s eta 0:00:00
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 46.0 MB/s eta 0:00:00
Building wheels for collected packages: hexhamming
  Building wheel for hexhamming (setup.py): started
  Building wheel for hexhamming (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'hexhamming' extension
      creating build
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/hexhamming
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/lsiopy/include -I/usr/include/python3.11 -c hexhamming/python_hexhamming.cc -o build/temp.linux-x86_64-cpython-311/hexhamming/python_hexhamming.o -march=native
      error: command 'gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hexhamming
  Running setup.py clean for hexhamming
Failed to build hexhamming
ERROR: Could not build wheels for hexhamming, which is required to install pyproject.toml-based projects
[custom-init] No custom files found, skipping...
[ls.io-init] done.
github-actions[bot] commented 2 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

aptalca commented 2 months ago

It should work again now https://github.com/linuxserver/wheelie/commit/291bf0f03a24781d256cfffadd951efdd7d386d0

LinuxServer-CI commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.