factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
918 stars 218 forks source link

Synology Docker #175

Closed Cerial1-zz closed 6 years ago

Cerial1-zz commented 6 years ago

Hi

first i want to thank you for the work you did for us all! I got the Problem that i had to run the server on my synology diskstation, it runs really well but i cant modify any data. This means i even cant edit the rcon passwort or upload my multiplayer savegame. I simply cant find the data on my ds.

Via ssh - permission denied Via Ftp - empty folder Via Docker on Synology - cant acces data Via Rcon - dont know the passw

Please help me, i am new to docker but i think i can figure it out.

Thanks and greetings from germany

dtandersen commented 6 years ago

Post your command line.

The files are saved as uid/gid=845. Can you see them with root?

Cerial1-zz commented 6 years ago

negative, no Access with root account

Do you mean this ->

date stream content
2018-07-31 10:20:25 stdout 6.826 Error ServerMultiplayerManager.cpp:633: Matching server connection failed: Error when creating server game: Missing token.
2018-07-31 10:20:25 stdout 6.826 Info ServerRouter.cpp:491: Own address is IP ADDR:({})
2018-07-31 10:20:25 stdout 6.785 Info RemoteCommandProcessor.cpp:128: Starting RCON interface at port 27015
2018-07-31 10:20:25 stdout 6.750 Info UDPSocket.cpp:39: Opening socket for broadcast
2018-07-31 10:20:25 stdout 6.713 Info ServerRouter.cpp:596: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
2018-07-31 10:20:25 stdout 6.712 Info ServerMultiplayerManager.cpp:699: mapTick(9911) changing state from(CreatingGame) to(InGame)
2018-07-31 10:20:25 stdout 6.712 Info AuthServerConnector.cpp:109: Obtained serverPadlock for serverHash (Xq25DXtszSKHxa8XsJPuCaObeoXykkIE) from the auth server.
2018-07-31 10:20:25 stdout 6.712 Info HttpSharedState.cpp:145: Status code: 200
2018-07-31 10:20:24 stdout 6.164 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2
2018-07-31 10:20:24 stdout 6.161 Hosting game at IP ADDR:({0.0.0.0:34197})
2018-07-31 10:20:24 stdout 6.160 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
2018-07-31 10:20:24 stdout 6.158 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 950616531
2018-07-31 10:20:24 stdout 6.135 Loading script.dat: 176 bytes.
2018-07-31 10:20:24 stdout 5.690 Info Scenario.cpp:136: Map version 0.16.51-0
2018-07-31 10:20:23 stdout 5.671 Loading Level.dat: 1523131 bytes.
2018-07-31 10:20:23 stdout 5.563 Loading map /factorio/saves/_autosave1.zip: 960150 bytes.
2018-07-31 10:20:23 stdout 5.562 Info ServerMultiplayerManager.cpp:699: mapTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
2018-07-31 10:20:23 stdout 5.562 Info ServerMultiplayerManager.cpp:699: mapTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
2018-07-31 10:20:23 stdout 5.562 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
2018-07-31 10:20:23 stdout 5.547 Factorio initialised
2018-07-31 10:20:23 stdout 5.546 Custom inputs active: 0
2018-07-31 10:20:23 stdout 5.525 Info PlayerData.cpp:72: Cloud player-data.json unavailable
2018-07-31 10:20:23 stdout 5.525 Info PlayerData.cpp:65: Local player-data.json available, timestamp 1533032110
2018-07-31 10:20:21 stdout 3.079 Checksum of base: 3323233190
2018-07-31 10:20:21 stdout 3.079 Checksum for core: 840319042
2018-07-31 10:20:20 stdout 2.473 Loading mod base 0.16.51 (data-updates.lua)
2018-07-31 10:20:18 stdout 0.612 Loading mod base 0.16.51 (data.lua)
2018-07-31 10:20:18 stdout 0.415 Loading mod core 0.0.0 (data.lua)
2018-07-31 10:20:18 stdout 0.325 Running in headless mode
2018-07-31 10:20:18 stdout 0.324 Environment: DISPLAY=, WAYLAND_DISPLAY=
2018-07-31 10:20:18 stdout 0.324 System info: [CPU:         Intel(R) Atom(TM) CPU D2701   @ 2.13GHz, 4 cores, RAM: 3949 MB]
2018-07-31 10:20:18 stdout 0.003 Binaries path: /opt/factorio/bin
2018-07-31 10:20:18 stdout 0.002 Write data path: /opt/factorio [1210026/1826899MB]
2018-07-31 10:20:18 stdout 0.002 Read data path: /opt/factorio/data
2018-07-31 10:20:18 stdout 0.002 Program arguments: "/opt/factorio/bin/x64/factorio" "--port" "34197" "--start-server-load-latest" "--server-settings" "/factorio/config/server-settings.json" "--server-whitelist" "/factorio/config/server-whitelist.json" "--server-banlist" "/factorio/config/server-banlist.json" "--rcon-port" "27015" "--rcon-password"  "--server-id" "/factorio/config/server-id.json"
2018-07-31 10:20:18 stdout 0.001 Operating system: Linux
2018-07-31 10:20:18 stdout 0.001 2018-07-31 10:20:18; Factorio 0.16.51 (build 36654, linux64, headless)
2018-07-31 10:20:18 stdout + exec /opt/factorio/bin/x64/factorio --port 34197 --start-server-load-latest --server-settings /factorio/config/server-settings.json --server-whitelist /factorio/config/server-whitelist.json --server-banlist /factorio/config/server-banlist.json --rcon-port 27015 --rcon-password AeC8yoo7eet1she --server-id /factorio/config/server-id.json
2018-07-31 10:20:18 stdout + cat /factorio/config/rconpw
2018-07-31 10:20:18 stdout + find -L /factorio/saves -iname *.zip -mindepth 1 -print
2018-07-31 10:20:18 stdout + grep -q .
2018-07-31 10:20:18 stdout + find -L /factorio/saves -iname *.tmp.zip -mindepth 1 -print
2018-07-31 10:20:18 stdout + grep -q .
2018-07-31 10:20:18 stdout + [ ! -f /factorio/config/map-settings.json ]
2018-07-31 10:20:18 stdout + [ ! -f /factorio/config/map-gen-settings.json ]
2018-07-31 10:20:18 stdout + [ ! -f /factorio/config/server-settings.json ]
2018-07-31 10:20:18 stdout + [ ! -f /factorio/config/rconpw ]
2018-07-31 10:20:18 stdout + mkdir -p /factorio/script-output
2018-07-31 10:20:18 stdout + mkdir -p /factorio/scenarios
2018-07-31 10:20:18 stdout + mkdir -p /factorio/mods
2018-07-31 10:20:18 stdout + mkdir -p /factorio/config
2018-07-31 10:20:18 stdout + mkdir -p /factorio/saves
2018-07-31 10:20:18 stdout uid=845(factorio) gid=845(factorio) groups=845(factorio)
2018-07-31 10:20:18 stdout + id
2018-07-31 10:20:18 stdout + set -e
2018-07-31 10:15:10 stdout 246.344 Goodbye
2018-07-31 10:15:10 stdout 246.299 Info UDPSocket.cpp:236: Socket closed
2018-07-31 10:15:10 stdout 246.299 Info UDPSocket.cpp:206: Closing socket
2018-07-31 10:15:10 stdout 246.273 Info GlobalContext.cpp:696: Waiting for child processes to exit:
2018-07-31 10:15:10 stdout 246.273 Info UDPSocket.cpp:206: Closing socket
2018-07-31 10:15:10 stdout 246.273 Info UDPSocket.cpp:236: Socket closed
2018-07-31 10:15:10 stdout 246.273 Info UDPSocket.cpp:206: Closing socket
2018-07-31 10:15:10 stdout 245.996 Info ServerMultiplayerManager.cpp:699: mapTick(9911) changing state from(Disconnected) to(Closed)
2018-07-31 10:15:10 stdout 245.996 Info ServerMultiplayerManager.cpp:142: Quitting multiplayer connection.
2018-07-31 10:15:10 stdout 245.995 Info ServerMultiplayerManager.cpp:699: mapTick(9911) changing state from(Disconnecting) to(Disconnected)
2018-07-31 10:15:09 stdout 244.907 Info ServerMultiplayerManager.cpp:699: mapTick(9911) changing state from(DisconnectingScheduled) to(Disconnecting)
2018-07-31 10:15:09 stdout 244.872 Info ServerMultiplayerManager.cpp:699: mapTick(9911) changing state from(InGame) to(DisconnectingScheduled)
2018-07-31 10:15:09 stdout 244.872 Info ServerMultiplayerManager.cpp:118: Disconnecting multiplayer connection.
2018-07-31 10:15:09 stdout 244.757 Info MainLoop.cpp:368: Saving progress: 100.000000%
2018-07-31 10:15:08 stdout 244.666 Info MainLoop.cpp:368: Saving progress: 0.161551%
2018-07-31 10:15:08 stdout 244.416 Info MainLoop.cpp:357: Saving map as /factorio/saves/_autosave1.zip
2018-07-31 10:15:08 stdout 244.416 Received SIGTERM, shutting down
2018-07-31 10:13:20 stdout 2018-07-31 10:13:20 [CHAT] : Help
2018-07-31 10:13:20 stdout Help
2018-07-31 10:13:18 stdout 2018-07-31 10:13:18 [CHAT] : ?
2018-07-31 10:13:18 stdout rcon      ?
2018-07-31 10:13:10 stdout 2018-07-31 10:13:10 [CHAT] : test
2018-07-31 10:13:10 stdout test
2018-07-31 10:13:05 stdout 2018-07-31 10:13:05 [CHAT] : rconpw
2018-07-31 10:13:05 stdout 2018-07-31 10:13:05 [CHAT] : test
2018-07-31 10:12:58 stdout rconpw
2018-07-31 10:12:28 stdout  
2018-07-31 10:12:28 stdout  
2018-07-31 10:12:25 stdout test
2018-07-31 10:11:19 stdout 2018-07-31 10:11:19 [JOIN] Cerial1 joined the game
2018-07-31 10:11:19 stdout 15.620 Info ServerMultiplayerManager.cpp:795: mapTick(8) received stateChanged peerID(1) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
2018-07-31 10:11:19 stdout 15.570 Info GameActionHandler.cpp:3476: MapTick (4) processed PlayerJoinGame peerID(1) playerIndex(0) mode(create )
2018-07-31 10:11:19 stdout 15.569 Info ServerMultiplayerManager.cpp:795: mapTick(4) received stateChanged peerID(1) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
2018-07-31 10:11:19 stdout 15.549 Info ServerMultiplayerManager.cpp:795: mapTick(3) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
2018-07-31 10:11:19 stdout 15.475 Info ServerMultiplayerManager.cpp:795: mapTick(0) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
2018-07-31 10:11:19 stdout 14.854 Info ServerMultiplayerManager.cpp:795: mapTick(0) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
2018-07-31 10:11:19 stdout 14.780 Info ServerMultiplayerManager.cpp:699: mapTick(0) changing state from(InGameSavingMap) to(InGame)
2018-07-31 10:11:19 stdout 14.779 Info ServerMultiplayerManager.cpp:855: MapTick(0) Serving map(/opt/factorio/temp/mp-save-0.zip) for peer(1) size(676554) crc(2780997781)
2018-07-31 10:11:18 stdout 14.594 Warning TransmissionControlHelper.cpp:176: Fragment 0001 failed too many times
2018-07-31 10:11:18 stdout 14.388 Info ServerMultiplayerManager.cpp:795: mapTick(0) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
2018-07-31 10:11:18 stdout 14.387 Info ServerMultiplayerManager.cpp:699: mapTick(0) changing state from(InGame) to(InGameSavingMap)
2018-07-31 10:11:18 stdout 14.367 Info ServerSynchronizer.cpp:557: nextHeartbeatSequenceNumber(229) adding peer(1)
2018-07-31 10:11:18 stdout 14.367 Info ServerRouter.cpp:409: Replying to connectionRequest for address(IP ADDR:({192.168.178.20:52436})).
2018-07-31 10:11:18 stdout 14.366 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({192.168.178.20:52436}))
2018-07-31 10:11:17 stdout 13.703 Refusing connection for address (IP ADDR:({192.168.178.20:57794})), username (Cerial1). UserVerificationMissing
2018-07-31 10:11:17 stdout 13.702 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({192.168.178.20:57794}))
2018-07-31 10:11:10 stdout 6.028 Error ServerMultiplayerManager.cpp:633: Matching server connection failed: Error when creating server game: Missing token.
2018-07-31 10:11:10 stdout 6.028 Info ServerRouter.cpp:491: Own address is IP ADDR:({..*:34197})
2018-07-31 10:11:10 stdout 5.985 Info RemoteCommandProcessor.cpp:128: Starting RCON interface at port 27015
2018-07-31 10:11:10 stdout 5.952 Info UDPSocket.cpp:39: Opening socket for broadcast
2018-07-31 10:11:10 stdout 5.916 Info ServerRouter.cpp:596: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
2018-07-31 10:11:10 stdout 5.915 Info ServerMultiplayerManager.cpp:699: mapTick(0) changing state from(CreatingGame) to(InGame)
2018-07-31 10:11:10 stdout 5.915 Info AuthServerConnector.cpp:109: Obtained serverPadlock for serverHash (4hKpmQ9eLmUnatICVJH3jR2vLMMF7aKH) from the auth server.
2018-07-31 10:11:10 stdout 5.915 Info HttpSharedState.cpp:145: Status code: 200
2018-07-31 10:11:09 stdout 5.322 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2
2018-07-31 10:11:09 stdout 5.320 Hosting game at IP ADDR:({0.0.0.0:34197})
2018-07-31 10:11:09 stdout 5.319 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
2018-07-31 10:11:09 stdout 5.317 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 950616531
2018-07-31 10:11:09 stdout 5.293 Loading script.dat: 176 bytes.
2018-07-31 10:11:09 stdout 4.965 Info Scenario.cpp:136: Map version 0.16.51-0
2018-07-31 10:11:09 stdout 4.950 Loading Level.dat: 926139 bytes.
2018-07-31 10:11:09 stdout 4.820 Loading map /factorio/saves/_autosave1.zip: 676593 bytes.
2018-07-31 10:11:09 stdout 4.820 Info ServerMultiplayerManager.cpp:699: mapTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
2018-07-31 10:11:09 stdout 4.820 Info ServerMultiplayerManager.cpp:699: mapTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
2018-07-31 10:11:09 stdout 4.820 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
2018-07-31 10:11:09 stdout 4.803 Factorio initialised
2018-07-31 10:11:09 stdout 4.802 Custom inputs active: 0
2018-07-31 10:11:09 stdout 4.777 Info PlayerData.cpp:72: Cloud player-data.json unavailable
2018-07-31 10:11:09 stdout 4.777 Info PlayerData.cpp:65: Local player-data.json available, timestamp 1533031864
2018-07-31 10:11:06 stdout 2.338 Checksum of base: 3323233190
2018-07-31 10:11:06 stdout 2.338 Checksum for core: 840319042
2018-07-31 10:11:06 stdout 1.734 Loading mod base 0.16.51 (data-updates.lua)
2018-07-31 10:11:04 stdout 0.345 Loading mod base 0.16.51 (data.lua)
2018-07-31 10:11:04 stdout 0.215 Loading mod core 0.0.0 (data.lua)
2018-07-31 10:11:04 stdout 0.169 Running in headless mode
2018-07-31 10:11:04 stdout 0.168 Environment: DISPLAY=, WAYLAND_DISPLAY=
2018-07-31 10:11:04 stdout 0.168 System info: [CPU:         Intel(R) Atom(TM) CPU D2701   @ 2.13GHz, 4 cores, RAM: 3949 MB]
2018-07-31 10:11:04 stdout 0.001 Binaries path: /opt/factorio/bin
2018-07-31 10:11:04 stdout 0.001 Write data path: /opt/factorio [1210027/1826899MB]
2018-07-31 10:11:04 stdout 0.001 Read data path: /opt/factorio/data
2018-07-31 10:11:04 stdout 0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--port" "34197" "--start-server-load-latest" "--server-settings" "/factorio/config/server-settings.json" "--server-whitelist" "/factorio/config/server-whitelist.json" "--server-banlist" "/factorio/config/server-banlist.json" "--rcon-port" "27015" "--rcon-password"  "--server-id" "/factorio/config/server-id.json"
2018-07-31 10:11:04 stdout 0.000 Operating system: Linux
2018-07-31 10:11:04 stdout 0.000 2018-07-31 10:11:04; Factorio 0.16.51 (build 36654, linux64, headless)
2018-07-31 10:11:04 stdout + exec /opt/factorio/bin/x64/factorio --port 34197 --start-server-load-latest --server-settings /factorio/config/server-settings.json --server-whitelist /factorio/config/server-whitelist.json --server-banlist /factorio/config/server-banlist.json --rcon-port 27015 --rcon-password AeC8yoo7eet1she --server-id /factorio/config/server-id.json
2018-07-31 10:11:04 stdout + cat /factorio/config/rconpw
2018-07-31 10:11:04 stdout 24.021 Goodbye
2018-07-31 10:11:04 stdout 23.976 Info GlobalContext.cpp:696: Waiting for child processes to exit:
2018-07-31 10:11:04 stdout Done.
2018-07-31 10:11:03 stdout 23.546 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 950616531
2018-07-31 10:11:03 stdout 23.141 Info Scenario.cpp:136: Map version 0.16.51-0
2018-07-31 10:11:03 stdout 23.139 Loading Level.dat: 926119 bytes.
2018-07-31 10:10:45 stdout 5.447 Info Main.cpp:858: Creating new map /factorio/saves/_autosave1.zip
2018-07-31 10:10:45 stdout 5.442 Factorio initialised
2018-07-31 10:10:45 stdout 5.435 Custom inputs active: 0
2018-07-31 10:10:45 stdout 5.407 Info PlayerData.cpp:72: Cloud player-data.json unavailable
2018-07-31 10:10:45 stdout 5.406 Info PlayerData.cpp:67: Local player-data.json unavailable
2018-07-31 10:10:42 stdout 2.838 Checksum of base: 3323233190
2018-07-31 10:10:42 stdout 2.838 Checksum for core: 840319042
2018-07-31 10:10:42 stdout 2.094 Loading mod base 0.16.51 (data-updates.lua)
2018-07-31 10:10:40 stdout 0.413 Loading mod base 0.16.51 (data.lua)
2018-07-31 10:10:40 stdout 0.248 Loading mod core 0.0.0 (data.lua)
2018-07-31 10:10:40 stdout 0.202 Running in headless mode
2018-07-31 10:10:40 stdout 0.201 Environment: DISPLAY=, WAYLAND_DISPLAY=
2018-07-31 10:10:40 stdout 0.201 System info: [CPU:         Intel(R) Atom(TM) CPU D2701   @ 2.13GHz, 4 cores, RAM: 3949 MB]
2018-07-31 10:10:40 stdout 0.001 Binaries path: /opt/factorio/bin
2018-07-31 10:10:40 stdout 0.001 Write data path: /opt/factorio [1210028/1826899MB]
2018-07-31 10:10:40 stdout 0.000 Read data path: /opt/factorio/data
2018-07-31 10:10:40 stdout 0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--create" "/factorio/saves/_autosave1.zip" "--map-gen-settings" "/factorio/config/map-gen-settings.json" "--map-settings" "/factorio/config/map-settings.json"
2018-07-31 10:10:40 stdout 0.000 Operating system: Linux
2018-07-31 10:10:40 stdout 0.000 2018-07-31 10:10:40; Factorio 0.16.51 (build 36654, linux64, headless)
2018-07-31 10:10:39 stdout + /opt/factorio/bin/x64/factorio --create /factorio/saves/_autosave1.zip --map-gen-settings /factorio/config/map-gen-settings.json --map-settings /factorio/config/map-settings.json
2018-07-31 10:10:39 stdout + grep -q .
2018-07-31 10:10:39 stdout + find -L /factorio/saves -iname *.zip -mindepth 1 -print
2018-07-31 10:10:39 stdout .
2018-07-31 10:10:39 stdout + find -L /factorio/saves -iname *.tmp.zip -mindepth+  1grep -q -print
2018-07-31 10:10:39 stdout + cp /opt/factorio/data/map-settings.example.json /factorio/config/map-settings.json
2018-07-31 10:10:39 stdout + [ ! -f /factorio/config/map-settings.json ]
2018-07-31 10:10:39 stdout + cp /opt/factorio/data/map-gen-settings.example.json /factorio/config/map-gen-settings.json
2018-07-31 10:10:39 stdout + [ ! -f /factorio/config/map-gen-settings.json ]
2018-07-31 10:10:39 stdout + cp /opt/factorio/data/server-settings.example.json /factorio/config/server-settings.json
2018-07-31 10:10:39 stdout + [ ! -f /factorio/config/server-settings.json ]
2018-07-31 10:10:39 stdout + echo AeC8yoo7eet1she
2018-07-31 10:10:39 stdout + pwgen 15 1
2018-07-31 10:10:39 stdout + [ ! -f /factorio/config/rconpw ]
2018-07-31 10:10:39 stdout + mkdir -p /factorio/script-output
2018-07-31 10:10:39 stdout + mkdir -p /factorio/scenarios
2018-07-31 10:10:39 stdout + mkdir -p /factorio/mods
2018-07-31 10:10:39 stdout + mkdir -p /factorio/config
2018-07-31 10:10:39 stdout + mkdir -p /factorio/saves
2018-07-31 10:10:39 stdout uid=845(factorio) gid=845(factorio) groups=845(factorio)
2018-07-31 10:10:39 stdout + id
2018-07-31 10:10:39 stdout + set -e
Thrimbda commented 6 years ago

