factorio-server-manager icon indicating copy to clipboard operation
factorio-server-manager copied to clipboard

Random admin password loss

Open pkp24 opened this issue 1 year ago • 6 comments

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.

pkp24 avatar Dec 03 '24 15:12 pkp24

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?

Mattie112 avatar Dec 04 '24 10:12 Mattie112

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.

karl-run avatar Dec 08 '24 16:12 karl-run

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.

Screenshot_20241210_081122_Opera.jpg

pkp24 avatar Dec 10 '24 13:12 pkp24

This also happens to be on Unraid after each restart.

UnInfamous avatar Dec 28 '24 15:12 UnInfamous

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.

sucr4m avatar Feb 03 '25 02:02 sucr4m

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.

sanderdatema avatar Feb 24 '25 09:02 sanderdatema