goofball222 / factorio

Factorio headless server Docker container
Apache License 2.0
47 stars 14 forks source link

Restarting issue #21

Closed DrKenReid closed 3 years ago

DrKenReid commented 3 years ago

Reporting bugs/issues

After using docker-compose up using default compose recommended on readme, the container restarts every second, just seeing the following output repeatedly:


2021-01-29T16:55:00.618 <docker-entrypoint> INFO - Script version 1.2.1

2021-01-29T16:55:00.624 <docker-entrypoint> INFO - Entrypoint running with UID 0 (root)

2021-01-29T16:55:00.632 <docker-entrypoint> INFO -

GID/UID for factorio are unchanged: GID=999, UID=999

2021-01-29T16:55:00.634 <docker-entrypoint> INFO - Ensuring permissions are correct before continuing - 'chown -R factorio:factorio /opt/factorio'

2021-01-29T16:55:00.635 <docker-entrypoint> INFO - Running recursive 'chown' on Docker overlay2 storage is **really** slow. This may take a bit.

2021-01-29T16:55:00.680 <docker-entrypoint> INFO - Remove any incomplete *.tmp.zip from crash/forced exit in /opt/factorio/saves

2021-01-29T16:55:00.684 <docker-entrypoint> INFO - No RCON.pwd found in /opt/factorio/config, generating random

/usr/local/bin/docker-entrypoint.sh: line 109: /opt/factorio/config/RCON.pwd: No such file or directory
goofball222 commented 3 years ago

The startup script failed to account for the possibility that the subfolders it needed might not already be present in a host volume mapped to /factorio in the container. I put a quick-fix into the stable/latest release that will cover for that. Things are rebuilding on Docker Hub now, and images with the fix should be available for you to pull in ~1h after this comment.