SOLVED!: Urbackup crashes with segfault in liburbackupser

Hi all,

since Sunday this week I’m testing if urbackup would be the perfect backup solution for our non profit club.
I’m running urbackup on a Debian 7.2 Wheezy Server with Gnome desktop and i have 8 Windows7 client’s to be backuped.

Urbackup did run from Sunday to Wednesday on the server without problems, :D but since today it crashes always in a library. :cry:

I have collected 3 logs since urbackup crashed:

/var/log/urbackup.log
2013-10-31 13:13:55: ERROR: Database “urbackup/backup_server.db” couldn’t be opened

/var/log/syslog
Oct 31 13:13:55 debian-server kernel: [ 288.340649] urbackup_srv[5161]: segfault at 0 ip 00007f756e077636 sp 00007fff8ce0b860 error 4 in liburbackupserver.so.0.0.0[7f756e03c000+157000]

I have already checked the integrety of the database as found in the documentation,
i have already defragmented the database and made an export/import of the database.

No changes after restarting Urbackup.

Oct 31 13:35:26 debian-server kernel: [ 1579.167631] urbackup_srv[5724]: segfault at 0 ip 00007f273cc73636 sp 00007fffe98488f0 error 4 in liburbackupserver.so.0.0.0[7f273cc38000+157000]

How could I help the developper to solve this problem?

Best Regards,
Stefan

Hi all,
I have a new log with log level set to debug and i get the following in urbackup.log:

2013-10-31 14:19:52: Changing user…
2013-10-31 14:19:52: done.
2013-10-31 14:19:52: Loaded -pychart- plugin
2013-10-31 14:19:52: Loaded -url- plugin
2013-10-31 14:19:52: Loaded -cryptoplugin- plugin
2013-10-31 14:19:52: Loaded -download- plugin
2013-10-31 14:19:52: Loaded -fsimageplugin- plugin
2013-10-31 14:19:52: Starting HTTP-Server on port 55414
2013-10-31 14:19:52: HTTP: Server started up sucessfully!
2013-10-31 14:19:52: Generating Server identity…
2013-10-31 14:19:52: Generating Server token…
2013-10-31 14:19:52: Destroying all databases…
2013-10-31 14:19:52: Destroying all databases…
2013-10-31 14:19:52: Could not open db [urbackup/backup_server.db]
2013-10-31 14:19:52: ERROR: Database “urbackup/backup_server.db” couldn’t be opened


/var/log/sylog:
Oct 31 14:19:52 debian-server kernel: [ 4245.109874] urbackup_srv[7364]: segfault at 0 ip 00007f15983be636 sp 00007fff423e2520 error 4 in liburbackupserver.so.0.0.0[7f1598383000+157000]

But the datebase backup_server.db exists and is readable and the integrity of the database is o.k.

Regards,
Stefan

Yes, it unfortunately crashes, if it cannot open the database.

Only one idea: Have you checked if the “urbackup” user has the permission to open/write to backup_server.db (and the -wal and -shm files)?

Yup, thanks for the help:

permission was the problem. I don’t really know what happend on my server and why this happened, but the urbackup_srv didn’t have
permission to open the database. So this is solved. :D :D :D

Regards,
Stefan