GithubHelp home page GithubHelp logo

Comments (4)

Hellfirest avatar Hellfirest commented on June 12, 2024 2

Hey @jammsen thanks for this amazing docker. And I may find the reason of this problem

Synology provide a gui crontab to maintain server and I write a script to check memory usage every 30min, if palworld server exceed 16G then rcon save, broadcast to my friend, and restart docker

In the new version of pds you provide backupmanager that I didnt notice, default env setting backup server every hour. So the crash maybe at the sametime my script conflict with backupmanager

Now I changed BACKUP_CRON_EXPRESSION to 5 5 * * * to avoid two policy working at the same time

Will see if any furthuer crash would happen

parts of my script is as follows:

if (( $(awk -v gb="$memory_usage_gb" 'BEGIN { printf (gb > 16) }') )); then
echo "Memory usage exceeds 16GB. Sending broadcast and saving world before restarting..."

# using mcron to broadcast danger message, save, restart
mcrcon -H $mcrcon_ip -P $mcrcon_port -p $mcrcon_password "broadcast Memory_usage_exceeds_16GB_Server_will_restart_soon_Actual_memory_usage:" 
mcrcon -H $mcrcon_ip -P $mcrcon_port -p $mcrcon_password "broadcast $memory_usage_gb GB"


# use mcrcon save
mcrcon -H $mcrcon_ip -P $mcrcon_port -p $mcrcon_password "save"

echo "Broadcast sent and world saved."
sleep 10
# restart 
echo "Restarting docker instance..."
docker restart jammsen-palworld-dedicated-server1
echo "Docker instance restarted."

else
mcrcon -H $mcrcon_ip -P $mcrcon_port -p $mcrcon_password "broadcast Memory_usage_fine_Actual_memory_usage:"
mcrcon -H $mcrcon_ip -P $mcrcon_port -p $mcrcon_password "broadcast $memory_usage_gb"
echo "Memory usage within acceptable limits."

from docker-palworld-dedicated-server.

Hellfirest avatar Hellfirest commented on June 12, 2024

屏幕截图 2024-02-19 093600
this is log from synology docker

from docker-palworld-dedicated-server.

Hellfirest avatar Hellfirest commented on June 12, 2024

i restore saved files from nearest backup files and problem solved, it seemed that the saved file crashed, but cant figure out where since at that moment it was my friends played and no clue what had they done

from docker-palworld-dedicated-server.

jammsen avatar jammsen commented on June 12, 2024

Hey @Hellfirest - Glad it works again, thanks for sharing the resolution!

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.