relaypro-open / dog

A firewall management system.
https://relaypro-open.github.io/dog/
GNU Affero General Public License v3.0
84 stars 5 forks source link

The Dog park GUI is plain white, with only the loading icon rotating continuously after running the dog_on_a_dock.sh script. #13

Open anhdung28888 opened 2 months ago

anhdung28888 commented 2 months ago

My dog_on_a_dock.sh output as below. I suspect that the error message line Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown broke something during the Attaching to <container name> process.

ubuntu@ubuntu-2204:~/dog$ sudo ./dog_on_a_dock.sh fatal: destination path 'dog_agent_ex' already exists and is not an empty directory. Already up to date. M Dockerfile.local_deploy Already on 'main' Your branch is up to date with 'origin/main'. fatal: destination path 'dog_agent' already exists and is not an empty directory. Already up to date. M Dockerfile.local_deploy Already on 'feature/ansible_connection' Your branch is up to date with 'origin/feature/ansible_connection'. fatal: destination path 'dog_trainer' already exists and is not an empty directory. Already up to date. Already on 'feature/ansible_connection' Your branch is up to date with 'origin/feature/ansible_connection'. fatal: destination path 'dog_park' already exists and is not an empty directory. Already up to date. fatal: destination path 'csc' already exists and is not an empty directory. Already up to date. WARN[0001] /home/ubuntu/dog/docker-compose.local_deploy.yml: the attribute version is obsolete, it will be ignored, please remove oid potential confusion [+] Building 30.2s (58/70) docker:t=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) s=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 58) => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 38) s=> [dog_trainer internal] load metadata for docker.io/library/erlang:24 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 58) s=> => transferring context: 2B => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 81) s=> [dog_trainer internal] load build context => [dog_trainer internal] load metadata for docker.io/library/erlang:24 s=> CACHED [dog_trainer base 2/9] RUN apt-get update && apt-get install -y less ack lsb-release vim-tiny jq curl => [dog_trainer internal] load .dockerignore s=> CACHED [dog_trainer base 4/9] WORKDIR /data => => transferring context: 2B s=> CACHED [dog_trainer base 6/9] COPY rebar.lock . => [dog_trainer base 1/9] FROM docker.io/library/erlang:24@sha256:58aaff0b30e7e2d63127c2fb365f43d23535e5fb237531962f5ecc232798cd13 s=> CACHED [dog_trainer base 8/9] RUN ./rebar3 --version => [dog_trainer internal] load build context s=> CACHED [dog_trainer compile 1/13] WORKDIR /data => => transferring context: 28.34kB s=> [dog_trainer compile 3/13] COPY .git .git/ => CACHED [dog_trainer base 2/9] RUN apt-get update && apt-get install -y less ack lsb-release vim-tiny jq curl s=> [dog_trainer compile 5/13] COPY priv priv/ => CACHED [dog_trainer base 3/9] RUN mkdir /data s=> [dog_trainer compile 7/13] RUN mkdir -p /etc/dog_trainer => CACHED [dog_trainer base 4/9] WORKDIR /data s=> [dog_trainer compile 9/13] COPY scripts scripts/ => CACHED [dog_trainer base 5/9] COPY rebar.config . s=> [dog_trainer compile 11/13] RUN ./rebar3 release as local_docker => CACHED [dog_trainer base 6/9] COPY rebar.lock . s=> => # _build/default/lib/proper/src/proper_typeserver.erl:2389:24: Warning: variable '_K' is bound multiple times in this pattern => CACHED [dog_trainer base 7/9] COPY rebar3 . s=> => # _build/default/lib/proper/src/proper_typeserver.erl:2389:32: Warning: variable '_K' is bound multiple times in this pattern => CACHED [dog_trainer base 8/9] RUN ./rebar3 --version s=> => # ===> Compiling observer_cli [+] Building 30.4s (58/70) do cker:default => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 38) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 58) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 81) 0.0s => [dog_trainer internal] load metadata for docker.io/library/erlang:24 2.4s => [dog_trainer internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [dog_trainer base 1/9] FROM docker.io/library/erlang:24@sha256:58aaff0b30e7e2d63127c2fb365f43d23535e5fb237531962f5ecc232798 cd13 0.0s => [dog_trainer internal] load build context 0.1s => => transferring context: 28.34kB 0.0s => CACHED [dog_trainer base 2/9] RUN apt-get update && apt-get install -y less ack lsb-release vim-tiny jq curl 0.0s => CACHED [dog_trainer base 3/9] RUN mkdir /data 0.0s => CACHED [dog_trainer base 4/9] WORKDIR /data 0.0s => CACHED [dog_trainer base 5/9] COPY rebar.config . 0.0s => CACHED [dog_trainer base 6/9] COPY rebar.lock . 0.0s => CACHED [dog_trainer base 7/9] COPY rebar3 . 0.0s => CACHED [dog_trainer base 8/9] RUN ./rebar3 --version 0.0s [+] Building 108.4s (219/219) FINISHED docker:default => [flan internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 375B 0.0s => [csc internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 1.07kB 0.0s => [dog_park internal] load metadata for docker.io/library/nginx:latest 3.7s => [csc internal] load metadata for docker.io/library/python:3.9 2.6s => [csc internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [csc 1/5] FROM docker.io/library/python:3.9@sha256:8e0fd8e1bd3caa6ea74d1c408ad5a854c6b8f0e32c2ef9886d27d4d1bb9caeac 0.0s => [csc internal] load build context 0.0s => => transferring context: 92B 0.0s => [flan internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [csc 2/5] WORKDIR /code 0.0s => CACHED [csc 3/5] COPY ./requirements.txt /code/requirements.txt 0.0s => CACHED [csc 4/5] RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt 0.0s => CACHED [csc 5/5] COPY ./app /code/app 0.0s => [csc] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:a0f4a718d9e62be5d87707ba6fc2ebb09f7bc2e24315d357e2a001745f757d84 0.0s => => naming to docker.io/library/dog-csc 0.0s => [dog_park deploy 1/2] FROM docker.io/library/nginx:latest@sha256:447a8665cc1dab95b1ca778e162215839ccbb9189104c79d7ec3a81e 0.0s => [flan internal] load build context 0.0s => => transferring context: 69B 0.0s => CACHED [flan 2/6] RUN mkdir /usr/share/nginx/html/flan_api/ 0.0s => CACHED [flan 3/6] COPY flan_ips /usr/share/nginx/html/flan_api/external/undefined/ 0.0s => CACHED [flan 4/6] COPY flan_ips /usr/share/nginx/html/flan_api/internal/undefined/ 0.0s => CACHED [flan 5/6] COPY vulners_by_hostname /usr/share/nginx/html/flan_api/internal/undefined/ 0.0s => CACHED [flan 6/6] COPY vulners_by_hostname /usr/share/nginx/html/flan_api/external/undefined/ 0.0s => [flan] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:41ee2fcce66ee488fa4d301dbb1fbb733faf4282a00b829e9a11920e76b47de2 0.0s => => naming to docker.io/library/dog-flan 0.0s => [csc] resolving provenance for metadata file 0.0s => [flan] resolving provenance for metadata file 0.0s => [rabbitmq internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 413B 0.0s => [rabbitmq internal] load metadata for docker.io/library/rabbitmq:management 2.5s => [rabbitmq internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [rabbitmq 1/6] FROM docker.io/library/rabbitmq:management@sha256:8952def14de918579ec5373c74b334affd1d0e0d15f566c4dfaf341f 0.0s => [rabbitmq internal] load build context 0.0s => => transferring context: 65B 0.0s => CACHED [rabbitmq 2/6] RUN apt-get update -y && apt-get install -y jq curl 0.0s => CACHED [rabbitmq 3/6] RUN mkdir -p /etc/rabbitmq/certs && mkdir -p /etc/rabbitmq/private && chmod 700 /etc/rabbitmq/pri 0.0s => CACHED [rabbitmq 4/6] COPY 20-ssl.conf /etc/rabbitmq/conf.d/ 0.0s => CACHED [rabbitmq 5/6] COPY csc_certs.sh /etc/rabbitmq/ 0.0s => CACHED [rabbitmq 6/6] RUN chown -R rabbitmq:rabbitmq /etc/rabbitmq 0.0s => [rabbitmq] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:c44a659badf8b5029434ad6bb4d7c0289f048daf48173af5461e2e8ea94637c7 0.0s => => naming to docker.io/library/dog-rabbitmq 0.0s => [rabbitmq] resolving provenance for metadata file 0.0s => [dog_trainer internal] load build definition from Dockerfile.local_deploy 0.0s => => transferring dockerfile: 2.21kB 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 38) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 58) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 81) 0.0s => [dog_agent internal] load metadata for docker.io/library/erlang:24 3.6s => [dog_trainer internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [dog_agent base 1/9] FROM docker.io/library/erlang:24@sha256:58aaff0b30e7e2d63127c2fb365f43d23535e5fb237531962f5ecc232798 0.0s => [dog_trainer internal] load build context 0.1s => => transferring context: 28.34kB 0.0s => CACHED [dog_trainer base 2/9] RUN apt-get update && apt-get install -y less ack lsb-release vim-tiny jq curl 0.0s => CACHED [dog_trainer base 3/9] RUN mkdir /data 0.0s => CACHED [dog_trainer base 4/9] WORKDIR /data 0.0s => CACHED [dog_trainer base 5/9] COPY rebar.config . 0.0s => CACHED [dog_trainer base 6/9] COPY rebar.lock . 0.0s => CACHED [dog_trainer base 7/9] COPY rebar3 . 0.0s => CACHED [dog_trainer base 8/9] RUN ./rebar3 --version 0.0s => CACHED [dog_trainer base 9/9] RUN ./rebar3 get-deps 0.0s => CACHED [dog_trainer compile 1/13] WORKDIR /data 0.0s => CACHED [dog_trainer compile 2/13] COPY --from=base /data/_build _build/ 0.0s => [dog_trainer compile 3/13] COPY .git .git/ 0.2s => [dog_trainer compile 4/13] COPY src src/ 0.1s => [dog_trainer compile 5/13] COPY priv priv/ 0.0s => [dog_trainer compile 6/13] COPY config config/ 0.1s => [dog_trainer compile 7/13] RUN mkdir -p /etc/dog_trainer 1.8s => [dog_trainer compile 8/13] COPY include include/ 0.1s => [dog_trainer compile 9/13] COPY scripts scripts/ 0.1s => [dog_trainer compile 10/13] RUN find /data/_build 0.8s => [dog_trainer compile 11/13] RUN ./rebar3 release as local_docker 65.5s => [dog_trainer compile 12/13] RUN pwd 0.4s => [dog_trainer compile 13/13] RUN find . 1.8s => [dog_trainer deploy 1/9] RUN mkdir -p /opt/dog_trainer 0.6s => [dog_trainer deploy 2/9] RUN mkdir -p /var/log/dog_trainer 1.3s => [dog_trainer deploy 3/9] RUN mkdir -p /tmp/dog_trainer 0.9s => [dog_trainer deploy 4/9] COPY --from=compile /data/_build/default/rel/dog_trainer /opt/dog_trainer 0.8s => [dog_trainer deploy 5/9] RUN ls -latr /var/log/dog_trainer 0.6s => [dog_trainer deploy 6/9] RUN mkdir /etc/rabbitmq 1.2s => [dog_trainer deploy 7/9] COPY csc_certs.sh /etc/rabbitmq/ 0.1s => [dog_trainer deploy 8/9] RUN mkdir -p /etc/dog_trainer/certs && mkdir -p /etc/dog_trainer/private && chmod 700 /etc/dog 1.3s => [dog_trainer deploy 9/9] RUN tar czf /tmp/dog_trainer.tar.gz /opt/dog_trainer 6.3s => [dog_trainer] exporting to image 1.5s => => exporting layers 1.5s => => writing image sha256:6700229182264c5a5c41a8dfd39d6bd4b8026524a679c25bece0c5f37db22cc3 0.0s => => naming to docker.io/library/dog-dog_trainer 0.0s => [dog_trainer] resolving provenance for metadata file 0.0s => [dog_agent_ex internal] load build definition from Dockerfile.local_deploy 0.0s => => transferring dockerfile: 1.90kB 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) 0.0s => [dog_agent internal] load build definition from Dockerfile.local_deploy 0.0s => => transferring dockerfile: 2.22kB 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 25) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 40) 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 72) 0.0s => [kong internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 631B 0.0s => [dog_park internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.27kB 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2) 0.0s => [kong internal] load metadata for docker.io/kong/kong:latest-ubuntu 2.4s => [dog_agent_ex internal] load metadata for docker.io/library/elixir:1.14 2.6s => [dog_park internal] load metadata for docker.io/chekote/node:10.16.2-alpine 2.5s => [dog_agent internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [dog_agent internal] load build context 0.1s => => transferring context: 19.77kB 0.1s => CACHED [dog_agent base 2/9] RUN apt-get update && apt-get install -y libcap-dev iptables ipset less ack lsb-release vim 0.0s => CACHED [dog_agent base 3/9] RUN mkdir /data 0.0s => CACHED [dog_agent base 4/9] WORKDIR /data 0.0s => CACHED [dog_agent base 5/9] COPY rebar.config rebar.config 0.0s => CACHED [dog_agent base 6/9] COPY rebar.lock . 0.0s => CACHED [dog_agent base 7/9] COPY rebar3 . 0.0s => CACHED [dog_agent base 8/9] RUN ./rebar3 deps 0.0s => CACHED [dog_agent base 9/9] RUN ./rebar3 compile 0.0s => CACHED [dog_agent compile 1/5] WORKDIR /data 0.0s => [dog_agent compile 2/5] COPY . . 0.2s => [dog_agent compile 3/5] COPY --from=base /data/_build . 0.9s => [dog_agent compile 4/5] RUN ./rebar3 --version 1.6s => [kong internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [kong 1/7] FROM docker.io/kong/kong:latest-ubuntu@sha256:39e9112930c226a005c646387b245aae5a4c60e5724c014f658da95452de4f14 0.0s => [kong internal] load build context 0.0s => => transferring context: 30B 0.0s => [dog_park internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [kong 2/7] RUN whoami 0.0s => CACHED [kong 3/7] RUN apt-get update && apt-get install -y curl vim-tiny httpie jq 0.0s => CACHED [kong 4/7] COPY kong.yml kong.yml 0.0s => CACHED [kong 5/7] RUN chown kong:kong kong.yml 0.0s => CACHED [kong 6/7] RUN which kong 0.0s => CACHED [kong 7/7] RUN which http 0.0s => [kong] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:ab6af52ee1fe05ecbf77b287b16780b4f6d162d20f6676ee9e13f65af412373c 0.0s => => naming to docker.io/library/dog-kong 0.0s => [dog_park internal] load build context 0.1s => => transferring context: 6.56kB 0.0s => [kong] resolving provenance for metadata file 0.0s => [dog_park base 1/3] FROM docker.io/chekote/node:10.16.2-alpine@sha256:ddbbb27bbf7c1ad7a4856d93406ad954e4130c2cef6eff5f751 0.0s => [dog_agent_ex internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [dog_park base 2/3] WORKDIR /data 0.0s => CACHED [dog_park base 3/3] COPY package.json . 0.0s => CACHED [dog_park dependencies 1/3] RUN mkdir dog_park 0.0s => CACHED [dog_park dependencies 2/3] RUN yarn install 0.0s => CACHED [dog_park dependencies 3/3] RUN ls -latr /data 0.0s => CACHED [dog_park release 1/4] COPY --from=dependencies /data/node_modules ./node_modules 0.0s => CACHED [dog_park release 2/4] COPY . . 0.0s => CACHED [dog_park release 3/4] RUN REACT_APP_DOG_API_ENV=local REACT_APP_DOG_API_HOST=http://dog yarn build 0.0s => CACHED [dog_park release 4/4] RUN cd build; tar --exclude="build/service-worker.js" -czvf /tmp/dog_park-local.tar.gz 0.0s => CACHED [dog_park deploy 2/2] COPY --from=release /data/build /usr/share/nginx/html 0.0s => [dog_agent_ex base 1/39] FROM docker.io/library/elixir:1.14@sha256:199a29fbb9b1e971bfb870065818f7849b0dc26578f3ad38ba315 0.0s => [dog_agent_ex internal] load build context 0.0s => => transferring context: 1.13kB 0.0s => [dog_park] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:cfab752c5a95f50e0b3f5bcc663c310e461f4df1759832b869f8175c65bd1bf2 0.0s => => naming to docker.io/library/dog-dog_park 0.0s => CACHED [dog_agent_ex base 2/39] RUN apt-get update && apt-get install -y libcap-dev iptables ipset less ack lsb-release 0.0s => CACHED [dog_agent_ex base 3/39] WORKDIR /tmp 0.0s => CACHED [dog_agent_ex base 4/39] RUN wget -q https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz 0.0s => CACHED [dog_agent_ex base 5/39] RUN tar xf zig-linux-x86_64-0.10.1.tar.xz 0.0s => CACHED [dog_agent_ex base 6/39] RUN zig version 0.0s => CACHED [dog_agent_ex base 7/39] RUN mkdir -p /opt/dog_ex 0.0s => CACHED [dog_agent_ex base 8/39] RUN mkdir -p /etc/dog_ex 0.0s => CACHED [dog_agent_ex base 9/39] RUN mkdir -p /etc/iptables 0.0s => CACHED [dog_agent_ex base 10/39] RUN mkdir -p /var/log/dog_ex 0.0s => CACHED [dog_agent_ex base 11/39] RUN mkdir -p /home/dog/bin 0.0s => CACHED [dog_agent_ex base 12/39] RUN cp /usr/sbin/ipset /home/dog/bin/ipset 0.0s => CACHED [dog_agent_ex base 13/39] RUN cp /usr/sbin/iptables-save /home/dog/bin/ 0.0s => CACHED [dog_agent_ex base 14/39] RUN cp /usr/sbin/ip6tables-save /home/dog/bin/ 0.0s => CACHED [dog_agent_ex base 15/39] RUN cp /usr/sbin/iptables-restore /home/dog/bin/ 0.0s => CACHED [dog_agent_ex base 16/39] RUN cp /usr/sbin/ip6tables-restore /home/dog/bin/ 0.0s => CACHED [dog_agent_ex base 17/39] RUN ls -latr /opt/dog_ex 0.0s => CACHED [dog_agent_ex base 18/39] RUN mkdir /etc/rabbitmq 0.0s => CACHED [dog_agent_ex base 19/39] COPY csc_certs.sh /etc/rabbitmq/ 0.0s => CACHED [dog_agent_ex base 20/39] RUN mkdir -p /etc/dog_ex/certs && mkdir -p /etc/dog_ex/private && chmod 700 /etc/dog_e 0.0s => CACHED [dog_agent_ex base 21/39] RUN ln -s /usr/bin/python3 /usr/bin/python 0.0s => CACHED [dog_agent_ex base 22/39] RUN mkdir /data 0.0s => CACHED [dog_agent_ex base 23/39] WORKDIR /data 0.0s => CACHED [dog_agent_ex base 24/39] COPY mix.exs . 0.0s => CACHED [dog_agent_ex base 25/39] COPY mix.lock . 0.0s => CACHED [dog_agent_ex base 26/39] RUN mix local.hex --force 0.0s => CACHED [dog_agent_ex base 27/39] RUN mix local.rebar --force 0.0s => CACHED [dog_agent_ex base 28/39] RUN mix deps.get 0.0s => CACHED [dog_agent_ex base 29/39] RUN mix deps.compile 0.0s => CACHED [dog_agent_ex base 30/39] WORKDIR /data 0.0s => CACHED [dog_agent_ex base 31/39] COPY lib lib 0.0s => CACHED [dog_agent_ex base 32/39] RUN mix compile 0.0s => CACHED [dog_agent_ex base 33/39] COPY config/config.exs config/ 0.0s => CACHED [dog_agent_ex base 34/39] COPY config/runtime.dev.exs config/runtime.exs 0.0s => CACHED [dog_agent_ex base 35/39] COPY config/dot_env.dev.config /etc/dog_ex/dot_env.config 0.0s => CACHED [dog_agent_ex base 36/39] COPY config/config.json.dev /etc/dog_ex/config.json 0.0s => CACHED [dog_agent_ex base 37/39] RUN mix release dog 0.0s => CACHED [dog_agent_ex base 38/39] RUN mv /data/_build/dev/rel/dog/ /opt/dog_ex/ 0.0s => CACHED [dog_agent_ex base 39/39] RUN tar czf /tmp/dog_agent_ex.tar.gz /opt/dog_ex 0.0s => CACHED [dog_agent_ex tar 1/1] COPY --from=base /tmp/dog_agent_ex.tar.gz / 0.0s => [dog_agent_ex] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:bd977305c728d09394799ed0d5b0a04736140f04b9b781c252aed14202a60d2b 0.0s => => naming to docker.io/library/dog-dog_agent_ex 0.0s => [dog_park] resolving provenance for metadata file 0.0s => [dog_agent_ex] resolving provenance for metadata file 0.0s => [dog_agent compile 5/5] RUN ./rebar3 release as local_docker 7.0s => CACHED [dog_agent deploy 1/19] RUN mkdir -p /opt/dog 0.0s => CACHED [dog_agent deploy 2/19] RUN mkdir -p /etc/dog 0.0s => CACHED [dog_agent deploy 3/19] RUN mkdir -p /etc/iptables 0.0s => CACHED [dog_agent deploy 4/19] COPY config/config.json.local_docker /etc/dog/config.json 0.0s => CACHED [dog_agent deploy 5/19] RUN mkdir -p /var/log/dog 0.0s => CACHED [dog_agent deploy 6/19] COPY --from=compile /data/_build/default/rel/dog /opt/dog 0.0s => CACHED [dog_agent deploy 7/19] RUN ls /opt/dog/lib 0.0s => CACHED [dog_agent deploy 8/19] RUN chmod 4555 /opt/dog/lib/erlexec-*/priv/x86_64-pc-linux-gnu/exec-port 0.0s => CACHED [dog_agent deploy 9/19] RUN mkdir -p /home/dog/bin 0.0s => CACHED [dog_agent deploy 10/19] RUN cp /usr/sbin/ipset /home/dog/bin/ipset 0.0s => CACHED [dog_agent deploy 11/19] RUN cp /usr/sbin/iptables-save /home/dog/bin/ 0.0s => CACHED [dog_agent deploy 12/19] RUN cp /usr/sbin/ip6tables-save /home/dog/bin/ 0.0s => CACHED [dog_agent deploy 13/19] RUN cp /usr/sbin/iptables-restore /home/dog/bin/ 0.0s => CACHED [dog_agent deploy 14/19] RUN cp /usr/sbin/ip6tables-restore /home/dog/bin/ 0.0s => CACHED [dog_agent deploy 15/19] RUN ls -latr /opt/dog 0.0s => CACHED [dog_agent deploy 16/19] RUN mkdir /etc/rabbitmq 0.0s => CACHED [dog_agent deploy 17/19] COPY csc_certs.sh /etc/rabbitmq/ 0.0s => CACHED [dog_agent deploy 18/19] RUN mkdir -p /etc/dog/certs && mkdir -p /etc/dog/private && chmod 700 /etc/dog/private 0.0s => CACHED [dog_agent deploy 19/19] RUN tar czf /tmp/dog_agent.tar.gz /opt/dog 0.0s => [dog_agent] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:aa4e324e9e8ee513b6fee94b1e3dfdd049ec47317d74efabf267d41774247065 0.0s => => naming to docker.io/library/dog-dog_agent 0.0s => [dog_agent] resolving provenance for metadata file 0.0s => [control internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.91kB 0.0s => [control internal] load metadata for docker.io/library/ubuntu:23.04 2.5s => [control internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [control 1/29] FROM docker.io/library/ubuntu:23.04@sha256:5a828e28de105c3d7821c4442f0f5d1c52dc16acf4999d5f31a3bc0f03f06e 0.0s => [control internal] load build context 0.0s => => transferring context: 1.39kB 0.0s => CACHED [control 2/29] RUN whoami 0.0s => CACHED [control 3/29] RUN ln -s /usr/share/zoneinfo/UTC /etc/localtime 0.0s => CACHED [control 4/29] RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y --no-install-recommends 0.0s => CACHED [control 5/29] RUN git clone --depth=1 https://github.com/relaypro-open/terraform-provider-dog.git 0.0s => CACHED [control 6/29] WORKDIR /terraform-provider-dog 0.0s => CACHED [control 7/29] RUN make 0.0s => CACHED [control 8/29] WORKDIR /terraform-provider-dog/dog-import 0.0s => CACHED [control 9/29] RUN go mod download 0.0s => CACHED [control 10/29] RUN go build 0.0s => CACHED [control 11/29] RUN find / -name dog-import -type f 0.0s => CACHED [control 12/29] RUN cp /terraform-provider-dog/dog-import/dog-import /bin/dog-import 0.0s => CACHED [control 13/29] COPY ansible ansible 0.0s => CACHED [control 14/29] RUN python3 -m virtualenv ve 0.0s => CACHED [control 15/29] RUN /ve/bin/pip install pyjwt cryptography ipython credstash deepmerge PyYaml 0.0s => CACHED [control 16/29] RUN /ve/bin/pip install -e git+https://github.com/Phonebooth/api-client.git#egg=api-client 0.0s => CACHED [control 17/29] RUN /ve/bin/pip install -e git+https://github.com/relaypro-open/dog_api_python.git#egg=dog_api_pyt 0.0s => CACHED [control 18/29] RUN ansible-galaxy collection install git+https://github.com/relaypro-open/community.dog.git 0.0s => CACHED [control 19/29] COPY dog.yml /ansible/dog.yml 0.0s => CACHED [control 20/29] RUN /ve/bin/pip install rethinkdb python-benedict 0.0s => CACHED [control 21/29] RUN mkdir scripts 0.0s => CACHED [control 22/29] COPY scripts scripts 0.0s => CACHED [control 23/29] RUN curl https://releases.hashicorp.com/terraform/1.3.7/terraform_1.3.7_linux_amd64.zip --output t 0.0s => CACHED [control 24/29] RUN ls -latr 0.0s => CACHED [control 25/29] RUN unzip terraform_1.3.7_linux_amd64.zip -d /bin/ 0.0s => CACHED [control 26/29] COPY terraform terraform 0.0s => CACHED [control 27/29] COPY scripts scripts/ 0.0s => CACHED [control 28/29] RUN chmod u+x scripts/entrypoint.sh 0.0s => [control] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:141f1248db031601eec892f80e8ed4242c30e7d8017227456196f417f3048ef8 0.0s => => naming to docker.io/library/dog-control 0.0s => [control] resolving provenance for metadata file 0.0s WARN[0000] /home/ubuntu/dog/docker-compose.local_deploy.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion [+] Running 11/11 ✔ Container csc Created 0.0s ✔ Container rabbitmq Created 0.0s ✔ Container flan Created 0.0s ✔ Container rethinkdb Created 0.0s ✔ Container dog-trainer Recreated 0.1s ✔ Container dog-park Recreated 0.1s ✔ Container dog-agent-ex Recreated 0.1s ✔ Container kong Recreated 0.1s ✔ Container dog-agent Recreated 0.1s ✔ Container nginx-proxy Recreated 0.1s ✔ Container control Recreated 0.1s Attaching to control, csc, dog-agent, dog-agent-ex, dog-park, dog-trainer, flan, kong, nginx-proxy, rabbitmq, rethinkdb flan | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration flan | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ flan | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh flan | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled flan | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh flan | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh flan | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh flan | /docker-entrypoint.sh: Configuration complete; ready for start up flan | 2024/09/02 10:15:20 [notice] 1#1: using the "epoll" event method flan | 2024/09/02 10:15:20 [notice] 1#1: nginx/1.27.1 flan | 2024/09/02 10:15:20 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) flan | 2024/09/02 10:15:20 [notice] 1#1: OS: Linux 5.15.0-25-generic flan | 2024/09/02 10:15:20 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 flan | 2024/09/02 10:15:20 [notice] 1#1: start worker processes flan | 2024/09/02 10:15:20 [notice] 1#1: start worker process 22 flan | 2024/09/02 10:15:20 [notice] 1#1: start worker process 23 flan | 2024/09/02 10:15:20 [notice] 1#1: start worker process 24 flan | 2024/09/02 10:15:20 [notice] 1#1: start worker process 25 csc | INFO: Started server process [1] csc | INFO: Waiting for application startup. csc | INFO: Application startup complete. csc | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) rethinkdb | Running rethinkdb 2.4.4~0bookworm (x86_64-linux-gnu) (GCC 12.2.0)... rethinkdb | Running on Linux 5.15.0-25-generic x86_64 rethinkdb | Loading data from directory /data/rethinkdb_data rethinkdb | Listening for intracluster connections on port 29015 rethinkdb | Listening for client driver connections on port 28015 rethinkdb | Listening for administrative HTTP connections on port 8080 rethinkdb | Listening on cluster addresses: 127.0.0.1, 172.18.0.3, ::1 rethinkdb | Listening on driver addresses: 127.0.0.1, 172.18.0.3, ::1 rethinkdb | Listening on http addresses: 127.0.0.1, 172.18.0.3, ::1 rethinkdb | Server ready, "cb61ddcdd418_ntm" e846c152-f058-4bb7-a5db-6c7266b8854d dog-park | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration dog-park | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ dog-park | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh dog-park | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf dog-park | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf dog-park | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh dog-park | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh dog-park | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh dog-park | /docker-entrypoint.sh: Configuration complete; ready for start up dog-park | 2024/09/02 10:15:28 [notice] 1#1: using the "epoll" event method dog-park | 2024/09/02 10:15:28 [notice] 1#1: nginx/1.27.1 dog-park | 2024/09/02 10:15:28 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) dog-park | 2024/09/02 10:15:28 [notice] 1#1: OS: Linux 5.15.0-25-generic dog-park | 2024/09/02 10:15:28 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 dog-park | 2024/09/02 10:15:28 [notice] 1#1: start worker processes dog-park | 2024/09/02 10:15:28 [notice] 1#1: start worker process 29 dog-park | 2024/09/02 10:15:28 [notice] 1#1: start worker process 30 dog-park | 2024/09/02 10:15:28 [notice] 1#1: start worker process 31 dog-park | 2024/09/02 10:15:28 [notice] 1#1: start worker process 32 Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2756d7a07b3d dog-kong "/entrypoint.sh /bin…" 11 seconds ago Up Less than a second (health: starting) 0.0.0.0:8000-8001->8000-8001/tcp, :::8000-8001->8000-8001/tcp, 8002-8004/tcp, 0.0.0.0:8443-8444->8443-8444/tcp, :::8443-8444->8443-8444/tcp, 8445-8447/tcp kong acd6280793f1 dog-dog_agent "/bin/sh -c '/bin/ba…" 11 seconds ago Up 2 seconds dog-agent 2a4aea62bb4b dog-dog_park "/docker-entrypoint.…" 11 seconds ago Up 4 seconds 80/tcp, 3030/tcp dog-park 8f1c45cd29de dog-dog_trainer "/bin/sh -c '/bin/ba…" 11 seconds ago Up 4 seconds 0.0.0.0:7070->7070/tcp, :::7070->7070/tcp dog-trainer b347dd7a732d dog-rabbitmq "docker-entrypoint.s…" 2 hours ago Up 6 seconds 4369/tcp, 5671-5672/tcp, 0.0.0.0:5673->5673/tcp, :::5673->5673/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp rabbitmq ffd9d89a193b dog-flan "/docker-entrypoint.…" 2 hours ago Up 9 seconds 80/tcp flan d4f83e58db49 dog-csc "uvicorn app.main:ap…" 2 hours ago Up 9 seconds 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp csc cb61ddcdd418 rethinkdb "rethinkdb --bind all" 2 hours ago Up 9 seconds 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:28015->28015/tcp, :::28015->28015/tcp, 29015/tcp rethinkdb

