GhostManager / Ghostwriter

The SpecterOps project management and reporting engine

Home Page:https://ghostwriter.wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install Fails when building Django container with incorrect permissions

aidden-laoch opened this issue · comments

Describe the bug
Install fails/hangs waiting for Django to start.

To Reproduce
Steps to reproduce the behavior:

  1. Spin up Ubuntu 22.04 on AWS
  2. Git Clone Ghostwriter
  3. Follow install instructions
  4. Run ./ghostwriter-cli-linux install
  5. See error

Expected Behavior
Ghostwriter to install

Screenshots
gw-cli-install
docker-cont-list-django-restarting
django-docker-logs

Server Specs:

  • OS: Ubuntu 22.04 AWS
  • Docker version 20.10.25, build 20.10.25-0ubuntu1~22.04.1
  • docker-compose version 1.29.2, build unknown
  • Ghostwriter: latest version in GIT as of 8/22/2023

I have done multiple attempts after running "containers down" with ghostwriter-cli and then doing a docker volume prune.

Hey @aidden-laoch, when you say you've tried multiple times, what have you tried?

These permission errors can happen when the container image does not build correctly. It's usually easy to fix by re-running the build command: ./ghostwriter-cli containers build

I tried killing all the containers and volumes then redoing install and I also tried build after clearing it as well.

I ended up killing that VM and starting fresh. The new fresh install on a new VM worked. Not sure what happened on the other one. Only difference between the two was I got cloned to OPT initially and the new fresh box I git clones to /home/user/. Shouldn't have effected anything.

Either way we probably can close it. I imagine it had nothing to do with the code but instead my environment somehow.

I had a similar issue installing on a fresh Ubuntu VM and solved it by re-rolling a new VM as well. I'm not sure what the issue was but I wanted to chime in that I've also experienced the same situation. The django install just took forever.

Thanks for the updates and info @aidden-laoch and @lwangenheim. I'll see about publishing images to Docker Hub to avoid any weirdness with building the images.