Discussion:
[bareos-users] Webui restore files and dir listing not working? Has this been fixed?
Joe Nash
2018-03-22 20:59:08 UTC
Permalink
I can't get webui to display file tree for restores.

Bconsole works fine.

I've done a lot of ".bvfs_clear_cache yes" AND ".bvfs_update" etc.

Should webui tree be working now? There have been number of bug fixes.

Using bareos 17.2.4 and installed webui 17.2.5

The tree displayed at first, but disappeared. Something not right seems.

Thanks.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
msilveirabr
2018-03-29 02:06:10 UTC
Permalink
Try the latest git version. Specifically you may try to download only the latest module/Restore/src/Restore/Controller/RestoreController.php

https://github.com/bareos/bareos-webui/commit/ee232a6f04eaf2a7c1084fee981f011ede000e8a#diff-cf6c9781ee7e4314efb79d66d53ae2f0

I was getting many "oops, something went wrong, probably too many files" popup errors. Replacing the RestoreController.php with the latest version fixed it.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
dave dowless
2018-03-29 13:13:13 UTC
Permalink
Thanks. I'll give it shot and post results.
Post by msilveirabr
Try the latest git version. Specifically you may try to download only the
latest module/Restore/src/Restore/Controller/RestoreController.php
https://github.com/bareos/bareos-webui/commit/
ee232a6f04eaf2a7c1084fee981f011ede000e8a#diff-
cf6c9781ee7e4314efb79d66d53ae2f0
I was getting many "oops, something went wrong, probably too many files"
popup errors. Replacing the RestoreController.php with the latest version
fixed it.
--
You received this message because you are subscribed to a topic in the
Google Groups "bareos-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/bareos-users/IlePLTVWn2Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alejandro Hamann
2018-10-05 19:34:16 UTC
Permalink
Post by msilveirabr
Try the latest git version. Specifically you may try to download only the latest module/Restore/src/Restore/Controller/RestoreController.php
https://github.com/bareos/bareos-webui/commit/ee232a6f04eaf2a7c1084fee981f011ede000e8a#diff-cf6c9781ee7e4314efb79d66d53ae2f0
I was getting many "oops, something went wrong, probably too many files" popup errors. Replacing the RestoreController.php with the latest version fixed it.
Hello.
I comment on my experience this week.
I started with a new installation, from scratch, of Bareos on Debian 9.5 Stretch. I installed BareOS 18.2.4rc1-26.1 (from the Bareos repo), then I restore my previous configuration (I use multiple catalogs), and initialized the corresponding databases using PostgreSQL 9.6 (plus Apache2 and everything else necessary).
Well, with everything new, working and ready to start, I did a test backup of the C:\Windows folder of a Windows Server 2016 (running bareos-fd-17.2.4), with the idea of restoring individual files from the C:\Windows\WinSxS folder (as we know, it contains a lot of files and folders). But no luck; I got the damn message "oops, something went wrong, probably too many files".

In summary, bconsole can do a restore without problems; bareos-webui instead, no.


Regards!
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alejandro Hamann
2018-10-10 21:12:18 UTC
Permalink
Post by Alejandro Hamann
Post by msilveirabr
Try the latest git version. Specifically you may try to download only the latest module/Restore/src/Restore/Controller/RestoreController.php
https://github.com/bareos/bareos-webui/commit/ee232a6f04eaf2a7c1084fee981f011ede000e8a#diff-cf6c9781ee7e4314efb79d66d53ae2f0
I was getting many "oops, something went wrong, probably too many files" popup errors. Replacing the RestoreController.php with the latest version fixed it.
Hello.
I comment on my experience this week.
I started with a new installation, from scratch, of Bareos on Debian 9.5 Stretch. I installed BareOS 18.2.4rc1-26.1 (from the Bareos repo), then I restore my previous configuration (I use multiple catalogs), and initialized the corresponding databases using PostgreSQL 9.6 (plus Apache2 and everything else necessary).
Well, with everything new, working and ready to start, I did a test backup of the C:\Windows folder of a Windows Server 2016 (running bareos-fd-17.2.4), with the idea of restoring individual files from the C:\Windows\WinSxS folder (as we know, it contains a lot of files and folders). But no luck; I got the damn message "oops, something went wrong, probably too many files".
In summary, bconsole can do a restore without problems; bareos-webui instead, no.
Regards!
Ok. Finally I was able to "solve" this problem.

Everything started when one was going to make a large backup (by large, I mean many files, such as the Windows folder, and more precisely the WinSxS subfolder, that as we know, has many many files). This backup is successful, but then when you want to restore an individual file with Bareos-Webui, which fails for some reason.

So, what do we do? We go to the old and beloved bconsole, of course (well, maybe it was more beloved bat, but since now it is deprecated in Bareos, we only have to love bconsole). Of course, bconsole build the list of files, restore the folder (a few seconds), and to execute the task.
In my example:

*restore client="hu-fs2-fd usando Generico-HU" jobid=21 restoreclient="hu-bs1-fd usando Generico-HU" where="/Bareos/restores/"
You have selected the following JobId: 21

Building directory tree for JobId(s) 21 ... +++++++++++++++++++++++++++++++++++++++++
179,310 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 C:/Windows/WinSxS/
cwd is: C:/Windows/WinSxS/
$ cd x86_microsoft-windows-uxinit_31bf3856ad364e35_6.3.9600.16384_none_f1f5b52507cc33bf/
cwd is: C:/Windows/WinSxS/x86_microsoft-windows-uxinit_31bf3856ad364e35_6.3.9600.16384_none_f1f5b52507cc33bf/
$ add *
1 file marked.
$ done
Bootstrap records written to /var/lib/bareos/bareos-dir.restore.15.bsr

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

