Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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:

 

  1. Newer FreeNAS builds should include debugging symbols so the normal package should suffice.
  2. Enter the shell of the UrBackup plugin jail
  3. Install gdb in the shell via the command
    pkg_add -r gdb
  4. Shutdown the urbackup server:
    killall urbackup_srv
  5. Install tmux:
    pkg_add -r tmux
  6. Run tmux:
    tmux
  7. Start the UrBackup server in gdb:
    start_urbackup_server --loglevel debug --run_in_gdb
  8. Start the program in gdb:
    run
  9. Once it crashed enter the shell of the plugin jail again and attach to the tmux session:
    tmux attach
  10. Enter "bt" to get the backtrace to the location it crashed:
    bt
  11. Add the trace information to your bug report

 

How to get debug logging info:

  1. Export the Plugin filesystem via filesharing
  2. Change in JAIL_ROOT/etc/rc.d/urbackup_srv: "–pidfile /var/run/urbackup_srv.pid --user root" to "–pidfile /var/run/urbackup_srv.pid --user root --loglevel debug" and restart the jail
  3. Access debug logfile at JAIL_ROOT/var/log
  • No labels