Cannot restore NDMP backup. Strange error

76 views
Skip to first unread message

Hernan Patané

unread,
Dec 2, 2019, 2:27:06 PM12/2/19
to bareos-users
Hi,

      I'm sorry to bother you, but I'm having troubles restoring a NDMP backup and the error is driving me crazy.

Im currently using bareos 18.2.5 and bareos-webui.

I also have a netapp AFF-A220 storage properly configured to support NDMP.

I configured NDMP client in bareos and tested it succesfully.

The fileset configured for NDMP is this

Fileset {
  Name = "NDMP NFS"
  Include {
    Options {
        meta = "BUTYPE=DUMP"
        meta = "USE_TBB_IF_AVAILABLE=y"
        meta = "FH_REPORT_FULL_DIRENTS=y"
        meta = "RESTORE_HARDLINK_BY_TABLE=y"
        meta = "HIST=y"
        meta = "DEBUG=y"
    }
    File = /netapp/NFS
  }
}

The NDMP backups run properly and i'm able to see the filelist in bconsole and bareos webui

The problem is whe I try to recover a single or multiple files from backup.
Using the webui (the error also appears using bconsole), I select the client, the file to recover, the proper the recover job and the location of the file but when I try to recover, the job immediately fails with message "Fatal error: Cannot NDMP restore without a file selection.". The only place where I've found this error using google was in the bareos source code :(

Did anyone face this kind of error? Did anyone have a clue about what could be going on?

This is the configuration of the recover job

Job {
  Name          = "ndmpNFSRestoreJob"
  Type          = Restore
  Protocol      = NDMP_BAREOS
  Client        = ndmp-netapp
  Backup Format = dump
  FileSet       = "NDMP NFS"
  Storage       = NDMPFile
  Pool          = Full-ndmp
  Messages      = Standard
  Where         = /
  Full Backup Pool = Full-ndmp
  Differential Backup Pool = Differential-ndmp
  Incremental Backup Pool = Incremental-ndmp
}


and this is the config of NDMPFile storage.

Storage {
  Name = NDMPFile
  Address = bareos
  Port = 10000
  Protocol = NDMPv4
  Auth Type = Clear
  Username = user
  Password = password
  Device = FileStorage
  Media Type = File
  PairedStorage = File
}


Please, any help will be welcome.

Thanks a lot.

Hernan

David Lawley

unread,
Dec 6, 2019, 11:10:40 AM12/6/19
to bareos...@googlegroups.com

Can't add much other than having same issue and searching got me here looking for a solution.

Backup seems to got well.  Restore selection of files fails (GUI).  Off to try bconsole, did it do the same thing?

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/1827139f-b9c5-40aa-8157-7d9d91cfd589%40googlegroups.com.

Hernan Patané

unread,
Dec 8, 2019, 7:25:29 AM12/8/19
to bareos-users
Hi, David.

                Yes, bconsole did the same thing :(
To unsubscribe from this group and stop receiving emails from it, send an email to bareos...@googlegroups.com.

David Lawley

unread,
Dec 9, 2019, 8:56:16 AM12/9/19
to bareos...@googlegroups.com

seemed to work for me (bconsole, let me select, gui did not) , but I'm still dealing with getting the right combo.  My backups don't seem to be in a format the restore understands, so my confs are a work in progress.  Trying to work with Omnios /Nappit storage

Anyway if it helps

my gui version is  18.2.5-131.1

bconsole 18.2.5

Both running under 16.x Ubuntu spin

Really hoping to get away from some of the really old windows servers/backup agents.

To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/3b19d298-ac65-476c-ae2b-72781b717915%40googlegroups.com.

Hernan Patané

unread,
Dec 10, 2019, 8:29:51 AM12/10/19
to bareos-users
Hi all,

          bconsole did work now but in a very strange way

If i do a restore file=xxxx, it fails with the error "Fatal error: Cannot NDMP restore without a file selection".  This is the way that the web-ui uses to restore a file.

If a do restore, list the jobs, build the directory tree and mark the file I'm trying to restore, the restore works properly.

Problem with the last command is that build the directory tree for large backup files kills the bconsole :(

Regards

David Lawley

unread,
Dec 11, 2019, 6:43:06 AM12/11/19
to bareos...@googlegroups.com

first thanks for any insight you might can offer

well I still have a problem with getting a single file restore to work. Even if I used bconsole (only way I could trigger any restore), always restores snapshot.

(****was just reading!, appears that might be normal, On restore, the full main backup file is always transfered back to the Primary Storage System, together with a description, what files to restore.)

Sure I still have something missing somewhere or maybe it is just a bug (biggest one is me),

GUI does list @NDMP, along with the snaps but unable to do anything with it

GUI is not showing any file history and fails with "without a file section error", but bconsole has it, I can select it, but always get a snapshot restore.

/

So looking on, maybe some of the heavy weights can chime it.

Would a better solution be use OmniOS in place of a standard linux etal / bareos-sd and using Omni's native NDMP to drive the library and tape drives? (gut feeling this might be more normal, matching other storage appliances)

GUI version 18.2.5-131.1

Bareos        bareos-dir Version: 18.2.5 (30 January 2019) Linux-4.4.92-6.18-default ubuntu Ubuntu 16.04 LTS xUbuntu_16.04 x86_64

each SD (1 driving 2 libraries, 4 drives.  2 driving 1 libraries 2 drives each)

bareos-sd Version: 18.2.5 (30 January 2019) Linux-4.4.92-6.18-default ubuntu Ubuntu 16.04 LTS
bareos-sd Version: 18.2.5 (30 January 2019) Linux-4.4.92-6.18-default ubuntu Ubuntu 16.04 LTS
bareos-sd Version: 18.2.5 (30 January 2019) Linux-4.4.92-6.18-default ubuntu Ubuntu 16.04 LTS
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages