Bareos director not talking to bareos client

18 views
Skip to first unread message

Thomas Schweikle

unread,
Jun 23, 2020, 9:10:29 AM6/23/20
to bareos-users
Hi!

I have one bareos director. It is configured with a client /etc/bareos/bareos-dir.d/client/mobilis-nobile-com-fd.conf:
Client {
  Name = mobilis-fd
  Address = mobilis.nobile.com
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  FDPort = 9102
  Catalog = MyCatalog
  Maximum Concurrent Jobs = 4
}

On the client /etc/bareos/bareos-fd.d/client/myself.conf:
Client {
  Name = mobilis-fd
  Maximum Concurrent Jobs = 4
}

and /etc/bareos/bareos-fd.d/director/bareos-dir.conf:
Director {
  Name = mobilis-fd
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Description = "Allow the configured Director to access this file daemon."
}

and last /etc/bareos/bareos-fd.d/director/bareos-mon.conf:
Director {
  Name = mobilis-dir
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Monitor = yes
  Description = "Restricted Director, used by tray-monitor to get the status of this file daemon."
}

Now when I try to connect to this file daemon by the director using bconsole (on host running director):

# echo "status client=mobilis-fd" | bconsole Connecting to Director localhost:9101 Encryption: PSK-AES256-CBC-SHA 1000 OK: backupdir-dir Version: 18.2.8 (09 April 2020) official Bareos subscription binary Support available on https://support.bareos.com You are connected using the default console Enter a period to cancel a command. status client=mobilis-fd Connecting to Client mobilis-fd at mobilis.nobile.com:9102 Failed to connect to Client mobilis-fd.


Trying with nc:
# telnet mobilis.nobile.com 9102
Trying 10.177.18.24...
Connected to mobilis.nobile.com.
Escape character is '^]'.

�Connection closed by foreign host.

Seems ok. But why cant the director connect and start a backup?

-- 
Thomas

Andreas Haase

unread,
Jun 23, 2020, 9:21:57 AM6/23/20
to Thomas Schweikle, bareos-users
Hello,


Am 23.06.2020 um 15:10 schrieb Thomas Schweikle <tschw...@gmail.com>:

and /etc/bareos/bareos-fd.d/director/bareos-dir.conf:
Director {
  Name = mobilis-fd
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Description = "Allow the configured Director to access this file daemon."
}


Your director is not named mobilis-dir, but mobilis-fd, that seems to be your mistake.

Regards,
Andreas

Thomas Schweikle

unread,
Jun 23, 2020, 9:33:12 AM6/23/20
to bareos-users
I've changed that to read:
Director {
  Name = backupdir-dir
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Description = "Allow the configured Director to access this file daemon."
}

Then restarted the daemon and tried again:
# echo "status client=mobilis-fd" | bconsole
Connecting to Director localhost:9101
 Encryption: PSK-AES256-CBC-SHA
1000 OK: backupdir-dir Version: 18.2.8 (09 April 2020)
official Bareos subscription binary
Support available on https://support.bareos.com
You are connected using the default console

Enter a period to cancel a command.
status client=mobiis-fd
Connecting to Client mobilis-fd at mobilis.nobile.com:9102

Failed to connect to Client mobilis-fd.

Does not seem to make a difference …

-- 
Thomas

Andreas Haase

unread,
Jun 23, 2020, 9:37:33 AM6/23/20
to Thomas Schweikle, bareos-users
Hi Thomas,


Am 23.06.2020 um 15:33 schrieb Thomas Schweikle <tschw...@gmail.com>:

Director {
  Name = backupdir-dir
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Description = "Allow the configured Director to access this file daemon."
}

Right file, another mistake :-) Change it to 

Director {
  Name = mobilis-dir
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Description = "Allow the configured Director to access this file daemon."
}

Then reload and try again.

Regards,
Andreas

Thomas Schweikle

unread,
Jun 23, 2020, 9:46:42 AM6/23/20
to bareos-users
Changed it to:
Director {
  Name = mobilis-dir
  Password = "ThaiWoo2zohvis3po3ooh6tahxai6ahPheib5qui"
  Description = "Allow the configured Director to access this file daemon."
}

Then "service bareos-fd restart". Afterwards, on the director itself:
# echo "status client=mobilis-fd" | bconsole
Connecting to Director localhost:9101
 Encryption: PSK-AES256-CBC-SHA
1000 OK: backupdir-dir Version: 18.2.8 (09 April 2020)
official Bareos subscription binary
Support available on https://support.bareos.com
You are connected using the default console

Enter a period to cancel a command.
status client=mobilis-fd
Connecting to Client mobilis-fd at mobilis.nobile.com:9102

Failed to connect to Client mobilis-fd.

Again no change.

-- 
Thomas

Udo Lembke

unread,
Jun 23, 2020, 11:40:19 AM6/23/20
to Thomas Schweikle, bareos-users
Hi Thomas,
and how is the director named?
grep -i name /etc/bareos/bareos-dir.d/director/bareos-dir.conf

The director-entry for the tray-mon perhaps don't be right.

Are the client version 18.2 too?

Udo
--
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/bf8b8535-ba37-405c-a56c-17d3633b15e4o%40googlegroups.com.



 
Reply all
Reply to author
Forward
0 new messages