Bareos backup error

42 views
Skip to first unread message

Sine

unread,
Dec 3, 2020, 1:11:52 AM12/3/20
to bareos-users
We have a Bareos installed in our server and configured the GUI, configured a backup agent, but when trying to run backups, it went to an error state

Connect failure: ERR=error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac

We are new to this setup, can anyone advise on this? attached is the error when running backups

Thank you.
screenshot-117.120.1.95-2020.12.03-11_38_56.png

Readyspace support

unread,
Dec 3, 2020, 10:07:38 AM12/3/20
to phren, bareos-users
Hi,

May I know you meant the password in the barios director in the configuration file (  /etc/bareos/bareos-dir.d/director/bareos-dir.conf ) in the barios core server is wrong ?

If yes may I know which password should we use in the above file?

Kindly assist.

Thank You

On Thu, Dec 3, 2020 at 4:38 PM phren <ph...@evilbox.io> wrote:

This looks like password is incorrect configured on director

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com.



--
Thanks & Regards,
Readyspace PowerSupport

DUCARROZ Birgit

unread,
Dec 3, 2020, 10:17:12 AM12/3/20
to Readyspace support, phren, bareos-users
Hi,


ON THE BAREOS SERVER: scp
/etc/bareos/bareos-dir-export/client/$CLIENT/bareos-fd.d/director/bareos-dir.conf
$CLIENT_USER@$CLIENT:/tmp/
ON THE CLIENT:

mv /tmp/bareos-dir.conf /etc/bareos/bareos-fd.d/director/
chown bareos.bareos /etc/bareos/bareos-fd.d/director/bareos-dir.conf
service bareos-fd restart

Other reason: on the server

vi /etc/bareos/bareos-fd.d/director/bareos-dir.conf -> did you
replace this file??

Other reason:

