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

docker-compose up | api-umbrella_app_1 container exited with error code 2. #650

Open
JK-0 opened this issue Nov 2, 2023 · 1 comment
Open

Comments

@JK-0
Copy link

JK-0 commented Nov 2, 2023

Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

Docker version 24.0.7, build afdd53b
docker-compose version 1.29.2, build unknown

Referance
https://api-umbrella.readthedocs.io/en/latest/developer/dev-setup.html

CMD Execute

# Get the code and spinup your development VM
$ git clone https://github.com/NREL/api-umbrella.git
$ cd api-umbrella
$ docker-compose up

Logs

jigneshk@INDLAPTOP979:~/Documents/api_umbrela/api-umbrella$ docker-compose up
Starting api-umbrella_elasticsearch_1 ... done
Starting api-umbrella_postgres_1      ... done
Starting api-umbrella_app_1           ... done
Attaching to api-umbrella_elasticsearch_1, api-umbrella_postgres_1, api-umbrella_app_1
app_1            | + mkdir -p /etc/api-umbrella
elasticsearch_1  | Disabling execution of install_demo_configuration.sh for OpenSearch Security Plugin
elasticsearch_1  | Disabling OpenSearch Security Plugin
postgres_1       | 
postgres_1       | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1       | 
postgres_1       | 2023-11-02 06:48:27.119 UTC [1] LOG:  starting PostgreSQL 12.16 (Debian 12.16-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres_1       | 2023-11-02 06:48:27.119 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1       | 2023-11-02 06:48:27.119 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1       | 2023-11-02 06:48:27.125 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1       | 2023-11-02 06:48:27.154 UTC [27] LOG:  database system was shut down at 2023-11-02 06:05:47 UTC
postgres_1       | 2023-11-02 06:48:27.168 UTC [1] LOG:  database system is ready to accept connections
app_1            | + echo 'app_env: development'
app_1            | + echo 'http_port: 8200'
app_1            | + echo 'https_port: 8201'
app_1            | + echo log:
app_1            | + echo '  destination: console'
app_1            | + echo postgresql:
app_1            | + echo '  password: dev_password'
app_1            | + echo '  migrations:'
app_1            | + echo '    password: dev_password'
app_1            | + mkdir -p /build/.task
app_1            | + ln -snf /build/.task /app/.task
app_1            | + mkdir -p /build/build/work/stage/opt/api-umbrella/var/log
app_1            | + ln -snf /build/build/work/stage/opt/api-umbrella /opt/api-umbrella
app_1            | + ln -snf /build/build/work/stage/opt/api-umbrella/var/log /var/log/api-umbrella
app_1            | + ln -snf /build/build/work /app/build/work
app_1            | + mkdir -p /build/test/tmp/run
app_1            | + mkdir -p /app/test/tmp
app_1            | + ln -snf /build/test/tmp/run /app/test/tmp/run
app_1            | + mkdir -p /app/build/work/tasks/app-deps/admin-ui/yarn/_persist/node_modules
app_1            | + ln -snf /app/build/work/tasks/app-deps/admin-ui/yarn/_persist/node_modules /app/src/api-umbrella/admin-ui/node_modules
app_1            | + mkdir -p /app/build/work/tasks/app-deps/example-website/yarn/_persist/node_modules
app_1            | + ln -snf /app/build/work/tasks/app-deps/example-website/yarn/_persist/node_modules /app/src/api-umbrella/example-website/node_modules
app_1            | + mkdir -p /app/build/work/tasks/app-deps/web-app/yarn/_persist/node_modules
app_1            | + ln -snf /app/build/work/tasks/app-deps/web-app/yarn/_persist/node_modules /app/src/api-umbrella/web-app/node_modules
app_1            | + mkdir -p /app/build/work/tasks/test-deps/bundle/_persist/.bundle
app_1            | + ln -snf /app/build/work/tasks/test-deps/bundle/_persist/.bundle /app/.bundle
app_1            | + mkdir -p /app/src/api-umbrella/admin-ui/tmp
app_1            | + chmod 1777 /app/src/api-umbrella/admin-ui/tmp
app_1            | + exec /app/docker/dev/docker-start
app_1            | + rm -f /opt/api-umbrella/var/run/rsyslogd.pid '/tmp/.s.PGSQL.*'
app_1            | + rm -f /var/log/api-umbrella/trafficserver/access.log /var/log/api-umbrella/trafficserver/diags.log /var/log/api-umbrella/trafficserver/error.log /var/log/api-umbrella/trafficserver/manager.log /var/log/api-umbrella/trafficserver/traffic.out
app_1            | + make
app_1            | make: *** No targets specified and no makefile found.  Stop.
api-umbrella_app_1 exited with code 2
elasticsearch_1  | [2023-11-02T06:48:34,120][INFO ][o.o.n.Node               ] [8db436bbc0d5] version[1.3.2], pid[10], build[tar/6febcf7b53ff189de767e460e905e9e5aeecc8cb/2022-05-04T03:58:48.328641Z], OS[Linux/6.2.0-36-generic/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/11.0.15/11.0.15+10]

Please inform me if I've overlooked anything. I've attempted using various release tags, but I'm encountering the same error. Your assistance would be greatly valued.

image

Thanks & Regards,
Jignesh Kotadiya

@Baelfur
Copy link

Baelfur commented Jun 3, 2024

Same issue WSL

Ubuntu 22.04.2 LTS
Docker version 26.0.0, build 2ae903e
Docker Compose version v2.27.0-desktop.2

user@host:~/dev/umbrela2/api-umbrella$ docker ps -a
CONTAINER ID   IMAGE                                                COMMAND                  CREATED          STATUS                       PORTS                                                                               NAMES
4c579ebadf78   api-umbrella-app                                     "/app/docker/dev/doc…"   5 minutes ago    Exited (2) 5 minutes ago                                                                                         api-umbrella-app-1
d2707312ceee   api-umbrella-opensearch                              "./opensearch-docker…"   10 minutes ago   Up 10 minutes                9300/tcp, 9600/tcp, 9650/tcp, 0.0.0.0:14002->9200/tcp                               api-umbrella-opensearch-1
2d78391184fb   postgres:12                                          "docker-entrypoint.s…"   10 minutes ago   Up 10 minutes                0.0.0.0:14011->5432/tcp                                                             api-umbrella-postgres-1
2024-06-02 23:57:49 + mkdir -p /etc/api-umbrella
2024-06-02 23:57:49 + echo 'app_env: development'
2024-06-02 23:57:49 + echo 'http_port: 8200'
2024-06-02 23:57:49 + echo 'https_port: 8201'
2024-06-02 23:57:49 + echo log:
2024-06-02 23:57:49 + echo '  destination: console'
2024-06-02 23:57:49 + echo postgresql:
2024-06-02 23:57:49 + echo '  password: dev_password'
2024-06-02 23:57:49 + echo '  migrations:'
2024-06-02 23:57:49 + echo '    password: dev_password'
2024-06-02 23:57:49 + mkdir -p /build/.task
2024-06-02 23:57:49 + ln -snf /build/.task /app/.task
2024-06-02 23:57:49 + mkdir -p /build/build/work/stage/opt/api-umbrella/var/log
2024-06-02 23:57:49 + ln -snf /build/build/work/stage/opt/api-umbrella /opt/api-umbrella
2024-06-02 23:57:49 + ln -snf /build/build/work/stage/opt/api-umbrella/var/log /var/log/api-umbrella
2024-06-02 23:57:49 + ln -snf /build/build/work /app/build/work
2024-06-02 23:57:49 + mkdir -p /build/test/tmp/run
2024-06-02 23:57:49 + mkdir -p /app/test/tmp
2024-06-02 23:57:49 + ln -snf /build/test/tmp/run /app/test/tmp/run
2024-06-02 23:57:49 + mkdir -p /app/build/work/tasks/app-deps/admin-ui/yarn/_persist/node_modules
2024-06-02 23:57:49 + ln -snf /app/build/work/tasks/app-deps/admin-ui/yarn/_persist/node_modules /app/src/api-umbrella/admin-ui/node_modules
2024-06-02 23:57:49 + mkdir -p /app/build/work/tasks/app-deps/example-website/yarn/_persist/node_modules
2024-06-02 23:57:49 + ln -snf /app/build/work/tasks/app-deps/example-website/yarn/_persist/node_modules /app/src/api-umbrella/example-website/node_modules
2024-06-02 23:57:49 + mkdir -p /app/build/work/tasks/app-deps/web-app/yarn/_persist/node_modules
2024-06-02 23:57:49 + ln -snf /app/build/work/tasks/app-deps/web-app/yarn/_persist/node_modules /app/src/api-umbrella/web-app/node_modules
2024-06-02 23:57:49 + mkdir -p /app/build/work/tasks/test-deps/bundle/_persist/.bundle
2024-06-02 23:57:49 + ln -snf /app/build/work/tasks/test-deps/bundle/_persist/.bundle /app/.bundle
2024-06-02 23:57:49 + mkdir -p /app/src/api-umbrella/admin-ui/tmp
2024-06-02 23:57:49 + chmod 1777 /app/src/api-umbrella/admin-ui/tmp
2024-06-02 23:57:49 + exec /app/docker/dev/docker-start
2024-06-02 23:57:49 + rm -f '/tmp/.s.PGSQL.*'
2024-06-02 23:57:49 + rm -f /var/log/api-umbrella/trafficserver/error.log
2024-06-02 23:57:49 + make
2024-06-02 23:57:49 make: *** No targets specified and no makefile found.  Stop.

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

2 participants