The error message reads:
[+] Running 2/0
✔ Container local-setup-postgres-1 Created 0.0s
✔ Container local-setup-zksync-1 Created 0.0s
Attaching to postgres-1, zksync-1
postgres-1 |
postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-1 |
postgres-1 | 2024-03-29 05:59:33.635 UTC [1] LOG: starting PostgreSQL 12.18 (Debian 12.18-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres-1 | 2024-03-29 05:59:33.635 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2024-03-29 05:59:33.635 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2024-03-29 05:59:33.832 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2024-03-29 05:59:34.104 UTC [27] LOG: database system was shut down at 2024-03-29 05:56:20 UTC
postgres-1 | 2024-03-29 05:59:34.204 UTC [1] LOG: database system is ready to accept connections
zksync-1 | /usr/bin/entrypoint.sh: line 44: /etc/env/dev.env: No such file or directory
zksync-1 exited with code 1
when i run
./start
The error message reads: [+] Running 2/0 ✔ Container local-setup-postgres-1 Created 0.0s ✔ Container local-setup-zksync-1 Created 0.0s Attaching to postgres-1, zksync-1 postgres-1 | postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres-1 | postgres-1 | 2024-03-29 05:59:33.635 UTC [1] LOG: starting PostgreSQL 12.18 (Debian 12.18-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit postgres-1 | 2024-03-29 05:59:33.635 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres-1 | 2024-03-29 05:59:33.635 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres-1 | 2024-03-29 05:59:33.832 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres-1 | 2024-03-29 05:59:34.104 UTC [27] LOG: database system was shut down at 2024-03-29 05:56:20 UTC postgres-1 | 2024-03-29 05:59:34.204 UTC [1] LOG: database system is ready to accept connections zksync-1 | /usr/bin/entrypoint.sh: line 44: /etc/env/dev.env: No such file or directory zksync-1 exited with code 1
my docker compose.yml is:
The error seems to indicate that zksync is unable to connect to PostgreSQL. How can I fix this?