Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000993bareos-core[All Projects] storage daemonpublic2018-07-31 11:532018-08-09 16:47
ReporterIvanBayan 
Assigned To 
PrioritynormalSeverityminorReproducibilityrandom
StatusnewResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version17.2.4 
Target VersionFixed in Version 
Summary0000993: bareos-sd complains about corrupted volume, but bls/bextract works fine
DescriptionI tried to restore few backups and facede with problem, that storage director complains about corrupted volumes:
------------------------------------------------------
31-Jul 05:43 mia-backup03-dir JobId 8852: Start Restore Job RestoreFiles.2018-07-31_05.43.05_31
31-Jul 05:43 mia-backup03-dir JobId 8852: Using Device "mia-backup03_storage03" to read.
31-Jul 05:43 mia-backup03_storage03-sd JobId 8852: Ready to read from volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180630-7831-609" on device "mia-backup03_storage03" (/opt/storage/bareos/storage).
31-Jul 05:43 mia-backup03_storage03-sd JobId 8852: Forward spacing Volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180630-7831-609" to file:block 0:307.
31-Jul 05:43 mia-backup03_storage03-sd JobId 8852: Error: block.c:288 Volume data error at 0:307! Wanted ID: "BB02", got ">BB0". Buffer discarded.
31-Jul 05:43 mia-backup03_storage03-sd JobId 8852: Fatal error: fd_cmds.c:236 Command error with FD, hanging up.
31-Jul 05:43 mia-backup03-dir JobId 8852: Error: Bareos mia-backup03-dir 17.2.4 (21Sep17):
  Build OS: x86_64-pc-linux-gnu ubuntu Ubuntu 16.04 LTS
  JobId: 8852
  Job: RestoreFiles.2018-07-31_05.43.05_31
  Restore Client: mia-backup03-fd
  Start time: 31-Jul-2018 05:43:07
  End time: 31-Jul-2018 05:43:08
  Elapsed time: 1 sec
  Files Expected: 128
  Files Restored: 0
  Bytes Restored: 0
  Rate: 0.0 KB/s
  FD Errors: 0
  FD termination status: OK
  SD termination status: Fatal Error
  Termination: *** Restore Error ***
--------------------------------------------------------------
31-Jul 05:49 mia-backup03-dir JobId 8853: Start Restore Job RestoreFiles.2018-07-31_05.49.15_47
31-Jul 05:49 mia-backup03-dir JobId 8853: Using Device "mia-backup03_storage03" to read.
*messages
31-Jul 05:49 mia-backup03_storage03-sd JobId 8853: Ready to read from volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180721-8489-658" on device "mia-backup03_storage03" (/opt/storage/bareos/storage).
31-Jul 05:49 mia-backup03_storage03-sd JobId 8853: Forward spacing Volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180721-8489-658" to file:block 0:307.
31-Jul 05:49 mia-backup03_storage03-sd JobId 8853: Error: block.c:288 Volume data error at 0:307! Wanted ID: "BB02", got "pBB0". Buffer discarded.
31-Jul 05:49 mia-backup03_storage03-sd JobId 8853: Fatal error: fd_cmds.c:236 Command error with FD, hanging up.
31-Jul 05:49 mia-backup03-dir JobId 8853: Error: Bareos mia-backup03-dir 17.2.4 (21Sep17):
  Build OS: x86_64-pc-linux-gnu ubuntu Ubuntu 16.04 LTS
  JobId: 8853
  Job: RestoreFiles.2018-07-31_05.49.15_47
  Restore Client: mia-backup03-fd
  Start time: 31-Jul-2018 05:49:17
  End time: 31-Jul-2018 05:49:19
  Elapsed time: 2 secs
  Files Expected: 116
  Files Restored: 0
  Bytes Restored: 0
  Rate: 0.0 KB/s
  FD Errors: 0
  FD termination status: OK
  SD termination status: Fatal Error
  Termination: *** Restore Error ***
----------------------------------

But when I use bls or bextract no one complain given:
----------------------------------
#bextract /opt/storage/bareos/storage /opt/storage/uncopied-CDRs-fix/7830 -V ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180630-7831-609
...
31-Jul 05:31 bextract JobId 0: End of Volume at file 0 on device "mia-backup03_storage03" (/opt/storage/bareos/storage), Volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180630-7831-609"
31-Jul 05:31 bextract JobId 0: End of all volumes.
184 files restored.
----------------------------------
# bls -V ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180721-8489-658 /opt/storage/bareos/storage -k|grep -v Block:
bls: butil.c:273-0 Using device: "/opt/storage/bareos/storage" for reading.
31-Jul 05:52 bls JobId 0: Ready to read from volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180721-8489-658" on device "mia-backup03_storage03" (/opt/storage/bareos/storage).
31-Jul 05:52 bls JobId 0: End of file 0 on device "mia-backup03_storage03" (/opt/storage/bareos/storage), Volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180721-8489-658"
31-Jul 05:52 bls JobId 0: Got EOM at file 0 on device "mia-backup03_storage03" (/opt/storage/bareos/storage), Volume "ord-uploadcdr01-fd-mia-backup03_WV-CDRs_full-20180721-8489-658"
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Files

- Relationships

-  Notes
(0003100)
trinec (reporter)
2018-08-09 16:21
edited on: 2018-08-09 16:47

Ran in the same problem after upgrading from 16.x to 17.2.4 on CentOS7.

It's impossible to restore full or mixed backups. After running new full backups I was able to restore again.


- Issue History
Date Modified Username Field Change
2018-07-31 11:53 IvanBayan New Issue
2018-08-09 16:21 trinec Note Added: 0003100
2018-08-09 16:39 trinec Note Edited: 0003100 View Revisions
2018-08-09 16:41 trinec Note Edited: 0003100 View Revisions
2018-08-09 16:42 trinec Note Edited: 0003100 View Revisions
2018-08-09 16:47 trinec Note Edited: 0003100 View Revisions


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker