jammsen / docker-palworld-dedicated-server

Docker container to easily provision and manage Palworld Dedicated Server
https://hub.docker.com/r/jammsen/palworld-dedicated-server
MIT License
909 stars 158 forks source link

No content under palworld/game and cannot connect with server #15

Closed xxzl0130 closed 10 months ago

xxzl0130 commented 10 months ago

Have you read the Important information text above

Current behavior

cannot see a game/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini file, Or to be precise, there's nothing in the palworld/game folder.

and also I cannot connect with this server.

Desired behavior

The server is running and can be connected

Links to screenshots

No response

To Reproduce

I started the docker with the command below:

docker run --name palworld -p 8211 -e ALWAYS_UPDATE_ON_START=true -e MAX_PLAYERS=8 -e MULTITHREAD_ENABLED=true \
    -e COMMUNITY_SERVER=false -e PUBLIC_PORT=8211 -e PUBLIC_IP=43.139.150.139 -e SERVER_NAME=xworld \
    -e SERVER_DESCRIPTION="xx's pal world" -e SERVER_PASSWORD=xx233 -e ADMIN_PASSWORD=zaxs0130 \
    -v /home/ubuntu/palworld:/palworld \
    jammsen/palworld-dedicated-server

The log file has been uploaded to the attachment. docker.log

Software setup

Hardware setup

Additional context

No response

pierre-nicoli commented 10 months ago

Have you created and tried chmod your palworld directory ?

# Supposing your home is indeed /home/ubuntu
mkdir /home/ubuntu/palword
chmod 777 /home/ubuntu/palworld
xxzl0130 commented 10 months ago

Have you created and tried chmod your palworld directory ?

# Supposing your home is indeed /home/ubuntu
mkdir /home/ubuntu/palword
chmod 777 /home/ubuntu/palworld

yes, I can see other folders and files like Engine or linux64 inside the palworld, but only the /home/ubuntu/palworld/game folder is empty

kryst4line commented 10 months ago

@xxzl0130 I had this too and the issue was that I had to create the palworld/game folder in advance and give it 777 permissions; after that it created all the files correctly

CooperWallace commented 10 months ago

@xxzl0130 You'll need to specify udp for the port, otherwise Docker defaults to tcp. Took me a bit to realize that myself

jammsen commented 10 months ago

Hey @xxzl0130 - If you use Docker 24.0.7 you should have access to docker-compose, you should use that, instead of very long docker-runs. Make sure your permissions/ownerships are correct, see the readme.

Hey @CooperWallace - That sounds familiar, do you have a Resource on this information for me please? I never found one.

CooperWallace commented 10 months ago

@jammsen Sure! Its on the top of this page, https://tech.palworldgame.com/dedicated-server-guide.

CooperWallace commented 10 months ago

@jammsen I just realized you probably meant the tcp part. https://docs.docker.com/engine/reference/builder/#expose,

By default, EXPOSE assumes TCP. You can also specify UDP:

xxzl0130 commented 10 months ago

Hey @xxzl0130 - If you use Docker 24.0.7 you should have access to docker-compose, you should use that, instead of very long docker-runs. Make sure your permissions/ownerships are correct, see the readme.

Hey @CooperWallace - That sounds familiar, do you have a Resource on this information for me please? I never found one.

I created the palworld/game folder in advance, and specify udp for the port, but there is still noting in palword/game folder.

Snipaste_2024-01-22_11-07-07

And I noticed some error:

