A lot of messages since 19.2.5

109 views
Skip to first unread message

Carsten Pache

unread,
Feb 10, 2020, 9:55:53 AM2/10/20
to User Bareos
Hi folks,
 
as the hdd of my Bareos server died, I had to reinstall Bareos. So I installed Ubuntu Server 18.04.4 LTS and Bareos 19.2.5. Also, I took the opportunity and divided my old configuration files to the newer subdirectory structure.
 
Now I get a lot of messages like these (in root's mailbox as well as in "messages" in bconsole):
 
Return-Path: <bandsi...@mydomain.de>
X-Original-To: root@localhost
Delivered-To: root@localhost
Received: from dasi (localhost [127.0.0.1])
        by dasi.home.lan (Postfix) with SMTP id 2AB6CD0133A
        for <root@localhost>; Mon, 10 Feb 2020 15:26:38 +0100 (CET)
From: (Bareos) <bandsi...@mydomain.de>
Subject: Bareos daemon message
Sender: bareos@dasi
To: root@localhost
Date: Mon, 10 Feb 2020 15:26:38 +0100 (CET)
Message-Id: <2020021014263...@dasi.home.lan>
10-Feb 15:26 dasi-dir: Console [admin] from [127.0.0.1] cmdline llist jobs jobstatus=F days=1 jobname="" limit=1000 offset=0
10-Feb 15:26 dasi-dir: Console [admin] from [127.0.0.1] cmdline llist jobs jobstatus=S days=1 jobname="" limit=1000 offset=0
10-Feb 15:26 dasi-dir: Console [admin] from [127.0.0.1] cmdline llist jobs jobstatus=s days=1 jobname="" limit=1000 offset=0
10-Feb 15:26 dasi-dir: Console [admin] from [127.0.0.1] cmdline llist jobs jobstatus=m days=1 jobname="" limit=1000 offset=0
 
or:
 
Return-Path: <bandsi...@mydomain.de>
X-Original-To: root@localhost
Delivered-To: root@localhost
Received: from dasi (localhost [127.0.0.1])
        by dasi.home.lan (Postfix) with SMTP id 389BAD0133A
        for <root@localhost>; Mon, 10 Feb 2020 15:27:36 +0100 (CET)
From: (Bareos) <bandsi...@mydomain.de>
Subject: Bareos daemon message
Sender: bareos@dasi
To: root@localhost
Date: Mon, 10 Feb 2020 15:27:36 +0100 (CET)
Message-Id: <2020021014273...@dasi.home.lan>
10-Feb 15:27 dasi-dir: Console [admin] from [127.0.0.1] cmdline llist jobs last current enabled
 
 
The message resource is configured as follows:
 
Messages {
  Name = Daemon
  Description = "Message delivery for daemon messages (no job)."
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<bandsi...@mydomain.de\>\" -s \"Bareos daemon message\" %r"
  mail = root@localhost = all, !skipped
  console = all, !skipped
  append = "/var/log/bareos/bareos.log" = all, !skipped
  append = "/var/log/bareos/bareos-audit.log" = audit
}
 
 
How do I stop Bareos from flooding me with mails?
 
Regards,
Carsten

Frank Bergkemper

unread,
Feb 10, 2020, 10:08:57 AM2/10/20
to bareos...@googlegroups.com
Am 10.02.20 um 15:55 schrieb Carsten Pache:
> --
> 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/trinity-5200fc44-d10b-487d-a099-680f462a1f27-1581346549072%403c-app-webde-bs57
> <https://groups.google.com/d/msgid/bareos-users/trinity-5200fc44-d10b-487d-a099-680f462a1f27-1581346549072%403c-app-webde-bs57?utm_medium=email&utm_source=footer>.


You may want to exclude the message type audit from e.g. console and mail.

Like ...

Messages {
[...]
mail = root@localhost = all, !skipped, !audit
console = all, !skipped, !audit
[...]
}


See: https://docs.bareos.org/Configuration/Messages.html#message-types


Best Regards,
Frank

Carsten Pache

unread,
Feb 10, 2020, 10:36:45 AM2/10/20
to User Bareos
So the "!" placed before the message type does suppress messages of this type?
 
When I divided my old configuration files I took the sample files as examples. The message resource samples contained "!audit", so I took these over and rebooted when I finished adapting the configuration files. As I recall, I got the messages only after the restart. So I removed "!audit" and rebooted again, just to keep getting these messages. I put "!audit" back in, and now I seems to work as intended. Strange...
 
Thanks, Frank!
 
Best regards,
Carsten
 
 
Gesendet: Montag, 10. Februar 2020 um 16:08 Uhr
Von: "Frank Bergkemper" <frank.be...@bareos.com>
An: bareos...@googlegroups.com
Betreff: Re: [bareos-users] A lot of messages since 19.2.5
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/48eb8348-8409-8985-39e2-43dce6231b56%40bareos.com.

aeron...@gmail.com

unread,
Feb 10, 2020, 11:38:13 AM2/10/20
to bareos...@googlegroups.com

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.


aeron...@gmail.com

unread,
Feb 10, 2020, 4:38:59 PM2/10/20
to bareos...@googlegroups.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.

Andreas Rogge

unread,
Feb 11, 2020, 2:28:23 AM2/11/20
to bareos...@googlegroups.com
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 aeron...@gmail.com:
>> *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
> --
> 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/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>.

--
Andreas Rogge andrea...@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

signature.asc

aeron...@gmail.com

unread,
Feb 11, 2020, 3:59:28 PM2/11/20
to bareos...@googlegroups.com
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.

aeron...@gmail.com

unread,
Feb 11, 2020, 5:08:15 PM2/11/20
to bareos...@googlegroups.com
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.

Andreas Rogge

unread,
Feb 12, 2020, 4:06:11 AM2/12/20
to bareos...@googlegroups.com
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
signature.asc

Spadajspadaj

unread,
Feb 12, 2020, 4:17:28 AM2/12/20
to bareos...@googlegroups.com
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

aeron...@gmail.com

unread,
Feb 12, 2020, 9:30:58 AM2/12/20
to bareos...@googlegroups.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.

aeron...@gmail.com

unread,
Feb 12, 2020, 10:05:40 AM2/12/20
to bareos...@googlegroups.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.

Bruce Eckstein

unread,
Feb 19, 2020, 5:33:33 PM2/19/20
to bareos-users
so any suggestions on how to diagnose why Webui is not starting a restore run after selection of the file?


Bruce Eckstein

unread,
Feb 20, 2020, 7:23:23 PM2/20/20
to bareos-users
After you select a file in Webui 19.2.6, is the restore Job line item supposed to be greyed out?
Reply all
Reply to author
Forward
0 new messages