thijsvanloef / palworld-server-docker

A Docker Container to easily run a Palworld dedicated server.
https://hub.docker.com/r/thijsvanloef/palworld-server-docker
MIT License
2.42k stars 295 forks source link

MacOS Docker Desktop cant run the image #556

Closed YoungChigga613 closed 2 months ago

YoungChigga613 commented 3 months ago

my cpu is apple m2 , system is macOS Sonoma 14.5 , next is my docker-compose.yml services: palworld: image: thijsvanloef/palworld-server-docker:latest restart: always container_name: palworld-server stop_grace_period: 30s ports:

next is error msg

2024-06-22 23:04:50 usermod: no changes 2024-06-22 23:04:50 ARM compatibility mode enabled 2024-06-22 23:04:50 Server installation not detected. 2024-06-22 23:04:50 Starting Installation 2024-06-22 23:04:52 Redirecting stderr to '/home/steam/Steam/logs/stderr.txt' 2024-06-22 23:04:52 Logging directory: '/home/steam/Steam/logs' 2024-06-22 23:04:52 Looks like steam didn't shutdown cleanly, scheduling immediate update check 2024-06-22 23:04:52 [ 0%] Checking for available updates... 2024-06-22 23:04:52 [----] Verifying installation... 2024-06-22 23:04:52 UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1718904263 2024-06-22 23:04:52 -- type 'quit' to exit -- 2024-06-22 23:04:52 Loading Steam API..../PalServer-arm64.sh does not exist.

thijsvanloef commented 3 months ago

Could you also show your a.env file? (please do not forget to remove secrets)

YoungChigga613 commented 3 months ago

您还可以展示一下您的 a.env 文件吗?(请不要忘记删除机密)

yes this is my a.env

TZ=UTC PLAYERS=16 PORT=8211 PUID=1000 PGID=1000 MULTITHREADING=false COMMUNITY=false PUBLIC_IP= PUBLIC_PORT= SERVER_NAME=server-palword SERVER_DESCRIPTION=palworld-server-docker by youngchigga SERVER_PASSWORD=qwe123asd ADMIN_PASSWORD=qwe123asd UPDATE_ON_BOOT=true RCON_ENABLED=true RCON_PORT=25575 QUERY_PORT=27015 BACKUP_ENABLED=true DELETE_OLD_BACKUPS=false OLD_BACKUP_DAYS=30 BACKUP_CRON_EXPRESSION=0 0 AUTO_UPDATE_ENABLED=false AUTO_UPDATE_CRON_EXPRESSION=0 AUTO_UPDATE_WARN_MINUTES=30 AUTO_REBOOT_ENABLED=false AUTO_REBOOT_EVEN_IF_PLAYERS_ONLINE=false AUTO_REBOOT_WARN_MINUTES=5 AUTO_REBOOT_CRON_EXPRESSION=0 0 0/3 * ? ENABLE_PLAYER_LOGGING=true PLAYER_LOGGING_POLL_PERIOD=5 ARM_COMPATIBILITY_MODE=true DIFFICULTY=None DAYTIME_SPEEDRATE=1.000000 NIGHTTIME_SPEEDRATE=1.000000 EXP_RATE=1.000000 PAL_CAPTURE_RATE=1.000000 PAL_SPAWN_NUM_RATE=1.000000 PAL_DAMAGE_RATE_ATTACK=1.000000 PAL_DAMAGE_RATE_DEFENSE=1.000000 PLAYER_DAMAGE_RATE_ATTACK=1.000000 PLAYER_DAMAGE_RATE_DEFENSE=1.000000 PLAYER_STOMACH_DECREASE_RATE=1.000000 PLAYER_STAMINA_DECREASE_RATE=1.000000 PLAYER_AUTO_HP_REGEN_RATE=1.000000 PLAYER_AUTO_HP_REGEN_RATE_IN_SLEEP=1.000000 PAL_STOMACH_DECREASE_RATE=1.000000 PAL_STAMINA_DECREASE_RATE=1.000000 PAL_AUTO_HP_REGEN_RATE=1.000000 PAL_AUTO_HP_REGEN_RATE_IN_SLEEP=1.000000 BUILD_OBJECT_DAMAGE_RATE=1.000000 BUILD_OBJECT_DETERIORATION_DAMAGE_RATE=1.000000 COLLECTION_DROP_RATE=1.000000 COLLECTION_OBJECT_HP_RATE=1.000000 COLLECTION_OBJECT_RESPAWN_SPEED_RATE=1.000000 ENEMY_DROP_ITEM_RATE=1.000000 DEATH_PENALTY=None ENABLE_PLAYER_TO_PLAYER_DAMAGE=False ENABLE_FRIENDLY_FIRE=False ENABLE_INVADER_ENEMY=True ACTIVE_UNKO=False ENABLE_AIM_ASSIST_PAD=True ENABLE_AIM_ASSIST_KEYBOARD=False DROP_ITEM_MAX_NUM=3000 DROP_ITEM_MAX_NUM_UNKO=100 BASE_CAMP_MAX_NUM=128 BASE_CAMP_WORKER_MAX_NUM=15 DROP_ITEM_ALIVE_MAX_HOURS=1.000000 AUTO_RESET_GUILD_NO_ONLINE_PLAYERS=False AUTO_RESET_GUILD_TIME_NO_ONLINE_PLAYERS=72.00000 GUILD_PLAYER_MAX_NUM=20 PAL_EGG_DEFAULT_HATCHING_TIME=0.01000 WORK_SPEED_RATE=1.000000 IS_MULTIPLAY=False IS_PVP=False CAN_PICKUP_OTHER_GUILD_DEATH_PENALTY_DROP=False ENABLE_NON_LOGIN_PENALTY=True ENABLE_FAST_TRAVEL=True IS_START_LOCATION_SELECT_BY_MAP=True EXIST_PLAYER_AFTER_LOGOUT=False ENABLE_DEFENSE_OTHER_GUILD_PLAYER=False COOP_PLAYER_MAX_NUM=4 REGION= USEAUTH=True BAN_LIST_URL=https://api.palworldgame.com/api/banlist.txt REST_API_ENABLED=False REST_API_PORT=8212 SHOW_PLAYER_LIST=True ALLOW_CONNECT_PLATFORM=Steam USE_BACKUP_SAVE_DATA=True

thijsvanloef commented 3 months ago

Hi! I don't have access to an m series macbook, so I'll have to troubleshoot with you, apologies for that. What happens when you set ARM_COMPATIBILITY_MODE to false?

YoungChigga613 commented 3 months ago

hi,when I set ARM_COMPATIBILITY_MODE to false ,the steam api will loading fatal 2024-06-24 14:02:10 palworld-server | [----] Cleaning up... 2024-06-24 14:02:10 palworld-server | [----] Update complete, launching Steamcmd... 2024-06-24 14:02:10 palworld-server | steamcmd.sh[27]: Restarting steamcmd by request... 2024-06-24 14:02:14 palworld-server | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt' 2024-06-24 14:02:14 palworld-server | Logging directory: '/home/steam/Steam/logs' 2024-06-24 14:02:14 palworld-server | [ 0%] Checking for available updates... 2024-06-24 14:02:14 palworld-server | [----] Verifying installation... 2024-06-24 14:02:14 palworld-server | UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1718904263 2024-06-24 14:02:14 palworld-server | -- type 'quit' to exit -- 2024-06-24 14:02:14 palworld-server | Loading Steam API...Fatal error: futex robust_list not initialized by pthreads 2024-06-24 14:02:15 palworld-server | src/common/framefunction.cpp (238) : Assertion Failed: CFrameFunctionMgr::~CFrameFunctionMgr: non static FrameFunction[CHTTPClient::BFrameFuncHandleCompletedWorkItems] still registered 2024-06-24 14:02:15 palworld-server | cp: cannot stat './PalServer.sh': No such file or directory 2024-06-24 14:02:15 palworld-server | sed: can't read ./PalServer-arm64.sh: No such file or directory 2024-06-24 14:02:15 palworld-server | chmod: cannot access './PalServer-arm64.sh': No such file or directory 2024-06-24 14:02:15 palworld-server | ./PalServer-arm64.sh does not exist.

SherbazHashmi commented 3 months ago

Same issue here, no idea where the ./PalServer.sh is created to be able to understand why it's not being run...

thijsvanloef commented 3 months ago

@sonroyaalmerol Are you able to assist here? You've been a great help with ARM compatibility before :)

sonroyaalmerol commented 3 months ago

Sure, I'll try. Can we get the logs with both ARM_COMPATIBILITY_MODE to false and BOX86_LOG to 2?

This will make the logs really long so putting it on pastebin or uploading the log as a file would be preferable.

YoungChigga613 commented 3 months ago

ARM_COMPATIBILITY_MODE当然,我会试试。我们可以获取包含tofalseBOX86_LOGto 的日志吗2

这会使日志变得非常长,因此最好将其放在 pastebin 上或将日志作为文件上传。

Sorry, I can't find the setting BOX86_LOG to 2 in the configuration file. Where should I set it

sonroyaalmerol commented 3 months ago

Yes, it's not in the default list as it is only meant for debugging. Please add it to the env file, same as the ARM_COMPATIBILITY_MODE. It can be placed anywhere within the file.

YoungChigga613 commented 3 months ago

Yes, it's not in the default list as it is only meant for debugging. Please add it to the env file, same as the ARM_COMPATIBILITY_MODE. It can be placed anywhere within the file.

When I set up and launched the container according to what you said, the logs were constantly scrolling on the screen, so I stopped the container. Here are the logs from when I started it to when I stopped it.� logs.txt.zip

sonroyaalmerol commented 3 months ago

It looks like there is a problem between Docker Desktop's qemu and box86. It used to work but there has been a lot of updates since then. Might have to look into this when I have the time. M-series CPUs don't support 32-bit so Docker Desktop is pretty much forced to use qemu to emulate box86, which is a 32-bit process.

For now, looks like we'll need to try and make ARM_COMPATIBILITY_MODE work. ARM_COMPATIBILITY_MODE pretty much skips the box86 part and just straight up use qemu to emulate steamcmd.

Let's remove the BOX86_LOG line and set ARM_COMPATIBILITY_MODE to true again. Then, let's add another line in the env file: LD_LIBRARY_PATH and set it to /home/steam/steamcmd/linux32:$LD_LIBRARY_PATH. It might just need to have the library path explicitly declared.

YoungChigga613 commented 3 months ago

It looks like there is a problem between Docker Desktop's qemu and box86. It used to work but there has been a lot of updates since then. Might have to look into this when I have the time. M-series CPUs don't support 32-bit so Docker Desktop is pretty much forced to use qemu to emulate box86, which is a 32-bit process.

For now, looks like we'll need to try and make ARM_COMPATIBILITY_MODE work. ARM_COMPATIBILITY_MODE pretty much skips the box86 part and just straight up use qemu to emulate steamcmd.

Let's remove the BOX86_LOG line and set ARM_COMPATIBILITY_MODE to true again. Then, let's add another line in the env file: LD_LIBRARY_PATH and set it to /home/steam/steamcmd/linux32:$LD_LIBRARY_PATH. It might just need to have the library path explicitly declared.

I set ARM_COMPATIBILITY_MODE to true and LD_LIBRARY_PATH to /home/steam/steamcmd/linux32:$LD_LIBRARY_PATH,here is the logs log.txt

sonroyaalmerol commented 3 months ago

I might need to update the arm64 base image to fix this. I'll see what I can do.

pp7sec commented 3 months ago

any update ?

sonroyaalmerol commented 2 months ago

I'm currently trying to build qemu-user-static from source and add it to the arm64 base image. It takes a while for me to figure out the build dependencies required as the documentations are quite outdated. The build process itself takes a long time as well. Builds on official debian repos are very old so I'm hoping an update of the binaries fixes the issue.

After the builds are done, I'll need to test for regressions before letting you guys test it on your own machines to not waste anyone's time. Asking for updates will not make things any faster. I'd appreciate having more info/suggestions if you have something to add to this issue. Otherwise, feel free to subscribe to this thread. I'll be updating you when I have any updates. Thanks :)

Also, you can opt to use Rosetta to do all the emulation instead if it works with Docker Desktop. There were problems in the past with Rosetta iirc but feel free to try. Just specify the platform as linux/amd64 in your docker-compose file and Docker Desktop should execute Rosetta as it needs to.

...
services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      platform: linux/amd64
      ...
sonroyaalmerol commented 2 months ago

Unfortunately, it seems to be an issue with an unimplemented function in QEMU due to a recent steamcmd update which uses that same function. Can't really do much at this point to fix this until QEMU implements the missing function. For now, seems like forcing Rosetta will be your only choice for M-series Macs.

Also, this pretty much explains why arm64 tests were failing recently over the Github hosted amd64 runners as those were using QEMU as well @thijsvanloef.

This shouldn't affect the other arm64 hosts as long as they're capable of running 32-bit apps.

I've submitted a report over their repo: https://gitlab.com/qemu-project/qemu/-/issues/2424

thijsvanloef commented 2 months ago

Here is a test image: thijsvanloef/palworld-server-docker:arm-test If you could please test this image in combination with: USE_DEPOT_DOWNLOADER=true I would be very grateful :)

jaycho1214 commented 2 months ago

ENV: Macbook Pro 16 (M1 Max, 32GB RAM). Game: PalWorld (Steam, Geforce NOW)

I initially tried running the server with RCON enabled, but encountered a segmentation fault and was unable to connect to the server. After disabling RCON, the server worked correctly. Later, I re-enabled RCON and tried again, and this time it worked without issues. I accidentally deleted the first log where I encountered an error, so I am attaching rest of them.

Below is my configuration. To disable RCON, I commented out the ports and set RCON_ENABLED to false. Both configurations worked.

services:
  palworld:
    image: thijsvanloef/palworld-server-docker:arm-test
    restart: unless-stopped
    container_name: palworld-server
    stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop
    ports:
      - 8211:8211/udp
      - 27015:27015/udp
      # - 8212:8212/tcp  # Port for REST API if REST_API_ENABLED: true
    environment:
      PUID: 1000
      PGID: 1000
      PORT: 8211 # Optional but recommended
      PLAYERS: 16 # Optional but recommended
      SERVER_PASSWORD: "worldofpals" # Optional but recommended
      MULTITHREADING: true
      RCON_ENABLED: true
      RCON_PORT: 25575
      TZ: "UTC"
      ADMIN_PASSWORD: "adminPasswordHere"
      COMMUNITY: false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
      SERVER_NAME: "palworld-server-docker by Thijs van Loef"
      SERVER_DESCRIPTION: "palworld-server-docker by Thijs van Loef"
      ALLOW_CONNECT_PLATFORM: "Steam" # Defaults to "Steam" if not set, set this to "Xbox" if you want to host a server for Xbox players. CROSSPLAY BETWEEN XBOX-STEAM IS NOT YET SUPPORTED
      USE_DEPOT_DOWNLOADER: true
    volumes:
      - ./palworld:/palworld/

Log (RCON DISABLED)

2024-07-05 22:55:08 palworld-server  | ****EXECUTING USERMOD****
2024-07-05 22:55:08 palworld-server  | usermod: no changes
2024-07-05 22:55:09 palworld-server  | ****Checking for new Palworld Server updates****
2024-07-05 22:55:09 palworld-server  | Current Version: 7197559707261547198
2024-07-05 22:55:09 palworld-server  | The server is up to date!
2024-07-05 22:55:09 palworld-server  | ****Checking for available container updates****
2024-07-05 22:55:10 palworld-server  | New version available: 0.38.1
2024-07-05 22:55:10 palworld-server  | Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
2024-07-05 22:55:10 palworld-server  | ****GENERATING CONFIG****
2024-07-05 22:55:10 palworld-server  | Using Env vars to create PalWorldSettings.ini
2024-07-05 22:55:10 palworld-server  | ****Compiling PalWorldSettings.ini****
2024-07-05 22:55:10 palworld-server  | Compiling PalWorldSettings.ini done!
2024-07-05 22:55:10 palworld-server  | ****GENERATING CRONTAB****
2024-07-05 22:55:10 palworld-server  | BACKUP_ENABLED=true
2024-07-05 22:55:10 palworld-server  | Adding cronjob for auto backups
2024-07-05 22:55:10 palworld-server  | Cronjobs started
2024-07-05 22:55:10 palworld-server  | ****Starting Server****
2024-07-05 22:55:10 palworld-server  | ./PalServer-arm64.sh -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
2024-07-05 22:55:10 palworld-server  | time="2024-07-06T05:55:10Z" level=info msg="read crontab: /home/steam/server/crontab"
2024-07-05 22:55:10 palworld-server  | The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
2024-07-05 22:55:12 palworld-server  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
2024-07-05 22:55:12 palworld-server  | Shutdown handler: initalize.
2024-07-05 22:55:12 palworld-server  | 5.1.1-0+++UE5+Release-5.1 1008 0
2024-07-05 22:55:12 palworld-server  | Disabling core dumps.
2024-07-05 22:55:12 palworld-server  | CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
2024-07-05 22:55:12 palworld-server  | Setting breakpad minidump AppID = 2394010
2024-07-05 22:55:12 palworld-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
2024-07-05 22:55:12 palworld-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
2024-07-05 22:55:19 palworld-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
2024-07-05 22:55:20 palworld-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
2024-07-05 22:55:21 palworld-server  | Game version is v0.3.2.55495
2024-07-05 22:56:06 palworld-server  | [2024-07-06 05:56:06] [LOG] myusername 192.168.65.1 connected the server. (User id: mysteamuserid)

LOG (RCON Enabled, Second Attempt)