[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 5 milliseconds to initialize
Setting breakpad minidump AppID = 2394010
[S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
xxzl0130 commented 10 months ago

I realize I misunderstood things, the palworld folder corresponds to the game folder in readme, so now the problem is the S_API FAIL error.

906051999 commented 10 months ago

I realize I misunderstood things, the palworld folder corresponds to the game folder in readme, so now the problem is the S_API FAIL error.我意识到我误解了一些事情, palworld 文件夹对应于自述文件中的 game 文件夹,所以现在的问题是 S_API FAIL 错误。

I'm in the same situation as you, this problem will be displayed after restarting the server, although I have queried some messages, and the task can ignore this error. But I can't find my server in the social server.

[S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
[S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
CooperWallace commented 10 months ago

@xxzl0130 @906051999 Those are false positives and are always displayed. I run mine with those, and there's no isssues.

@906051999 As for the Server Browser, it looks like theres issues with too many servers. See if yours shows up in, https://www.battlemetrics.com/servers/palworld/.

906051999 commented 10 months ago

@xxzl0130 @906051999 Those are false positives and are always displayed. I run mine with those, and there's no isssues. 这些都是假阳性,并始终显示。我用这些来运行我的,没有任何问题。

@906051999 As for the Server Browser, it looks like theres issues with too many servers. See if yours shows up in, https://www.battlemetrics.com/servers/palworld/. 至于服务器浏览器,看起来有太多服务器的问题。看看你的是否出现在https://www.battlemetrics.com/servers/palworld/中。

What ports do I need to open to my server to meet this business? I tried opening 27015 and 8211

xxzl0130 commented 10 months ago

@xxzl0130 @906051999 Those are false positives and are always displayed. I run mine with those, and there's no isssues. 这些都是假阳性,并始终显示。我用这些来运行我的,没有任何问题。 @906051999 As for the Server Browser, it looks like theres issues with too many servers. See if yours shows up in, https://www.battlemetrics.com/servers/palworld/. 至于服务器浏览器,看起来有太多服务器的问题。看看你的是否出现在https://www.battlemetrics.com/servers/palworld/中。

What ports do I need to open to my server to meet this business? I tried opening 27015 and 8211

I think 27015 is useful.

And my friends can access to my server now, I think my home network meets some problem.

xxzl0130 commented 10 months ago

UPD.

I cannot change the port, only 8211 can access.

thijsvanloef/palworld-server-docker can run correctly and can change port to others.

906051999 commented 10 months ago

UPD.

I cannot change the port, only 8211 can access.

thijsvanloef/palworld-server-docker can run correctly and can change port to others.

I also used this project, and the IP direct connection was indeed successful, guessing that it was annotated with community-related configurations. Actually, I just queried the server I tested earlier in the https://www.battlemetrics.com/servers/palworld/, but unfortunately the information update was delayed by an hour, maybe it was successful before, but I didn't wait.

jammsen commented 10 months ago

UPD.

I cannot change the port, only 8211 can access.

thijsvanloef/palworld-server-docker can run correctly and can change port to others.

Hey @xxzl0130 - sure mine can this too. 8211 is only the internal port where the gameserver is publishing "Gamedata", you can just map this around with your Docker-Compose file in the ports section. But there are problems right now with the gameservers, see here https://tech.palworldgame.com/dedicated-server-guide#qa and according to Discord Announcment channel massive amounts of network-stress on Epic Online Service, so when your server just dont publish, try no-password and direct-connct via ip, like i do. The server-browser only gets 200 servers, you have to click so many times "next 200" that your gae sometimes breaks because of memory-leaks before you even can list you server. Thats just Early-Access, give them time to fix it.

I realize I misunderstood things, the palworld folder corresponds to the game folder in readme, so now the problem is the S_API FAIL error.

Thoose are more like warnings, then errors, you can savely ignore them, a collegue of mine setup his docker-image in a different way and after the 2nd time it dis-appears, thats just Steam doing Steam things. most of others game do that too, according to him, so dont worry about that.

xxzl0130 commented 10 months ago

UPD. I cannot change the port, only 8211 can access. thijsvanloef/palworld-server-docker can run correctly and can change port to others.

Hey @xxzl0130 - sure mine can this too. 8211 is only the internal port where the gameserver is publishing "Gamedata", you can just map this around with your Docker-Compose file in the ports section. But there are problems right now with the gameservers, see here https://tech.palworldgame.com/dedicated-server-guide#qa and according to Discord Announcment channel massive amounts of network-stress on Epic Online Service, so when your server just dont publish, try no-password and direct-connct via ip, like i do. The server-browser only gets 200 servers, you have to click so many times "next 200" that your gae sometimes breaks because of memory-leaks before you even can list you server. Thats just Early-Access, give them time to fix it.

I realize I misunderstood things, the palworld folder corresponds to the game folder in readme, so now the problem is the S_API FAIL error.

Thoose are more like warnings, then errors, you can savely ignore them, a collegue of mine setup his docker-image in a different way and after the 2nd time it dis-appears, thats just Steam doing Steam things. most of others game do that too, according to him, so dont worry about that.

I changed the port setting through PUBLIC_PORT, and also I confirmed that the docker is listening on the desired port, but I just can't connect with it, it's wired. I'll try again later.

jammsen commented 10 months ago

Hey @xxzl0130 try reading from this comment and all of them below, maybe that helps you out: https://github.com/jammsen/docker-palworld-dedicated-server/issues/9#issuecomment-1902786186

jammsen commented 10 months ago

@xxzl0130 @906051999 Those are false positives and are always displayed. I run mine with those, and there's no isssues. 这些都是假阳性,并始终显示。我用这些来运行我的,没有任何问题。 @906051999 As for the Server Browser, it looks like theres issues with too many servers. See if yours shows up in, https://www.battlemetrics.com/servers/palworld/. 至于服务器浏览器,看起来有太多服务器的问题。看看你的是否出现在https://www.battlemetrics.com/servers/palworld/中。

What ports do I need to open to my server to meet this business? I tried opening 27015 and 8211

@xxzl0130 @906051999 Those are false positives and are always displayed. I run mine with those, and there's no isssues. 这些都是假阳性,并始终显示。我用这些来运行我的,没有任何问题。 @906051999 As for the Server Browser, it looks like theres issues with too many servers. See if yours shows up in, https://www.battlemetrics.com/servers/palworld/. 至于服务器浏览器,看起来有太多服务器的问题。看看你的是否出现在https://www.battlemetrics.com/servers/palworld/中。

What ports do I need to open to my server to meet this business? I tried opening 27015 and 8211

I think 27015 is useful.

And my friends can access to my server now, I think my home network meets some problem.

You guys dont need 27015, thats mostly Steam-Query Autodiscovery, but this server uses EOS. If the server needed more then 8211 it would be written here: https://tech.palworldgame.com/dedicated-server-guide

xxzl0130 commented 10 months ago

The server is now working properly. I left my password blank and adjusted my local network to connect properly.

jammsen commented 10 months ago

Did the comments on the other issuehelp?

xxzl0130 commented 10 months ago

It's mainly about password settings

xxzl0130 commented 10 months ago

I also switched to Docker-Compose, which specifies the port as UDP, I don't know if this is different from using docker run -p, but it's easier to modify parameters

jammsen commented 10 months ago

Its much easier to define what the goal should be like and let docker-compose do the other stuff yes.