Open aSemy opened 1 week ago
For investigation purposes I tried running sudo chown -R 845:845 ./factorio-server
and sudo chmod -R 775 ./factorio-server
, but I see a different failure.
2024-11-16T12:38:11.819830351Z +++ readlink -f /docker-entrypoint.sh
2024-11-16T12:38:11.822470441Z ++ dirname /docker-entrypoint.sh
2024-11-16T12:38:11.824062278Z + INSTALLED_DIRECTORY=/
2024-11-16T12:38:11.825827116Z + FACTORIO_VOL=/factorio
2024-11-16T12:38:11.825862241Z + LOAD_LATEST_SAVE=true
2024-11-16T12:38:11.825879991Z + GENERATE_NEW_SAVE=false
2024-11-16T12:38:11.825900866Z + PRESET=
2024-11-16T12:38:11.825906241Z + SAVE_NAME=
2024-11-16T12:38:11.825910574Z + BIND=
2024-11-16T12:38:11.825915116Z + CONSOLE_LOG_LOCATION=
2024-11-16T12:38:11.825918741Z + mkdir -p /factorio
2024-11-16T12:38:11.826225992Z + mkdir -p /factorio/saves
2024-11-16T12:38:11.827173827Z + mkdir -p /factorio/config
2024-11-16T12:38:11.828744331Z + mkdir -p /factorio/mods
2024-11-16T12:38:11.829433166Z + mkdir -p /factorio/scenarios
2024-11-16T12:38:11.830623503Z + mkdir -p /factorio/script-output
2024-11-16T12:38:11.833381843Z + [[ ! -f /factorio/config/rconpw ]]
2024-11-16T12:38:11.833590968Z + [[ ! -f /factorio/config/server-settings.json ]]
2024-11-16T12:38:11.833744469Z + [[ ! -f /factorio/config/map-gen-settings.json ]]
2024-11-16T12:38:11.833866261Z + [[ ! -f /factorio/config/map-settings.json ]]
2024-11-16T12:38:11.834243928Z ++ wc -l
2024-11-16T12:38:11.834371679Z ++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
2024-11-16T12:38:11.839082149Z + NRTMPSAVES=0
2024-11-16T12:38:11.839303066Z + [[ 0 -gt 0 ]]
2024-11-16T12:38:11.839431316Z + [[ '' == \t\r\u\e ]]
2024-11-16T12:38:11.839537775Z + //docker-dlc.sh
2024-11-16T12:38:11.841306987Z Enable mod elevated-rails for DLC
2024-11-16T12:38:11.841609613Z //docker-dlc.sh: line 17: /factorio/mods/mod-list.json.tmp: Permission denied
Hi, I'm getting persistent permission errors when trying to run the Factorio server on my Macbook.
This is the Dockerfile I'm using:
And the
.env
file:However, I can't seem to get this working at all. I've tried owning the
./factorio-server/
dir with the Factorio uid:845 user (and removing the custom PUID and PGID), or as my current user, but I can't figure out the necessary combination...I've deleted the files and container, and restarted my machine.
Versions
Logs