2024-07-05 22:59:10 palworld-server  | ****EXECUTING USERMOD****
2024-07-05 22:59:10 palworld-server  | usermod: no changes
2024-07-05 22:59:11 palworld-server  | ****Checking for new Palworld Server updates****
2024-07-05 22:59:11 palworld-server  | Current Version: 7197559707261547198
2024-07-05 22:59:11 palworld-server  | The server is up to date!
2024-07-05 22:59:11 palworld-server  | ****Checking for available container updates****
2024-07-05 22:59:12 palworld-server  | New version available: 0.38.1
2024-07-05 22:59:12 palworld-server  | Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
2024-07-05 22:59:12 palworld-server  | ****GENERATING CONFIG****
2024-07-05 22:59:12 palworld-server  | Using Env vars to create PalWorldSettings.ini
2024-07-05 22:59:12 palworld-server  | ****Compiling PalWorldSettings.ini****
2024-07-05 22:59:12 palworld-server  | Compiling PalWorldSettings.ini done!
2024-07-05 22:59:12 palworld-server  | ****GENERATING CRONTAB****
2024-07-05 22:59:12 palworld-server  | BACKUP_ENABLED=true
2024-07-05 22:59:12 palworld-server  | Adding cronjob for auto backups
2024-07-05 22:59:12 palworld-server  | Cronjobs started
2024-07-05 22:59:12 palworld-server  | ****Starting Server****
2024-07-05 22:59:12 palworld-server  | ./PalServer-arm64.sh -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
2024-07-05 22:59:12 palworld-server  | time="2024-07-06T05:59:12Z" level=info msg="read crontab: /home/steam/server/crontab"
2024-07-05 22:59:12 palworld-server  | The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
2024-07-05 22:59:15 palworld-server  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
2024-07-05 22:59:15 palworld-server  | Shutdown handler: initalize.
2024-07-05 22:59:15 palworld-server  | 5.1.1-0+++UE5+Release-5.1 1008 0
2024-07-05 22:59:15 palworld-server  | Disabling core dumps.
2024-07-05 22:59:15 palworld-server  | CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
2024-07-05 22:59:15 palworld-server  | Setting breakpad minidump AppID = 2394010
2024-07-05 22:59:15 palworld-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
2024-07-05 22:59:15 palworld-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
2024-07-05 22:59:17 palworld-server  | Waiting for RCON(25575) port to open to show player logging...
2024-07-05 22:59:17 palworld-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
2024-07-05 22:59:19 palworld-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
2024-07-05 22:59:20 palworld-server  | Game version is v0.3.2.55495
2024-07-05 22:59:22 palworld-server  | Waiting for RCON(25575) port to open to show player logging...
2024-07-05 22:59:23 palworld-server  | [2024-07-06 05:59:23] [LOG] RCON executed the command. ShowPlayers
2024-07-05 22:59:29 palworld-server  | [2024-07-06 05:59:29] [LOG] RCON executed the command. ShowPlayers
2024-07-05 22:59:34 palworld-server  | [2024-07-06 05:59:34] [LOG] RCON executed the command. ShowPlayers
2024-07-05 22:59:39 palworld-server  | [2024-07-06 05:59:39] [LOG] RCON executed the command. ShowPlayers
2024-07-05 22:59:44 palworld-server  | [2024-07-06 05:59:44] [LOG] RCON executed the command. ShowPlayers
2024-07-05 22:59:49 palworld-server  | [2024-07-06 05:59:49] [LOG] RCON executed the command. ShowPlayers
2024-07-05 22:59:54 palworld-server  | [2024-07-06 05:59:54] [LOG] RCON executed the command. ShowPlayers
2024-07-05 23:00:00 palworld-server  | [2024-07-06 06:00:00] [LOG] RCON executed the command. ShowPlayers
2024-07-05 23:00:02 palworld-server  | [2024-07-06 06:00:02] [LOG] myusername 192.168.65.1 connected the server. (User id: mysteamuserid)
2024-07-05 23:00:06 palworld-server  | [2024-07-06 06:00:06] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:11 palworld-server  | [2024-07-06 06:00:11] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:16 palworld-server  | [2024-07-06 06:00:16] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:21 palworld-server  | [2024-07-06 06:00:21] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:26 palworld-server  | [2024-07-06 06:00:26] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:31 palworld-server  | [2024-07-06 06:00:31] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:36 palworld-server  | [2024-07-06 06:00:36] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:41 palworld-server  | [2024-07-06 06:00:41] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:46 palworld-server  | [2024-07-06 06:00:46] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:51 palworld-server  | [2024-07-06 06:00:51] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:00:56 palworld-server  | [2024-07-06 06:00:56] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:01 palworld-server  | [2024-07-06 06:01:01] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:06 palworld-server  | [2024-07-06 06:01:06] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:11 palworld-server  | [2024-07-06 06:01:11] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:16 palworld-server  | [2024-07-06 06:01:16] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:21 palworld-server  | [2024-07-06 06:01:21] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:26 palworld-server  | [2024-07-06 06:01:26] [LOG] myusername executed the command. ShowPlayers
2024-07-05 23:01:31 palworld-server  | [2024-07-06 06:01:31] [LOG] myusername executed the command. ShowPlayers
sonroyaalmerol commented 2 months ago

