Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running make docker-run fails #434

Open
CustomIcon opened this issue Nov 30, 2022 · 1 comment
Open

running make docker-run fails #434

CustomIcon opened this issue Nov 30, 2022 · 1 comment

Comments

@CustomIcon
Copy link

CustomIcon commented Nov 30, 2022

Logs:

[+] Building 2.2s (18/19)
 => [internal] load build definition from Dockerfile                                              0.0s 
 => => transferring dockerfile: 32B                                                               0.0s 
 => [internal] load .dockerignore                                                                 0.0s 
 => => transferring context: 35B                                                                  0.0s 
 => [internal] load metadata for docker.io/library/python:3.9                                     2.1s 
 => [internal] load build context                                                                 0.1s 
 => => transferring context: 14.77kB                                                              0.0s 
 => [builder 1/7] FROM docker.io/library/python:3.9@sha256:c1613835d7be322f98603f356b9e0c9d40f95  0.0s 
 => CACHED [stage-1 2/8] RUN set -ex &&  groupadd -r newdle &&  useradd -r -g newdle -m -d /newd  0.0s 
 => CACHED [stage-1 3/8] RUN pip install uwsgi                                                    0.0s 
 => CACHED [builder 2/7] RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -              0.0s 
 => CACHED [builder 3/7] RUN apt-get update && apt-get install -y nodejs                          0.0s 
 => CACHED [builder 4/7] ADD . /build/                                                            0.0s 
 => CACHED [builder 5/7] WORKDIR /build                                                           0.0s 
 => CACHED [builder 6/7] RUN HUSKY_SKIP_INSTALL=1 make                                            0.0s 
 => CACHED [builder 7/7] RUN make build                                                           0.0s 
 => CACHED [stage-1 4/8] COPY --from=builder /build/dist/newdle*.whl /tmp/                        0.0s 
 => CACHED [stage-1 5/8] RUN pip install $(echo /tmp/newdle*.whl)[exchange,cern]                  0.0s 
 => CACHED [stage-1 6/8] RUN find /usr/local/lib/python3.9/site-packages/newdle/client/build/ -t  0.0s 
 => CACHED [stage-1 7/8] ADD docker/run.sh docker/uwsgi.ini /                                     0.0s 
 => CACHED [stage-1 8/8] RUN pip install ipython flask-shell-ipython httpie                       0.0s 
 => exporting to image                                                                            0.0s 
 => => exporting layers                                                                           0.0s 
 => => writing image sha256:947ab51de834e9d71711723cab1e0bf0de0580160f16a1c89a24f8eec9eabd27      0.0s 
 => => naming to docker.io/library/newdle-newdle                                                  0.0s 

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them   
[+] Running 3/2
 - Network newdle_default       Created                                                           0.0s 
 - Container newdle-postgres-1  Created                                                           0.3s
 - Container newdle             Created                                                           0.1s