@Cerial1 seems like everything works fine, the real problem is that you cannot login via root= =

I wonder how did you access docker daemon the first place since there's no root account?

Cerial1-zz commented 6 years ago

If i can access, where can i find the data?

mjw210 commented 6 years ago

I believe I had the same problem and eventually got it working through the docker interface in DSM. Are you executing your image with high privileges? Are you also assigning a "/factorio" folder somewhere for the image to use?

Cerial1-zz commented 6 years ago

I got it with standard privileges

Got it on - docker /factorio and mount path is /var/lib/factorio

But there no data on both paths

mjw210 commented 6 years ago

Set the mount path to simply /factorio and try that?

Cerial1-zz commented 6 years ago

if i do that, the server crashes down

update

i can access via root, whats next?

mjw210 commented 6 years ago

For my server I execute with high privileges (giving the image root privileges) for the initial setup, and then execute with standard privileges during normal operation. My docker path and mount path are both /factorio.

Cerial1-zz commented 6 years ago

This crashes the docker container

Thrimbda commented 6 years ago

strange, from what you've posted you are using the default start-up script, which means inside the docker container the data path is indeed /factorio.

Can you post the command which is using for run this docker container? (Just like the one below)

sudo docker run -d \
  -p 34197:34197/udp \
  -p 27015:27015/tcp \
  -v /opt/factorio:/factorio \
  --name factorio \
  --restart=always \
  dtandersen/factorio

