Didstopia / 7dtd-server

Provides a dedicated linux server for 7 Days to Die running inside a Docker container.
MIT License
108 stars 45 forks source link

boot looping - latest_experimental - Unable to open log file, exiting. #35

Closed 3n1gmus closed 4 years ago

3n1gmus commented 4 years ago

When Attempting to run latest_experimental build we get boot looping. The only noticeable issue is "Unable to open log file, exiting." (Running 'Public' branch appears to be working)

Log: 2020-07-11T18:18:45.303925195Z Success! App '294420' fully installed. 2020-07-11T18:18:45.303927385Z quit 2020-07-11T18:18:45.748562185Z Starting scheduled task manager.. 2020-07-11T18:18:45.781274131Z Found path: /steamcmd/7dtd/7DaysToDieServer.x8664 2020-07-11T18:18:45.781967703Z Unable to open log file, exiting. 2020-07-11T18:18:45.786594067Z Exiting.. 2020-07-11T18:18:46.523195321Z 2020-07-11T18:18:46.523210450Z 2020-07-11T18:18:46.523213398Z ╔═════════════════════════════════════════════════╗ 2020-07-11T18:18:46.523216776Z ║ ____ ║ 2020-07-11T18:18:46.523219241Z ║ | () | | | | () ║ 2020-07-11T18:18:46.523221567Z ║ | | | |_ _| || |_ _ ║ 2020-07-11T18:18:46.523229847Z ║ | | | | |/ | / | / | | | |/ _| | ║ 2020-07-11T18:18:46.523232126Z ║ | || | | (| _ \ || () | |) | | (| | ║ 2020-07-11T18:18:46.523234146Z ║ |____/|_|\|_|/\\/| |_/||_|| ║ 2020-07-11T18:18:46.523236228Z ║ | | ║ 2020-07-11T18:18:46.523238162Z ║ |_| ║ 2020-07-11T18:18:46.523240133Z ╠═════════════════════════════════════════════════╣ 2020-07-11T18:18:46.523242283Z ║ You are using an image that is based on ║ 2020-07-11T18:18:46.523244201Z ║ a base image maintained by Didstopia. ║ 2020-07-11T18:18:46.523246103Z ║ ║ 2020-07-11T18:18:46.523248001Z ║ For more information: ║ 2020-07-11T18:18:46.523249898Z ║ https://github.com/Didstopia/docker-base-images ║ 2020-07-11T18:18:46.523251853Z ╚═════════════════════════════════════════════════╝ 2020-07-11T18:18:46.523254010Z 2020-07-11T18:18:46.523255893Z 2020-07-11T18:18:46.525803878Z Running as user: docker 2020-07-11T18:18:46.525988916Z Using branch arguments: latest_experimental 2020-07-11T18:18:46.527154972Z Installing/updating steamcmd.. 2020-07-11T18:18:46.616392259Z x linux32/ 2020-07-11T18:18:46.699874809Z x linux32/libstdc++.so.6 2020-07-11T18:18:46.775233324Z x linux32/steamcmd 2020-07-11T18:18:46.775329503Z x steamcmd.sh 2020-07-11T18:18:46.775413974Z x steam.sh

cedarrapidsboy commented 4 years ago

I have this same problem when running from the experimental version (A19). I was able to work around it by changing the server startup parameters to not use /dev/stdout:

SEVEN_DAYS_TO_DIE_SERVER_STARTUP_ARGUMENTS = -logfile **/app/.local/share/7DaysToDie/log** -quit -batchmode -nographics -dedicated

This will, unfortunately, redirect the server logging to a file rather than to the Docker stdout. Perhaps someone with more experience can determine why this is a problem from looking at this workaround.

collantesro commented 4 years ago

I think it defaults to logging to stdout, so the flag might not be required. I removed it entirely and latest_experimental runs properly, with logging to stdout.

cedarrapidsboy commented 4 years ago

I think it defaults to logging to stdout, so the flag might not be required. I removed it entirely and latest_experimental runs properly, with logging to stdout.

Thanks. I can confirm that removing the -logfile argument allowed server startup and it still logs correctly to stdout.

eandersson commented 4 years ago

Btw this went live today (stable) so unless you manually override the default the container wont start up.

jejanim commented 4 years ago

@Dids Please incorporate this fix or at least add a reminder to the readme.