GhostManager / Ghostwriter

The SpecterOps project management and reporting engine

Home Page:https://ghostwriter.wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed new installation

hamperfait opened this issue · comments

Describe the bug
I followed the wiki instructions to install Ghostwriter and set it up, but I got an error during postgres 3/3 installation:

#8 [redis 1/1] FROM docker.io/library/redis:6-alpine@sha256:3fcb624d83a9c478357f16dc173c58ded325ccc5fd2a4375f3916c04cc579f70
#8 CACHED

#9 [postgres internal] load build context
#9 transferring context: 5.02kB done
#9 DONE 0.1s

#10 [redis] exporting to image
#10 exporting layers done
#10 writing image sha256:049f1c02b366a8f58817b01d3f005793f2f39c8603cae92d216f29f0d03e0311 done
#10 naming to docker.io/library/ghostwriter_production_redis 0.0s done
#10 DONE 0.1s

#11 [postgres 2/3] COPY ./compose/production/postgres/maintenance /usr/local/bin/maintenance
#11 CACHED

#12 [postgres 3/3] RUN chmod +x /usr/local/bin/maintenance/*     && mv /usr/local/bin/maintenance/* /usr/local/bin     && rmdir /usr/local/bin/maintenance
#12 0.563 mv: cannot move '/usr/local/bin/maintenance/_sourced' to a subdirectory of itself, '/usr/local/bin/_sourced'
#12 0.563 mv: cannot move '/usr/local/bin/maintenance/backup' to a subdirectory of itself, '/usr/local/bin/backup'
#12 0.563 mv: cannot move '/usr/local/bin/maintenance/backups' to a subdirectory of itself, '/usr/local/bin/backups'
#12 0.563 mv: cannot move '/usr/local/bin/maintenance/restore' to a subdirectory of itself, '/usr/local/bin/restore'
#12 ERROR: process "/bin/sh -c chmod +x /usr/local/bin/maintenance/*     && mv /usr/local/bin/maintenance/* /usr/local/bin     && rmdir /usr/local/bin/maintenance" did not complete successfully: exit code: 1
------
 > [postgres 3/3] RUN chmod +x /usr/local/bin/maintenance/*     && mv /usr/local/bin/maintenance/* /usr/local/bin     && rmdir /usr/local/bin/maintenance:
0.563 mv: cannot move '/usr/local/bin/maintenance/_sourced' to a subdirectory of itself, '/usr/local/bin/_sourced'
0.563 mv: cannot move '/usr/local/bin/maintenance/backup' to a subdirectory of itself, '/usr/local/bin/backup'
0.563 mv: cannot move '/usr/local/bin/maintenance/backups' to a subdirectory of itself, '/usr/local/bin/backups'
0.563 mv: cannot move '/usr/local/bin/maintenance/restore' to a subdirectory of itself, '/usr/local/bin/restore'
------
failed to solve: process "/bin/sh -c chmod +x /usr/local/bin/maintenance/*     && mv /usr/local/bin/maintenance/* /usr/local/bin     && rmdir /usr/local/bin/maintenance" did not complete successfully: exit code: 1
[-] Error from `docker`: exit status 17
2024/03/21 11:10:57 Error trying to build with production.yml: exit status 17

To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/GhostManager/Ghostwriter.git
cd Ghostwriter
./ghostwriter-cli install

Expected Behavior
Installation succeeded.

Server Specs:

  • OS: Ubuntu
  • Docker 26.0.0
  • Ghostwriter 4.0.8

Hey @hamperfait, the installation halted when Docker Compose reported an error and stopped building the containers. There are a couple possible reasons for that error. The most common is system resources. if your system meets the minimum requirements, that shouldn't be an issue unless something else on the system was competing with Docker for resources. The other possibility is Docker Compose hit an error and you can re-run the install command to try again. Maybe restart the Docker service or reboot if you keep seeing errors.

Thanks for the reply. I restarted the server and it works now. Should've tried that in the first place. Thanks!