LiveOverflow/PwnAdventure3

bash: /opt/pwn3/server/creds: Permission denied

Heacien opened this issue · 5 comments

I installed the docker image for the first time and tried running it by following the step-by-step guid, but
after sending the command docker-compose up there comes this error

bash: /opt/pwn3/server/creds: Permission denied

I tried using sudo but it made no difference.

Full docker-compose up history bevor the error:

Lorem@Ispum:~/PwnAdventure3$ docker-compose up
Starting pwnadventure3_init_1 ... done
Starting pwnadventure3_master_1 ... done
Starting pwnadventure3_game_1 ... done
Attaching to pwnadventure3_init_1, pwnadventure3_master_1, pwnadventure3_game_1
master_1 | * Starting PostgreSQL 9.3 database server
pwnadventure3_init_1 exited with code 0
game_1 | FMallocCrash overhead is 3780608 bytes
game_1 | bash: line 1: 9 Segmentation fault ./PwnAdventure3Server
pwnadventure3_game_1 exited with code 139
master_1 | ...done.
master_1 | psql:/opt/pwn3/setup/postgres_init.sql:1: ERROR: role "pwn3" already exists
master_1 | psql:/opt/pwn3/setup/postgres_init.sql:2: ERROR: database "master" already exists
master_1 | GRANT
master_1 | rm: cannot remove '/opt/pwn3/client/PwnAdventure3_Data/PwnAdventure3/PwnAdventure3/Saved/Logs/': No such file or directory
master_1 | No backup data found!
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | DROP TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE TABLE
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | CREATE INDEX
master_1 | INSERT 0 1
master_1 | INSERT 0 1
master_1 | UPDATE 1
master_1 | UPDATE 1
master_1 | Use the following team hash to join the admin team:
master_1 | 7509750a02d7438bb3ff
***********
master_1 | CREATE TABLE
master_1 | DELETE 0
master_1 | INSERT 0 0
master_1 | DELETE 0
master_1 | DELETE 0
master_1 | DROP TABLE
master_1 | bash: /opt/pwn3/server/creds: Permission denied

Just noticed that the path /opt/pwn3 didn't exist.

I manually generated (/opt/pwn3/server/creds) it but the same error continues to occur.

// Btw. man könnte hier auch auf Detusch antworten zum diskutieren ;)

shw1n commented

Had the same issue using Docker on Windows, after some digging it seems to be related to bind volumes on Windows specifically, when I logged into the container w/ docker exec and tried to touch testfile as root, I still got permission denied, even after ensuring write access to the folder.

Ended up just running it on a 64-bit Ubuntu 16.04 VM using docker with no issues.

@shw1n I used linux, can't tell ya which version as the vserver ran out, but it was definitly some sort of ubuntu

I'm having this issue, has this been resolved? if so, could you post the solution?

I fixed this by changing permissions to all the game files to root and group root (probably bad, but all local)