It sounds like you have the wrong hostname in the storage config for your director.
Make sure your address isn't localhost in /etc/bareos/bareos-dir.d/storage/*.conf Storage { Address = 192.168.130.211 } The director sends this address in a message to the client telling the client where to connect to the storage daemon. Jon Schewe Research Scientist C: +1 612.263.2718 O: +1 952.545.5720 jon.sch...@rtx.com<mailto:n...@rtx.com> Raytheon Technologies Raytheon Intelligence & Space 5775 Wayzata Blvd. Suite 630 St. Louis Park, MN 55416 RTX.com<https://www.rtx.com/> | LinkedIn<https://www.linkedin.com/company/raytheontechnologies> | Twitter<https://twitter.com/raytheontech> | Instagram<https://www.instagram.com/raytheontechnologies> ________________________________ From: 'Frank Cherry' via bareos-users <bareos-users@googlegroups.com> Sent: Wednesday, December 23, 2020 11:14 To: bareos-users <bareos-users@googlegroups.com> Subject: [External] Re: [bareos-users] some newbie questions Thanks, have insert it into my configs and start a test but this was terminated by an error. Here is the lof of the job: 2020-12-23 16:32:25 storage1-fd JobId 9: Fatal error: lib/bsock_tcp.cc:131 Unable to connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt 2020-12-23 16:32:25 storage1-fd JobId 9: Fatal error: Failed to connect to Storage daemon: 127.0.0.1:9103 2020-12-23 16:32:25 bareos-dir JobId 9: Fatal error: Bad response to Storage command: wanted 2000 OK storage , got 2902 Bad storage 2020-12-23 16:32:25 bareos-dir JobId 9: Error: Bareos bareos-dir 19.2.7 (16Apr20): Build OS: Linux-3.10.0-1062.18.1.el7.x86_64 redhat Red Hat Enterprise Linux release 8.1 (Ootpa) JobId: 9 Job: BackupStorage1.2020-12-23_16.02.22_04 Backup Level: Full Client: "Storage1" 19.2.7 (16Apr20) Linux-3.10.0-1062.18.1.el7.x86_64,redhat,CentOS release 6.10 (Final) FileSet: "Storage1Data" 2020-12-23 14:53:23 Pool: "Full" (From command line) Catalog: "MyCatalog" (From Client resource) Storage: "Tape" (From Job resource) Scheduled time: 23-Dec-2020 16:02:22 Start time: 23-Dec-2020 16:02:24 End time: 23-Dec-2020 16:32:25 Elapsed time: 30 mins 1 sec 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: 1 Volume Session Time: 1608735731 Last Volume Bytes: 0 (0 B) Non-fatal FD errors: 2 SD Errors: 0 FD termination status: Fatal Error SD termination status: Waiting on FD Bareos binary info: bareos.org build: Get official binaries and vendor support on bareos.com Termination: *** Backup Error *** 2020-12-23 16:28:25 storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying ... 2020-12-23 16:23:15 storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying ... 2020-12-23 16:18:05 storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying ... 2020-12-23 16:12:55 storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying ... 2020-12-23 16:07:45 storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying ... 2020-12-23 16:02:35 storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying ... 2020-12-23 16:02:24 bareos-dir JobId 9: Start Backup JobId 9, Job=BackupStorage1.2020-12-23_16.02.22_04 2020-12-23 16:02:24 bareos-dir JobId 9: Connected Storage daemon at 127.0.0.1:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 2020-12-23 16:02:24 bareos-dir JobId 9: Using Device "LTO7-Tape-Drive" to write. 2020-12-23 16:02:24 bareos-dir JobId 9: Probing client protocol... (result will be saved until config reload) 2020-12-23 16:02:24 bareos-dir JobId 9: Connected Client: Storage1 at 192.168.130.170:9102, encryption: PSK-AES256-CBC-SHA 2020-12-23 16:02:24 bareos-dir JobId 9: Handshake: Immediate TLS 2020-12-23 16:02:24 bareos-dir JobId 9: Encryption: PSK-AES256-CBC-SHA ------------------------------------------------------------------------------ Explanation: Client is Storage1 => 192.168.130.170 only FD is running there: # ps ax | grep bareos 32321 ? Ssl 0:00 /usr/sbin/bareos-fd -g bareos # netstat -tulpn | grep bareos tcp 0 0 0.0.0.0:9102 0.0.0.0:* LISTEN 32321/bareos-fd >From this client, I can connect to the Backup-Server 192.168.130.211 with DIR >and SD running on it: # telnet 192.168.130.211 9101 Trying 192.168.130.211... Connected to 192.168.130.211. Escape character is '^]'. x â–’Connection closed by foreign host. ]# telnet 192.168.130.211 9103 Trying 192.168.130.211... Connected to 192.168.130.211. Escape character is '^]'. x â–’Connection closed by foreign host. During the backup, I have read this status infos: Client Details: Connecting to Client Storage1 at 192.168.130.170:9102 Handshake: Immediate TLS, Encryption: PSK-AES256-CBC-SHA storage1-fd Version: 19.2.7 (16 April 2020) Linux-3.10.0-1062.18.1.el7.x86_64 redhat CentOS release 6.10 (Final) Daemon started 23-Dez-20 15:46. Jobs: run=0 running=0, bareos.org build binary Sizeof: boffset_t=8 size_t=8 debug=0 trace=0 bwlimit=0kB/s Running Jobs: JobId 9 Job BackupStorage1.2020-12-23_16.02.22_04 is running. Full System or Console Job started: 23-Dez-20 16:02 Files=0 Bytes=0 Bytes/sec=0 Errors=0 Bwlimit=0 Files Examined=0 SDSocket closed. bareos-dir (director) connected at: 23-Dez-20 16:19 Director: Running Jobs: Console connected at 23-Dec-20 16:19 JobId Level Name Status ====================================================================== 9 Full BackupStorage1.2020-12-23_16.02.22_04 is waiting for Client Storage1 to connect to Storage Tape ==== Storage: Storage: Running Jobs: Backup Job BackupStorage1.2020-12-23_16.02.22_04 waiting for Client connection. Writing: Full Backup job BackupStorage1 JobId=9 Volume="Full-0003" pool="Full" device="LTO7-Tape-Drive" (/dev/tape) spooling=0 despooling=0 despool_wait=0 Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0 FDSocket closed My SD device conf: Device { Name = LTO7-Tape-Drive Drive Index = 0 Media Type = LTO-7 Archive Device = /dev/tape LabelMedia = yes; AutomaticMount = yes; RemovableMedia = yes; AlwaysOpen = no; RandomAccess = no; Spool Directory = /backup_spool/spool Maximum Concurrent Jobs = 1 MaximumFileSize = 20GB } I can access the tape without any problems from CLI: # mt -f /dev/tape status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 0 bytes. Density code 0x5c (no translation). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN -------------------------------------------------------- Why did the log says first: Connected Storage daemon at 127.0.0.1:9103, encryption: TLS_CHACHA20_POLY1305_SHA256 and then later: storage1-fd JobId 9: Warning: lib/bsock_tcp.cc:125 Could not connect to Storage daemon on 127.0.0.1:9103. ERR=Verbindungsaufbau abgelehnt Retrying .. As I do understand right, the fd on the client "storage1"is trying to connect to the storage daemon on 127.0.0.1 from it's point of view itself? But there is no SD, this should be on 192.168.130.211 -- 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+unsubscr...@googlegroups.com<mailto:bareos-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/32319ed3-4414-49e7-8238-17a6cca56406n%40googlegroups.com<https://groups.google.com/d/msgid/bareos-users/32319ed3-4414-49e7-8238-17a6cca56406n%40googlegroups.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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/BN3P110MB02422AA0B72D35E4F6DFF2F0EDDE0%40BN3P110MB0242.NAMP110.PROD.OUTLOOK.COM.