View Issue Details

IDProjectCategoryView StatusLast Update
0001274bareos-coredirectorpublic2023-08-31 09:49
Reporterrtenvobobo Assigned Tobruno-at-bareos  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Platform64OSUbuntuOS Version18.04
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.

Activities

rtenvobobo

rtenvobobo

2020-10-07 19:35

reporter   ~0004047

Last edited: 2020-10-07 21:05

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

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
}

bruno-at-bareos

bruno-at-bareos

2023-07-31 14:05

manager   ~0005276

Is this still reproducible with recent 22.1.1 Bareos version?
bruno-at-bareos

bruno-at-bareos

2023-08-31 09:49

manager   ~0005358

No return

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
2020-10-07 21:05 rtenvobobo Note Edited: 0004047
2020-10-09 17:14 rtenvobobo Note Added: 0004048
2020-10-09 17:15 rtenvobobo Note Edited: 0004048
2023-07-31 14:05 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-31 14:05 bruno-at-bareos Status new => feedback
2023-07-31 14:05 bruno-at-bareos Note Added: 0005276
2023-08-31 09:49 bruno-at-bareos Status feedback => closed
2023-08-31 09:49 bruno-at-bareos Resolution open => unable to reproduce
2023-08-31 09:49 bruno-at-bareos Note Added: 0005358