Attaching to newdle, newdle-postgres-1
newdle-postgres-1  | The files belonging to this database system will be owned by user "postgres".
newdle-postgres-1  | This user must also own the server process.
newdle-postgres-1  | 
newdle-postgres-1  | The database cluster will be initialized with locale "en_US.utf8".
newdle-postgres-1  | The default database encoding has accordingly been set to "UTF8".
newdle-postgres-1  | The default text search configuration will be set to "english".
newdle-postgres-1  | 
newdle-postgres-1  | Data page checksums are disabled.
newdle-postgres-1  | 
newdle-postgres-1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
newdle-postgres-1  | creating subdirectories ... ok
newdle-postgres-1  | selecting dynamic shared memory implementation ... posix
newdle-postgres-1  | selecting default max_connections ... 100
newdle-postgres-1  | selecting default shared_buffers ... 128MB
newdle-postgres-1  | selecting default time zone ... Etc/UTC
newdle-postgres-1  | creating configuration files ... ok
newdle-postgres-1  | running bootstrap script ... ok
newdle-postgres-1  | performing post-bootstrap initialization ... ok
newdle-postgres-1  | syncing data to disk ... ok
newdle-postgres-1  | 
newdle-postgres-1  | 
newdle-postgres-1  | Success. You can now start the database server using:
newdle-postgres-1  | 
newdle-postgres-1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
newdle-postgres-1  | 
newdle-postgres-1  | initdb: warning: enabling "trust" authentication for local connections
newdle-postgres-1  | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
newdle-postgres-1  | waiting for server to start....2022-11-30 09:11:02.401 UTC [49] LOG:  starting PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
newdle-postgres-1  | 2022-11-30 09:11:02.403 UTC [49] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
newdle-postgres-1  | 2022-11-30 09:11:02.411 UTC [52] LOG:  database system was shut down at 2022-11-30 09:11:02 UTC
newdle-postgres-1  | 2022-11-30 09:11:02.417 UTC [49] LOG:  database system is ready to accept connections
newdle-postgres-1  |  done
newdle-postgres-1  | server started
newdle-postgres-1  | CREATE DATABASE
newdle-postgres-1  | 
newdle-postgres-1  | 
newdle-postgres-1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*       
newdle-postgres-1  | 
newdle-postgres-1  | waiting for server to shut down...2022-11-30 09:11:02.648 UTC [49] LOG:  received 
fast shutdown request
newdle-postgres-1  | .2022-11-30 09:11:02.652 UTC [49] LOG:  aborting any active transactions
newdle-postgres-1  | 2022-11-30 09:11:02.653 UTC [49] LOG:  background worker "logical replication launcher" (PID 55) exited with exit code 1
newdle-postgres-1  | 2022-11-30 09:11:02.653 UTC [50] LOG:  shutting down
newdle-postgres-1  | 2022-11-30 09:11:02.657 UTC [50] LOG:  checkpoint starting: shutdown immediate    
newdle-postgres-1  | 2022-11-30 09:11:02.769 UTC [50] LOG:  checkpoint complete: wrote 918 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.031 s, sync=0.071 s, total=0.116 s; sync files=250, longest=0.027 s, average=0.001 s; distance=4217 kB, estimate=4217 kB
newdle-postgres-1  | 2022-11-30 09:11:02.773 UTC [49] LOG:  database system is shut down
newdle-postgres-1  |  done
newdle-postgres-1  | server stopped
newdle-postgres-1  | 
newdle-postgres-1  | PostgreSQL init process complete; ready for start up.
newdle-postgres-1  | 
newdle-postgres-1  | 2022-11-30 09:11:02.873 UTC [1] LOG:  starting PostgreSQL 15.1 (Debian 15.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
newdle-postgres-1  | 2022-11-30 09:11:02.874 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
newdle-postgres-1  | 2022-11-30 09:11:02.874 UTC [1] LOG:  listening on IPv6 address "::", port 5432   
newdle-postgres-1  | 2022-11-30 09:11:02.882 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
newdle-postgres-1  | 2022-11-30 09:11:02.888 UTC [64] LOG:  database system was shut down at 2022-11-30 09:11:02 UTC
newdle-postgres-1  | 2022-11-30 09:11:02.895 UTC [1] LOG:  database system is ready to accept connections
newdle-postgres-1  | 2022-11-30 09:11:11.554 UTC [75] FATAL:  role "postgres" does not exist
newdle             | exec /run.sh: no such file or directory
newdle exited with code 1
newdle-postgres-1  | 2022-11-30 09:11:21.716 UTC [83] FATAL:  role "postgres" does not exist
newdle-postgres-1  | 2022-11-30 09:11:31.877 UTC [92] FATAL:  role "postgres" does not exist```

System:
Windows 10 with docker desktop

@CustomIcon
Copy link
Author

CustomIcon commented Nov 30, 2022

although we an see:

newdle             | exec /run.sh: no such file or directory
newdle exited with code 1

i have tried to bash into the container and i an see the file is there;

newdle@8029be75409b:/$ ls
bin   dev  home  lib64  mnt     opt   root  run.sh  srv  tmp  uwsgi.ini
boot  etc  lib   media  newdle  proc  run   sbin    sys  usr  var      
newdle@8029be75409b:/$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant