pelican-eggs / eggs

Service eggs for the pterodactyl panel
MIT License
2.81k stars 2.32k forks source link

[Bug]: Conan Exiles server keeps crashing #2692

Open iamc0ke opened 7 months ago

iamc0ke commented 7 months ago

Panel Version

1.11

Wings Version

1.11

Service

Conan Exiles

Modified

No, not modified

Expected Behavior

Server should run without the console beeing flooded with wine warnings.

Actual Behavior

Since the last update (we think its wine 9.0 thats causing this) the server does not behave like expected. It boots normally but with wine prefix warnings:

container@pterodactyl~ Server marked as starting...
Running on Debian 11.8
Current timezone: Etc/UTC
wine-9.0
steam user is not set.

Using anonymous user.

tid(23) burning pthread_key_t == 0 so we never use it
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/container/Steam/logs/stderr.txt'
Logging directory: '/home/container/Steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1705108307
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
"@sSteamCmdForcePlatformType" = "windows"
Success! App '443030' already up to date.
First launch will throw some errors. Ignore them
Installing vcrun2013
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: cd868b5357fc4d22a0c811687280759fb4575ab7e3687da5ab972c66c9614d76 with wine-9.0 and WINEARCH=win64
Executing w_do_call vcrun2013
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
vcrun2013 already installed, skipping
Installing vcrun2015
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: cd868b5357fc4d22a0c811687280759fb4575ab7e3687da5ab972c66c9614d76 with wine-9.0 and WINEARCH=win64
Executing w_do_call vcrun2015
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
vcrun2015 already installed, skipping
Installing corefonts
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: cd868b5357fc4d22a0c811687280759fb4575ab7e3687da5ab972c66c9614d76 with wine-9.0 and WINEARCH=win64
Executing w_do_call corefonts
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
corefonts already installed, skipping
:/home/container$ xvfb-run --auto-servernum wine /home/container/ConanSandbox/Binaries/Win64/ConanSandboxServer-Win64-Shipping.exe -Port=${SERVER_PORT} -QueryPort=${QUERY_PORT} -RconPort=${RCON_PORT} -ServerName="${SRV_NAME}" -console -log

At this point you are able to connect and play. But after round about 10-15 minutes you will get kicked because of RAM problems and the server restarts. We tried to setup a new server but the behaviour is the same.

Steps To Reproduce

Step 1: latest version Step 2: install and keep running Step 3: crash and reboot

Install logs

https://pteropaste.com/t9dgyej5mmsn

QuintenQVD0 commented 7 months ago

Those what you call errors is winetrickd because the docker image indeed went to wine 9. But that should not cause any issues.

iamc0ke commented 7 months ago

Strange... We also tried increasing RAM but that just increased the crash time... It was working before the update but now it seems broken. Like said we tried setting up a new server but it was the same.

windlas commented 7 months ago

Having the same issue here. Kicks after 10-15 minutes or so.

QuintenQVD0 commented 7 months ago

Then for now revert to a older version of the latest wine image that still has 8

iamc0ke commented 7 months ago

Then for now revert to a older version of the latest wine image that still has 8

Would you be so kind and send me more Info on how to do this? Kinda new to this and trying to learn.

windlas commented 7 months ago

Same, please. I'm not sure how to do that either

QuintenQVD0 commented 7 months ago

A fix for now.

  1. Stop the server
  2. Remove the .wine and .cache folder
  3. go to the admin side startup tab
  4. bottom enter a custom image and enter there ghcr.io/parkervcp/yolks:wine_latest@sha256:db82ec2e67fe90d7d66500c3de64a079051a34ad7d2a5ed480c8c72117f9af04
  5. Hit save configuration
  6. start the server again
iamc0ke commented 7 months ago

Its working for me again. Thank you :)

windlas commented 7 months ago

Same! Up for 16h straight now. Thank you kindly!

LordHelmchen commented 6 months ago

I tried running it ourside of pterodactyl with wine 9.0 and it behaves the same. So it is definetly a wine bug.

[2024.02.11-11.47.33:922][114]LogServerStats: Status report. Uptime=1260 Mem=60685398016:101522083840:5261537280:5411749888 CPU=8.143796:65.150368 Players=0 FPS=23.61:33.04:193.61 NPC_AILOD=0:0:0:6459 B_AILOD=0:0:0:85 P_AILOD=0:0:0:610
r

This huge amount of RAM usage in the logs might be an indicator for the erronous behaviour.

gOOvER commented 6 months ago

I tried running it ourside of pterodactyl with wine 9.0 and it behaves the same. So it is definetly a wine bug.

[2024.02.11-11.47.33:922][114]LogServerStats: Status report. Uptime=1260 Mem=60685398016:101522083840:5261537280:5411749888 CPU=8.143796:65.150368 Players=0 FPS=23.61:33.04:193.61 NPC_AILOD=0:0:0:6459 B_AILOD=0:0:0:85 P_AILOD=0:0:0:610
r

This huge amount of RAM usage in the logs might be an indicator for the erronous behaviour.

Then report it to Wine Team. Was the same with wine 8 ;) A hugh usage of RAm since an update ;)

btw; your posted line says nothing. Post a better log for using too much RAM. My installation stays on 4 till 8 gb RAM with Wine 9