listmonk fresh install failed

> [4/4] RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade:
0.311 2023/12/29 07:40:55 init.go:145: reading config: config.toml
0.311 2023/12/29 07:40:55 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
1.338 2023/12/29 07:40:56 main.go:142: the database does not appear to be setup. Run --install.
1.349 2023/12/29 07:40:56 main.go:102: v2.5.1 (a6a2b69 2023-08-15T15:49:28Z, linux/amd64)
1.349 2023/12/29 07:40:56 init.go:145: reading config: config.toml
1.350 2023/12/29 07:40:56 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
2.097
2.097 ** first time installation **
2.097 ** IMPORTANT: This will wipe existing listmonk tables and types in the DB 'railway' **
10.76 2023/12/29 07:41:06 init.go:327: error preparing SQL queries: Error preparing query 'register-link-click': read tcp 172.17.0.3:46992->35.214.223.194:38401: read: connection reset by peer
-----
Dockerfile:5
-------------------
3 | COPY config.sh ./config.sh
4 | RUN chmod +x ./config.sh && ./config.sh
5 | >>> RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade
6 |
-------------------
ERROR: failed to solve: process "/bin/sh -c ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade" did not complete successfully: exit code: 1
> [4/4] RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade:
0.311 2023/12/29 07:40:55 init.go:145: reading config: config.toml
0.311 2023/12/29 07:40:55 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
1.338 2023/12/29 07:40:56 main.go:142: the database does not appear to be setup. Run --install.
1.349 2023/12/29 07:40:56 main.go:102: v2.5.1 (a6a2b69 2023-08-15T15:49:28Z, linux/amd64)
1.349 2023/12/29 07:40:56 init.go:145: reading config: config.toml
1.350 2023/12/29 07:40:56 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
2.097
2.097 ** first time installation **
2.097 ** IMPORTANT: This will wipe existing listmonk tables and types in the DB 'railway' **
10.76 2023/12/29 07:41:06 init.go:327: error preparing SQL queries: Error preparing query 'register-link-click': read tcp 172.17.0.3:46992->35.214.223.194:38401: read: connection reset by peer
-----
Dockerfile:5
-------------------
3 | COPY config.sh ./config.sh
4 | RUN chmod +x ./config.sh && ./config.sh
5 | >>> RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade
6 |
-------------------
ERROR: failed to solve: process "/bin/sh -c ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade" did not complete successfully: exit code: 1
Look like the database setup failed, it has 0 tables.
Solution:
try this template instead https://railway.app/template/-zHmwJ
Jump to solution
4 Replies
Percy
Percy7mo ago
Project ID: 5130c009-d889-493f-8d4b-4ffdb54d8b4c
Sang Dang
Sang Dang7mo ago
5130c009-d889-493f-8d4b-4ffdb54d8b4c
Solution
Brody
Brody7mo ago
try this template instead https://railway.app/template/-zHmwJ
Sang Dang
Sang Dang7mo ago
thanks Brody, I will try it now look like it works, thanks @Brody