KagurazakaNyaa / palworld-docker

Palworld dedicated server with docker
https://hub.docker.com/r/kagurazakanyaa/palworld
GNU Affero General Public License v3.0
91 stars 16 forks source link

fail to start service #1

Closed putrarifin closed 6 months ago

putrarifin commented 6 months ago

hi nice work..

iam facing this on log compose when start the service.

dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory.

any advice ?

limitcool commented 6 months ago

I encountered the same error.

KagurazakaNyaa commented 6 months ago

Did you build the image yourself or pull it? Can I see the docker-compose.yml you are using?

putrarifin commented 6 months ago

iam using default in your repo. no changes.

limitcool commented 6 months ago

I executed docker-compose up directly. This is my docker-compose configuration file.

version: '3.9'

services:
  dedicated-server:
    image: kagurazakanyaa/palworld:latest
    build:
      context: .
    restart: unless-stopped
    network_mode: bridge
    ports:
      - 8211:8211/udp
    environment:
      - GAME_PORT=8211
      - MAX_PLAYERS=32
      - ENABLE_MULTITHREAD=true
      - IS_PUBLIC=false
      - PUBLIC_IP=
      - PUBLIC_PORT=
      - FORCE_UPDATE=false
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data:/opt/palworld/Pal/Saved

This is my error log

[----] Cleaning up...
[----] Update complete, launching Steamcmd...
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
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/steam/Steam/logs/stderr.txt'
Logging directory: '/home/steam/Steam/logs'
/tmp/dumps insufficient permissions - delete and recreate
[  0%] Checking for available updates...
[----] Verifying installation...
[  0%] Downloading update...
[  0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
tid(35) 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/steam/Steam/logs/stderr.txt'
Logging directory: '/home/steam/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
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Error! App '2394010' state is 0x202 after update job.
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
The command '/bin/sh -c /home/steam/steamcmd/steamcmd.sh +force_install_dir "/opt/palworld" +login anonymous +app_update 2394010 validate +quit' returned a non-zero code: 8
ERROR: Service 'dedicated-server' failed to build : Build failed
Saik0Shinigami commented 6 months ago

If you're running the default docker-compose.yaml you either need to comment out the build and context lines, or git pull the whole repo and comment out the image.

The failed to open error was fixed for me by running the chown command.

flamefox commented 6 months ago

I get a error of /docker-entrypoint.sh: line 4: steamcmd: command not found when set FORCE_UPDATE=true

limitcool commented 6 months ago

If you're running the default docker-compose.yaml you either need to comment out the build and context lines, or git pull the whole repo and comment out the image.

The failed to open error was fixed for me by running the chown command.

Thank you for your help. I have solved the problem.

limitcool commented 6 months ago

But I encountered a new error.

dedicated-server_1  | sh: 1: xdg-user-dir: not found
dedicated-server_1  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
dedicated-server_1  | Shutdown handler: initalize.
dedicated-server_1  | - Existing per-process limit (soft=1048576, hard=1048576) is enough for us (need only 1048576)
dedicated-server_1  | Increasing per-process limit of core file size to infinity.
dedicated-server_1  | - Existing per-process limit (soft=18446744073709551615, hard=18446744073709551615) is enough for us (need only 18446744073709551615)
dedicated-server_1  | CAppInfoCacheReadFromDiskThread took 56 milliseconds to initialize
dedicated-server_1  | Setting breakpad minidump AppID = 2394010
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
dedicated-server_1  | LowLevelFatalError [File:G:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalSaveGameManager.cpp] [Line: 359]
dedicated-server_1  | Failed save to backup.
dedicated-server_1  | Signal 11 caught.
dedicated-server_1  | Malloc Size=262146 LargeMemoryPoolOffset=262162
dedicated-server_1  | dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
dedicated-server_1  | CommonUnixCrashHandler: Signal=11
dedicated-server_1  | Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
dedicated-server_1  | Segmentation fault (core dumped)
putrarifin commented 6 months ago

But I encountered a new error.

dedicated-server_1  | sh: 1: xdg-user-dir: not found
dedicated-server_1  | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
dedicated-server_1  | Shutdown handler: initalize.
dedicated-server_1  | - Existing per-process limit (soft=1048576, hard=1048576) is enough for us (need only 1048576)
dedicated-server_1  | Increasing per-process limit of core file size to infinity.
dedicated-server_1  | - Existing per-process limit (soft=18446744073709551615, hard=18446744073709551615) is enough for us (need only 18446744073709551615)
dedicated-server_1  | CAppInfoCacheReadFromDiskThread took 56 milliseconds to initialize
dedicated-server_1  | Setting breakpad minidump AppID = 2394010
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
dedicated-server_1  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
dedicated-server_1  | LowLevelFatalError [File:G:/works/repos/Pal_SVN/Pal-UE-App/Source/Pal/PalSaveGameManager.cpp] [Line: 359]
dedicated-server_1  | Failed save to backup.
dedicated-server_1  | Signal 11 caught.
dedicated-server_1  | Malloc Size=262146 LargeMemoryPoolOffset=262162
dedicated-server_1  | dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
dedicated-server_1  | CommonUnixCrashHandler: Signal=11
dedicated-server_1  | Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
dedicated-server_1  | Segmentation fault (core dumped)

yeah i got this error to.

putrarifin commented 6 months ago

here my docker compose yml:

version: '3.9'

services: dedicated-server: image: kagurazakanyaa/palworld:latest restart: unless-stopped network_mode: bridge ports:

KagurazakaNyaa commented 6 months ago

After testing, it was found that this problem can be reproduced in owners who do not handle volume mounts correctly. steamservice.so seems to be called when submitting an error report to steam. There seems to be no available library in the cm2network/steamcmd:steam image, and it does not seem to be needed for normal use. What needs to be done to fix this problem is to execute chown -R 1000:1000 <your volume mount path> on the host machine. I will research and automate this, but it will take time.

KagurazakaNyaa commented 6 months ago

I will close this issue. If this problem still occurs after modifying the permissions and owners, you are welcome to reopen it or open a new issue.