FileStorageTest-0021 File FileStorage

Volumes marked with "*" are online.


1 file selected to be restored.

Run Restore job
JobName: RestoreFiles
Bootstrap: /var/lib/bareos/bareos-dir.restore.15.bsr
Where: /Bareos/restores/
Replace: Always
FileSet: LinuxAll
Backup Client: hu-fs2-fd usando Generico-HU
Restore Client: hu-bs1-fd usando Generico-HU
Format: Native
Storage: File
When: 2018-10-10 17:41:14
Catalog: Generico-HU
Priority: 10
Plugin Options: *None*
OK to run? (yes/mod/no): yes
Job queued. JobId=27
*messages
(here we see that everything was successful ... at least we hope so)


Then, back to Bareos-Webui, we go to "Restore", and select NO in the options "Merge all client filesets" and "Merge all related jobs to last full backup of selected backup job". And as if by magic, when expanding the folder C:/Windows/WinSxS/ (which has a lot of files and that could not be displayed before), well, you will see that the system works and works to the point where the web browser will inform once or twice that the process is taking too long and offer you wait or cancel (each time you are asked, select Wait... and calm, patience has its fruits).
Finally, instead of the message "oops, something went wrong, probably too many files", we will see all the files in the folder tree, and we can even restore using Bareos-Webui without problems.

Then, finally, the boss (who was resisting implement Bareos as Backup solution for not wanting to use a command-line interface), approve the use of Bareos. And everyone happy :-)

Regards!
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dakota Pilot
2018-10-11 15:39:31 UTC
Permalink
I thought the webui issue with too many files was supposed to be fixed in 18.2 releases. Did you file a bug report?

Thanks for the update. That is one reason I was looking forward to the 18.2 final release. I'm comfortable with the command line but the web-ui makes things easier sometimes when you just need to get a task done.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alejandro Hamann
2018-10-11 15:56:55 UTC
Permalink
Post by Dakota Pilot
I thought the webui issue with too many files was supposed to be fixed in 18.2 releases. Did you file a bug report?
Thanks for the update. That is one reason I was looking forward to the 18.2 final release. I'm comfortable with the command line but the web-ui makes things easier sometimes when you just need to get a task done.
Yes, it was supposed to be fixed in version 18.2 and in fact, maybe it is.
I am using version 18.2 but RC2, so I could not say if it was solved or not (and I do not even know if the definitive version 18.2 -not an RC- has already been released).
The bug was already reported for the previous versions, and for this version I have not reported anything (nor have I checked if someone has already done so).

Regards!
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dakota Pilot
2018-10-11 16:26:58 UTC
Permalink
Thanks. I guess we'll see when 18.2 comes out. I don't have access to the testing versions. I sure hope it's fixed. The GUI can make life easier and quicker in many cases although I feel we still need to be able to use the command line.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alejandro Hamann
2018-10-11 19:06:38 UTC
Permalink
Post by Dakota Pilot
Thanks. I guess we'll see when 18.2 comes out. I don't have access to the testing versions. I sure hope it's fixed. The GUI can make life easier and quicker in many cases although I feel we still need to be able to use the command line.
the RC version is available to the public, from the Bareos repositories. I have Debian and my configuration is as follows:
===================================
/etc/apt/sources.list.d/bareos.list
===================================
## Bareos Repository
## KEY: wget -qO - http://download.bareos.org/bareos/release/latest/Release.key | apt-key add -
#deb http://download.bareos.org/bareos/release/latest/Debian_9.0 /
deb http://download.bareos.org/bareos/release/18.2/Debian_9.0 /

In my personal case, everything works fine with 18.2-rc2, except that clients 17.2 do not use TLS communication automatically with the director; but the clients 18.2-rc2 yes.


Regards!
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dakota Pilot
2018-10-11 20:45:47 UTC
Permalink
Thanks for that info. It's been a while since I tried to get 18.2 and it was only available for subscription.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bruno Friedmann
2018-10-12 06:39:06 UTC
Permalink
Post by Dakota Pilot
Thanks for that info. It's been a while since I tried to get 18.2 and it
was only available for subscription.
Sorry, this fact is not one, 18.2 is not available with subscription, for the
simple reason that it is not (yet) released (this annoncement about RC2).

You must mix with last build fix of 17.2 or 16.2, binaries are available in
subscription channel, but source code is always available on github.
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
Bareos Partner, openSUSE Member, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot

openSUSE Tumbleweed
Linux 4.16.9-1-default x86_64 GNU/Linux, nvidia: 390.59
Qt: 5.10.0, KDE Frameworks: 5.46.0, Plasma: 5.12.5, kmail2 5.8.1
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dakota Pilot
2018-10-12 08:22:52 UTC
Permalink
I guess I wasn't very clear - my apologies. What I meant was that I went to check and see if I could get a beta or RC for 18.2 a short time ago but since I didn't have a subscription I couldn't get it so I decided to wait until it's released.

I tried applying some of the fixes for the web-ui but they did not fix the issue and I didn't want to build from source at this time so I elected to wait.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Lawley
2018-10-12 10:31:54 UTC
Permalink
I fixed mine by going to the nightly on the web-ui, but in my case I'm
using a separate server just for the web-ui

Unless something else has changed?
Post by Dakota Pilot
I guess I wasn't very clear - my apologies. What I meant was that I went to check and see if I could get a beta or RC for 18.2 a short time ago but since I didn't have a subscription I couldn't get it so I decided to wait until it's released.
I tried applying some of the fixes for the web-ui but they did not fix the issue and I didn't want to build from source at this time so I elected to wait.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dakota Pilot
2018-10-12 15:53:09 UTC
Permalink
I might check that out. I run the web-ui on my web server.
--
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 post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...