dgulinobw commented 2 months ago

1) All the containers are running except 'control', which isn't crucial.

2) check to see if dog_trainer is responding to requests, and an agent has attached:


docker exec -it dog-trainer /bin/bash

root@cb7b668eac9e:/data# curl localhost:7070/api/hosts

[{"active":"new","group":"local_group","hostkey":"erlang-node-123","id":"a1e8c732-c1ee-4829-a39f-7a5ad6a72726","name":"f8befe4e5efd"}]```

3) If above works, try the request from the dog_park container:

❯ docker exec -it dog-park /bin/bash root@c02cabd50204:/# curl http://dog_trainer:7070/api/hosts [{"active":"new","group":"local_group","hostkey":"erlang-node-123","id":"a1e8c732-c1ee-4829-a39f-7a5ad6a72726","name":"f8befe4e5efd"}]



4) if 2 and 3 ok, then next step is to test from local browser using web development tools.  Make a request to http://dog, and do a h
![2024-09-02T15:40:07,302991145-04:00](https://github.com/user-attachments/assets/7bfa92c9-f6be-4b8d-9251-b9c916cc15da)
ard refresh (Shift-Ctrl-R) to ensure no cacheing.
![2024-09-02T15:40:07,302991145-04:00](https://github.com/user-attachments/assets/691637dd-defd-4931-bb68-a54a71c42092)
Matevz02 commented 1 month ago

Hi, I'm having the same issue but after curl localhost:7070/api/hosts from dog-trainer it says connection refused. Restarting containers doesn't help and port is open on netstat, fw is down. Any idea why or how to troubleshoot?