View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000573 | bareos-core | General | public | 2015-11-30 10:54 | 2017-06-08 15:25 |
Reporter | lfouque | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Debian | OS Version | 7 |
Summary | 0000573: rsync tape between bareos server | ||||
Description | Bareos 15.4 The same configuration between 2 Bareos-servers. On my Bareos-1, I backup and restore a mysql server (using bpipe).Backup is on hard-drive. On my Bareos-2, I rsync a tape and I try to bscan the tape : bscan -B mysql -d 200 -n bareos -u bareos -P P6RcQc6Ks8Uy -s -v -V Full-Database-akrb1lab1bkp01-weekly-0 /backups/Database_Storage/akrb1lab1bkp01/ bscan (90): stored_conf.c:837-0 Inserting Director res: akrb1lab1bkp02-mon bscan (90): stored_conf.c:837-0 Inserting Device res: device_production_db_akrb1lab1bkp01_monthly bscan (90): stored_conf.c:837-0 Inserting Device res: device_production_db_akrb1lab1bkp01_weekly bscan (8): crypto_cache.c:55-0 Could not open crypto cache file. /var/lib/bareos/bareos-sd.9103.cryptoc ERR=Aucun fichier ou dossier de ce type bscan: butil.c:271-0 Using device: "/backups/Database_Storage/akrb1lab1bkp01/" for reading. bscan (100): dev.c:393-0 init_dev: tape=0 dev_name=/backups/Database_Storage/akrb1lab1bkp01/ bscan (100): dev.c:395-0 dev=/backups/Database_Storage/akrb1lab1bkp01/ dev_max_bs=0 max_bs=0 bscan (100): block.c:127-0 created new block of blocksize 64512 (dev->device->label_block_size) as dev->max_block_size is zero bscan (200): acquire.c:791-0 Attach Jid=0 dcr=612b98 size=0 dev="device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan (150): vol_mgr.c:171-0 add read_vol=Full-Database-akrb1lab1bkp01-weekly-0 JobId=0 bscan (100): butil.c:164-0 Acquire device for read bscan (100): acquire.c:63-0 dcr=612b98 dev=614088 bscan (100): acquire.c:64-0 MediaType dcr= dev=File bscan (100): acquire.c:92-0 Want Vol=Full-Database-akrb1lab1bkp01-weekly-0 Slot=0 bscan (100): acquire.c:106-0 MediaType dcr= dev=File bscan (100): acquire.c:174-0 MediaType dcr= dev=File bscan (100): acquire.c:193-0 dir_get_volume_info vol=Full-Database-akrb1lab1bkp01-weekly-0 bscan (100): askdir.c:731-0 Fake dir_get_volume_info bscan (100): mount.c:650-0 No swap_dev set bscan (100): mount.c:600-0 Must load "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan (100): autochanger.c:99-0 Device "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) is not an autochanger bscan (100): acquire.c:235-0 stored: open vol=Full-Database-akrb1lab1bkp01-weekly-0 bscan (100): dev.c:561-0 open dev: type=1 dev_name="device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) vol=Full-Database-akrb1lab1bkp01-weekly-0 mode=OPEN_READ_ONLY bscan (100): dev.c:572-0 call open_device mode=OPEN_READ_ONLY bscan (190): dev.c:1006-0 Enter mount bscan (100): dev.c:646-0 open disk: mode=OPEN_READ_ONLY open(/backups/Database_Storage/akrb1lab1bkp01/Full-Database-akrb1lab1bkp01-weekly-0, 0x0, 0640) bscan (100): dev.c:662-0 open dev: disk fd=3 opened bscan (100): dev.c:580-0 preserve=0x32d55ff0 fd=3 - afficher le texte des messages précédents - - afficher le texte des messages précédents - - afficher le texte des messages précédents - bscan (150): vol_mgr.c:323-0 new Vol=Full-Database-akrb1lab1bkp01-weekly-0 at 625948 dev="device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan (150): vol_mgr.c:582-0 === set in_use. vol=Full-Database-akrb1lab1bkp01-weekly-0 dev="device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan (150): vol_mgr.c:619-0 Inc walk_start use_count=2 volname=Full-Database-akrb1lab1bkp01-weekly-0 bscan (150): vol_mgr.c:259-0 List end new volume: Full-Database-akrb1lab1bkp01-weekly-0 in_use=1 swap=0 on device "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan (100): dev.c:432-0 Device "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) has dev->device->max_block_size of 0 and dev->max_block_size of 64512, dcr->VolMaxBlocksize is 0 bscan (100): dev.c:474-0 set minblocksize to 64512, maxblocksize to 64512 on device "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan (100): acquire.c:263-0 Got correct volume. 15-oct. 10:35 bscan JobId 0: Ready to read from volume "Full-Database-akrb1lab1bkp01-weekly-0" on device "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/). bscan (100): acquire.c:370-0 dcr=612b98 dev=614088 bscan (100): acquire.c:371-0 MediaType dcr= dev=File bscan (100): cats_backends.c:63-0 db_init_database: Trying to find mapping of given interfacename mysql to mapping interfacename dbi, partly_compare = true bscan (100): cats_backends.c:63-0 db_init_database: Trying to find mapping of given interfacename mysql to mapping interfacename mysql, partly_compare = false bscan (100): cats_backends.c:161-0 db_init_database: testing backend /usr/lib/bareos/backends/libbareoscats-mysql.so bscan (100): cats_backends.c:226-0 db_init_database: loaded backend /usr/lib/bareos/backends/libbareoscats-mysql.so bscan (100): mysql.c:850-0 db_init_database first time bscan (50): mysql.c:171-0 mysql_init done bscan (50): mysql.c:195-0 mysql_real_connect done bscan (50): mysql.c:197-0 db_user=bareos db_name=bareos db_password=blahblah bscan (100): mysql.c:220-0 opendb ref=1 connected=1 db=627040 - afficher le texte des messages précédents - - afficher le texte des messages précédents - - afficher le texte des messages précédents - bscan (100): sql_update.c:322-0 update_media: FirstWritten=1444740585 bscan: bscan.c:1125-0 Created Media record for Volume: Full-Database-akrb1lab1bkp01-weekly-0 bscan: bscan.c:574-0 Media type "File" is OK. bscan: bscan.c:587-0 VOL_LABEL: OK for Volume: Full-Database-akrb1lab1bkp01-weekly-0 bscan: bscan.c:1200-0 Created Client record for Client: ankbck02-fd bscan (100): block.c:130-0 created new block of blocksize 64512 (dev->max_block_size) bscan (200): acquire.c:791-0 Attach Jid=1234 dcr=643128 size=1 dev="device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/) bscan: bscan.c:1289-0 Created new JobId=2 record for original JobId=1234 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=179 bscan (150): attr.c:70-0 Attr: 1 3 /MYSQL/mysql_config.tar.gz bscan (150): attr.c:76-0 Got Attr: FilInx=1 type=3 bscan (150): attr.c:129-0 unpack_attr FI=1 Type=3 fname=/MYSQL/mysql_config.tar.gz attr=A A IHA A A A A -B BAA B BWHP3p BWHP3p BWHP3p A A C lname= attrEx= datastr=0 delta_seq=0 bscan (100): sql_create.c:958-0 Fname=/MYSQL/mysql_config.tar.gz bscan (100): sql_create.c:959-0 put_file_into_catalog bscan (100): sql_create.c:966-0 db_create_filename_record: mysql_config.tar.gz bscan (100): sql_create.c:972-0 db_create_path_record: /MYSQL/ bscan (100): sql_create.c:978-0 db_create_file_record OK bscan (100): sql_create.c:980-0 CreateAttributes Path=/MYSQL/ File=mysql_config.tar.gz FilenameId=16 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=158 bscan (150): attr.c:70-0 Attr: 2 3 /MYSQL/dump.sql bscan (150): attr.c:76-0 Got Attr: FilInx=2 type=3 bscan (150): attr.c:129-0 unpack_attr FI=2 Type=3 fname=/MYSQL/dump.sql attr=A A IHA A A A A -B BAA B BWHP3q BWHP3q BWHP3q A A C lname= attrEx= datastr=0 delta_seq=0 bscan (100): sql_create.c:958-0 Fname=/MYSQL/dump.sql bscan (100): sql_create.c:959-0 put_file_into_catalog bscan (100): sql_create.c:966-0 db_create_filename_record: dump.sql bscan (100): sql_create.c:972-0 db_create_path_record: /MYSQL/ bscan (100): sql_create.c:978-0 db_create_file_record OK bscan (100): sql_create.c:980-0 CreateAttributes Path=/MYSQL/ File=dump.sql FilenameId=17 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3 Erreur de segmentation +---------+---------------------------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+ | MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +---------+---------------------------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+ | 2 | Full-Database-akrb1lab1bkp01-weekly-0 | Archive | 1 | 0 | 0 | 31,536,000 | 0 | 0 | 0 | File | 0000-00-00 00:00:00 | | 3 | Full-Database-akrb1lab1bkp01-weekly-4 | Archive | 1 | 0 | 0 | 31,536,000 | 0 | 0 | 0 | File | 0000-00-00 00:00:00 | +---------+---------------------------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+ But volume is 0 Bytes with 0 files (on Bareos-1 ~ 4MB). Without debug : bscan: butil.c:271-0 Using device: "/backups/Database_Storage/akrb1lab1bkp01/" for reading. 15-oct. 10:37 bscan JobId 0: Ready to read from volume "Full-Database-akrb1lab1bkp01-weekly-4" on device "device_production_db_akrb1lab1bkp01_monthly" (/backups/Database_Storage/akrb1lab1bkp01/). bscan: bscan.c:337-0 Using Database: bareos, User: bareos bscan: bscan.c:529-0 Pool record for Full-Database-akrb1lab1bkp01-weekly found in DB. bscan: bscan.c:543-0 Pool type "Backup" is OK. bscan: bscan.c:1125-0 Created Media record for Volume: Full-Database-akrb1lab1bkp01-weekly-4 bscan: bscan.c:574-0 Media type "File" is OK. bscan: bscan.c:587-0 VOL_LABEL: OK for Volume: Full-Database-akrb1lab1bkp01-weekly-4 bscan: bscan.c:1200-0 Created Client record for Client: ankbck02-fd bscan: bscan.c:1289-0 Created new JobId=3 record for original JobId=1239 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=179 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=158 bscan: bscan.c:981-0 Unknown stream type!!! stream=26 len=3 Erreur de segmentation Segmentation problem ? in /var/log/syslog : kernel: bscan[31937]: segfault at 0 ip 00007efe79f348cf sp 00007ffca7b85ea8 error 4 in libc-2.13.so[7efe79e1a000+181000] | ||||
Additional Information | Same issue on debian 7 or debian 8 | ||||
Tags | No tags attached. | ||||
Please - report more precise, what actually is the problem (in English, please) - How to reproduce? Please also have a look at https://www.bareos.org/en/HOWTO/articles/how-to-create-a-bugreport.html |
|
I try to rsync a tape between 2 bareos server You can reproduce : server_bareos_1 : #whatever job (example backup /etc) rsync this tape to server_bareos_2 bscan this tape on server_bareos_2 bscan failed with some segmentation fault |
|
I try with a new install on my server : on bscan i have a backtrace : kernel: [7831619.717425] bscan[1283]: segfault at 0 ip 00007f8f6cbe58cf sp 00007fffb7449298 error 4 in libc-2.13.so[7f8f6cacb000+181000] And the volume is empty. |
|
I try also last stable release 15.2 for debian and latest nightly version 15.4 |
|
same with testing version of libc6 kernel: [ 212.432193] bscan[4529]: segfault at 0 ip 00007f66fdef242a sp 00007ffeee03e688 error 4 in libc-2.21.so[7f66fde72000+19a000] |
|
Fix committed to bareos master branch with changesetid 6054. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-11-30 10:54 | lfouque | New Issue | |
2015-11-30 11:59 | maik | Note Added: 0002018 | |
2015-11-30 11:59 | maik | Status | new => feedback |
2015-11-30 12:19 | lfouque | Note Added: 0002019 | |
2015-11-30 12:19 | lfouque | Status | feedback => new |
2015-12-08 10:00 | lfouque | Note Added: 0002031 | |
2015-12-08 18:03 | lfouque | Note Edited: 0002031 | |
2015-12-09 17:53 | lfouque | Note Added: 0002032 | |
2015-12-18 14:18 | lfouque | Note Added: 0002047 | |
2016-01-07 19:44 | mvwieringen | Changeset attached | => bareos master 3c5810f9 |
2016-01-07 19:44 | mvwieringen | Note Added: 0002075 | |
2016-01-07 19:44 | mvwieringen | Status | new => resolved |
2016-01-07 19:44 | mvwieringen | Resolution | open => fixed |
2016-03-11 14:33 | maik | Description Updated | |
2016-03-11 14:33 | maik | Relationship added | child of 0000625 |
2016-07-05 12:42 | joergs | Description Updated | |
2017-06-08 15:25 | joergs | Status | resolved => closed |