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 Integration v03.docx

Also looking at web-ui, it shows a RestoreFiles - Full on 3 feb 2020 which I think is the day I did the upgrade but the last full backup was on 1 feb. I did not do a restore of files on 3 feb that I can remember of. The above show that it only goes back to 3 feb but should at least go back to 1 feb where the full backup occurred (in my opinion).

I also ran .bvfs_update

*.bvfs_update
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"

not clear it did anything to me.

there are no messages in the /var/log/bareos/bareos/log files for the attempts to restore the file either.

Thanks for looking at this.

On 2/11/20 2:28 AM, Andreas Rogge wrote:
Hi,

just to find out whether this is an issue with the webui or the core:
could you run that restore in bconsole and see if it works?

Thank you!

Best Regards,
Andreas

Am 10.02.20 um 22:38 schrieb aeronex...@gmail.com:
Additional information on my issue of not restoring the file.

Looked at apache2 error.log file and found

[Mon Feb 10 16:11:38.842648 2020] [php7:notice] [pid 16230] [client
192.168.1.174:44696] 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=7232&client=BEE-XPS15-fd&restoreclient=&restorejob=&where=&fileset=&mergefilesets=0&mergejobs=0&limit=2000

Line 91 has

89     // Client
90      if(isset($restore_params['client'])) {
91         if($restore_params['type'] == "client") {

also 192.168.1.174 is the ip of my windows client when my computer is
booted to windows. the windows client has no bareos client definiton and my laptop is booted to Ubuntu which is BEE-XPS15-fd at 192.168.1.151. So
I have no idea why apache is showing the 192.168.1.174 in the apache2
error log when doing something with bareos.

looks like the client is having some sort of problem.

On 2/10/20 11:38 AM, aeronex...@gmail.com wrote:
I am on Bareos 19.2.5 running on Ubuntu 18.04

I cannot restore a file. Have tried to restore different files no success.

what I have tried.
On the restore tab I selected the backup client I wished to restore a
file from.
I selected the latest incremental backup. (I also tried earlier
incremental and the latest full backup)
I left the "merge all client filesets", "Merge all related jobs to
last full backup of selected backup job" both as Yes
Restore to client was to the same client as the backup was made on
Restore Job options is greyed out.
Replace files on client is set to never
Restore location on client is set to /tmp/bareos-restores/
(note in previous versions I have done this restore but in this
versions it fails to restore the file)
with the restore multiple files tab selected, I select the file I wish
to restore, I get a window that says
A restore job with the parameters given below will be scheduled.
*Client:*     BEE-XPS15-fd
*Restore to client:*     BEE-XPS15-fd
*Replace files on client:*     never
*Restore location on client:*     /tmp/bareos-restores/
*Directories selected:*     0
*Files selected:*     1


but looking at the dash, no run is created. No file is created in the
/tmp directory

on the restore specific file version
the system does not show there are multiple  in the right hand window
box when the file is selected and shows selected in the selected box.
I get a no file to restore response.

I have found other files that do show options to select different
versions of the file.
as a test I selected one of those but again, it failed to create a run
when restore was selected even though the restore page looked like it
should have created a run.

I also tried to use bconsole to restore the file by selecting a
specific incremental backup and the file, but bconsole failed to
restore the file as well.
I selected a different client to restore a file, It also failed to
create a run.

checked the bareos.log file but nothing show in there since my last
backup.

any ideas what might be wrong in my system?

PS - on my upgrade to 19.2.5 from previous (i think it was
18.something), the upgrade failed at the point where it asked me if I
wanted the new configuration or keep my old configuration. I decided
to look at the difference but did not figure the correct way out of
the window I was in (ok I should probably have hit Q). So I terminated
the window. At any rate, Bareos then told me there was a problem with
the database and I discovered that in the Bareos scripts directory
there was a file update_bareos_tables file with a date of the Ubuntu
update I was doing. I executed that file (as user bareos) and things
seemed to be working but I suspect that there is something missing in
the update that is causing my restore problems.

thanks for any help.


--
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
<mailto:bareos-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/9a8b0730-4f2a-25db-5eea-fbb09dd0dc23%40gmail.com <https://groups.google.com/d/msgid/bareos-users/9a8b0730-4f2a-25db-5eea-fbb09dd0dc23%40gmail.com?utm_medium=email&utm_source=footer>.


--
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/bc33f844-36ac-de9c-d8d6-2ae7ae8c0013%40gmail.com.

Reply via email to