Bug 819158
Summary: | bacula-fd crashing | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomasz Torcz <tomek> | ||||||
Component: | bacula | Assignee: | Simone Caronni <negativo17> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 17 | CC: | andreas, fschwarz, gwync, hhorak, lnykryn, negativo17, vanmeeuwen+fedora | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-06-12 00:36:18 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Tomasz Torcz
2012-05-05 09:44:01 UTC
Hello, can you test this build? http://koji.fedoraproject.org/koji/buildinfo?buildID=319894 No changes, but it's a rebuild in more recent f17 times. Thanks, --Simone No changes, the same crash. Hello, this is the answer on the bacula mailing list: http://marc.info/?l=bacula-devel&m=133775686222165&w=2 Can you try what's written there (turning off acl/xattr support) and test again? If that's the case I will ask on fedora-devel how we can circumvent stack protector options. Thanks, --Simone ...and file the bug on bacula, as suggested. Please attach your bacula-dir.conf and bacula-fd.conf files. Disabling xattrs support makes the backup succeed, however this is suboptimal. I see this issue on one machine only. The filesystem to be backed up is btrfs, if that matters. From bacula log file I see that previous successful backup was at 02-Feb-12. It was around time bacula-5.2.6 replaced bacula-5.0.x in Fedora. Hello, bacula 5.2 replaced bacula 5.0 in Fedora (rawhide and then 17) many many months ago, so probably that's the date you upgraded your system. Bacula 5.2 introduced a lot of changes related to ACLs and Extended Attributes; including the option to backup file capabilities in 5.2.4. http://www.bacula.org/en/?page=news http://bacula.org/5.2.x-manuals/en/main/main/Bacula_Main_Reference.html The fact that you experience the crash only on one system and that system is btrfs can be a pointer, maybe bacula has not been tested in such an environment. I'll forward such information on the mailing list; please attach here your bacula-dir.conf and bacula-fd.conf. If you miss file capabilities upon a restore; you can use this command to see which need to be restored. rpm --qf "[%{FILECAPS} %{FILENAMES}\n]" -qa | grep '^=' Hello, can you test the build here? http://slaanesh.fedorapeople.org/819158/ This contains a small patch provided directly by the Bacula developers. If it works I'll push the update. Thanks, --Simone bacula-5.2.6-5.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/bacula-5.2.6-5.fc17 Please test if the update fixes your problem and submit a karma feedback if it does. yum --enablerepo=updates-testing update bacula* Thanks, --Simone Package bacula-5.2.6-5.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing bacula-5.2.6-5.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-8532/bacula-5.2.6-5.fc17 then log in and leave karma (feedback). Hi, sorry for lack of feedback - I was vacationing last week. Unfortunately, bacula-client-5.2.6-5.fc17.x86_64 do not fix the issue. Traceback is following: (gdb) thread apply all bt Thread 4 (Thread 0x7fffebfff700 (LWP 30903)): #0 0x00000032450ead03 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x0000003c3a01b28e in BSOCK::wait_data_intr (this=0x7fffe40008e8, sec=<optimized out>, usec=<optimized out>) at bsock.c:891 #2 0x0000000000413ae9 in sd_heartbeat_thread (arg=0x7fffec0008e8) at heartbeat.c:77 #3 0x0000003245407d14 in start_thread (arg=0x7fffebfff700) at pthread_create.c:309 #4 0x00000032450f199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 3 (Thread 0x7ffff119b700 (LWP 30902)): #0 sm_free (file=0x4277c8 "xattr.c", line=1324, fp=0x5555555555555555) at smartall.c:192 #1 0x0000000000420a44 in generic_xattr_build_streams (jcr=0x7fffec0008e8, ff_pkt=<optimized out>) at xattr.c:1324 #2 0x000000000040dc0b in save_file (jcr=0x7fffec0008e8, ff_pkt=0x7fffec003488, top_level=<optimized out>) at backup.c:732 #3 0x0000003c3980655f in find_one_file (jcr=jcr@entry=0x7fffec0008e8, ff_pkt=ff_pkt@entry=0x7fffec001278, handle_file=handle_file@entry=0x3c39803c90 <our_callback(JCR*, FF_PKT*, bool)>, fname=fname@entry=0x7fffec002e78 "/etc/rpm", parent_device=140737153304216, parent_device@entry=18, top_level=top_level@entry=false) at find_one.c:780 #4 0x0000003c398064dd in find_one_file (jcr=0x7fffec0008e8, ff_pkt=0x7fffec001278, handle_file=0x3c39803c90 <our_callback(JCR*, FF_PKT*, bool)>, fname=0x7fffec001fd8 "/etc", parent_device=140737153268920, top_level=<optimized out>) at find_one.c:763 #5 0x0000003c398042fc in find_files (jcr=<optimized out>, ff=0x7fffec001278, file_save=<optimized out>, plugin_save=0x410420 <plugin_save(JCR*, FF_PKT*, bool)>) at find.c:217 #6 0x000000000040b46e in blast_data_to_storage_daemon (jcr=0x7fffec0008e8, addr=<optimized out>) at backup.c:188 #7 0x0000000000415bd3 in backup_cmd (jcr=0x7fffec0008e8) at job.c:1937 #8 0x0000000000417934 in handle_client_request (dirp=0x853958) at job.c:289 #9 0x0000003c3a03ff7b in workq_server (arg=0x62ce20) at workq.c:346 #10 0x0000003245407d14 in start_thread (arg=0x7ffff119b700) at pthread_create.c:309 #11 0x00000032450f199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 2 (Thread 0x7ffff199c700 (LWP 30890)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 #1 0x0000003c3a03f79d in watchdog_thread (arg=<optimized out>) at watchdog.c:321 #2 0x0000003245407d14 in start_thread (arg=0x7ffff199c700) at pthread_create.c:309 #3 0x00000032450f199d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 1 (Thread 0x7ffff7dcb800 (LWP 30887)): #0 0x00000032450ead03 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x0000003c3a0178d4 in bnet_thread_server (addrs=0x837478, max_clients=20, client_wq=0x62ce20, handle_client_request=0x4176d0 <handle_client_request(void*)>) at bnet_server.c:160 #2 0x000000000040903d in main (argc=<optimized out>, argv=<optimized out>) at filed.c:278 Hello, I've pushed Bacula 5.2.7 to testing, if you want to give it a try but I doubt it will solve the problems. On the bacula bug tracker I was asked if the File Daemon is running unprivileged. Are you're running it with "-k" in the command line? Can you also please attach your config files as requested on comment #4 and comment #9? Asking questions and waiting for answers makes the debugging more complicated. I need these files: /etc/bacula/bacula-dir.conf /etc/bacula/bacula-fd.conf /etc/sysconfig/bacula-fd Thanks, --Simone I've made a note about the privileges option in the config files so it will get in into the next version: http://pkgs.fedoraproject.org/gitweb/?p=bacula.git;a=commitdiff;h=9dc3c9b46e8a63450cb805bf76157e6a5c511706 Created attachment 589595 [details]
bacula-fd.conf
bacula-fd runs as root (i.e. no "-k" option used)
Created attachment 589599 [details]
bacula-dir.conf
Hello, I've included a patch from the Bacula developers that overhaul the xattr code, can you please test this build? The developers have made tests with F17 on a btrfs root and say they fixed the issue: http://koji.fedoraproject.org/koji/buildinfo?buildID=322378 There's a change in this package, the symlink library name has changed because we discovered a bug during version upgrades. Please issue the following before upgrading: alternatives --remove /usr/lib64/libbaccats-mysql-5.2.6.so alternatives --remove /usr/lib64/libbaccats-sqlite3-5.2.6.so alternatives --remove /usr/lib64/libbaccats-postgresql-5.2.6.so And then set again your preference database with: # alternatives --config libbaccats.so There are 3 programs which provide 'libbaccats.so'. Selection Command ----------------------------------------------- 1 /usr/lib64/libbaccats-mysql.so + 2 /usr/lib64/libbaccats-sqlite3.so * 3 /usr/lib64/libbaccats-postgresql.so Enter to keep the current selection[+], or type selection number: Thanks, --Simone Success! With this build, backup with xattrs enabled finished without errors. Thank you for all the time spent on this case. bacula-docs-5.2.7-1.fc17,bacula-5.2.7-4.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/bacula-docs-5.2.7-1.fc17,bacula-5.2.7-4.fc17 Package bacula-docs-5.2.7-1.fc17, bacula-5.2.7-4.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing bacula-docs-5.2.7-1.fc17 bacula-5.2.7-4.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9159/bacula-docs-5.2.7-1.fc17,bacula-5.2.7-4.fc17 then log in and leave karma (feedback). 5.2.8 has come out upstream with many other bugs fixed and includes already the latest xattr patch. I introduced a change in the spec file that checks for the obsolete symlinks for bacula-dir, bacula-sd (>=F16) and libbaccats-backend-version.so (=F17) and sets the new one accordingly so the change should not be done manually. So even an upgrade from F16 to F17 should be safe and retain the preferences. Excerpt from the spec file: # Fix for automatic selection of backends during upgrades if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \ readlink /etc/alternatives/bacula-dir | grep --silent mysql || \ readlink /etc/alternatives/bacula-sd | grep --silent mysql; then /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \ readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \ readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so else /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so fi Regards, --Simone bacula-docs-5.2.8-1.fc17,bacula-5.2.8-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/bacula-docs-5.2.8-1.fc17,bacula-5.2.8-1.fc17 bacula-docs-5.2.8-1.fc17, bacula-5.2.8-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |