iris-edu / yasmine-stationxml-editor

GNU General Public License v3.0
13 stars 4 forks source link

Docker compose fails with google-chrome-stable #27

Open autumnjohnson opened 1 year ago

autumnjohnson commented 1 year ago

Running docker-compose up gives the following error:

The following packages have unmet dependencies:
 google-chrome-stable : Depends: libdrm2 (>= 2.4.75) but 2.4.74-1 is to be installed
                        Depends: libgbm1 (>= 17.1.0~rc2) but 13.0.6-1+b2 is to be installed
                        Depends: libu2f-udev but it is not installable
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get -y install google-chrome-stable' returned a non-zero code: 100
cmbapt commented 1 year ago

I tried to install Yasmine with Docker and encountered the same problem. I made little progress on this subject: Updating the python version to 3.7.16 in the backend dockerfile fixed the google-chrome-stable issue. I also needed to update obspy version to 1.3.* in requirements.txt Now my backend and frontend containers are starting but the frontend is quickly shutting down with the following error: [ERR] [echo] App watch is already running for this build profile.

cmbapt commented 1 year ago

Ok I fixed my frontend error. It depended on local users permissions. So the solution that I proposed in my last post works :

tmgreenfield1101 commented 1 year ago

Hi @cmbapt, I'm having the same issue with "[ERR] [echo] App watch is already running for this build profile." Can you elaborate a little more on the changes I have to make to the permissions to fix this?

cmbapt commented 1 year ago

Hi! @tmgreenfield1101, I gave to sencha user the same UID than my yasmine folder author (1001 in my case). To do it, I modified the useradd command in my frontend Dockerfile useradd -u 1001 -m sencha

uky-jps commented 1 year ago

I am having a similar issue but not with the google-chrome-stable. After cloning the project installing Docker Desktop on a windows 11 machine with WSL 2 enabled, I tried both cloning the project on the WSL Ubuntu side as well as a windows 11 side. running docker-compose up it runs through a bit of the installation and then fails --------------- running in power shell - windows ------------- ---- ran both instances with/without admin privileges

docker-compose up ..... => CACHED [ 1/12] FROM docker.io/library/eclipse-temurin:8u332-b09-jre-focal@sha256:0baf4f1b13254634444c1380c8b5 0.0s => CANCELED [ 2/12] RUN apt-get update 6.0s failed to solve: process "/bin/sh -c apt-get update && apt-get install -y wget unzip gnupg gcc" did not complete successfully: exit code: 100

--------------- running in WSL - Ubuntu ---------------------- # have tried to run this as sudo as well as standard user --- run this as sudo as well as standard user with similar results

sudo docker-compose up [+] Running 2/2 ! yasmine-backend Warning 0.4s ! yasmine-frontend Warning 0.4s [+] Building 0.0s (0/1)
[+] Building 2.9s (7/15)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.49kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/python:3.6.5-slim 0.2s => [ 1/11] FROM docker.io/library/python:3.6.5-slim@sha256:c838ee57410cfa16163524ffaa069397df2def8611ae3ea998ad5244f1c7e275 0.0s => [internal] load build context 0.0s => => transferring context: 16.71kB 0.0s => CACHED [ 2/11] WORKDIR /opt/yasmine/src 0.0s => ERROR [ 3/11] RUN apt-get update && apt-get install -y wget unzip gnupg gcc 2.7s
...

0 2.666 Reading package lists...

0 2.673 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.

0 2.673 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.

0 2.673 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.

0 2.673 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found

0 2.673 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found

0 2.673 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found

0 2.673 E: Some index files failed to download. They have been ignored, or old ones used instead.

[+] Building 0.0s (0/0)
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y wget unzip gnupg gcc" did not complete successfully: exit code: 100 >>

Not sure what I am doing wrong with the installation...

!!! EDIT !!! @cmbapt, Thank you for your earlier comment, that was spot on. Making those changes to the Dockerfile and requirements.txt files was the key to getting the program to work: Changed base image from 3.6.5-slim to 3.7.16-slim in the backend/Dockerfile

FROM python:3.7.16-slim

Changed obspy version from 1.2. to 1.3. in backend/requirements.txt

obspy==1.3.*

rcasey-earthscope commented 11 months ago

Keeping this issue open for review. There was an update in October to address some versioning issues, but not sure if Windows users are still affected by this bug.