Webui Restore on version 19.2-6 fails to restore file

57 views
Skip to first unread message

Bruce Eckstein

unread,
Feb 26, 2020, 3:01:24 PM2/26/20
to bareos-users
How do I get Webui to allow me to select a "Restore Job" file so I can restore the file?

On Bareos Webui I cannot restore any selected files since the upgrade from version 18 to version 19.
In the "Restore" tab, I select the client to restore a file from.
I select the file for restoration.
I cannot select the "Restore Job" which has been greyed out and the is no selected default file there. It says "please chose a restore job"
when I hit restore, while it appears in that window as if it is working no run is created.

I am on Ubuntu 18.04.
I get no log errors from /var/log/bareos/bareos.log
It does not matter whether I pick restore multiple files tab or restore single file tab, no run is created.
The Job definitions have not changed since upgrade to version 19

note: I can restore files using bconsole.

Please help

Frank Bergkemper

unread,
Feb 27, 2020, 5:20:48 AM2/27/20
to bareos...@googlegroups.com
Am 26.02.20 um 21:01 schrieb Bruce Eckstein:
> --
> 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
> <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/8f5675ab-7166-44d7-9840-d88fa9e9fa6d%40googlegroups.com
> <https://groups.google.com/d/msgid/bareos-users/8f5675ab-7166-44d7-9840-d88fa9e9fa6d%40googlegroups.com?utm_medium=email&utm_source=footer>.

Hi Bruce,

how does your profile resource look like, which is used by the console
you login with into webui, did you set a specific "Job ACL" where a
restore job might be missing?

Like ...

#
# bareos-webui webui-admin profile resource
#
Profile {
Name = "webui-admin"
CommandACL = !.bvfs_clear_cache, !.exit, !.sql, !configure, !create,
!delete, !purge, !prune, !sqlquery, !umount, !unmount, *all*
Job ACL = backup-bareos-fd # <= Check here!
Schedule ACL = *all*
Catalog ACL = *all*
Pool ACL = *all*
Storage ACL = *all*
Client ACL = *all*
FileSet ACL = *all*
Where ACL = *all*
}

Your Job ACL must allow access to *all* jobs or specific jobs and has to
include a restore job if you want to allow restores via that profile.

For example ...

Job ACL = *all*

or

Job ACL = backup-bareos-fd, RestoreFiles


Regards,
Frank

--
Frank Bergkemper frank.be...@bareos.com
Bareos GmbH & Co. KG Phone: +49-221-630693-94
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens, P. Storz

Bruce Eckstein

unread,
Feb 27, 2020, 2:02:36 PM2/27/20
to bareos-users
Thanks Frank for responding.

my webui-admin.conf is
Profile {
  Name = "webui-admin"
  JobACL = "*all*"
  ClientACL = "*all*"
  StorageACL = "*all*"
  ScheduleACL = "*all*"
  PoolACL = "*all*"
  CommandACL = "!.bvfs_clear_cache","!.exit","!.sql","!configure","!create","!delete","!purge","!sqlquery","!umount","!unmount","*all*"
  FileSetACL = "*all*"
  CatalogACL = "*all*"
  WhereACL = "*all*"
  PluginOptionsACL = "*all*"
}
which seems correct and has not been changed in years. I tried a copy of your suggested one with JobACL = *all*  but it did not work even with the service bareos-dir restart command. there is a second profile in that directory called webui-readonly.conf which is the default that was set by the original upgrade that converted me to this directory structure a long time ago.

one of my  job definition for this client  (I have one for each client)  is set as follows (and again has not changed for years) where the file name is /etc/bareos/bareos-dir.d/job/BEE-XPS15_RestoreFiles.conf and the configuration is

Job {
  Name = "BEE-XPS15_RestoreFiles"
  Type = Restore
  Messages = "Standard"
  Storage = "BEE-XPS15-storage"
  Pool = "BEE-XPS15"
  Client = "BEE-XPS15-fd"
  FileSet = "Full_Laptop_Set"
  Where = "/tmp/bareos-restores"
}

where/what else should I check?
I also attached a screen shot of the Webui Restore screen on the left hand side, just in case it helps clarify.

Screenshot from 2020-02-27 13-46-41.png

Frank Bergkemper

unread,
Feb 28, 2020, 6:03:50 AM2/28/20
to bareos...@googlegroups.com

I was able to reproduce the problem and opened a bug report, please see
https://bugs.bareos.org/view.php?id=1206 for more details.

Thanks for reporting the issue, Bruce.

Kind Regards,

aeron...@gmail.com

unread,
Feb 28, 2020, 7:05:30 AM2/28/20
to bareos...@googlegroups.com
Thanks Frank.

so my solution should be to delete all restore job definitions I
currently have now and create a single one to get it working correctly now?

Frank Bergkemper

unread,
Feb 28, 2020, 8:39:21 AM2/28/20
to bareos...@googlegroups.com

Yes, as a workaround it should help you out until the proposed patch has
been applied and new packages are available for download.

If you feel comfortable enough you can apply the patch yourself, see
https://github.com/bareos/bareos/pull/439/files .
Reply all
Reply to author
Forward
0 new messages