or are you using docker-compose?

Cerial1-zz commented 6 years ago

Im using Docker on DSM 6.2, just installed it from the "app store" of synology without any mods. The server is up and running, i can connect via lan and internet but i cant modify the server config´s or upload any maps, cant find the folders.

mjw210 commented 6 years ago

I can only share what I'm doing that works on my synology since I'm new with docker, and I've figured it out through trial/error. Can't guarantee that it's right, but it works.

Docker Settings:

Name: Factorio Execute Container with High Privilages: Y

Advanced Settings:

Enable Auto Restart: Y Create Shortcut on Desktop: Y

Advanced Settings > Volume:

Add Folder File/Folder: /factorio Mount Path: /factorio

Advanced Settings > Network:

Use the same network as docker host: Y

If I run that image it works fine. Can you share the error you're receiving when you use /factorio as your folder?

Cerial1-zz commented 6 years ago

No, it starts an crasehs down - i cant get any log´s It just Says " Factorio container needs to restart"

mjw210 commented 6 years ago

I'm guessing at this, so someone please correct me if I'm wrong. But when you're assigning the folder "/var/lib/factorio" to your synology volume, the container says "Thanks, but I don't need that, I use /factorio". So while it doesn't cause any errors, it's storing the docker work files in the docker image and not making it available to you. When you delete that image, you'll delete all of it's files.

To be able to see/modify the files you'll have to figure out some way to get around the crashing and assign the "/factorio" folder to your volume.

Cerial1-zz commented 6 years ago

Oh boy ... i found the Data in here

/volume1/@docker/volumes/1f0dd13d5796d105c210e6319e9a180e3f22e8abf7c2650f69a7583bea6d305b/_data

I can now get accsess via winscp and root account. It works like a charm.