babagreensheep / jellyfin-tizen-docker

206 stars 30 forks source link

Failed to solve: process "/bin/sh -c tizen ..." #12

Closed vjba closed 5 months ago

vjba commented 1 year ago

OS: Fedora 37 Docker: 23.0.1

[+] Building 1.5s (19/33)                                                                                                                                                                                                       
 => [internal] load build definition from Dockerfile                                                                                                                                                                       0.1s
 => => transferring dockerfile: 2.62kB                                                                                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                                                                          0.2s
 => => transferring context: 2B                                                                                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                                                            0.8s
 => [internal] load build context                                                                                                                                                                                          0.1s
 => => transferring context: 90B                                                                                                                                                                                           0.0s
 => [ 1/29] FROM docker.io/library/ubuntu:22.04@sha256:67211c14fa74f070d27cc59d69a7fa9aeff8e28ea118ef3babc295a0428a6d21                                                                                                    0.0s
 => CACHED [ 2/29] RUN apt-get update; apt-get -y upgrade; apt-get clean                                                                                                                                                   0.0s
 => CACHED [ 3/29] RUN DEBIAN_FRONTEND=noninteractive TZ=Singapore apt-get -y install tzdata                                                                                                                               0.0s
 => CACHED [ 4/29] RUN apt-get -qq install -y git openssh-server                                                                                                                                                           0.0s
 => CACHED [ 5/29] RUN apt-get install -y sudo                                                                                                                                                                             0.0s
 => CACHED [ 6/29] RUN apt-get install -y curl                                                                                                                                                                             0.0s
 => CACHED [ 7/29] RUN apt-get -y install expect                                                                                                                                                                           0.0s
 => CACHED [ 8/29] RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -                                                                                                                                           0.0s
 => CACHED [ 9/29] RUN apt-get install -y nodejs                                                                                                                                                                           0.0s
 => CACHED [10/29] RUN npm update                                                                                                                                                                                          0.0s
 => CACHED [11/29] RUN useradd -m jellyfin -s /bin/bash                                                                                                                                                                    0.0s
 => CACHED [12/29] RUN wget https://download.tizen.org/sdk/Installer/tizen-studio_4.6/web-cli_Tizen_Studio_4.6_ubuntu-64.bin -P /home/jellyfin                                                                             0.0s
 => CACHED [13/29] RUN chmod a+x /home/jellyfin/web-cli_Tizen_Studio_4.6_ubuntu-64.bin                                                                                                                                     0.0s
 => CACHED [14/29] RUN ./home/jellyfin/web-cli_Tizen_Studio_4.6_ubuntu-64.bin --accept-license /home/jellyfin/tizen-studio                                                                                                 0.0s
 => ERROR [15/29] RUN tizen     certificate         -a Jellyfin         -p 1234         -c SG         -ct SG         -n Jellyfin         -f Jellyfin                                                                       0.5s
------                                                                                                                                                                                                                          
 > [15/29] RUN tizen     certificate         -a Jellyfin         -p 1234         -c SG         -ct SG         -n Jellyfin         -f Jellyfin:
#0 0.403 /bin/sh: 1: tizen: not found
------
Dockerfile:31
--------------------
  30 |     # Create certificates
  31 | >>> RUN tizen \
  32 | >>>     certificate \
  33 | >>>         -a Jellyfin \
  34 | >>>         -p 1234 \
  35 | >>>         -c SG \
  36 | >>>         -ct SG \
  37 | >>>         -n Jellyfin \  
  38 | >>>         -f Jellyfin
  39 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c tizen     certificate         -a Jellyfin         -p 1234         -c SG         -ct SG         -n Jellyfin         -f Jellyfin" did not complete successfully: exit code: 127
ChokunPlayZ commented 1 year ago

Having the same issue on MacOS Ventura 13.3.1 Docker Desktop 4.19.0 (Docker Engine 23.0.5, build bc4487a)

it works on ubuntu

Screenshot 2566-04-29 at 4 17 43 PM

so to solve it I just copy the image from my ubuntu box over to my macbook run it and it works

ghost commented 1 year ago

I think the build attempts to install and execute code compiled for ARM64 M1 chip. So you can update your docker file to be FROM --platform=linux/amd64 ubuntu:22.04. This worked for me.

LHolten commented 1 year ago

I have the same problem on Fedora 37. my cpu is x86_64 and FROM --platform=linux/amd64 ubuntu:22.04 does not help. Docker version 24.0.2, build cb74dfc

animalart commented 6 months ago

Hi ! I went through this issue on Arch and you might want to try the solution from https://github.com/babagreensheep/jellyfin-tizen-docker/issues/4#issuecomment-1370297171 ! This might be a duplicate then.

vjba commented 5 months ago

Thanks for the suggestion @animalart. Sadly my re-attempt failed once again.

note: I'm now using Fedora 39 with Docker 24.0.7

RicardoJeronimo commented 5 months ago

@vjba, check my comment on issue #22. The solution outlined above in issue #4 also didn't work for me, but this one did!

vjba commented 5 months ago

This worked! Thank you! Now to resolve some other issues :laughing:

Dampex commented 1 month ago

Hello! I still got the same issues after trying previous mentions solutions. Someone got another solutions for this problem?