The segmentation fault might not be caused by RCON necessarily. It was probably a coincidence. ARM in general has been experiencing segfaults randomly (see #571). There is a draft PR that might fix/minimize these segfaults (#576).

The draft PR doesn't have DepotDownloader yet but you should be able to skip steamcmd with the existing server files you have. You can try the test image for that PR with UPDATE_ON_BOOT set to false and ARM64_DEVICE set to m1.

jaycho1214 commented 2 months ago

@sonroyaalmerol, I tried using the configuration you suggested, with a save file overwritten from my previous server (I only replaced Saved/SaveGames/0). I can see the server loading, and I am able to connect, but Pal won't come out of the sphere, and the server crashes after about a minute.

docker-compose.yml

services:
  palworld:
    image: thijsvanloef/palworld-server-docker:arm-test
    restart: unless-stopped
    container_name: palworld-server
    stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop
    ports:
      - 8211:8211/udp
      # - 27015:27015/udp
      # - 8212:8212/tcp  # Port for REST API if REST_API_ENABLED: true
    environment:
      PUID: 1000
      PGID: 1000
      PORT: 8211 # Optional but recommended
      PLAYERS: 16 # Optional but recommended
      SERVER_PASSWORD: "0502" # Optional but recommended
      MULTITHREADING: true
      RCON_ENABLED: false
      RCON_PORT: 25575
      TZ: "PT"
      ADMIN_PASSWORD: "PASSWORD"
      COMMUNITY: false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
      SERVER_NAME: ""
      SERVER_DESCRIPTION: ""
      ALLOW_CONNECT_PLATFORM: "Steam" # Defaults to "Steam" if not set, set this to "Xbox" if you want to host a server for Xbox players. CROSSPLAY BETWEEN XBOX-STEAM IS NOT YET SUPPORTED
      USE_DEPOT_DOWNLOADER: true
      AUTO_UPDATE_ENABLED: false
      UPDATE_ON_BOOT: false
      ARM64_DEVICE: "m1"
    volumes:
      - ./palworld:/palworld/
Log

2024-07-05 23:37:48 ****EXECUTING USERMOD****
2024-07-05 23:37:48 usermod: no changes
2024-07-05 23:37:49 ****Checking for available container updates****
2024-07-05 23:37:49 New version available: 0.38.1
2024-07-05 23:37:49 Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
2024-07-05 23:37:49 ****GENERATING CONFIG****
2024-07-05 23:37:49 Using Env vars to create PalWorldSettings.ini
2024-07-05 23:37:49 ****Compiling PalWorldSettings.ini****
2024-07-05 23:37:49 Compiling PalWorldSettings.ini done!
2024-07-05 23:37:49 ****GENERATING CRONTAB****
2024-07-05 23:37:49 BACKUP_ENABLED=true
2024-07-05 23:37:49 Adding cronjob for auto backups
2024-07-05 23:37:49 Cronjobs started
2024-07-05 23:37:49 ****Starting Server****
2024-07-05 23:37:49 ./PalServer-arm64.sh -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
2024-07-05 23:37:49 The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
2024-07-05 23:37:52 Shutdown handler: initalize.
2024-07-05 23:37:52 5.1.1-0+++UE5+Release-5.1 1008 0
2024-07-05 23:37:52 Disabling core dumps.
2024-07-05 23:38:02 Game version is v0.3.2.55495
2024-07-05 23:38:43 LogPakFile: Display: Found Pak file ../../../Engine/Programs/CrashReportClient/Content/Paks/CrashReportClient.pak attempting to mount.
2024-07-05 23:38:43 LogPakFile: Display: Mounting pak file ../../../Engine/Programs/CrashReportClient/Content/Paks/CrashReportClient.pak.
2024-07-05 23:37:49 time="2024-07-06T06:37:49Z" level=info msg="read crontab: /home/steam/server/crontab"
2024-07-05 23:37:52 [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
2024-07-05 23:37:52 CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
2024-07-05 23:37:53 Setting breakpad minidump AppID = 2394010
2024-07-05 23:37:53 [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
2024-07-05 23:37:53 [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
2024-07-05 23:37:55 [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
2024-07-05 23:37:56 [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
2024-07-05 23:38:43 LogPakFile: Display: Mounted Pak file '../../../Engine/Programs/CrashReportClient/Content/Paks/CrashReportClient.pak', mount point: '../../../Engine/'
2024-07-05 23:38:43 LogICUInternationalization: ICU TimeZone Detection - Raw Offset: +0:00, Platform Override: ''
2024-07-05 23:38:43 LogInit: Build: ++UE5+Release-5.1-CL-0
2024-07-05 23:38:43 LogInit: Engine Version: 5.1.1-0+++UE5+Release-5.1
2024-07-05 23:38:43 LogInit: Compatible Engine Version: 5.1.0-0+++UE5+Release-5.1
2024-07-05 23:38:43 LogInit: Net CL: 0
2024-07-05 23:38:43 LogInit: OS: Debian GNU/Linux 12 (bookworm) (6.6.32-linuxkit), CPU: Box64 on - @1000 MHz, GPU: UnknownVendor
2024-07-05 23:38:43 LogInit: Compiled (64-bit): Jun 12 2024 15:50:14
2024-07-05 23:38:43 LogInit: Compiled with Clang: 13.0.1 (https://github.com/llvm/llvm-project 75e33f71c2dae584b13a7d1186ae0a038ba98838)
2024-07-05 23:38:43 LogInit: Build Configuration: Shipping
2024-07-05 23:38:43 LogInit: Branch Name: ++UE5+Release-5.1
2024-07-05 23:38:43 LogInit: Command Line:  -Abslog="/palworld/Pal/Saved/Logs/Pal-CRC.log" -Unattended -ImplicitSend "/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-65-CA6201D59EC344F7B748CCDE2428358D/" -unattended
2024-07-05 23:38:43 LogInit: Base Directory: /palworld/Engine/Binaries/Linux/
2024-07-05 23:38:43 LogInit: Allocator: Mimalloc
2024-07-05 23:38:43 LogInit: Installed Engine Build: 1
2024-07-05 23:38:43 LogInit: Presizing for max 100000 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
2024-07-05 23:38:43 LogInit: Object subsystem initialized
2024-07-05 23:38:43 [2024.07.06-06.38.43:072][  0]LogConfig: Applying CVar settings from Section [ConsoleVariables] File [Engine]
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit: Unix hardware info:
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - we are the first instance of this executable
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - this process' id (pid) is 131, parent process' id (ppid) is 65
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - we are not running under debugger
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - machine network name is 'a9f926fa1de0'
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - user name is 'steam' (steam)
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - we're logged in locally
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - we're running with rendering
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - CPU: GenuineIntel 'Box64 on - @1000 MHz' (signature: 0x601)
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - Number of physical cores available for the process: 10
2024-07-05 23:38:43 [2024.07.06-06.38.43:073][  0]LogInit:  - Number of logical cores available for the process: 10
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  - Cache line size: 64
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  - GPU Brand Info: UnknownVendor
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  - Memory allocator used: Mimalloc
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  - This binary is optimized with LTO: no, PGO: no, instrumented for PGO data collection: no
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  - This is an internal build.
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogCore: Skipped benchmarking clocks because the engine is running in a standalone program mode - CLOCK_MONOTONIC will be used.
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit: Unix-specific commandline switches:
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -ansimalloc - use malloc()/free() from libc (useful for tools like valgrind and electric fence)
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -jemalloc - use jemalloc for all memory allocation
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -binnedmalloc - use binned malloc  for all memory allocation
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -filemapcachesize=NUMBER - set the size for case-sensitive file mapping cache
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -useksm - uses kernel same-page mapping (KSM) for mapped memory (OFF)
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -ksmmergeall - marks all mmap'd memory pages suitable for KSM (OFF)
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -preloadmodulesymbols - Loads the main module symbols file into memory (OFF)
2024-07-05 23:38:43 [2024.07.06-06.38.43:074][  0]LogInit:  -sigdfl=SIGNAL - Allows a specific signal to be set to its default handler rather then ignoring the signal
2024-07-05 23:38:44 [2024.07.06-06.38.43:074][  0]LogInit:  -crashhandlerstacksize - Allows setting crash handler stack sizes (204800)
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  -noexclusivelockonwrite - disables marking files created by the engine as exclusive locked while the engine has them opened
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  -httpproxy=ADDRESS:PORT - redirects HTTP requests to a proxy (only supported if compiled with libcurl)
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  -reuseconn - allow libcurl to reuse HTTP connections (only matters if compiled with libcurl)
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  -virtmemkb=NUMBER - sets process virtual memory (address space) limit (overrides VirtualMemoryLimitInKB value from .ini)
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  - Physical RAM available (not considering process quota): 8 GB (7840 MB, 8028924 KB, 8221618176 bytes)
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  - VirtualMemoryAllocator pools will grow at scale 1.4
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  - MemoryRangeDecommit() will be a no-op (re-run with -vmapoolevict to change)
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  - PageSize 4096
2024-07-05 23:38:44 [2024.07.06-06.38.43:075][  0]LogInit:  - BinnedPageSize 65536
2024-07-05 23:38:44 [2024.07.06-06.38.43:129][  0]LogUObjectArray: 419 objects as part of root set at end of initial load.
2024-07-05 23:38:44 [2024.07.06-06.38.43:129][  0]LogUObjectAllocator: 89064 out of 0 bytes used by permanent object pool.
2024-07-05 23:38:44 [2024.07.06-06.38.43:129][  0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
2024-07-05 23:38:44 [2024.07.06-06.38.43:131][  0]LogPaths: Warning: No paths for game localization data were specifed in the game configuration.
2024-07-05 23:38:44 [2024.07.06-06.38.43:132][  0]LogInit: Using OS detected language (en-US-POSIX).
2024-07-05 23:38:44 [2024.07.06-06.38.43:132][  0]LogInit: Using OS detected locale (en-US-POSIX).
2024-07-05 23:38:44 [2024.07.06-06.38.43:132][  0]LogInit: Warning: No paths for engine localization data were specifed in the engine configuration.
2024-07-05 23:38:44 [2024.07.06-06.38.43:135][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the language.
2024-07-05 23:38:44 [2024.07.06-06.38.43:135][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the locale.
2024-07-05 23:38:44 [2024.07.06-06.38.43:137][  0]LogInit: Using OS detected language (en-US-POSIX).
2024-07-05 23:38:44 [2024.07.06-06.38.43:137][  0]LogInit: Using OS detected locale (en-US-POSIX).
2024-07-05 23:38:44 [2024.07.06-06.38.43:137][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the language.
2024-07-05 23:38:44 [2024.07.06-06.38.43:137][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the locale.
2024-07-05 23:38:44 [2024.07.06-06.38.43:147][  0]LogPackageLocalizationCache: Processed 2 localized package path(s) for 1 prioritized culture(s) in 0.004052 seconds
2024-07-05 23:38:44 [2024.07.06-06.38.43:149][  0]CrashReportCoreLog: CrashReportClientVersion=1.0
2024-07-05 23:38:44 [2024.07.06-06.38.43:149][  0]CrashReportCoreLog: CrashReportReceiver disabled
2024-07-05 23:38:44 [2024.07.06-06.38.43:149][  0]CrashReportCoreLog: DataRouterUrl: https://o1291919.ingest.sentry.io/api/6513339/unreal/4a1a3921f51f4975b4cf8dd19022cb20/
2024-07-05 23:38:44 [2024.07.06-06.38.43:168][  0]CrashReportCoreLog: Initial state = Unknown UploadState value
2024-07-05 23:38:44 [2024.07.06-06.38.43:168][  0]CrashReportCoreLog: Initial state = Unknown UploadState value
2024-07-05 23:38:44 [2024.07.06-06.38.43:175][  0]LogCrashDebugHelper: DepotName: //UE5/Release-5.1
2024-07-05 23:38:44 [2024.07.06-06.38.43:175][  0]LogCrashDebugHelper: BuiltFromCL: 0
2024-07-05 23:38:44 [2024.07.06-06.38.43:175][  0]LogCrashDebugHelper: EngineVersion: 5.1.1-0+++UE5+Release-5.1
2024-07-05 23:38:44 [2024.07.06-06.38.43:175][  0]LogCrashDebugHelper: BuildVersion: ++UE5+Release-5.1-CL-0
2024-07-05 23:38:44 [2024.07.06-06.38.44:174][  0]CrashReportCoreLog: Got 3 pending files to upload from 'crashinfo-Pal-pid-65-CA6201D59EC344F7B748CCDE2428358D'
2024-07-05 23:38:44 [2024.07.06-06.38.44:174][  0]CrashReportCoreLog: State change from Ready to SendingFiles
2024-07-05 23:38:44 [2024.07.06-06.38.44:174][  0]CrashReportCoreLog: CompressAndSendData have 3 pending files
2024-07-05 23:38:45 [2024.07.06-06.38.44:175][  0]CrashReportCoreLog: CompressAndSendData compressing 152 bytes ('/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-65-CA6201D59EC344F7B748CCDE2428358D/CrashReportClient.ini')
2024-07-05 23:38:45 [2024.07.06-06.38.44:176][  0]CrashReportCoreLog: CompressAndSendData compressing 4790 bytes ('/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-65-CA6201D59EC344F7B748CCDE2428358D/CrashContext.runtime-xml')
2024-07-05 23:38:45 [2024.07.06-06.38.44:176][  0]CrashReportCoreLog: CompressAndSendData compressing 332 bytes ('/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-65-CA6201D59EC344F7B748CCDE2428358D/Diagnostics.txt')
2024-07-05 23:38:45 [2024.07.06-06.38.44:252][  0]LogInit: Using libcurl 7.83.1
2024-07-05 23:38:45 [2024.07.06-06.38.44:252][  0]LogInit:  - built for Linux
2024-07-05 23:38:45 [2024.07.06-06.38.44:252][  0]LogInit:  - supports SSL with OpenSSL/1.1.1n
2024-07-05 23:38:45 [2024.07.06-06.38.44:252][  0]LogInit:  - supports HTTP deflate (compression) using libz 1.2.12
2024-07-05 23:38:45 [2024.07.06-06.38.44:252][  0]LogInit:  - other features:
2024-07-05 23:38:45 [2024.07.06-06.38.44:252][  0]LogInit:      CURL_VERSION_SSL
2024-07-05 23:38:45 [2024.07.06-06.38.44:253][  0]LogInit:      CURL_VERSION_LIBZ
2024-07-05 23:38:45 [2024.07.06-06.38.44:253][  0]LogInit:      CURL_VERSION_IPV6
2024-07-05 23:38:45 [2024.07.06-06.38.44:253][  0]LogInit:      CURL_VERSION_ASYNCHDNS
2024-07-05 23:38:45 [2024.07.06-06.38.44:253][  0]LogInit:      CURL_VERSION_LARGEFILE
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  CurlRequestOptions (configurable via config and command line):
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  - bVerifyPeer = false  - Libcurl will NOT verify peer certificate
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  - MaxHostConnections = 16  - Libcurl will limit the number of connections to a host
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  - LocalHostAddr = Default
2024-07-05 23:38:45 [2024.07.06-06.38.44:256][  0]LogInit:  - BufferSize = 65536
2024-07-05 23:38:45 [2024.07.06-06.38.44:260][  0]CrashReportCoreLog: Sending HTTP request: https://o1291919.ingest.sentry.io/api/6513339/unreal/4a1a3921f51f4975b4cf8dd19022cb20/?AppID=CrashReporter&AppVersion=5.1.1-0%2B%2B%2BUE5%2BRelease-5.1&AppEnvironment=Release&UploadType=crashreports&UserID=-000003e8%7C%7C
2024-07-05 23:38:45 [2024.07.06-06.38.44:517][  0]CrashReportCoreLog: OnProcessRequestComplete(), State=SendingFiles bSucceeded=1
2024-07-05 23:38:45 [2024.07.06-06.38.44:517][  0]CrashReportCoreLog: State change from SendingFiles to SendingFiles
2024-07-05 23:38:45 [2024.07.06-06.38.44:517][  0]CrashReportCoreLog: All uploads done
2024-07-05 23:38:45 [2024.07.06-06.38.44:517][  0]CrashReportCoreLog: State change from SendingFiles to Finished
2024-07-05 23:38:45 [2024.07.06-06.38.45:222][  0]CrashReportCoreLog: Final state (Receiver) = Finished
2024-07-05 23:38:45 [2024.07.06-06.38.45:222][  0]CrashReportCoreLog: Final state (Receiver) = Unknown UploadState value
2024-07-05 23:38:45 [2024.07.06-06.38.45:233][  0]LogCore: Engine exit requested (reason: CrashReportClientApp RequestExit)
2024-07-05 23:38:45 [2024.07.06-06.38.45:233][  0]LogExit: Preparing to exit.
2024-07-05 23:38:45 [2024.07.06-06.38.45:249][  0]LogExit: Object subsystem successfully closed.
2024-07-05 23:38:45 [2024.07.06-06.38.45:251][  0]LogModuleManager: Shutting down and abandoning module HTTP (12)
2024-07-05 23:38:45 [2024.07.06-06.38.45:262][  0]LogModuleManager: Shutting down and abandoning module SSL (11)
2024-07-05 23:38:45 [2024.07.06-06.38.45:262][  0]LogModuleManager: Shutting down and abandoning module CrashDebugHelper (8)
2024-07-05 23:38:45 [2024.07.06-06.38.45:263][  0]LogModuleManager: Shutting down and abandoning module CoreUObject (6)
2024-07-05 23:38:45 [2024.07.06-06.38.45:263][  0]LogModuleManager: Shutting down and abandoning module PakFile (4)
2024-07-05 23:38:45 [2024.07.06-06.38.45:265][  0]LogModuleManager: Shutting down and abandoning module RSA (3)
2024-07-05 23:38:45 [2024.07.06-06.38.45:269][  0]LogExit: Exiting.
2024-07-05 23:38:45 Engine crash handling finished; re-raising signal 0 for the default handler. Good bye.
2024-07-05 23:38:49 [2024-07-06 06:38:49] [LOG] myusername 192.168.65.1 connected the server. (User id: mysteamid)
2024-07-05 23:38:57 [2024-07-06 06:38:57] [LOG] myusername joined the server. (User id: mysteamid)
2024-07-05 23:39:20 ****EXECUTING USERMOD****
2024-07-05 23:39:20 usermod: no changes
2024-07-05 23:39:20 Segmentation fault
2024-07-05 23:39:20 ****Checking for available container updates****
2024-07-05 23:39:20 New version available: 0.38.1
2024-07-05 23:39:20 Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
2024-07-05 23:39:20 ****GENERATING CONFIG****
2024-07-05 23:39:20 Using Env vars to create PalWorldSettings.ini
2024-07-05 23:39:20 ****Compiling PalWorldSettings.ini****
2024-07-05 23:39:20 Compiling PalWorldSettings.ini done!
2024-07-05 23:39:20 ****GENERATING CRONTAB****
2024-07-05 23:39:20 BACKUP_ENABLED=true
2024-07-05 23:39:20 Adding cronjob for auto backups
2024-07-05 23:39:20 Cronjobs started
2024-07-05 23:39:20 ****Starting Server****
2024-07-05 23:39:20 ./PalServer-arm64.sh -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
2024-07-05 23:39:20 time="2024-07-06T06:39:20Z" level=info msg="read crontab: /home/steam/server/crontab"
2024-07-05 23:39:20 The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
2024-07-05 23:39:24 [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
2024-07-05 23:39:24 Shutdown handler: initalize.
2024-07-05 23:39:24 5.1.1-0+++UE5+Release-5.1 1008 0
2024-07-05 23:39:24 Disabling core dumps.
2024-07-05 23:39:24 CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
2024-07-05 23:39:24 Setting breakpad minidump AppID = 2394010
2024-07-05 23:39:24 [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
2024-07-05 23:39:24 [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
2024-07-05 23:39:26 [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
2024-07-05 23:39:28 [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
2024-07-05 23:39:29 Game version is v0.3.2.55495
Diagnostics.txt

Generating report for minidump

Application version 5.1.1.0
 ... built from changelist 0

OS version Linux 6.6.32-linuxkit (network name: c4bedd114206)
Running 10 x86_64 processors (10 logical cores)
Exception was ""

<SOURCE START>
<SOURCE END>

<CALLSTACK START>

<CALLSTACK END>

0 loaded modules

Report end!
CrashReportClient.ini

[CrashReportClient]
bHideLogFilesOption=false
bIsAllowedToCloseWithoutSending=false
CrashConfigPurgeDays=2
bAgreeToCrashUpload=true
bImplicitSend=true
CrashContext.runtime-xml

<?xml version="1.0" encoding="UTF-8"?>
<FGenericCrashContext>
    <RuntimeProperties>
        <CrashVersion>3</CrashVersion>
        <ExecutionGuid>616916B7BB3D45738A6A2B537F152DC2</ExecutionGuid>
        <CrashGUID>UECC-Linux-20759A26B8854B9688B0F2A5A2508673_0000</CrashGUID>
        <IsEnsure>false</IsEnsure>
        <IsStall>false</IsStall>
        <IsAssert>false</IsAssert>
        <CrashType>Hang</CrashType>
        <ErrorMessage>Hang detected on GameThread: 0x0000000006b8aabb PalServer-Linux-Shipping!ThreadStackWalker(int, siginfo_t*, void*) [C:/works/Pal-UE-EngineSource/Engine/Source/./Runtime/Core/Private/Unix/UnixPlatformCrashContext.cpp:1034] 0x0000000000010080 !UnknownFunction() 0x00000000011e0400 PalServer-Linux-Shipping!_ZTVN22SharedPointerInternals31TReferenceControllerWithDeleterI18FSoundEffectSubmixNS_14DefaultDeleterIS1_EEL7ESPMode1EEE(+0x86bf) Check log for full callstack.</ErrorMessage>
        <CrashReporterMessage />
        <ProcessId>82</ProcessId>
        <SecondsSinceStart>62</SecondsSinceStart>
        <IsInternalBuild>false</IsInternalBuild>
        <IsPerforceBuild>false</IsPerforceBuild>
        <IsSourceDistribution>false</IsSourceDistribution>
        <GameName>UE-Pal</GameName>
        <ExecutableName>PalServer-Linux-Shipping</ExecutableName>
        <BuildConfiguration>Shipping</BuildConfiguration>
        <GameSessionID />
        <PlatformName>LinuxServer</PlatformName>
        <PlatformNameIni>Linux</PlatformNameIni>
        <EngineMode>Server</EngineMode>
        <EngineModeEx>Unset</EngineModeEx>
        <DeploymentName />
        <EngineVersion>5.1.1-0+++UE5+Release-5.1</EngineVersion>
        <CommandLine>Pal -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS</CommandLine>
        <LanguageLCID>0</LanguageLCID>
        <AppDefaultLocale>en_US_POSIX</AppDefaultLocale>
        <BuildVersion>++UE5+Release-5.1-CL-0</BuildVersion>
        <Symbols>**UE5*Release-5.1-CL-0-Linux-Shipping</Symbols>
        <IsUERelease>false</IsUERelease>
        <IsRequestingExit>false</IsRequestingExit>
        <UserName />
        <BaseDir>/palworld/Pal/Binaries/Linux/</BaseDir>
        <RootDir>/palworld/</RootDir>
        <MachineId>-000003E8</MachineId>
        <LoginId>-000003e8</LoginId>
        <HostName>c4bedd114206</HostName>
        <EpicAccountId />
        <SourceContext />
        <UserDescription />
        <UserActivityHint />
        <CrashDumpMode>0</CrashDumpMode>
        <GameStateName />
        <Misc.NumberOfCores>10</Misc.NumberOfCores>
        <Misc.NumberOfCoresIncludingHyperthreads>10</Misc.NumberOfCoresIncludingHyperthreads>
        <Misc.Is64bitOperatingSystem>1</Misc.Is64bitOperatingSystem>
        <Misc.CPUVendor>GenuineIntel</Misc.CPUVendor>
        <Misc.CPUBrand>Box64 on - @1000 MHz</Misc.CPUBrand>
        <Misc.PrimaryGPUBrand>UnknownVendor</Misc.PrimaryGPUBrand>
        <Misc.OSVersionMajor>Debian GNU/Linux 12 (bookworm)</Misc.OSVersionMajor>
        <Misc.OSVersionMinor>6.6.32-linuxkit</Misc.OSVersionMinor>
        <MemoryStats.TotalPhysical>8221618176</MemoryStats.TotalPhysical>
        <MemoryStats.TotalVirtual>1073737728</MemoryStats.TotalVirtual>
        <MemoryStats.PageSize>4096</MemoryStats.PageSize>
        <MemoryStats.TotalPhysicalGB>8</MemoryStats.TotalPhysicalGB>
        <MemoryStats.AvailablePhysical>0</MemoryStats.AvailablePhysical>
        <MemoryStats.AvailableVirtual>0</MemoryStats.AvailableVirtual>
        <MemoryStats.UsedPhysical>0</MemoryStats.UsedPhysical>
        <MemoryStats.PeakUsedPhysical>0</MemoryStats.PeakUsedPhysical>
        <MemoryStats.UsedVirtual>0</MemoryStats.UsedVirtual>
        <MemoryStats.PeakUsedVirtual>0</MemoryStats.PeakUsedVirtual>
        <MemoryStats.bIsOOM>0</MemoryStats.bIsOOM>
        <MemoryStats.OOMAllocationSize>0</MemoryStats.OOMAllocationSize>
        <MemoryStats.OOMAllocationAlignment>0</MemoryStats.OOMAllocationAlignment>
        <NumMinidumpFramesToIgnore>0</NumMinidumpFramesToIgnore>
        <CallStack />
        <PCallStack>PalServer-Linux-Shipping 0x0000000000200000 + 698aabb Unknown 0x0000000000000000 + 10080 PalServer-Linux-Shipping 0x0000000000200000 + fe0400</PCallStack>
        <PCallStackHash>2409555F3E4F84D976C56175C81DE72E62D5F514</PCallStackHash>
        <TimeOfCrash>638558443134150000</TimeOfCrash>
        <bAllowToBeContacted>1</bAllowToBeContacted>
        <PlatformFullName>Linux [Debian GNU/Linux 12 (bookworm) 6.6.32-linuxkit 64b]</PlatformFullName>
        <CPUBrand>Box64 on - @1000 MHz</CPUBrand>
        <CrashReportClientVersion>1.0</CrashReportClientVersion>
        <Modules />
    </RuntimeProperties>
    <PlatformProperties>
        <CrashSignal>0</CrashSignal>
        <CrashSignalName>Unknown signal 0</CrashSignalName>
        <PlatformCallbackResult>0</PlatformCallbackResult>
        <CrashTrigger>0</CrashTrigger>
    </PlatformProperties>
    <EngineData>
        <MatchingDPStatus>LinuxServerNo errors</MatchingDPStatus>
        <RHI.RHIName>NullRHI</RHI.RHIName>
        <DeviceProfile.Name>LinuxServer</DeviceProfile.Name>
        <NumClients>0</NumClients>
    </EngineData>
    <GameData>
        <__sentry>{ &quot;tags&quot;: { &quot;version&quot;: &quot;0.3.2.55495&quot;, &quot;callstackhash&quot;: &quot;DA39A3EE5E6B4B0D3255BFEF95601890AFD80709&quot;,&quot;revision&quot;: &quot;55495&quot;, &quot;build_config&quot;: &quot;shipping&quot;, &quot;platform&quot;: &quot;Linux&quot; } }</__sentry>
    </GameData>
</FGenericCrashContext>
sonroyaalmerol commented 2 months ago

Might be a stretch but can you add these env variables and see how it goes?

    - BOX64_DYNAREC_STRONGMEM=3
    - BOX64_DYNAREC_BIGBLOCK=0
    - BOX64_DYNAREC_BLEEDING_EDGE=0
jaycho1214 commented 2 months ago

Still crashed after less than a minute.

services:
  palworld:
    image: thijsvanloef/palworld-server-docker:arm-test
    restart: unless-stopped
    container_name:palworld-server
    stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop
    ports:
      - 8211:8211/udp
      # - 27015:27015/udp
      # - 8212:8212/tcp  # Port for REST API if REST_API_ENABLED: true
    environment:
      PUID: 1000
      PGID: 1000
      PORT: 8211 # Optional but recommended
      PLAYERS: 16 # Optional but recommended
      SERVER_PASSWORD: "0502" # Optional but recommended
      MULTITHREADING: true
      RCON_ENABLED: false
      RCON_PORT: 25575
      TZ: "PT"
      ADMIN_PASSWORD: "0502"
      COMMUNITY: false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
      SERVER_NAME: ""
      SERVER_DESCRIPTION: ""
      ALLOW_CONNECT_PLATFORM: "Steam" # Defaults to "Steam" if not set, set this to "Xbox" if you want to host a server for Xbox players. CROSSPLAY BETWEEN XBOX-STEAM IS NOT YET SUPPORTED
      USE_DEPOT_DOWNLOADER: true
      AUTO_UPDATE_ENABLED: false
      UPDATE_ON_BOOT: false
      ARM64_DEVICE: "m1"
      BOX64_DYNAREC_STRONGMEM: 3
      BOX64_DYNAREC_BIGBLOCK: 0
      BOX64_DYNAREC_BLEEDING_EDGE: 0
    volumes:
      - ./palworld:/palworld/
palworld-server  | ****EXECUTING USERMOD****
palworld-server  | usermod: no changes
palworld-server  | ****Checking for available container updates****
palworld-server  | New version available: 0.38.1
palworld-server  | Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
palworld-server  | ****GENERATING CONFIG****
palworld-server  | Using Env vars to create PalWorldSettings.ini
palworld-server  | ****Compiling PalWorldSettings.ini****
palworld-server  | Compiling PalWorldSettings.ini done!
palworld-server  | ****GENERATING CRONTAB****
palworld-server  | BACKUP_ENABLED=true
palworld-server  | Adding cronjob for auto backups
palworld-server  | Cronjobs started
palworld-server  | ****Starting Server****
palworld-server  | ./PalServer-arm64.sh -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
palworld-server  | time="2024-07-06T07:20:23Z" level=info msg="read crontab: /home/steam/server/crontab"
palworld-server  | The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
palworld-server  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
palworld-server  | Shutdown handler: initalize.
palworld-server  | 5.1.1-0+++UE5+Release-5.1 1008 0
palworld-server  | Disabling core dumps.
palworld-server  | CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
palworld-server  | Setting breakpad minidump AppID = 2394010
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
palworld-server  | Game version is v0.3.2.55495
palworld-server  | [2024-07-06 07:21:20] [LOG] mysteamusername 192.168.65.1 connected the server. (User id: myuserid)
palworld-server  | [2024-07-06 07:21:40] [LOG] mysteamusername joined the server. (User id: myuserid)
palworld-server  | Segmentation fault
palworld-server exited with code 0
sonroyaalmerol commented 2 months ago

Forgot to add but can you also set BOX64_LOG to 1? That should allow it to produce more logs. Might give me a better idea on how to resolve this.

jaycho1214 commented 2 months ago

I was able to get more information when I turned off multithreading.

MULTITHREADING ON

palworld-server  | ****EXECUTING USERMOD****
palworld-server  | usermod: no changes
palworld-server  | ****Checking for available container updates****
palworld-server  | New version available: 0.38.1
palworld-server  | Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
palworld-server  | ****GENERATING CONFIG****
palworld-server  | Using Env vars to create PalWorldSettings.ini
palworld-server  | ****Compiling PalWorldSettings.ini****
palworld-server  | Compiling PalWorldSettings.ini done!
palworld-server  | ****GENERATING CRONTAB****
palworld-server  | BACKUP_ENABLED=true
palworld-server  | Adding cronjob for auto backups
palworld-server  | Cronjobs started
palworld-server  | ****Starting Server****
palworld-server  | ./PalServer-arm64.sh -port=8211 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
palworld-server  | time="2024-07-06T07:35:49Z" level=info msg="read crontab: /home/steam/server/crontab"
palworld-server  | The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
palworld-server  | Dynarec will not try to make big block
palworld-server  | Dynarec will try to emulate a strong memory model with more performance loss
palworld-server  | Dynarec will not detect MonoBleedingEdge
palworld-server  | Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT PageSize:4096 Running on - with 10 Cores
palworld-server  | Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
palworld-server  | Params database has 75 entries
palworld-server  | BOX64: Detected 48bits at least of address space
palworld-server  | Counted 102 Env var
palworld-server  | BOX64 LIB PATH: /home/steam/steamcmd/linux64/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
palworld-server  | BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
palworld-server  | Looking for /palworld/Pal/Binaries/Linux/PalServer-Linux-Shipping
palworld-server  | argv[1]="Pal"
palworld-server  | argv[2]="-port=8211"
palworld-server  | argv[3]="-queryport=27015"
palworld-server  | argv[4]="-useperfthreads"
palworld-server  | argv[5]="-NoAsyncLoadingThread"
palworld-server  | argv[6]="-UseMultithreadForDS"
palworld-server  | Rename process to "PalServer-Linux-Shipping"
palworld-server  | Using native(wrapped) libpthread.so.0
palworld-server  | Using native(wrapped) libdl.so.2
palworld-server  | Using emulated /palworld/Pal/Binaries/Linux/../../../Engine/Binaries/ThirdParty/Steamworks/Steamv153/x86_64-unknown-linux-gnu/libsteam_api.so
palworld-server  | Using emulated /palworld/Pal/Binaries/Linux/../../../Engine/Binaries/Linux/libEOSSDK-Linux-Shipping.so
palworld-server  | Using native(wrapped) librt.so.1
palworld-server  | Using native(wrapped) libm.so.6
palworld-server  | Using native(wrapped) libc.so.6
palworld-server  | Using native(wrapped) ld-linux-x86-64.so.2
palworld-server  | Using native(wrapped) libutil.so.1
palworld-server  | Using native(wrapped) libbsd.so.0
palworld-server  | Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
palworld-server  | Shutdown handler: initalize.
palworld-server  | 5.1.1-0+++UE5+Release-5.1 1008 0
palworld-server  | Disabling core dumps.
palworld-server  | Using emulated steamclient.so
palworld-server  | Redirecting overridden malloc from symtab function for steamclient.so
palworld-server  | Warning: Weak Symbol _ITM_RU1 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd158 (0xb4fa90)
palworld-server  | Warning: Weak Symbol _ZGTtnam not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd160 (0xb4fa90)
palworld-server  | Warning: Weak Symbol _ITM_memcpyRtWn not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd168 (0xb4fa90)
palworld-server  | Warning: Weak Symbol _ITM_RU8 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd170 (0xb4fa90)
palworld-server  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
palworld-server  | Using native(wrapped) crashhandler.so
palworld-server  | CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
palworld-server  | Setting breakpad minidump AppID = 2394010
palworld-server  | Error loading needed lib libsteam.so
palworld-server  | Warning: Cannot dlopen("libsteam.so"/0x7fff0003f7d9, 2)
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
palworld-server  | Game version is v0.3.2.55495
palworld-server  | Error loading needed lib libSDL3.so.0
palworld-server  | Warning: Cannot dlopen("libSDL3.so.0"/0x7fff04aea16a, 2)
palworld-server  | [2024-07-06 07:36:28] [LOG] mysteamusername 192.168.65.1 connected the server. (User id: mysteamid)
palworld-server  | [2024-07-06 07:36:34] [LOG] mysteamusername joined the server. (User id: mysteamid)
palworld-server  | Segmentation fault
palworld-server exited with code 0
MULTITHREADING OFF

palworld-server  | ****EXECUTING USERMOD****
palworld-server  | usermod: no changes
palworld-server  | ****Checking for available container updates****
palworld-server  | New version available: 0.38.1
palworld-server  | Learn how to update the container: https://palworld-server-docker.loef.dev/guides/update-the-container
palworld-server  | ****GENERATING CONFIG****
palworld-server  | Using Env vars to create PalWorldSettings.ini
palworld-server  | ****Compiling PalWorldSettings.ini****
palworld-server  | Compiling PalWorldSettings.ini done!
palworld-server  | ****GENERATING CRONTAB****
palworld-server  | BACKUP_ENABLED=true
palworld-server  | Adding cronjob for auto backups
palworld-server  | Cronjobs started
palworld-server  | ****Starting Server****
palworld-server  | ./PalServer-arm64.sh -port=8211 -queryport=27015
palworld-server  | time="2024-07-06T07:38:06Z" level=info msg="read crontab: /home/steam/server/crontab"
palworld-server  | The file already exists: /palworld/Pal/Binaries/Linux/steamclient.so
palworld-server  | Dynarec will not try to make big block
palworld-server  | Dynarec will try to emulate a strong memory model with more performance loss
palworld-server  | Dynarec will not detect MonoBleedingEdge
palworld-server  | Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT PageSize:4096 Running on - with 10 Cores
palworld-server  | Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
palworld-server  | Params database has 75 entries
palworld-server  | BOX64: Detected 48bits at least of address space
palworld-server  | Counted 102 Env var
palworld-server  | BOX64 LIB PATH: /home/steam/steamcmd/linux64/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
palworld-server  | BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
palworld-server  | Looking for /palworld/Pal/Binaries/Linux/PalServer-Linux-Shipping
palworld-server  | argv[1]="Pal"
palworld-server  | argv[2]="-port=8211"
palworld-server  | argv[3]="-queryport=27015"
palworld-server  | Rename process to "PalServer-Linux-Shipping"
palworld-server  | Using native(wrapped) libpthread.so.0
palworld-server  | Using native(wrapped) libdl.so.2
palworld-server  | Using emulated /palworld/Pal/Binaries/Linux/../../../Engine/Binaries/ThirdParty/Steamworks/Steamv153/x86_64-unknown-linux-gnu/libsteam_api.so
palworld-server  | Using emulated /palworld/Pal/Binaries/Linux/../../../Engine/Binaries/Linux/libEOSSDK-Linux-Shipping.so
palworld-server  | Using native(wrapped) librt.so.1
palworld-server  | Using native(wrapped) libm.so.6
palworld-server  | Using native(wrapped) libc.so.6
palworld-server  | Using native(wrapped) ld-linux-x86-64.so.2
palworld-server  | Using native(wrapped) libutil.so.1
palworld-server  | Using native(wrapped) libbsd.so.0
palworld-server  | Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
palworld-server  | Shutdown handler: initalize.
palworld-server  | 5.1.1-0+++UE5+Release-5.1 1008 0
palworld-server  | Disabling core dumps.
palworld-server  | Using emulated steamclient.so
palworld-server  | Redirecting overridden malloc from symtab function for steamclient.so
palworld-server  | Warning: Weak Symbol _ITM_RU1 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd158 (0xb4fa90)
palworld-server  | Warning: Weak Symbol _ZGTtnam not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd160 (0xb4fa90)
palworld-server  | Warning: Weak Symbol _ITM_memcpyRtWn not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd168 (0xb4fa90)
palworld-server  | Warning: Weak Symbol _ITM_RU8 not found, cannot apply R_X86_64_JUMP_SLOT @0x7fff062dd170 (0xb4fa90)
palworld-server  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
palworld-server  | Using native(wrapped) crashhandler.so
palworld-server  | CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
palworld-server  | Setting breakpad minidump AppID = 2394010
palworld-server  | Error loading needed lib libsteam.so
palworld-server  | Warning: Cannot dlopen("libsteam.so"/0x7fff0003f7d9, 2)
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
palworld-server  | Game version is v0.3.2.55495
palworld-server  | Error loading needed lib libSDL3.so.0
palworld-server  | Warning: Cannot dlopen("libSDL3.so.0"/0x7fff04aea16a, 2)
palworld-server  | [2024-07-06 07:38:46] [LOG] mysteamusername 192.168.65.1 connected the server. (User id: mysteamid)
palworld-server  | [2024-07-06 07:39:03] [LOG] mysteamusername joined the server. (User id: mysteamid)
palworld-server  | posix_spawnp(0xffff17f6a6fc, "/palworld/Engine/Binaries/Linux/CrashReportClient", (nil), 0xffff17f6a8b0, 0xffff17f6aa80, 0xffff87c39e78), IsX86=1 / fullpath="/palworld/Engine/Binaries/Linux/CrashReportClient"
palworld-server  |  => posix_spawn(0xffff17f6a6fc, "/usr/local/bin/box64", (nil), 0xffff17f6a8b0, 0xffff17c6dfa0 ["/usr/local/bin/box64", "/palworld/Engine/Binaries/Linux/CrashReportClient", "-Abslog="/palworld/Pal/Saved/Logs/Pal-CRC.log""...:5], 0x5b070570)
palworld-server  | posix_spawn returned 0
palworld-server  | Dynarec will not try to make big block
palworld-server  | Dynarec will try to emulate a strong memory model with more performance loss
palworld-server  | Dynarec will not detect MonoBleedingEdge
palworld-server  | Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM FLAGM2 FRINT PageSize:4096 Running on - with 10 Cores
palworld-server  | Will use Hardware counter measured at 24.0 MHz emulating 3.0 GHz
palworld-server  | Params database has 75 entries
palworld-server  | BOX64: Detected 48bits at least of address space
palworld-server  | Counted 103 Env var
palworld-server  | BOX64 LIB PATH: /home/steam/steamcmd/linux64/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
palworld-server  | BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/
palworld-server  | Looking for /palworld/Engine/Binaries/Linux/CrashReportClient
palworld-server  | argv[1]="-Abslog="/palworld/Pal/Saved/Logs/Pal-CRC.log""
palworld-server  | argv[2]="-Unattended"
palworld-server  | argv[3]="-ImplicitSend"
palworld-server  | argv[4]=""/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-64-81F2D3CB832B411288FC9D0275A3EC1D/""
palworld-server  | Rename process to "CrashReportClient"
palworld-server  | Using native(wrapped) libpthread.so.0
palworld-server  | Using native(wrapped) libdl.so.2
palworld-server  | Using native(wrapped) librt.so.1
palworld-server  | Using native(wrapped) libm.so.6
palworld-server  | Using native(wrapped) libc.so.6
palworld-server  | Using native(wrapped) ld-linux-x86-64.so.2
palworld-server  | Using native(wrapped) libutil.so.1
palworld-server  | Using native(wrapped) libbsd.so.0
palworld-server  | Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
palworld-server  | LogPakFile: Display: Found Pak file ../../../Engine/Programs/CrashReportClient/Content/Paks/CrashReportClient.pak attempting to mount.
palworld-server  | LogPakFile: Display: Mounting pak file ../../../Engine/Programs/CrashReportClient/Content/Paks/CrashReportClient.pak.
palworld-server  | LogPakFile: Display: Mounted Pak file '../../../Engine/Programs/CrashReportClient/Content/Paks/CrashReportClient.pak', mount point: '../../../Engine/'
palworld-server  | LogICUInternationalization: ICU TimeZone Detection - Raw Offset: +0:00, Platform Override: ''
palworld-server  | LogInit: Build: ++UE5+Release-5.1-CL-0
palworld-server  | LogInit: Engine Version: 5.1.1-0+++UE5+Release-5.1
palworld-server  | LogInit: Compatible Engine Version: 5.1.0-0+++UE5+Release-5.1
palworld-server  | LogInit: Net CL: 0
palworld-server  | LogInit: OS: Debian GNU/Linux 12 (bookworm) (6.6.32-linuxkit), CPU: Box64 on - @1000 MHz, GPU: UnknownVendor
palworld-server  | LogInit: Compiled (64-bit): Jun 12 2024 15:50:14
palworld-server  | LogInit: Compiled with Clang: 13.0.1 (https://github.com/llvm/llvm-project 75e33f71c2dae584b13a7d1186ae0a038ba98838)
palworld-server  | LogInit: Build Configuration: Shipping
palworld-server  | LogInit: Branch Name: ++UE5+Release-5.1
palworld-server  | LogInit: Command Line:  -Abslog="/palworld/Pal/Saved/Logs/Pal-CRC.log" -Unattended -ImplicitSend "/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-64-81F2D3CB832B411288FC9D0275A3EC1D/" -unattended
palworld-server  | LogInit: Base Directory: /palworld/Engine/Binaries/Linux/
palworld-server  | LogInit: Allocator: Mimalloc
palworld-server  | LogInit: Installed Engine Build: 1
palworld-server  | LogInit: Presizing for max 100000 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
palworld-server  | LogInit: Object subsystem initialized
palworld-server  | [2024.07.06-07.41.01:220][  0]LogConfig: Applying CVar settings from Section [ConsoleVariables] File [Engine]
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit: Unix hardware info:
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - we are the first instance of this executable
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - this process' id (pid) is 155, parent process' id (ppid) is 64
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - we are not running under debugger
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - machine network name is '770e851fa1be'
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - user name is 'steam' (steam)
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - we're logged in locally
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - we're running with rendering
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - CPU: GenuineIntel 'Box64 on - @1000 MHz' (signature: 0x601)
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - Number of physical cores available for the process: 10
palworld-server  | [2024.07.06-07.41.01:221][  0]LogInit:  - Number of logical cores available for the process: 10
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  - Cache line size: 64
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  - GPU Brand Info: UnknownVendor
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  - Memory allocator used: Mimalloc
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  - This binary is optimized with LTO: no, PGO: no, instrumented for PGO data collection: no
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  - This is an internal build.
palworld-server  | [2024.07.06-07.41.01:222][  0]LogCore: Skipped benchmarking clocks because the engine is running in a standalone program mode - CLOCK_MONOTONIC will be used.
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit: Unix-specific commandline switches:
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -ansimalloc - use malloc()/free() from libc (useful for tools like valgrind and electric fence)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -jemalloc - use jemalloc for all memory allocation
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -binnedmalloc - use binned malloc  for all memory allocation
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -filemapcachesize=NUMBER - set the size for case-sensitive file mapping cache
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -useksm - uses kernel same-page mapping (KSM) for mapped memory (OFF)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -ksmmergeall - marks all mmap'd memory pages suitable for KSM (OFF)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -preloadmodulesymbols - Loads the main module symbols file into memory (OFF)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -sigdfl=SIGNAL - Allows a specific signal to be set to its default handler rather then ignoring the signal
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -crashhandlerstacksize - Allows setting crash handler stack sizes (204800)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -noexclusivelockonwrite - disables marking files created by the engine as exclusive locked while the engine has them opened
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -httpproxy=ADDRESS:PORT - redirects HTTP requests to a proxy (only supported if compiled with libcurl)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -reuseconn - allow libcurl to reuse HTTP connections (only matters if compiled with libcurl)
palworld-server  | [2024.07.06-07.41.01:222][  0]LogInit:  -virtmemkb=NUMBER - sets process virtual memory (address space) limit (overrides VirtualMemoryLimitInKB value from .ini)
palworld-server  | [2024.07.06-07.41.01:223][  0]LogInit:  - Physical RAM available (not considering process quota): 32 GB (32048 MB, 32817604 KB, 33605226496 bytes)
palworld-server  | [2024.07.06-07.41.01:223][  0]LogInit:  - VirtualMemoryAllocator pools will grow at scale 1.4
palworld-server  | [2024.07.06-07.41.01:223][  0]LogInit:  - MemoryRangeDecommit() will be a no-op (re-run with -vmapoolevict to change)
palworld-server  | [2024.07.06-07.41.01:223][  0]LogInit:  - PageSize 4096
palworld-server  | [2024.07.06-07.41.01:223][  0]LogInit:  - BinnedPageSize 65536
palworld-server  | [2024.07.06-07.41.01:275][  0]LogUObjectArray: 419 objects as part of root set at end of initial load.
palworld-server  | [2024.07.06-07.41.01:275][  0]LogUObjectAllocator: 89064 out of 0 bytes used by permanent object pool.
palworld-server  | [2024.07.06-07.41.01:275][  0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
palworld-server  | [2024.07.06-07.41.01:276][  0]LogPaths: Warning: No paths for game localization data were specifed in the game configuration.
palworld-server  | [2024.07.06-07.41.01:277][  0]LogInit: Using OS detected language (en-US-POSIX).
palworld-server  | [2024.07.06-07.41.01:277][  0]LogInit: Using OS detected locale (en-US-POSIX).
palworld-server  | [2024.07.06-07.41.01:277][  0]LogInit: Warning: No paths for engine localization data were specifed in the engine configuration.
palworld-server  | [2024.07.06-07.41.01:279][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the language.
palworld-server  | [2024.07.06-07.41.01:279][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the locale.
palworld-server  | [2024.07.06-07.41.01:281][  0]LogInit: Using OS detected language (en-US-POSIX).
palworld-server  | [2024.07.06-07.41.01:281][  0]LogInit: Using OS detected locale (en-US-POSIX).
palworld-server  | [2024.07.06-07.41.01:281][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the language.
palworld-server  | [2024.07.06-07.41.01:281][  0]LogTextLocalizationManager: No localization for 'en-US-POSIX' exists, so 'en' will be used for the locale.
palworld-server  | [2024.07.06-07.41.01:290][  0]LogPackageLocalizationCache: Processed 2 localized package path(s) for 1 prioritized culture(s) in 0.004553 seconds
palworld-server  | [2024.07.06-07.41.01:292][  0]CrashReportCoreLog: CrashReportClientVersion=1.0
palworld-server  | [2024.07.06-07.41.01:292][  0]CrashReportCoreLog: CrashReportReceiver disabled
palworld-server  | [2024.07.06-07.41.01:292][  0]CrashReportCoreLog: DataRouterUrl: https://o1291919.ingest.sentry.io/api/6513339/unreal/4a1a3921f51f4975b4cf8dd19022cb20/
palworld-server  | [2024.07.06-07.41.01:307][  0]CrashReportCoreLog: Initial state = Unknown UploadState value
palworld-server  | [2024.07.06-07.41.01:307][  0]CrashReportCoreLog: Initial state = Unknown UploadState value
palworld-server  | [2024.07.06-07.41.01:312][  0]LogCrashDebugHelper: DepotName: //UE5/Release-5.1
palworld-server  | [2024.07.06-07.41.01:312][  0]LogCrashDebugHelper: BuiltFromCL: 0
palworld-server  | [2024.07.06-07.41.01:312][  0]LogCrashDebugHelper: EngineVersion: 5.1.1-0+++UE5+Release-5.1
palworld-server  | [2024.07.06-07.41.01:312][  0]LogCrashDebugHelper: BuildVersion: ++UE5+Release-5.1-CL-0
palworld-server  | [2024.07.06-07.41.02:293][  0]CrashReportCoreLog: Got 3 pending files to upload from 'crashinfo-Pal-pid-64-81F2D3CB832B411288FC9D0275A3EC1D'
palworld-server  | [2024.07.06-07.41.02:293][  0]CrashReportCoreLog: State change from Ready to SendingFiles
palworld-server  | [2024.07.06-07.41.02:294][  0]CrashReportCoreLog: CompressAndSendData have 3 pending files
palworld-server  | [2024.07.06-07.41.02:295][  0]CrashReportCoreLog: CompressAndSendData compressing 152 bytes ('/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-64-81F2D3CB832B411288FC9D0275A3EC1D/CrashReportClient.ini')
palworld-server  | [2024.07.06-07.41.02:295][  0]CrashReportCoreLog: CompressAndSendData compressing 4779 bytes ('/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-64-81F2D3CB832B411288FC9D0275A3EC1D/CrashContext.runtime-xml')
palworld-server  | [2024.07.06-07.41.02:296][  0]CrashReportCoreLog: CompressAndSendData compressing 332 bytes ('/palworld/Pal/Saved/Crashes/crashinfo-Pal-pid-64-81F2D3CB832B411288FC9D0275A3EC1D/Diagnostics.txt')
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit: Using libcurl 7.83.1
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:  - built for Linux
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:  - supports SSL with OpenSSL/1.1.1n
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:  - supports HTTP deflate (compression) using libz 1.2.12
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:  - other features:
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:      CURL_VERSION_SSL
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:      CURL_VERSION_LIBZ
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:      CURL_VERSION_IPV6
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:      CURL_VERSION_ASYNCHDNS
palworld-server  | [2024.07.06-07.41.02:374][  0]LogInit:      CURL_VERSION_LARGEFILE
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  CurlRequestOptions (configurable via config and command line):
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  - bVerifyPeer = false  - Libcurl will NOT verify peer certificate
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  - MaxHostConnections = 16  - Libcurl will limit the number of connections to a host
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  - LocalHostAddr = Default
palworld-server  | [2024.07.06-07.41.02:376][  0]LogInit:  - BufferSize = 65536
palworld-server  | [2024.07.06-07.41.02:380][  0]CrashReportCoreLog: Sending HTTP request: https://o1291919.ingest.sentry.io/api/6513339/unreal/4a1a3921f51f4975b4cf8dd19022cb20/?AppID=CrashReporter&AppVersion=5.1.1-0%2B%2B%2BUE5%2BRelease-5.1&AppEnvironment=Release&UploadType=crashreports&UserID=-000003e8%7C%7C
palworld-server  | [2024.07.06-07.41.02:756][  0]CrashReportCoreLog: OnProcessRequestComplete(), State=SendingFiles bSucceeded=1
palworld-server  | [2024.07.06-07.41.02:756][  0]CrashReportCoreLog: State change from SendingFiles to SendingFiles
palworld-server  | [2024.07.06-07.41.02:756][  0]CrashReportCoreLog: All uploads done
palworld-server  | [2024.07.06-07.41.02:756][  0]CrashReportCoreLog: State change from SendingFiles to Finished
palworld-server  | [2024.07.06-07.41.03:349][  0]CrashReportCoreLog: Final state (Receiver) = Finished
palworld-server  | [2024.07.06-07.41.03:349][  0]CrashReportCoreLog: Final state (Receiver) = Unknown UploadState value
palworld-server  | [2024.07.06-07.41.03:350][  0]LogCore: Engine exit requested (reason: CrashReportClientApp RequestExit)
palworld-server  | [2024.07.06-07.41.03:350][  0]LogExit: Preparing to exit.
palworld-server  | [2024.07.06-07.41.03:363][  0]LogExit: Object subsystem successfully closed.
palworld-server  | [2024.07.06-07.41.03:364][  0]LogModuleManager: Shutting down and abandoning module HTTP (12)
palworld-server  | [2024.07.06-07.41.03:376][  0]LogModuleManager: Shutting down and abandoning module SSL (11)
palworld-server  | [2024.07.06-07.41.03:378][  0]LogModuleManager: Shutting down and abandoning module CrashDebugHelper (8)
palworld-server  | [2024.07.06-07.41.03:378][  0]LogModuleManager: Shutting down and abandoning module CoreUObject (6)
palworld-server  | [2024.07.06-07.41.03:378][  0]LogModuleManager: Shutting down and abandoning module PakFile (4)
palworld-server  | [2024.07.06-07.41.03:379][  0]LogModuleManager: Shutting down and abandoning module RSA (3)
palworld-server  | [2024.07.06-07.41.03:383][  0]LogExit: Exiting.
palworld-server  | Engine crash handling finished; re-raising signal 0 for the default handler. Good bye.
palworld-server  | [2024-07-06 07:41:15] [LOG] mysteamusername left the server. (User id: mysteamid)
sonroyaalmerol commented 2 months ago

I think this is just a matter of configuration tweaking for Box64 @jaycho1214. #576 should add relevant documentations for the configs. As soon as that is merged and released, you can try setting the following env vars:

These set of values for these env vars are the most "stable" config combinations you can give to Box64. However, performance would most likely dip which is why we don't necessarily want to set these as defaults.

You can try different values for each of them based on the documentation. Hopefully, you'll be able to find the best balance between stability and performance based on your specific device. It's hard for me to know which combination is going to be the best for M1/M-series Mac as I don't have that device.

Most of the documentation will be linked to the Box64 usage documentation which has all the descriptions.

You can try these env vars now with the test image but I accidentally hardcoded BOX64_DYNAREC_STRONGMEM to 1 in that specific image so that env var wouldn't change even if you set it on your docker-compose file.

Also, if you decide to try those env vars and still get the same crashes, show me the logs with BOX64_ROLLING_LOG=1 and BOX64_SHOWSEGV=1 set. These env vars enabled should give more useful logs when it comes to segmentation faults according to their documentation. I'll create an issue to Box64 based off that.

EDIT: On that note, we should probably close this issue as resolved. The point of this issue was the server files not downloading on M1/M2 which has been fixed with USE_DEPOT_DOWNLOADER. The constant crashing after restoring a save file is a different issue altogether. Feel free to post a new issue after you've tried the configs above on the next release.