In case the UrBackup server crashes on FreeNAS a gdb stacktrace is a very helpful tool in finding the cause of the crash.
Steps to get a gdb backtrace:
- Enter the shell of the UrBackup plugin jail
- Install gdb in the shell via the command
pkg_add -r gdb - Shutdown the urbackup server:
killall urbackup_srv - Install screen:
pkg_add -r screen - Run screen:
screen - Start the UrBackup server in gdb:
start_urbackup_server --loglevel debug --run_in_gdb - Start the program in gdb:
run - Once it crashed enter the shell of the plugin jail again and attach to the screen:
screen -r - Enter "bt" to get the backtrace to the location it crashed:
bt - Add the trace information to your bug report