Re: [bareos-users] restore is not restoring files

2020-02-12 Thread aeronex...@gmail.com

Additonal information that probably is a different issue.

I reran the dbcheck after all of the below and found that 14 new 
orphaned Path records were identified.


after fixing these 14 I reran bconsole restore with the one file (which 
succeeded) and then dbcheck and no new path orphans were created.


also reran webui attempt to restore file (which did not succeed) and 
then dbcheck and no new path orphans were created.


all of this is just info hoping it may be helpful but above is probably 
a red herring.


On 2/12/20 9:30 AM, aeronex...@gmail.com wrote:
bconsole succeded in restoring the file. (needed "" marks around the 
MARK definition because of spaces in the path and file definition)


retried webui, it still fails to run.

with webui I tried with the file that has ~100 characters in the path 
(with spaces)- it would not restore (no run created)


I tried with a different file that has 33 characters and no spaces in 
the path or file name and it failed to restore (no run created)


Nothing in the bareos log file after the sucessful bconsole restore.

PS info--

TLS is turned off as I could not get it to work and I only work over 
my local lan. I have done restores before before the latest upgrade to 
19.2.5 - dont think this makes any difference but thought I would 
mention it.


also I use postgres database - again dont know that makes a difference 
but just info.


and thanks for helping me.

On 2/12/20 4:06 AM, Andreas Rogge wrote:

Hi,

what you did in bconsole was not a restore.

Select option 5 "Select the most recent backup for a client", then
select your client.
You will get a restore tree that you can navigate. There you mark your
file and say "done".

This will then ask you how you want your restore run.

Best Regards,
Andreas



--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/f9b4b634-bfb0-e15e-8f63-b924d97f1c94%40gmail.com.


[bareos-users] WebUI Login Failing

2020-02-12 Thread 'Rick Sutphin' via bareos-users
I have BareOS installed and it has been working perfectly until this 
morning when I encountered the following bug in the WebUI.


*Summary:*

After logging into the WebUI, a blank page loads. Reloading the page 
results in the following error message:


*Access denied*

Permission to execute the following commands is required:

list,llist,use,version,.api,.clients,.help

Read theBareos documentation 
on 
how to configure ACL settings in your Console/Profile resources.



*BareOS Version:* 19.2.6 (11 February 2020) 
Linux-3.10.0-1062.9.1.el7.x86_64 ubuntu Ubuntu 18.04 LTS


*OS Version:* Ubuntu 18.04.4 LTS

*What I Have Checked:*

1. using bconsole, I checked the status of all BareOS components and
   they are all normal. In addition last night's backups all completed
   sucessfully
2. checked /var/log/apache2/error.log and found the following error:

|[Wed Feb 12 08:42:45.725166 2020] [php7:error] [pid 24275] [client 
xx.xx.xx.xx:38130] ||

||
||PHP Fatal error:  Uncaught Error: Call to a member function prepare() 
on null in 
/usr/share/bareos-webui/module/Auth/view/auth/auth/login.phtml:45||

||
||Stack trace:||
||#0 
/usr/share/bareos-webui/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(501): 
include()||

||
||#1 
/usr/share/bareos-webui/vendor/zendframework/zend-view/src/View.php(205): 
Zend\\View\\Renderer\\PhpRenderer->render(NULL)||

||
||#2 
/usr/share/bareos-webui/vendor/zendframework/zend-view/src/View.php(233): 
Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))||

||
||#3 
/usr/share/bareos-webui/vendor/zendframework/zend-view/src/View.php(198): 
Zend\\View\\View->renderChildren(Object(Zend\\View\\Model\\ViewModel))||

||
||#4 
/usr/share/bareos-webui/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(103): 
Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))||

||
||#5 [internal function]: 
Zend\\Mvc\\View\\Http\\DefaultRenderingStrategy->render(Object(Zend\\Mvc\\MvcEvent))||

||
||#6 
/usr/share/bareos-webui/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): 
call_user_func(Arra in 
/usr/share/bareos-webui/module/Auth/view/auth/auth/login.phtml on line 
45, referer: http://bareos.tlh.delta-tech.com/bareos-webui/|



*What Has Been Changed:*

The only change to the system is that libxml was upgraded:

Upgraded:
libxml2:amd64 2.9.4+dfsg1-6.1ubuntu1.2 => 2.9.4+dfsg1-6.1ubuntu1.3


*What I have Tried:*

1. cleared cache on browser - no change
2. restarted all bareos components and apache - no change

Any advice on how I might fix this problem would be greatly appreciated.



--

Rick Sutphin
Project Manager
Delta Technologies, Inc.
P.O. Box 2301
Tallahassee, FL 32316-2301
Ofc:  850.575.3977
Fax:  850.575.3908
Cell: 850.251.2345
https://delta-tech.com

Licenses: EF-2414, ES-212 (FL) & LVU-40502 (GA)

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/01d126e1-e940-5bad-4835-d56c10b208b2%40delta-tech.com.


Re: [bareos-users] restore is not restoring files

2020-02-12 Thread aeronex...@gmail.com
bconsole succeded in restoring the file. (needed "" marks around the 
MARK definition because of spaces in the path and file definition)


retried webui, it still fails to run.

with webui I tried with the file that has ~100 characters in the path 
(with spaces)- it would not restore (no run created)


I tried with a different file that has 33 characters and no spaces in 
the path or file name and it failed to restore (no run created)


Nothing in the bareos log file after the sucessful bconsole restore.

PS info--

TLS is turned off as I could not get it to work and I only work over my 
local lan. I have done restores before before the latest upgrade to 
19.2.5 - dont think this makes any difference but thought I would 
mention it.


also I use postgres database - again dont know that makes a difference 
but just info.


and thanks for helping me.

On 2/12/20 4:06 AM, Andreas Rogge wrote:

Hi,

what you did in bconsole was not a restore.

Select option 5 "Select the most recent backup for a client", then
select your client.
You will get a restore tree that you can navigate. There you mark your
file and say "done".

This will then ask you how you want your restore run.

Best Regards,
Andreas



--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/5b17aaf4-c600-56f7-9ad7-ab6e2f445831%40gmail.com.


Re: [bareos-users] restore is not restoring files

2020-02-12 Thread Spadajspadaj
Apache log shows HTTP transactions, not the bareos logs. So the "client" 
in this context is the computer with your web browser. Hence the IP has 
nothing to do with the computer you want to restore.


Regardless of the underlying cause which I don't know, the code you 
provided shows that PHP wants to assign a variable based on data 
provided in request whereas your request (cited in apache log) lacked 
said parameter ('type').



Best Regards

MK

On 11.02.2020 23:08, aeronex...@gmail.com wrote:

I decided to run bareos-dbcheck and found a issues

over 41000 orphaned path records

8 orphaned Fileset records

and 39 Restore Records.

I then fixed the database using bareos-dbcheck.

Still cannot restore the file. I also checked a different file with no 
spaces but still no luck. same bconsole output as before.


I looked at /var/log/apache2/error.log and have a slightly different 
error message than before as follows:


Tue Feb 11 16:40:34.942033 2020] [php7:notice] [pid 8905] [client 
192.168.1.151:46774] PHP Notice:  Undefined index: type in 
/usr/share/bareos-webui/module/Restore/src/Restore/Form/RestoreForm.php 
on line 91, referer: 
https://linux-server/bareos-webui/restore/?jobid=7204&client=BEE-XPS15-fd&restoreclient=&restorejob=&where=&fileset=&mergefilesets=0&mergejobs=0&limit=2000


the difference from before is that the IP address specified is now the 
one from which I am initiating the restore function. also jobid-7204 
is where that file is located. Given it is line 91, does that mean 
somehow the info relevant to the BEE-XPS15-fd is somehow messed up? 
admitted, I really do not understand the program.



On 2/11/20 3:59 PM, aeronex...@gmail.com wrote:
I cannot get bconsole to restore the file either. (I have tried other 
files but no success there either). Bconsole will list it but it will 
not select it for download. below is my final attempt to get bconsole 
to restore the file.



To select the JobIds, you have the following choices:
 1: List last 20 Jobs run
 2: List Jobs where a given File is saved
 3: Enter list of comma separated JobIds to select
 4: Enter SQL list command
 5: Select the most recent backup for a client
 6: Select backup for a client before a specified time
 7: Enter a list of files to restore
 8: Enter a list of files to restore before a specified time
 9: Find the JobIds of the most recent backup for a client
    10: Find the JobIds for a backup for a client before a specified 
time

    11: Enter a list of directories to restore for found JobIds
    12: Select full restore to a specified Job date
    13: Cancel
Select item:  (1-13): 2
Enter Filename (no path):CSMART Integration v03.docx
+---++-+-+---+--+---+ 

| jobid | name | starttime   | jobtype | jobstatus | jobfiles 
| jobbytes  |
+---++-+-+---+--+---+ 

| 7218  | /media/windows/Users/My 
Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx 
| 2020-02-07 23:05:01 | B   | T | 8578 | 904808687 |
| 7204  | /media/windows/Users/My 
Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx 
| 2020-02-05 23:05:02 | B   | T | 6929 | 2004146945    |
| 7197  | /media/windows/Users/My 
Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx 
| 2020-02-04 23:05:11 | B   | T | 5665 | 1648408939    |
| 7193  | /media/windows/Users/My 
Name/Documents/Projects/VPL-NASA/2020/SOA/CSMART Integration v03.docx 
| 2020-02-03 23:05:02 | B   | T | 9602 | 2342841806    |
+---++-+-+---+--+---+ 


To select the JobIds, you have the following choices:
 1: List last 20 Jobs run
 2: List Jobs where a given File is saved
 3: Enter list of comma separated JobIds to select
 4: Enter SQL list command
 5: Select the most recent backup for a client
 6: Select backup for a client before a specified time
 7: Enter a list of files to restore
 8: Enter a list of files to restore before a specified time
 9: Find the JobIds of the most recent backup for a client
    10: Find the JobIds for a backup for a client before a specified 
time

    11: Enter a list of directories to restore for found JobIds
    12: Select full restore to a specified Job date
    13: Cancel
Select item:  (1-13): 7
Enter file names with paths, or < to enter a filename
containing a list of file names with paths, and Terminate
them with a blank line.
Enter full filename: CSMART Integration v03.docx
No database record found for: CSMART

Re: [bareos-users] restore is not restoring files

2020-02-12 Thread Andreas Rogge
Hi,

what you did in bconsole was not a restore.

Select option 5 "Select the most recent backup for a client", then
select your client.
You will get a restore tree that you can navigate. There you mark your
file and say "done".

This will then ask you how you want your restore run.

Best Regards,
Andreas

-- 
  Andreas Rogge andreas.ro...@bareos.com
  Bareos GmbH & Co. KG  Phone: +49 221-630693-86
  http://www.bareos.com

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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/08daeee6-c2c4-b723-1cfd-8c80e0c3490c%40bareos.com.


signature.asc
Description: OpenPGP digital signature