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.43k stars 295 forks source link

Cannot use RCON #70

Closed GyeongdongKim closed 9 months ago

GyeongdongKim commented 9 months ago

I deleted and reinstalled the docker container to use RCON, but it didn't work if I type "docker exec -it palworld-server rcon-cli".

Error Message: OCI runtime exec failed: exec failed: unable to start container process: exec: "rcon-cli": executable file not found in $PATH: unknown

thijsvanloef commented 9 months ago

Please do the following to see if the issue persists:

nizukameha commented 9 months ago

Hello, I add env variable and restart the container but I've got : "Failed to connect to RCON serverdial tcp 127.0.0.1:25575: connect: connection refused", do you know why ?

thijsvanloef commented 9 months ago

@nizukameha I need some more information about your setup. But as a first troubleshooting step, did you restart the container, or removed the container, repulled the image, and started the server again?

philipnordmann commented 9 months ago

Hello, I add env variable and restart the container but I've got : "Failed to connect to RCON serverdial tcp 127.0.0.1:25575: connect: connection refused", do you know why ?

@nizukameha what helped me was to delete your data directory e.g. ./palworld and newly create the container from scratch described by @thijsvanloef Be very careful since this will delete your save files.

If you don't want to do this you can copy ./palworld/DefaultPalWorldSettings.ini to ./palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini and recreate the container.

Not sure why but I think before the default settings were not copied.

nizukameha commented 9 months ago

@nizukameha I need some more information about your setup. But as a first troubleshooting step, did you restart the container, or removed the container, repulled the image, and started the server again?

I am using the image trought casaOS (for more context), I only restart the container, I don't removed the container because I'm scared of loosing my world. This is the content of my PalWorldSettings.ini

Edit: After another restart, it finally work :)

shulshof commented 9 months ago

I may be wrong but I don't it doesn't look like wget is installed and so it does not download rcon-cli:

root@9c870b1f18bf:/home/steam/server# wget bash: wget: command not found

thijsvanloef commented 9 months ago

@nizukameha RCON was added in an updated version of my docker image, if you only restart the container, the new image will not be downloaded and thus, you will not be able to use RCON.

thijsvanloef commented 9 months ago

@shulshof if wget is not present in your container, that means you are running an older version of my image. Please update the image:

If you mounted the palworld folder to your system, you should not lose any data. However it is always a good idea to backup your savefiles just to be sure.

thijsvanloef commented 9 months ago

@GyeongdongKim Is your issue resolved and can I close this issue?

GyeongdongKim commented 9 months ago

@GyeongdongKim Is your issue resolved and can I close this issue?

Yes, thank you.

MrMysterius commented 9 months ago

Quick, note that I found as well, when you stop the server it will save the currently loaded configuration again to the Pal/Saved/Config/LinuxServer/PalWorldSettings.ini config again, also the Default Configuration file DefaultPalWorldSettings.ini does not get loaded from my experience at all and the first config should always be used and only edited while server is stopped.