Menu

#4580 Restore does not work.

1.740
closed-fixed
None
5
2015-08-06
2015-03-31
Jiki
No

Bacula restore not working, just hangs before adding files.

System info:

Webmin 1.740, Bacula 7.0.5

Solution for ticket #4164 does not help.

Restore hangs just like this bellow:

restore client=testclient.my.office-fd jobid=13660 storage=File where="/tmp/bacula-restores"
Using Catalog "MyCatalog"
You have selected the following JobId: 13660

Building directory tree for JobId(s) 13660 ... +++++++++++++++++++++++++++++++++++++++++++++
1,461,420 files inserted into the tree.

You are now entering file selection mode where you add (mark) and
remove (unmark) files to be restored. No files are initially added, unless
you used the "all" keyword on the command line.
Enter "done" to leave this mode.

cwd is: /
$ cd "/baculatest/subdir/foo"
cwd is: /baculatest/subdir/foo
$

Tried restore.cgi replacing, no results, beside one time error header type missing..

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-04-01

    If you manually run the bacula console command on your system and then kick off a restore of this same backup, is it successful? And if so, can you post the full output here?

     
  • Morgan Mains

    Morgan Mains - 2015-05-12

    I can confirm the bug and did what you asked. If I litterally copy > paste the commands I see in the Wegmin GUI they work fine BUT the restore job does NOT execute and here's why. The "done" command is never executed. It's fairly obvious when you go to run a restore job and it just sits there saying all your files are marked... waiting at the $ prompt... it's waiting for you to send the "done" command.

    So when I'm in bconsole and type the identical commands from the GUI it picks the client file daemon, jobID, and storage then marks" the files I selected but again sits there at the file selection prompt. I must send the "done" command to continue on and run the job. The GUI doesn't do this and when I'm in bconsole if I send the "done" command, pick the Restore Job Resource, and run the job it works perfectly.

    FULL OUTPUT FROM bconsole:
    *restore client=hosname-fd jobid=278 storage=File
    Using Catalog "MyCatalog"
    You have selected the following JobId: 278

    Building directory tree for JobId(s) 278 ...
    20 files inserted into the tree.

    You are now entering file selection mode where you add (mark) and
    remove (unmark) files to be restored. No files are initially added, unless
    you used the "all" keyword on the command line.
    Enter "done" to leave this mode.

    cwd is: /
    $ cd "/etc/bareos"
    cwd is: /etc/bareos/
    $ mark "bareos-dir.conf"
    1 file marked.
    $ mark "bareos-sd.conf"
    1 file marked.
    $ mark "bareos-fd.conf"
    1 file marked.
    $ <this is="" as="" far="" the="" commands="" from="" gui="" take="" you.="" rest="" i="" did="" manually=""></this>

    $done

    Bootstrap records written to /var/lib/bareos/hosname-dir.restore.12.bsr

    The job will require the following
    Volume(s) Storage(s) SD Device(s)
    ===========================================================================

    Full-0064                 File                      hosname_foldername
    

    Volumes marked with "*" are online.

    3 files selected to be restored.

    The defined Restore Job resources are:
    1: RestoreFiles
    Select Restore Job (1-2): 1
    Using Catalog "MyCatalog"
    Run Restore job
    JobName: RestoreFiles
    Bootstrap: /var/lib/bareos/hosname-dir.restore.12.bsr
    Where: /tmp/bareos-restores
    Replace: Always
    FileSet: Linux XaaS Set
    Backup Client: hosname-fd
    Restore Client: hosname-fd
    Format: Native
    Storage: File
    When: 2015-05-12 10:48:58
    Catalog: MyCatalog
    Priority: 10
    Plugin Options: *None*
    OK to run? (yes/mod/no): yes
    Job queued. JobId=279

    *messages

    12-May 10:49 hosname-dir JobId 279: Start Restore Job RestoreFiles.2015-05-12_10.49.03_05
    12-May 10:49 hosname-dir JobId 279: Using Device "hosname_foldername" to read.
    12-May 10:49 hosname-sd JobId 279: Ready to read from volume "Full-0064" on device "hosname_foldername" (/mnt/hosname_foldername).
    12-May 10:49 hosname-sd JobId 279: Forward spacing Volume "Full-0064" to file:block 0:90073705.
    12-May 10:49 hosname-dir JobId 279: Bareos hosname-dir 14.2.1 (12Sep14):
    Build OS: x86_64-redhat-linux-gnu redhat Red Hat Enterprise Linux Server release 6.5 (Santiago)
    JobId: 279
    Job: RestoreFiles.2015-05-12_10.49.03_05
    Restore Client: hosname-fd
    Start time: 12-May-2015 10:49:05
    End time: 12-May-2015 10:49:05
    Elapsed time: 0 secs
    Files Expected: 3
    Files Restored: 3
    Bytes Restored: 19,271
    Rate: 0.0 KB/s
    FD Errors: 0
    FD termination status: OK
    SD termination status: OK
    Termination: Restore OK

     
  • Jamie Cameron

    Jamie Cameron - 2015-05-13

    You might want to try Webmin 1.750 (which we have just released), as it contains several bacula/bareos-related fixes.

     
  • Uyakuza

    Uyakuza - 2015-07-31

    this is the problem : .
    I have more than one restore template in my bacula-dir.conf file. Because of this, the next step is not starting the job but another question:
    The defined Restore Job resources are:
    1: RestoreClient1
    2: RestoreClient2
    3: RestoreClient3
    4: RestoreClient4
    Select Restore Job (1-4): 2
    I for now remarked the additional restore templates.
    how I solve this bug?? help me please
    I have the version 1.760

     

    Last edit: Uyakuza 2015-07-31
  • Jamie Cameron

    Jamie Cameron - 2015-08-01

    Huber - can you post the full "conversation" you would have with bacula when restoring maually from the command line with multiple templates?

     
  • Uyakuza

    Uyakuza - 2015-08-03

    I want run restore job from webmin interface is for users final not from the command line.

     
  • Jamie Cameron

    Jamie Cameron - 2015-08-04

    Right, but seeing the commands you'd have to type from the command line and Bacula's responses will help me determine what Webmin is doing wrong.

     
  • Uyakuza

    Uyakuza - 2015-08-04

    I explain in detail, I run restore job from webmin inteface I obtain this log:

    restore client=BaculaManager-fd jobid=219 storage=File
    Using Catalog "MyCatalog"
    You have selected the following JobId: 219

    Building directory tree for JobId(s) 219 ...
    1 files inserted into the tree.

    You are now entering file selection mode where you add (mark) and
    remove (unmark) files to be restored. No files are initially added, unless
    you used the "all" keyword on the command line.
    Enter "done" to leave this mode.

    cwd is: /
    $ cd "D:/BackupDiario"
    cwd is: D:/BackupDiario/
    $ mark "Diff_BD2015-08-04.rar"
    1 file marked.
    $

    and the next step is not starting. that is ''done'' because I have more than one restore template.
    I check from comand line that the next step is:

    The defined Restore Job resources are:
    1: RestoreClient1
    2: RestoreClient2
    3: RestoreClient3
    4: RestoreClient4
    Select Restore Job (1-4):

    I understand that this bug is the webmin interface. there some way to solve this bug??
    I dont want delete the remaining restore templates.

     

    Last edit: Uyakuza 2015-08-04
  • Jamie Cameron

    Jamie Cameron - 2015-08-06

    Ok, the next release of Webmin will handle this case properly.

     
  • Jamie Cameron

    Jamie Cameron - 2015-08-06
    • status: open --> closed-fixed
     

Log in to post a comment.