Random admin password loss
This has happened 2-3 times now, suddenly the server loses all knowledge of the user accounts I made. This most recent time I changed the CPU pinning, idk if that does it every time but it did it this time.
Does this also happen when you restart your docker container (or update it)? Can you share us your docker config (docker-compose.yaml?). Perhaps you are not using a named volume for the database and it gets destroyed.
Or does it also lose the accounts while running?
I've also seen this a few times now. It seems like the most recent time it happened it actually happened while it was running. But I don't have any more details.
Does this also happen when you restart your docker container (or update it)? Can you share us your docker config (docker-compose.yaml?). Perhaps you are not using a named volume for the database and it gets destroyed.
Or does it also lose the accounts while running?
It's been after a restart each time for me. I'm using whatever unpaid has for me to change. I will add that in have restarted many times without it losing the username and password. Even turned it off and on again.
This also happens to be on Unraid after each restart.
just chiming in 2 months later this still is happening on unraid.
i also tried adding ADMIN_USER and ADMIN_PASS as variables to no effect.
I think this is happening because of this line:
https://github.com/OpenFactorioServerManager/factorio-server-manager/blob/04992d2b20c5e33bdaf8c5ca29766e84963e2e6e/docker/Dockerfile#L8
This causes Docker to create volumes that are not mounted to existing folders. Unless you add them specifically to your docker-compose.yml or in UnRaid, use "Add another path".
volumes:
- "./fsm-data:/opt/fsm-data"
- "./factorio-data/saves:/opt/factorio/saves"
- "./factorio-data/mods:/opt/factorio/mods"
- "./factorio-data/config:/opt/factorio/config"
- "./factorio-data/mod_packs:/opt/fsm/mod_packs"
This fixed it for me. Not only the admin password, but a lot more persistent stuff.