Closed 17hoehbr closed 2 years ago
Tested again on my home server. Builds without issue on Ubuntu 22.04. It might be a Mac host specific bug.
I'm so sorry I don't currently have a Mac environment available to test. Let me know if you managed to identify the issue!
It seems like the issue is specifically related to the M1. Tizen Studio is a 64 bit app so trying to run the binary in an arm64 container fails. Running docker build --platform linux/amd64 -t jellyfin .
makes the container run through Rosetta which fixes the issue.
I'm getting this same error on Arch Linux with kernel version 5.19.8-arch1-1 and Docker version 20.10.18, build b40c2f6b5d. My CPU is 64-bit (AMD Athlon 3000G).
Step 14/32 : RUN chmod a+x /home/jellyfin/web-cli_Tizen_Studio_4.6_ubuntu-64.bin
---> Running in fd79567dfcf0
Removing intermediate container fd79567dfcf0
---> 483d7df07f95
Step 15/32 : RUN ./home/jellyfin/web-cli_Tizen_Studio_4.6_ubuntu-64.bin --accept-license /home/jellyfin/tizen-studio
---> Running in 2a4c583f720d
setting up jdk at /home/jellyfin/.package-manager/jdk
rm: cannot remove '/home/jellyfin/.package-manager/jdk': No such file or directory
library initialization failed - unable to allocate file descriptor table - out of memory./installer.sh: line 19: 53 Aborted (core dumped) "${HOME}/.package-manager/jdk/bin/java" -jar installer.jar "${args[@]}"
Removing intermediate container 2a4c583f720d
---> 506f2004e1be
Step 16/32 : ENV PATH=${PATH}:/home/jellyfin/tizen-studio/tools/ide/bin:/home/jellyfin/tizen-studio/tools
---> Running in 4a9c77f75803
Removing intermediate container 4a9c77f75803
---> 21d2678a7134
Step 17/32 : RUN tizen certificate -a Jellyfin -p 1234 -c SG -ct SG -n Jellyfin -f Jellyfin
---> Running in 6762b6c4a4a0
/bin/sh: 1: tizen: not found
The command '/bin/sh -c tizen certificate -a Jellyfin -p 1234 -c SG -ct SG -n Jellyfin -f Jellyfin' returned a non-zero code: 127
Full log at https://pastebin.com/5AxzE7R8
EDIT: Trying to build with docker build --platform linux/amd64 -t jellyfin .
resulted in the same error.
@olnw, unsure if you resolved it or not, but I also ran into a similar issue. From your log it looks to be the same thing that happened to me. The error we both got was:
rm: cannot remove '/home/jellyfin/.package-manager/jdk': No such file or directory library initialization failed - unable to allocate file descriptor table - out of memory./installer.sh: line 19: 53 Aborted (core dumped) "${HOME}/.package-manager/jdk/bin/java" -jar installer.jar "${args[@]}"
To resolve it I followed the steps in this post: https://superuser.com/a/1413390. I updated the docker.service file on my machine (Fedora 37) to have the --default-ulimit nofile=65536:65536
additional parameters. Then after doing a daemon-reload and restart of the docker service it built fine.
Hopefully that'll help anyone who has a similar issue.
Hi, just tried using this container and I am getting an error when it gets into creating certificates. It seems like the container just isn't setting the PATH variable for some reason even though it's in the docker file. I've deleted and redownloaded the repository locally and am still getting the same error. Below is the log. For reference I am running this on an M1 Macbook Air.