GithubHelp home page GithubHelp logo

Comments (11)

jammsen avatar jammsen commented on May 22, 2024 1

Fix is applied in my local version:

Console

palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
 ✔ Container palworld-dedicated-server  Stopped                                                                                                     3.3s
palworld-dedicated-server exited with code 0
canceled

3.3 instead of 10 🚀

docker-compose logs -f

palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-dedicated-server  | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
palworld-dedicated-server  | FUnixPlatformMisc::RequestExitWithStatus
palworld-dedicated-server  | FUnixPlatformMisc::RequestExit
palworld-dedicated-server  | dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
palworld-dedicated-server  | Exiting abnormally (error code: 143)
palworld-dedicated-server  | Shutdown handler: cleanup.

This should do the trick i think. @uncaught

from docker-palworld-dedicated-server.

0Downtime avatar 0Downtime commented on May 22, 2024

This would be helpful since the server needs rebooted every 2 hours due to memory leak.

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on May 22, 2024

Hey @uncaught
Looks to me like this is the problem? https://docs.docker.com/compose/faq/#why-do-my-services-take-10-seconds-to-recreate-or-stop

from docker-palworld-dedicated-server.

uncaught avatar uncaught commented on May 22, 2024

Yes, your entrypoint (servermanager.sh) needs to delegate the signals to the services it starts.

I don't know where PalServer.sh comes from, but if that handles a shutdown signal (the docker stop signal can be adjusted), then maybe this could already do the trick:

-    ./PalServer.sh "$START_OPTIONS"
+    exec ./PalServer.sh "$START_OPTIONS"

exec will replace the top level process, so the signals go there now.

Not sure if you need your own process running still though.

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on May 22, 2024

Hey @uncaught
the PalServer.sh comes with the server, it sets some unreal-engine things.
PalServer.sh:

#!/bin/sh
UE_TRUE_SCRIPT_NAME=$(echo \"$0\" | xargs readlink -f)
UE_PROJECT_ROOT=$(dirname "$UE_TRUE_SCRIPT_NAME")
chmod +x "$UE_PROJECT_ROOT/Pal/Binaries/Linux/PalServer-Linux-Test"
"$UE_PROJECT_ROOT/Pal/Binaries/Linux/PalServer-Linux-Test" Pal "$@" 

But im working on a fix for that, a collegue of mine has something the might work and he was okay with me using it.

from docker-palworld-dedicated-server.

uncaught avatar uncaught commented on May 22, 2024

3.3 seconds sounds good :)

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on May 22, 2024

Please go ahead and test things.
New Docker-Compose File is needed.
You can find now examples in the README.md.
The docker-compose.yml was removed because of dublicate code.

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on May 22, 2024

If this issue is solved, please give me feedback on the patch and please consider giving me a Star here and on Docker-Hub.

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on May 22, 2024

@uncaught Ping please read the last 2 comments and tell me things

from docker-palworld-dedicated-server.

uncaught avatar uncaught commented on May 22, 2024

I've seen it, but can't test, yet. I've been shutting down the server via rcon lately and it's not running right now. (Damn memory leak ;) )

I've been using the updated script though already since yesterday.

I'm going to assume this is solved (until they change the name of PalServer-Linux-Test I guess ;) ).

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on May 22, 2024

Well its their binary and their shell-script, up to them to manage that beast, hehe 👍

from docker-palworld-dedicated-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.