greatbit / quack

Web Based Test Management System
Apache License 2.0
122 stars 36 forks source link

Quack will not start - Unable to Connect to mongodb - mongodb invoked with docker #250

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.

  1. Installed NGINX and add conf/quack.conf to /etc/nginx/quack.conf
  2. Run mongo - "docker run --name mongodb --restart always -p 27017:17017 -d mongo"
  3. 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. In the next issue, I tried to use the mongod as a systemctl service. mongod.conf.txt mongodb.cmdline.txt mongodb.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.