Urbackup server crash on Linux (segmentation fault)

Hi,
after some updates to my Ubuntu server, urbackup doesn’t work anymore. It crashes.

I’ve this version:

ii  urbackup-server                  2.4.12.0-1ubuntu1~xenial                   amd64        Server for backing up clients

Using dmesg I see:

    [   25.096897] grsec: time set by /usr/sbin/ntpdate[ntpdate:712] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/flock[flock:709] uid/euid:0/0 gid/egid:0/0
[   40.362080] grsec: time set by /usr/sbin/ntpdate[ntpdate:1600] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/flock[flock:1599] uid/euid:0/0 gid/egid:0/0
[   51.310796] urbackupsrv[2308]: segfault at 0 ip 000000000056c658 sp 00007af7d2698e90 error 4 in urbackupsrv[400000+5e8000]
[   51.310810] grsec: Segmentation fault occurred at            (nil) in /usr/bin/urbackupsrv[urbackupsrv:2308] uid/euid:112/112 gid/egid:121/121, parent /lib/systemd/systemd[systemd:1] uid/euid:0/0 gid/egid:0/0
[  185.118664] nf_conntrack: automatic helper assignment is depr

Any suggestion to solve this issue?

Thanks

Hi,
as a workaround I replaced init.d script by systemd and configure an auto restart

Still no luck. I’ve segmentation fault every time at startup of UrBack. Any hint?

See Having problems with UrBackup? Please read before posting and specifically https://urbackup.atlassian.net/wiki/spaces/US/pages/8323075/Debugging+with+gdb+on+Linux. The OpenSUSE Ubuntu builds have debug symbols if you don’t want to compile it yourself (e.g. at https://download.opensuse.org/repositories/home:/uroni/xUbuntu_20.04/amd64/ )

Hello,

we run gdb and this is the result:

*(gdb) run

*Starting program: /usr/bin/urbackupsrv run -v debug

*[Thread debugging using libthread_db enabled]

*Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1”.

*2020-06-26 10:07:36: Starting HTTP-Server on port 55414

*2020-06-26 10:07:36: HTTP: Server started up successfully!

*[New Thread 0x7236b1b8c700 (LWP 3985)]

*[New Thread 0x7236b12e8700 (LWP 3986)]

*2020-06-26 10:07:36: SQLite: recovered 4834 frames from WAL file /var/urbackup/backup_server.db-wal code: 283

*2020-06-26 10:07:36: SQLite: recovered 174942 frames from WAL file /var/urbackup/backup_server_files.db-wal code: 283

*2020-06-26 10:07:36: SQLite: recovered 15282 frames from WAL file /var/urbackup/backup_server_link_journal.db-wal code: 283

*2020-06-26 10:07:36: SQLite: recovered 64523 frames from WAL file /var/urbackup/backup_server_links.db-wal code: 283

*2020-06-26 10:07:36: SQLite: recovered 2 frames from WAL file /var/urbackup/backup_server_settings.db-wal code: 283

*2020-06-26 10:07:37: SQLite: recovered 4834 frames from WAL file /var/urbackup/backup_server.db-wal code: 283

*2020-06-26 10:07:37: SQLite: recovered 2 frames from WAL file /var/urbackup/backup_server_settings.db-wal code: 283

*2020-06-26 10:07:37: SQLite: recovered 174942 frames from WAL file /var/urbackup/backup_server_files.db-wal code: 283

*2020-06-26 10:07:37: SQLite: recovered 64523 frames from WAL file /var/urbackup/backup_server_links.db-wal code: 283

*2020-06-26 10:07:37: SQLite: recovered 15282 frames from WAL file /var/urbackup/backup_server_link_journal.db-wal code: 283

*[New Thread 0x72368bfe3700 (LWP 3987)]

*2020-06-26 10:07:37: Started UrBackup…

*[New Thread 0x72368b745700 (LWP 3988)]

*2020-06-26 10:07:37: Removing temporary files…

*2020-06-26 10:07:37: Recreating temporary folder…

*MOUNT TEST OK

*2020-06-26 10:07:37: Testing if backup destination can handle subvolumes and snapshots…

*Testing for btrfs…

*ERROR: not a btrfs filesystem: /home/BACKUP/urbackup/testA54hj5luZtlorr494

*TEST FAILED: Creating test btrfs subvolume failed

*Testing for zfs…

*TEST FAILED: Dataset is not set via /etc/urbackup/dataset

*2020-06-26 10:07:37: Backup destination cannot handle subvolumes and snapshots. Snapshots disabled.

*2020-06-26 10:07:37: Testing if backup destination can handle filesystem transactions…

*2020-06-26 10:07:37: Testing for hardlinks in backup destination…

*2020-06-26 10:07:37: Could create hardlink at backup destination. Hardlinks enabled.

*2020-06-26 10:07:37: Testing for reflinks in backup destination…

*2020-06-26 10:07:37: Reflink ioctl failed. errno=25

*2020-06-26 10:07:37: Could not create reflink at backup destination. Reflinks disabled. Inappropriate ioctl for device (code: 25)

*Thread 5 “urbackupsrv” received signal SIGSEGV, Segmentation fault.

*[Switching to Thread 0x72368b745700 (LWP 3988)]

*0x000000000056c658 in ?? ()

*(gdb) bt

*#0 0x000000000056c658 in ?? ()

*#1 0x000000000056ee8a in ?? ()

*#2 0x00000000005cb791 in ?? ()

*#3 0x000000000045b04a in ?? ()

*#4 0x00007236b73156ba in start_thread (arg=0x72368b745700)

*at pthread_create.c:333

*#5 0x00007236b704b41d in clone ()

*at …/sysdeps/unix/sysv/linux/x86_64/clone.S:109

The OS is Ubuntu 16.04.6 LTS; Urbackup is 2.4.10 version. File System is ext4.

Thanks

I’ve the same exact problem. Some hint for the resolution?

Thanks

No hint about this problem? Is the debug useful to identify the problem?

Those question marks mean it doesn’t have debug info, so it is unfortunately not useful to identify the problem. See my previous post on where to get debug symbols.