πŸ’₯Crash Logs

Automatic crash reporting for your Ragnarok server

RagnaSync can automatically capture and report server crashes, helping you diagnose and fix issues quickly. When your server crashes, detailed debugging information is sent to your RagnaSync dashboard.

How It Works

When you run your server through the RagnaSync launcher scripts (ragnasync.sh on Linux or ragnasync.bat on Windows), your server runs under GDB (GNU Debugger). If a crash occurs, the launcher:

  1. Captures the crash with full debugging information

  2. Generates a report with backtrace, thread info, and variables

  3. Sends it to RagnaSync automatically

  4. Notifies you via your configured channels

Setup

Linux

Use the provided ragnasync.sh script instead of starting your server directly:

# Instead of:
./map-server

# Use:
./ragnasync.sh map-server

Windows

Use the provided ragnasync.bat script:

What's Captured

When a crash occurs, the report includes:

Information
Description

Server Type

Which server crashed (login, char, or map)

Hostname

Machine where the crash occurred

Timestamp

Exact time of the crash (UTC)

Backtrace

Full stack trace showing where it crashed

Thread Info

State of all running threads

Registers

CPU register values at crash time

Local Variables

Variable values in the crashing function

Example Crash Report

Viewing Crash Logs

Crash logs are available in your RagnaSync dashboard:

  1. Log into your RagnaSync account

  2. Navigate to your server's dashboard

  3. Click on Crash Logs in the sidebar

  4. View recent crashes with full details

Discord Notifications

You can receive Discord notifications when crashes occur. Configure this in your channels.conf:

Troubleshooting Tips

GDB Not Found

If you get an error about GDB not being installed:

Linux (Ubuntu/Debian):

Linux (CentOS/RHEL):

Permissions Issues

Make sure the launcher script is executable:

Server Won't Start

If your server doesn't start through the launcher:

  1. Check that your normal server starts without the launcher

  2. Verify GDB is installed correctly

  3. Check the RagnaSync error logs

Benefits

  • Fast Debugging - See exactly where and why crashes happen

  • Automatic Capture - No manual steps needed when crashes occur

  • Remote Monitoring - Get notified even when you're away

  • Historical Data - Track crash patterns over time

  • Detailed Context - Full stack traces and variable values

Notes

  • Crash logs are only sent for crashes (SIGSEGV, SIGABRT, etc.)

  • Normal server shutdowns are not reported as crashes

  • Reports are sent securely to RagnaSync servers

  • Only you have access to your server's crash data

Last updated