[Bacula-users] "ERR=No such host is known" when backing up a Windows client
I’m trying to back up my first Windows client (Windows 2012 R2) and getting errors (the full log file is below). I’m running Bacula 9.0.6 on CentOS 7.3 for the Director and SD. I’m running the latest version of the client on the Windows host (version 7.4.4). When I try to back up the Windows client, I get this: 15-Feb 14:43 bacclient-px-fd JobId 35: Error: lib/bsock.c:305 gethostbyname() for host "xbacdirector01-lv" failed: ERR=No such host is known. 15-Feb 14:43 bacclient-px-fd JobId 35: Fatal error: filed/job.c:2140 Failed to connect to Storage daemon: xbacdirector01-lv:9103 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: Fatal error: Bad response to Storage command: wanted 2000 OK storage , got 2902 Bad storage If I back up a Linux client using the same SD, it works. Does anyone know what it means when it says “ERR=No such host is known” and “Fatal error: Bad response to Storage command”? I can ping xbacdirector01-lv from the client so name resolution shouldn’t be an issue. The SD seems fine since it can back up a Linux client. The Director can also connect fine to the Windows FD: Connecting to Client bacclient-px-fd at 172.31.160.75:9102 bacclient-px-fd Version: 7.4.4 (28 September 2016) VSS Linux Cross-compile Win64 Daemon started 15-Feb-18 12:45. Jobs: run=0 running=0. Microsoft Standard Edition (build 9200), 64-bit Heap: heap=7,290,880 smbytes=48,605 max_bytes=48,762 bufs=80 max_bufs=105 Sizes: boffset_t=8 size_t=8 debug=0 trace=1 mode=0,0 bwlimit=0kB/s Plugin: alldrives-fd.dll Running Jobs: Director connected at: 15-Feb-18 17:23 No Jobs running. FULL LOG FILE: 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: No prior Full backup Job record found. 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: No prior or suitable Full backup found in catalog. Doing FULL backup. 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: Start Backup JobId 35, Job=BackupWindowsClient-bacclient-px.2018-02-15_14.43.23_03 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: Using Device "FileChgr1-Dev1" to write. 15-Feb 14:43 bacclient-px-fd JobId 35: Error: lib/bsock.c:305 gethostbyname() for host "xbacdirector01-lv" failed: ERR=No such host is known. 15-Feb 14:43 bacclient-px-fd JobId 35: Fatal error: filed/job.c:2140 Failed to connect to Storage daemon: xbacdirector01-lv:9103 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: Fatal error: Bad response to Storage command: wanted 2000 OK storage , got 2902 Bad storage 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: Error: Bacula xbacdirector01-lv.internal.shutterfly.com-dir 9.0.6 (20Nov17): Build OS: x86_64-pc-linux-gnu redhat (Core) JobId: 35 Job: BackupWindowsClient-bacclient-px.2018-02-15_14.43.23_03 Backup Level: Full (upgraded from Incremental) Client: "bacclient-px-fd" 7.4.4 (28Sep16) Microsoft Standard Edition (build 9200), 64-bit,Cross-compile,Win64 FileSet:"Windows_backup" 2018-02-15 14:42:13 Pool: "File" (From Job resource) Catalog:"MyCatalog" (From Client resource) Storage:"File1" (From Job resource) Scheduled time: 15-Feb-2018 14:43:19 Start time: 15-Feb-2018 14:43:25 End time: 15-Feb-2018 14:43:27 Elapsed time: 2 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 Comm Line Compression: None Snapshot/VSS: yes Encryption: no Accurate: no Volume name(s): Volume Session Id: 1 Volume Session Time:1518734514 Last Volume Bytes: 27,160,419,724 (27.16 GB) Non-fatal FD errors:2 SD Errors: 0 FD termination status: Error SD termination status: Waiting on FD Termination:*** Backup Error *** --Shawn -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] "ERR=No such host is known" when backing up a Windows client
On 02/15/2018 05:44 PM, Shawn Rappaport wrote: > I’m trying to back up my first Windows client (Windows 2012 R2) and getting > errors (the full log file is below). I’m running Bacula 9.0.6 on CentOS 7.3 > for the Director and SD. I’m running the latest version of the client on the > Windows host (version 7.4.4). When I try to back up the Windows client, I get > this: > > 15-Feb 14:43 bacclient-px-fd JobId 35: Error: lib/bsock.c:305 > gethostbyname() for host "xbacdirector01-lv" failed: ERR=No such host is > known. > 15-Feb 14:43 bacclient-px-fd JobId 35: Fatal error: filed/job.c:2140 > Failed to connect to Storage daemon: xbacdirector01-lv:9103 > 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: > Fatal error: Bad response to Storage command: wanted 2000 OK storage > , got 2902 Bad storage Hi Shawn, This is a DNS resolution problem. When the Job starts, the Director will tell the FD to send its backup to the Storage resource. In this case, the Storage resource in your job is called "File1" Take a look in your Director's configuration and find the Storage resource called "File1" Edit the "Address = xbacdirector01-lv" line in this Storage resource and set it to the FQDN, or the IP address of this SD. Currently it is just a host name, and the Windows server cannot resolve the hostname "xbacdirector01-lv" to an IP address, so the job will fail because the FD cannot connect to the SD to send the backup data. Then, just type "reload" in bconsole for the Director to reload its configuration, and the job should run OK now - Unless something else (iptables firewall, TCP Wrappers) on the SD prevents connection from the Windows FD to this SD. But we can cross that bridge when we get there. :) Best regards, Bill -- Bill Arlofski http://www.revpol.com/bacula -- Not responsible for anything below this line -- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] "ERR=No such host is known" when backing up a Windows client
Thanks, Bill! Changing it to FQDN did the trick. --Shawn On 2/15/18, 8:34 PM, "Bill Arlofski" wrote: On 02/15/2018 05:44 PM, Shawn Rappaport wrote: > I’m trying to back up my first Windows client (Windows 2012 R2) and getting errors (the full log file is below). I’m running Bacula 9.0.6 on CentOS 7.3 for the Director and SD. I’m running the latest version of the client on the Windows host (version 7.4.4). When I try to back up the Windows client, I get this: > > 15-Feb 14:43 bacclient-px-fd JobId 35: Error: lib/bsock.c:305 gethostbyname() for host "xbacdirector01-lv" failed: ERR=No such host is known. > 15-Feb 14:43 bacclient-px-fd JobId 35: Fatal error: filed/job.c:2140 Failed to connect to Storage daemon: xbacdirector01-lv:9103 > 15-Feb 14:43 xbacdirector01-lv.internal.shutterfly.com-dir JobId 35: Fatal error: Bad response to Storage command: wanted 2000 OK storage > , got 2902 Bad storage Hi Shawn, This is a DNS resolution problem. When the Job starts, the Director will tell the FD to send its backup to the Storage resource. In this case, the Storage resource in your job is called "File1" Take a look in your Director's configuration and find the Storage resource called "File1" Edit the "Address = xbacdirector01-lv" line in this Storage resource and set it to the FQDN, or the IP address of this SD. Currently it is just a host name, and the Windows server cannot resolve the hostname "xbacdirector01-lv" to an IP address, so the job will fail because the FD cannot connect to the SD to send the backup data. Then, just type "reload" in bconsole for the Director to reload its configuration, and the job should run OK now - Unless something else (iptables firewall, TCP Wrappers) on the SD prevents connection from the Windows FD to this SD. But we can cross that bridge when we get there. :) Best regards, Bill -- Bill Arlofski https://urldefense.proofpoint.com/v2/url?u=http-3A__www.revpol.com_bacula&d=DwIGaQ&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=h5HhK7l-Sb7S5EybxFgVhTmfouIJFux6awyOLzFBk_o&m=N7IYSBT6cbpbML4EV9mF9s6tMPt7XOI1yoHX_Sycc2M&s=_al4she_RQgDa_HvXcSGZfDnRwOJRvteb6z2ApYjaEM&e= -- Not responsible for anything below this line -- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwIGaQ&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=h5HhK7l-Sb7S5EybxFgVhTmfouIJFux6awyOLzFBk_o&m=N7IYSBT6cbpbML4EV9mF9s6tMPt7XOI1yoHX_Sycc2M&s=pFwmRIifaYhMLiTbT6pmnXr5vs4-xG9SWkLX4WFpDtM&e= ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_bacula-2Dusers&d=DwIGaQ&c=sy2pFYeXOTBQJUPqadkFIXq5lzPIgQxhI8DCCAdSjYc&r=h5HhK7l-Sb7S5EybxFgVhTmfouIJFux6awyOLzFBk_o&m=N7IYSBT6cbpbML4EV9mF9s6tMPt7XOI1yoHX_Sycc2M&s=09RBvJbzHYmnfDpuaViPwJ0Yy_XGERSPMs6-2FEW7kI&e= -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users