Skip to content

docker-compose deploy question #774

@seklure

Description

@seklure

Description

When deploying the project on Ubuntu 22.04 system and starting the earthworm_logtoPostgres_1 container, the error prompt is as follows:
Ubuntu 22.04 系统部署项目的时候在earthworm_logtoPostgres_1容器启动的时候,报错提示如下:

docker logs -n 200 -f earthworm_logtoPostgres_1
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 dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... UTC
creating configuration files ... ok
running bootstrap script ... ok
sh: locale: not found
2025-10-19 11:16:37.526 UTC [35] WARNING: no usable system locales were found
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

Success. You can now start the database server using:

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

initdb: 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.
waiting for server to start....2025-10-19 11:16:41.741 UTC [41] LOG: starting PostgreSQL 14.19 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
2025-10-19 11:16:41.794 UTC [41] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-10-19 11:16:42.028 UTC [42] LOG: database system was shut down at 2025-10-19 11:16:38 UTC
2025-10-19 11:16:42.138 UTC [41] LOG: database system is ready to accept connections
done
server started

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

waiting for server to shut down....2025-10-19 11:16:42.241 UTC [41] LOG: received fast shutdown request
2025-10-19 11:16:42.318 UTC [41] LOG: aborting any active transactions
2025-10-19 11:16:42.322 UTC [41] LOG: background worker "logical replication launcher" (PID 48) exited with exit code 1
2025-10-19 11:16:42.322 UTC [43] LOG: shutting down
2025-10-19 11:16:42.819 UTC [41] LOG: database system is shut down
done
server stopped

PostgreSQL init process complete; ready for start up.

2025-10-19 11:16:43.208 UTC [1] LOG: starting PostgreSQL 14.19 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit
2025-10-19 11:16:43.208 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2025-10-19 11:16:43.208 UTC [1] LOG: listening on IPv6 address "::", port 5432
2025-10-19 11:16:43.262 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-10-19 11:16:43.338 UTC [54] LOG: database system was shut down at 2025-10-19 11:16:42 UTC
2025-10-19 11:16:43.375 UTC [1] LOG: database system is ready to accept connections
2025-10-19 11:16:46.727 UTC [67] FATAL: role "root" does not exist
2025-10-19 11:16:51.878 UTC [68] FATAL: database "logto" does not exist
2025-10-19 11:16:56.808 UTC [79] FATAL: role "root" does not exist
2025-10-19 11:17:06.863 UTC [93] FATAL: role "root" does not exist
2025-10-19 11:17:16.915 UTC [103] FATAL: role "root" does not exist
2025-10-19 11:17:26.970 UTC [110] FATAL: role "root" does not exist
2025-10-19 11:17:37.022 UTC [117] FATAL: role "root" does not exist
2025-10-19 11:17:47.072 UTC [125] FATAL: role "root" does not exist
2025-10-19 11:17:57.129 UTC [132] FATAL: role "root" does not exist
2025-10-19 11:18:07.186 UTC [140] FATAL: role "root" does not exist
2025-10-19 11:18:17.238 UTC [147] FATAL: role "root" does not exist
2025-10-19 11:18:27.290 UTC [156] FATAL: role "root" does not exist
2025-10-19 11:18:37.342 UTC [164] FATAL: role "root" does not exist
2025-10-19 11:18:47.394 UTC [174] FATAL: role "root" does not exist
2025-10-19 11:18:57.447 UTC [182] FATAL: role "root" does not exist
2025-10-19 11:19:07.499 UTC [189] FATAL: role "root" does not exist
2025-10-19 11:19:17.557 UTC [197] FATAL: role "root" does not exist
2025-10-19 11:19:27.615 UTC [204] FATAL: role "root" does not exist
2025-10-19 11:19:37.670 UTC [211] FATAL: role "root" does not exist
2025-10-19 11:19:47.731 UTC [219] FATAL: role "root" does not exist
2025-10-19 11:19:57.791 UTC [226] FATAL: role "root" does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions