KagurazakaNyaa / palworld-docker

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

After docker deployment is successful, the server cannot be connected and cannot be upgraded #26

Open jay86cn opened 5 months ago

jay86cn commented 5 months ago

The palworld service on my previous docker could not be upgraded, so I deleted the container and image and redeployed it.

But the client still cannot connect to the server, and it shows "Your connection to the host has been interrupted (This is not the original text, it is a translation)"

Execute the following command sudo docker exec -u 0 -it PalServer bash /home/steam/steamcmd/steamcmd.sh +force_install_dir "/opt/palworld" +login anonymous +app_update 2394010 validate +quit

root@1b92c1fb4ff9:/opt/palworld# /home/steam/steamcmd/steamcmd.sh +force_install_dir "/opt/palworld" +login anonymous +app_update 2394010 validate +quit Redirecting stderr to '/root/Steam/logs/stderr.txt' Logging directory: '/root/Steam/logs' [ 0%] Checking for available updates... [----] Verifying installation... UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1718904263 -- type 'quit' to exit -- Loading Steam API...OK

Connecting anonymously to Steam Public...OK Waiting for client config...OK Waiting for user info...OK ERROR! Failed to install app '2394010' (Missing file permissions)

My current game version is the latest, version number is 0.3.2.55495 The docker image I downloaded is also the latest kagurazakanyaa/palworld:latest

Please help me figure out what the problem is, thank you very much !

image image image image

KagurazakaNyaa commented 5 months ago

This image uses user steam(uid=1000) for steam operations and game launches. Try docker exec without the -u parameter. In addition, generally there is no need to manually update the game version in the container. GitHub actions will automatically build the latest version and push it as the latest tag.

aYin86cn commented 4 months ago

I have since re-downloaded the docker image, which solved the issue and allowed me to access the game, but just now, when palworld was upgraded again, I typed in the command that still triggered the issue. ERROR! Failed to install app '2394010' (Missing file permissions)

Then I used the method from your tip and after removing the -u 0, surprisingly the upgrade worked.

The game is for my two kids and I sometimes play with them for a while. Thank you very much! Solved the big problem.