Problem to connect a client ubuntu

1,181 views
Skip to first unread message

Alex Gobert

unread,
Mar 28, 2018, 4:35:50 PM3/28/18
to bareos-users
Hey, i need to resolve a problem and i think this is the only solution to resolve this !

Debian 9 Stretch w/ bareos

When i use the bconsole, i made the command : status client = ubuntu(my hostname test)

#########################
The defined Client resources are:
1: bareos-fd
2: ubuntu
Select Client (File daemon) resource (1-2): 2
Connecting to Client ubuntu at 192.168.1.101:9102
Failed to connect to Client ubuntu.
#########################

But the connection fail..

I Open the firewall to all, Verify passwords, Modify the hosts files and i can ping with the hostname..

My file in /etc/bareos/bareos-dir-export/client/ubuntu/bareos-fd.d is empty, this is normal ?


Need HELP !
Thanks for all !

Sean Sullivan

unread,
Mar 29, 2018, 12:22:57 PM3/29/18
to bareos-users
I'm new but when trying to add new clients this is what I do:

Check if bareos-fd is running and listening:

Do you have a bareos-fd running on the Ubuntu machine? The 'ss' command should show you what programs are listening on what ports. You should see something like the following:


# ss -tnlp | grep bareos-fd
LISTEN 0 50 *:9102 *:* users:(("bareos-fd",pid=20281,fd=3))


From here try to connect to the client from your bareos-dir server using something like telnet or netcat:


# nc -vz monitoring.client.tld 9102
Connection to monitoring.client.tld 9102 port [tcp/bacula-fd] succeeded!

From there make sure your password in the config in /etc/bareos/bareos-dir.d/client/$(client-config.conf) matches /etc/bareos/bareos-fd.d/director/bareos-dir.conf, for example:


## Config on director:
# Cat /etc/bareos/bareos-dir.d/client/bareos-fd.conf
Client {
Name = sql_backup
Description = "Client resource of the Director itself."
Address = 192.168.1.24
Password = "easyas123" # password for FileDaemon
}

##config on client
# cat /etc/bareos/bareos-fd/director/bareos-dir.conf
Director {
Name = bareos-dir
Password = "easyas123"
## or you may have something like ::
## Password = "[md5]ae3e8e643ded5ca5bec7ecc0db100896"
}


If the service is listening and you can't connect with telnet chances are you have a network issue (firewall/routes/etc). If you can connect with telnet/netcat then chances are it's an authentication issue (the passwords don't match or the permissions are wonky)


My issue was that although the clients can talk to the bareos server through snatting the bareos server can't talk to my clients (found this out with telnet/netcat). I hope this helps.

Alex Gobert

unread,
Apr 4, 2018, 5:54:28 PM4/4/18
to bareos-users
Heyy, now i can connect my client with the bconsole (status client =)

But i can't made a backup
can you help me ?


log :
04-avril 23:47 bareos-dir JobId 3: Fatal error: Authorization key rejected by File Daemon desktop-nk0nmd9.
Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.
04-avril 23:47 bareos-dir JobId 3: Fatal error: Unable to authenticate with File daemon at "desktop-nk0nmd9:9102". Possible causes:
Passwords or names not the same or
TLS negotiation failed or
Maximum Concurrent Jobs exceeded on the FD or
FD networking messed up (restart daemon).
Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.
04-avril 23:47 bareos-dir JobId 3: Error: getmsg.c:216 Malformed message: Authorization key rejected by Director bareos-dir.
Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.

04-avril 23:47 bareos-dir JobId 3: Warning: Unexpected Client Job message: 2999 Authentication failed.

04-avril 23:47 bareos-dir JobId 3: Fatal error: No Job status returned from FD.
04-avril 23:47 bareos-dir JobId 3: Error: Bareos bareos-dir 17.2.4 (21Sep17):
Build OS: x86_64-pc-linux-gnu debian Debian GNU/Linux 9.3 (stretch)
JobId: 3
Job: desktop-nk0nmd9-test.2018-04-04_23.47.31_32
Backup Level: Full (upgraded from Incremental)
Client: "desktop-nk0nmd9"
FileSet: "WindowsAll" 2018-04-04 23:47:31
Pool: "Full" (From Job FullPool override)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 04-avril-2018 23:47:31
Start time: 04-avril-2018 23:47:35
End time: 04-avril-2018 23:47:38
Elapsed time: 3 secs
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 2
Volume Session Time: 1522878048
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 2
SD Errors: 0
FD termination status: Error
SD termination status: Waiting on FD


If you want to see a file configuration, tell me !
My client is a Windows 10

Thanks for all!

Alex Gobert

unread,
Apr 4, 2018, 5:55:47 PM4/4/18
to bareos-users
If you have any tutorial for the configuration, can you send me one!
Reply all
Reply to author
Forward
0 new messages