Discussion:
[bareos-users] job run error(bnet_host2ipaddrs)
Pinehole Pine
2018-08-15 09:38:52 UTC
Permalink
hi,
I am new to bareos ... I created new job but can not run it. test jobs run without any problem but my new job(it has new client,fileset,storage,jobdefs) has this error:
==============
15-Aug 14:01 pc-fd JobId 7: Error: lib/bsock.c:208 bnet_host2ipaddrs() for host "BackupServer" failed: ERR=The requested name is valid, but no data of the requested type was found.
15-Aug 14:01 pc-fd JobId 7: Fatal error: Failed to connect to Storage daemon: BackupServer:9103
15-Aug 14:01 bareos-dir JobId 7: Fatal error: Bad response to Storage command: wanted 2000 OK storage
===========
BackupServer:~# cat /etc/hosts
127.0.0.1 BackupServer localhost
192.168.0.157 BackupServer backupServer

BackupServer:~# hostname
BackupServer
BackupServer:~# ping backupserver
PING BackupServer (127.0.0.1) 56(84) bytes of data.
64 bytes from BackupServer (127.0.0.1): icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from BackupServer (127.0.0.1): icmp_seq=2 ttl=64 time=0.019 ms
=========

Any Help?!
--
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+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MrPine
2018-08-16 05:27:18 UTC
Permalink
It fixed by changing host name to IP in storage config file?!
Post by Pinehole Pine
hi,
==============
15-Aug 14:01 pc-fd JobId 7: Error: lib/bsock.c:208 bnet_host2ipaddrs() for host "BackupServer" failed: ERR=The requested name is valid, but no data of the requested type was found.
15-Aug 14:01 pc-fd JobId 7: Fatal error: Failed to connect to Storage daemon: BackupServer:9103
15-Aug 14:01 bareos-dir JobId 7: Fatal error: Bad response to Storage command: wanted 2000 OK storage
===========
BackupServer:~# cat /etc/hosts
127.0.0.1 BackupServer localhost
192.168.0.157 BackupServer backupServer
BackupServer:~# hostname
BackupServer
BackupServer:~# ping backupserver
PING BackupServer (127.0.0.1) 56(84) bytes of data.
64 bytes from BackupServer (127.0.0.1): icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from BackupServer (127.0.0.1): icmp_seq=2 ttl=64 time=0.019 ms
=========
Any Help?!
--
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+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...