mendix / m2ee-tools

m2ee, the Mendix runtime helper tools for GNU/Linux
Other
27 stars 40 forks source link

Connection to the database is failing #36

Closed alembe closed 6 years ago

alembe commented 6 years ago

Hi, I'm trying to create a Mendix project and run it with minikube. I was able to successfully run the example mendix starter here https://github.com/pommi/mendix-docker with docker but when I try to run and deploy it locally, "m2ee start" hangs and the application never starts. I checked app.log and this is what I'm seeing:

018-03-28 16:53:41.640 INFO - Logging: Logging to file: /root/data/log/app.log, max size: 10240KiB, max rotation: 10 2018-03-28 16:53:41.667 INFO - Core: Mendix Runtime 5.13.1 (build 3976). Copyright © 2003-2015 Mendix bv. All rights reserved. 2018-03-28 16:53:42.371 WARNING - ConnectionBus: Database connections: 0 active, 0 idle. 2018-03-28 16:53:42.371 ERROR - ConnectionBus: Opening JDBC connection to db:5432 failed with SQLState: 08001 Error code: 0 Message: The connection attempt failed. Retrying...(1/4) 2018-03-28 16:53:42.473 WARNING - ConnectionBus: Database connections: 0 active, 0 idle. 2018-03-28 16:53:42.473 ERROR - ConnectionBus: Opening JDBC connection to db:5432 failed with SQLState: 08001 Error code: 0 Message: The connection attempt failed. Retrying...(2/4) 2018-03-28 16:53:42.674 WARNING - ConnectionBus: Database connections: 0 active, 0 idle. 2018-03-28 16:53:42.674 ERROR - ConnectionBus: Opening JDBC connection to db:5432 failed with SQLState: 08001 Error code: 0 Message: The connection attempt failed. Retrying...(3/4) 2018-03-28 16:53:43.075 WARNING - ConnectionBus: Database connections: 0 active, 0 idle. 2018-03-28 16:53:43.075 ERROR - ConnectionBus: Opening JDBC connection to db:5432 failed with SQLState: 08001 Error code: 0 Message: The connection attempt failed., giving up...(4/4)

My yaml's and Dockerfile are based off of this project https://github.com/mendix/azure-docker-mendix/tree/master/Docker-Azure

knorrie commented 6 years ago

Hi, this is not a bug in m2ee code. Your database is not running, or at least not functioning correctly, or you have a configuration problem.

Please use this issue tracker only for bug reports or feature requests for this specific piece of software, not for general end user support. For that, ask on the general Mendix Forum (forum.mendix.com) or open a support ticket at the official Mendix support site.