gophish / gophish

Open-Source Phishing Toolkit
https://getgophish.com
Other
11.29k stars 2.19k forks source link

"waiting for database to be up..." error #3027

Open kyle-13 opened 10 months ago

kyle-13 commented 10 months ago

What version of Gophish are you using?: 12.0 (but experienced the same issue trying to setup with 11.1 to diagnose.

Brief description of the issue: I am manually building gophish from the git clone on an EC2 ubuntu instance (have tried 20.04 and 22.04). The build goes fine, but the out of the box gophish.db is never created, so the server won't spin up. I have tried to create the .db file myself, but run into multiple permissions issues.

What are you expecting to see happen? : in previous versions, once the build is complete and i run ./gophish - i get my password and can log into the gophish instance.

What are you seeing happen? level=warning msg="waiting for database to be up..." and even though it's a 'warning' it doesn't allow the instance to start.

Please provide as many steps as you can to reproduce the problem: -launch t2 medium ubuntu server with http/https access -sudo apt-get update -sudo apt install -y letsencrypt golang-go -sudo git clone https://github.com/gophish/gophish.git -cd gophish -sudo go build -sudo nano config.json -> listen_url = 0.0.0.0:3333 -./gophish

CyberDoug commented 4 months ago

Run the gophish binary as root.