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

oj-backend 和 judge-server 為 unhealthy #100

Open
AaronLin1229 opened this issue Jan 1, 2023 · 0 comments
Open

oj-backend 和 judge-server 為 unhealthy #100

AaronLin1229 opened this issue Jan 1, 2023 · 0 comments

Comments

@AaronLin1229
Copy link

AaronLin1229 commented Jan 1, 2023

執行docker ps -a時顯示以下:

CONTAINER ID   IMAGE                                                        COMMAND                  CREATED          STATUS                      PORTS                                         NAMES
04b7c49e8524   registry.cn-hangzhou.aliyuncs.com/onlinejudge/oj_backend     "/bin/sh -c /app/dep…"   44 seconds ago   Up 42 seconds (unhealthy)   0.0.0.0:443->1443/tcp, 0.0.0.0:80->8000/tcp   oj-backend
60ec65c0d0ed   postgres:10-alpine                                           "docker-entrypoint.s…"   46 seconds ago   Up 44 seconds               5432/tcp                                      oj-postgres
3e1ff1108d2c   registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server   "/bin/sh -c /code/en…"   46 seconds ago   Up 44 seconds (unhealthy)   8080/tcp                                      judge-server
5428e1bc9ee7   redis:4.0-alpine                                             "docker-entrypoint.s…"   46 seconds ago   Up 44 seconds               6379/tcp                                      oj-redis

執行docker logs oj-postgres時,顯示以下:

The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... UTC
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2023-01-01 03:58:04.073 UTC [30] WARNING:  no usable system locales were found
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
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.

Success. You can now start the database server using:

    pg_ctl -D /var/lib/postgresql/data -l logfile start

waiting for server to start....2023-01-01 03:58:05.358 UTC [36] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-01-01 03:58:05.390 UTC [37] LOG:  database system was shut down at 2023-01-01 03:58:05 UTC
2023-01-01 03:58:05.398 UTC [36] LOG:  database system is ready to accept connections
 done
server started
CREATE DATABASE


/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

2023-01-01 03:58:05.748 UTC [36] LOG:  received fast shutdown request
waiting for server to shut down....2023-01-01 03:58:05.750 UTC [36] LOG:  aborting any active transactions
2023-01-01 03:58:05.752 UTC [36] LOG:  worker process: logical replication launcher (PID 43) exited with exit code 1
2023-01-01 03:58:05.752 UTC [38] LOG:  shutting down
2023-01-01 03:58:05.766 UTC [36] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2023-01-01 03:58:05.859 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-01-01 03:58:05.860 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2023-01-01 03:58:05.865 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-01-01 03:58:05.883 UTC [50] LOG:  database system was shut down at 2023-01-01 03:58:05 UTC
2023-01-01 03:58:05.887 UTC [1] LOG:  database system is ready to accept connections
@AaronLin1229 AaronLin1229 changed the title oj-backend 和 oj-backend 和 judge-server 為 unhealthy Jan 1, 2023
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