SSHOC / sshoc-marketplace-backend

Code for the backend
Apache License 2.0
2 stars 0 forks source link

Marketplace fails to start via docker compose #444

Closed proycon closed 4 weeks ago

proycon commented 1 month ago

I was trying to get an instance running for development purposes, but following the docker-compose instructions, marketplace failed to start with:

[marketplace] | 21-05-2024 11:36:14.104 [main] INFO  com.zaxxer.hikari.HikariDataSource.getConnection - HikariPool-1 - Starting... 
[marketplace] | 21-05-2024 11:36:24.171 [main] ERROR com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException - HikariPoo
l-1 - Exception during pool initialization.                                                                                        
[marketplace] | org.postgresql.util.PSQLException: The connection attempt failed.   

The postgres and solr instances seem up, port 5432 maps fine from host to container.

$ docker ps                       
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
CONTAINER ID  IMAGE                                            COMMAND     CREATED         STATUS        PORTS                   NAMES
50d16c5d0079  docker.io/library/postgres:15.3                  postgres    25 minutes ago  Up 2 minutes  0.0.0.0:5432->5432/tcp  sshoc-marketplace-backend_psql_1
0bc2c3bb2895  localhost/sshoc-marketplace-backend_solr:latest              25 minutes ago  Up 2 minutes  0.0.0.0:8983->8983/tcp  sshoc-marketplace-backend_solr_1

(technically I'm on podman instead of docker, but they should be compatible)

proycon commented 4 weeks ago

(Issue no longer appears after rebuilding latest version)