greatbit / quack

Web Based Test Management System
Apache License 2.0
116 stars 34 forks source link

Quack will not start - Connection problem with mongodb - Started mongodb using systemctl #251

Closed bobbeck55 closed 1 year ago

bobbeck55 commented 1 year ago

I installed mongodb v6 and was able to start it up and use the mongosh. Now I am attempting to bring up quack using the steps in your quack repo README.md file How to run on a standalone server.

Installed NGINX and add conf/quack.conf to /etc/nginx/quack.conf
Run mongo - sudo systemctl start mongod > mongod.log
Run quack - ava -Xbootclasspath/a:/etc/quack -jar quack/assembly/target/lib/jetty-runner.jar quack/assembly/target/q
uack.war > quack.log.txt 2>&1

There is a connection problem in the quack log. 2023-03-02 10:30:37,152 [scription='null'}-mongod:27017] INFO cluster - Exception in monitor thread while connecting to server mongod:27017 com.mongodb.MongoSocketException: mongod: Temporary failure in name resolution'

The config and log files are attached. mongod.cmdline.txt mongod.conf.txt mongod.log.txt nginx.conf.txt quack.conf.txt quack.log.txt quack.properties.txt quack_cmdline.txt

bobbeck55 commented 1 year ago

When I added "mongo.uri=mongodb://localhost:27017/dbname" to the quack.properties file, quack was able to connect with mongodb.