Check that the files in vi /etc/bareos/bareos-dir.d/storage/*.conf
contain the right password.


Regards,
Birgit
On 03/12/20 16:07, Readyspace support wrote:
> Hi,
>
> May I know you meant the password in the barios director in the
> configuration file ( /etc/bareos/bareos-dir.d/director/bareos-dir.conf )
> in the barios core server is wrong ?
>
> If yes may I know which password should we use in the above file?
>
> Kindly assist.
>
> Thank You
>
> On Thu, Dec 3, 2020 at 4:38 PM phren <ph...@evilbox.io
> <mailto:ph...@evilbox.io>> wrote:
>
> This looks like password is incorrect configured on director____
>
> __ __
>
> *From:* bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>
> <bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>> *On Behalf Of *Sine
> *Sent:* 2020-December-03 08:12
> *To:* bareos-users <bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>>
> *Subject:* [bareos-users] Bareos backup error____
>
> __ __
>
> We have a Bareos installed in our server and configured the GUI,
> configured a backup agent, but when trying to run backups, it went
> to an error state____
>
> Connect failure: ERR=error:140943FC:SSL
> routines:ssl3_read_bytes:sslv3 alert bad record mac____
>
> We are new to this setup, can anyone advise on this? attached is the
> error when running backups____
>
> Thank you.____
>
> --
> 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>.
> <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer>.____
>
>
>
> --
> Thanks & Regards,
> Readyspace PowerSupport
>
> --
> 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/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com
> <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Readyspace support

unread,
Dec 3, 2020, 1:41:59 PM12/3/20
to DUCARROZ Birgit, phren, bareos-users
Hi,

We have completed all the steps mentioned in the previous reply. But we are still having the same error.

Regarding the password may I know does  /etc/bareos/bareos-dir.d/storage/*.conf  should contain the same password as of  /etc/bareos/bareos-fd.d/director/bareos-dir.conf (IN the CLIENT) ?

May I know does  /etc/bareos/bareos-dir.d/storage/*.conf  ,   /etc/bareos/bareos-fd.d/director/bareos-dir.conf (IN the CLIENT)  and   etc/bareos/bareos-fd.d/director/bareos-dir.conf  should contain the same passwords ?

Kindly assist

Thank You 

DUCARROZ Birgit

unread,
Dec 3, 2020, 4:42:30 PM12/3/20
to Readyspace support, phren, bareos-users
Hi,

On the server:
--------------
cat
/etc/bareos/bareos-dir-export/client/vm32-linux/bareos-fd.d/director/bareos-dir.conf

Director {
Name = bareos-dir
Password = "[md5]123456789"
}
-rw-r----- 1 bareos bareos 86 Dec 5 2019 bareos-dir.conf

--> You must copy this file on the client, in the directory
/etc/bareos/bareos-fd.d/director/ and then chmod and chown as shown below.


On the client:
--------------
cat /etc/bareos/bareos-fd.d/director/bareos-dir.conf
Director {
Name = bareos-dir
Password = "[md5]123456789"
}

-rw-r----- 1 bareos bareos 86 Jun 6 2019 bareos-dir.conf

Both files on the server and the client are identical (same password).
Once you copied the file on the client, you must restart bareos on the
client.


If this does not work:
----------------------
Check on the server:
cat /etc/bareos/bareos-dir.d/storage/File.conf |grep Password

--> This password must be the same as the password in

cat /etc/bareos/bareos-sd.d/director/bareos-dir.conf |grep Password


Please let me know if this solved your problem.
Kind Regards,
Birgit
> > <mailto:ph...@evilbox.io <mailto:ph...@evilbox.io>>> wrote:
> >
> >     This looks like password is incorrect configured on director____
> >
> >     __ __
> >
> >     *From:* bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>
> >     <mailto:bareos...@googlegroups.com
> >     <mailto:bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>>> *On Behalf Of *Sine
> >     *Sent:* 2020-December-03 08:12
> >     *To:* bareos-users <bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>
> >     <mailto:bareos...@googlegroups.com
> <mailto:bareos...@googlegroups.com>>>
> >     *Subject:* [bareos-users] Bareos backup error____
> >
> >     __ __
> >
> >     We have a Bareos installed in our server and configured the GUI,
> >     configured a backup agent, but when trying to run backups, it
> went
> >     to an error state____
> >
> >     Connect failure: ERR=error:140943FC:SSL
> >     routines:ssl3_read_bytes:sslv3 alert bad record mac____
> >
> >     We are new to this setup, can anyone advise on this? attached
> is the
> >     error when running backups____
> >
> >     Thank you.____
> >
> >     --
> >     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%2Bunsu...@googlegroups.com>
> >     <mailto:bareos-users...@googlegroups.com
> <mailto:bareos-users%2Bunsu...@googlegroups.com>>.
>  <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer>>.____
> >
> >
> >
> > --
> > Thanks & Regards,
> > Readyspace PowerSupport
> >
> > --
> > 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%2Bunsu...@googlegroups.com>
> > <mailto:bareos-users...@googlegroups.com
> <mailto:bareos-users%2Bunsu...@googlegroups.com>>.
> <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.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...@googlegroups.com
> <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/CAFYWVAJ68%2B8S1m%3DRk7yGsVTEbK19HbOJy4boy0qOU-D6MOfa_g%40mail.gmail.com
> <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJ68%2B8S1m%3DRk7yGsVTEbK19HbOJy4boy0qOU-D6MOfa_g%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Readyspace support

unread,
Dec 4, 2020, 11:46:00 AM12/4/20
to DUCARROZ Birgit, phren, bareos-users
Hi,

I have ensured that password and file permissions in all the files are correct as provided in the previous reply.

May I know why we are still getting the same error in taking backup?

Below are our file configurations

cat /etc/bareos/bareos-dir.d/storage/File.conf
Storage {
  Name = File
  Address = IP address              .
  Password = "xxxxxxxxxxxxx"
  Device = FileStorage
  Media Type = File


cat  /etc/bareos/bareos-dir-export/client/test/bareos-fd.d/director/bareos-dir.conf
Director {
  Name = bareos-dir
  Password = "xxxxxxxxxxxx"

Also please note the  bareos-dir.conf  

cat /etc/bareos/bareos-fd.d/director/bareos-dir.conf
Director {
  Name = bareos-dir
  Password = "xxxxxxxxxxxxxxxxxx"
  Description = "Allow the configured Director to access this file daemon."
  TLS Enable = no
}


Could you kindly advice?

Thank You 



DUCARROZ Birgit

unread,
Dec 4, 2020, 4:08:05 PM12/4/20
to Readyspace support, phren, bareos-users
Hi,


-In your File.conf below, the } is missing. Maybe you forgot just to
insert it into this mail, but maybe it is missing in your config?

- Try to remove "TLS Enable = no" in your
/etc/bareos/bareos-fd.d/director/bareos-dir.conf

- Use a computer name, not an IP Address in
/etc/bareos/bareos-dir.d/storage/File.conf

Storage {
Name = File
Address = computername
(...)
}

- What about your passwords? Are there in [md5] ?

- Please send your cat /etc/bareos/bareos-fd.d/director/bareos-dir.conf
of the client. (Did you restart the bareos services on the client?)

- The /etc/bareos/bareos-fd.d/director/bareos-dir.conf you sent in this
mail seems to be the one of your SERVER. Is this right?
Did you check that the file
/etc/bareos/bareos-fd.d/director/bareos-dir.conf on the CLIENT has the
same content+Password as the file
/etc/bareos/bareos-dir-export/client/test/bareos-fd.d/director/bareos-dir.conf
on the server?

- You can use the following script to restart the bareos services. What
does the script say when you use it?

#!/bin/bash
# Purpose: Test config and restart bareos services.
# Interrupt in case of running services.
# Script created: 2019 /bdu
# Last update: 13.06.2020 /bdu
###################################################

echo
printf "%*s" $(tput cols) |tr " " "=\n"
echo "==> Testing bareos-sd..."
/usr/sbin/bareos-sd -t
echo Done.
echo
printf "%*s" $(tput cols) |tr " " "=\n"
echo "==> Testing bareos-fd..."
/usr/sbin/bareos-fd -t
echo Done.
echo
printf "%*s" $(tput cols) |tr " " "=\n"
echo "== > Testing bareos-dir..."
/usr/sbin/bareos-dir -t
echo Done.
printf "%*s" $(tput cols) |tr " " "=\n"
echo

echo
echo "Restart all services now? (sleeping some seconds, so you might
interrupt)"
for ((k = 0; k <= 10 ; k++))
do
echo -n "[ "
for ((i = 0 ; i <= k; i++)); do echo -n "###"; done
for ((j = i ; j <= 10 ; j++)); do echo -n " "; done
v=$((k * 10))
echo -n " ] "
echo -n "$v %" $'\r'
sleep 1
done
echo

# Check if there are actually some jobs running. Exit the script if
there is at least one running job:
RJOBS=echo echo list jobs | bconsole | awk '{print $19}' |grep R |awk
'{print $1}' > run-bj
RJOBS=`cat run-bj`
if [[ $RJOBS != "" ]]; then
echo
echo "!!!! THERE ARE ACTUALLY SOME BACKUP JOBS RUNNING. Script
canceled. Please restart later !!!" && exit 1;
echo
else echo "No running jobs found, continuing..."
fi
rm run-bj
echo

echo Restarting bareos services...
/bin/systemctl restart bareos-dir bareos-sd bareos-fd
echo Done.
#EOF


Regards,
Birgit
> > <mailto:birgit....@unifr.ch
> >     <mailto:bareos-users%2Bunsu...@googlegroups.com
> <mailto:bareos-users%252Buns...@googlegroups.com>>
> >      >     <mailto:bareos-users...@googlegroups.com
> <mailto:bareos-users%2Bunsu...@googlegroups.com>
> >     <mailto:bareos-users%2Bunsu...@googlegroups.com
> <mailto:bareos-users%252Buns...@googlegroups.com>>>.
>  <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer> <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/bareos-users/fb90144e-69fd-41bb-b8a7-7240d08b83f4n%40googlegroups.com?utm_medium=email&utm_source=footer>>>.____
> >      >
> >      >
> >      >
> >      > --
> >      > Thanks & Regards,
> >      > Readyspace PowerSupport
> >      >
> >      > --
> >      > 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%2Bunsu...@googlegroups.com>
> >     <mailto:bareos-users%2Bunsu...@googlegroups.com
> <mailto:bareos-users%252Buns...@googlegroups.com>>
> >      > <mailto:bareos-users...@googlegroups.com
> <mailto:bareos-users%2Bunsu...@googlegroups.com>
> >     <mailto:bareos-users%2Bunsu...@googlegroups.com
> <mailto:bareos-users%252Buns...@googlegroups.com>>>.
> >      > To view this discussion on the web visit
> >      >
> >
> https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com
> <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com>
> >
>  <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com>>
> >
> >      >
> >
>  <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> >
>  <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJw6oU7jbGaSuM6%3DRiq5go4SKgmJueO7UKEuyBbjs7jpA%40mail.gmail.com?utm_medium=email&utm_source=footer>>>.
> >
> >
> >
> > --
> > Thanks & Regards,
> > Readyspace PowerSupport
> >
> > --
> > 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%2Bunsu...@googlegroups.com>
> > <mailto:bareos-users...@googlegroups.com
> <mailto:bareos-users%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/bareos-users/CAFYWVAJ68%2B8S1m%3DRk7yGsVTEbK19HbOJy4boy0qOU-D6MOfa_g%40mail.gmail.com
> <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJ68%2B8S1m%3DRk7yGsVTEbK19HbOJy4boy0qOU-D6MOfa_g%40mail.gmail.com>
>
> >
> <https://groups.google.com/d/msgid/bareos-users/CAFYWVAJ68%2B8S1m%3DRk7yGsVTEbK19HbOJy4boy0qOU-D6MOfa_g%40mail.gmail.com?utm_medium=email&utm_source=footer
Reply all
Reply to author
Forward
0 new messages