GhostManager / Ghostwriter

The SpecterOps project management and reporting engine

Home Page:https://ghostwriter.wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django No such file or directory error

DemanNL opened this issue · comments

Describe the bug
A fresh Ghostwriter install using the ghostwriter-cli install command will result in Django giving the following error:
cp: can't stat '/app/ghostwriter/reporting/templates/reports/template.docx': No such file or directory

To Reproduce
git clone
./ghostwriter-cli install
Inspect django container after install

Expected Behavior
A working Django container.

Hey @DemanNL – As mentioned in the other issue you opened, it looks like the Django container did not build properly. This can happen occasionally. It's rare but it happens. You can resolve it by running ./ghostwriter-cli containers build or re-running the install command.

Eventually I plan to publish images to Docker Hub which will remove the need to build the images locally and reduce the chance of a bad build to zero.

Hi @chrismaddalena ,

The weird thing is. I've rebuild, repulled and started over from scratch many times for 3 hours long. Every single time the permissions issues persisted. Also the postgresql password would also not be accepted even though it's set in the .env

After changing the dockerfile chown to django:django the permissions were fixed. However I still had to do the psql credentials manually and the seeding.