View Issue Details

IDProjectCategoryView StatusLast Update
0001274bareos-core[All Projects] directorpublic2020-10-09 17:15
ReporterrtenvoboboAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platform64OSUbuntuOS Version18.04
Product Version 
Fixed in Version 
Summary0001274: cram-auth failed with bareos-dir
Description19.2.7 bareos version

I added client:

*configure add client name=awx-new address=192.168.0.102 password=7YeQSZc7QCXtRuut

Output:

Exported resource file "/etc/bareos/bareos-dir-export/client/awx-new/bareos-fd.d/director/bareos-dir.conf":
Director {
  Name = bareos-dir
  Password = "[md5]77264dc0c65edf7fc6a1f009a7b3478e"
}
Created resource config file "/etc/bareos/bareos-dir.d/client/awx-new.conf":
Client {
  Name = awx-new
  Address = 192.168.0.102
  Password = 7YeQSZc7QCXtRuut
}

I added bareos-dir to client machine

# cat /etc/bareos/bareos-fd.d/director/bareos-dir.conf
Director {
  Name = bareos-dir
  Password = "[md5]77264dc0c65edf7fc6a1f009a7b3478e"
  Address = bareos
  Connection from Director To Client = no
  Connection from Client To Director = yes
  TLS Enable = no
  TLS Require = no
}

But this does not work. Auth fails

Debug mode:

bareos-fd -v -f -d 100

awx-fd (10): filed/socket_server.cc:128-0 filed: listening on port 9102
awx-fd (100): lib/bnet_server_tcp.cc:198-0 Addresses host[ipv4;0.0.0.0;9102]
awx-fd (100): lib/jcr.cc:195-0 Construct JobControlRecord
awx-fd (100): lib/bsock.cc:84-0 Construct BareosSocket
awx-fd (100): lib/bsock.cc:163-0 All source addresses
awx-fd (100): lib/bsock_tcp.cc:233-0 Current host[ipv4;xxx.xxx.xxx.xxx;9101] All host[ipv4;xxx.xxx.xxx.xxx;9101]
awx-fd (100): lib/bsock_tcp.cc:152-0 who=bareos-dir host=bareos port=9101
awx-fd (10): filed/dir_cmd.cc:2329-0 Opened connection with Director bareos-dir
awx-fd (50): lib/cram_md5.cc:203-0 cram-auth failed with bareos-dir
awx-fd (100): lib/bsock.cc:136-0 Destruct BareosSocket
awx-fd (10): filed/dir_cmd.cc:638-0 ERROR: Failed to connect to Director "bareos-dir". Retry in 60s.

What i am doing wrong? I followed documenation
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

rtenvobobo

rtenvobobo

2020-10-07 19:35

reporter   ~0004047

Last edited: 2020-10-07 21:05

View 3 revisions

this happens only with client initiate mode (usual from directory to client other servers works)

rtenvobobo

rtenvobobo

2020-10-09 17:14

reporter   ~0004048

Last edited: 2020-10-09 17:15

View 2 revisions

I have set it on client conf at bareos server as well

# cat /etc/bareos/bareos-dir.d/client/awx-new.conf

Client {
  Name = awx-new
  Address = 192.168.0.102
  Password = 7YeQSZc7QCXtRuut
  Connection from Director To Client = no
  HeartbeatInterval = 60
  Connection from Client To Director = yes
}

Issue History

Date Modified Username Field Change
2020-10-07 19:00 rtenvobobo New Issue
2020-10-07 19:35 rtenvobobo Note Added: 0004047
2020-10-07 19:36 rtenvobobo Note Edited: 0004047 View Revisions
2020-10-07 21:05 rtenvobobo Note Edited: 0004047 View Revisions
2020-10-09 17:14 rtenvobobo Note Added: 0004048
2020-10-09 17:15 rtenvobobo Note Edited: 0004048 View Revisions