deso-protocol / run

Run your own DeSo node
https://docs.deso.org
190 stars 94 forks source link

backend & nginx both exiting #57

Closed vinnymeller closed 3 years ago

vinnymeller commented 3 years ago

When I do a clean pull and then run run.sh I get the following log output:

This is new as of the last few days. I was running my node over the weekend

~/dev/bitclout/run ~/dev/bitclout/run
Pulling backend  ... done
Pulling frontend ... done
Pulling nginx    ... done
Creating backend  ... done
Creating frontend ... done
Creating nginx    ... done
Attaching to frontend, backend, nginx
frontend    | Loading Caddy config from file: /app/Caddyfile.dev
nginx       | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx       | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
frontend    | {"level":"info","ts":1621479483.483862,"msg":"using provided configuration","config_file":"/app/Caddyfile.dev","config_adapter":""}
nginx       | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
frontend    | {"level":"warn","ts":1621479483.4848008,"logger":"admin","msg":"admin endpoint disabled"}
backend exited with code 0
nginx       | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
frontend    | {"level":"info","ts":1621479483.485014,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0003e6c40"}
nginx       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
frontend    | {"level":"info","ts":1621479483.4853094,"logger":"tls","msg":"cleaned up storage units"}
frontend    | {"level":"info","ts":1621479483.485399,"msg":"autosaved config","file":"/config/caddy/autosave.json"}
frontend    | {"level":"info","ts":1621479483.4854043,"msg":"serving initial configuration"}
nginx       | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx       | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx       | 2021/05/20 02:58:04 [emerg] 1#1: host not found in upstream "backend" in /etc/nginx/nginx.conf:14
nginx       | nginx: [emerg] host not found in upstream "backend" in /etc/nginx/nginx.conf:14
nginx exited with code 1
vinnymeller commented 3 years ago

the steps from https://docs.bitclout.com/code/dev-setup work fine

is this docker setup deprecated in favor of just running frontend and backend separately?

tijno commented 3 years ago

this is a workaround i used - am mobile so cant give full details

504B04DE-B9AC-44C0-9443-146F34609A1B

mvanhalen commented 3 years ago

This worked for me @tijno

addanus commented 3 years ago

confirmed. worked for me too

maebeam commented 3 years ago

Fixing this now, thanks for the reports all

maebeam commented 3 years ago

Hey everyone, if you pull main everything should be in tip top shape! Thanks for your patience, the last week has been quite crazy 😄

Cardoso-topdev commented 3 years ago

Hi @maebeam ! I'm trying to run docker-composer-dev.yml, but it shows errors. Of course, I've got pull, just a few mins ago. Would you like to help me to solve this problem?

Docker Compose is now in the Docker CLI, try `docker compose up`

Recreating backend  ... error
Recreating frontend ...

ERROR: for backend  Cannot start service backend: OCI runtime create failed: container_linux.go:367: startiRecreating frontend ... done

ERROR: for backend  Cannot start service backend: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "run": executable file not found in $PATH: unknown
ERROR: Encountered errors while bringing up the project.
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker-compose -f "docker-compose.dev.yml" up -d --build" terminated with exit code: 1.