Dennis,

What OS is your server?
Can you do the following command in the compilation directory?
  grep GETSERVBYNAME config/config.h
  grep GETSERVBYPORT config/config.h

Can you try the attached patch?

Jean-Louis

On 05/10/17 05:30 AM, Dennis Benndorf wrote:

Hi,

we are really excited using amanda-3.5 because of the multithread patch. Testing it there seems to be an issue:

If I run

    for i in `amadmin mirror hosts`; do echo $i ;amcheck -c mirror $i;done

in amanda-3.3.9

  * Two Clients have/'Connection timed out' (bla2,esx-237)
    /
  * /One Client has //'No route to host' (dl380-138)
    /

The expected result would be that these three hosts are mentioned by amcheck in 3.5, but no additional hosts.

Here is what amcheck in 3.5 says:

    amanda@dl380-54:~$ amcheck -c mirror
    '/usr/local/etc/amanda/mirror/amanda.conf', line 110: warning:
    Keyword usetimestamps is deprecated.
    Amanda Backup Client Hosts Check
    --------------------------------
    ERROR: gotdb7: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: gotdb8: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: gotdb9: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: inets1: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: inets2: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: gotdb6: selfcheck request failed: EOF on read from gotdb6
    ERROR: bla: selfcheck request failed: EOF on read from bla
    ERROR: esx-180: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: esx-162: selfcheck request failed: error sending REQ: write
    error to: Broken pipe
    ERROR: sf4200-88: selfcheck request failed: Can't bind a socket to
    connect to sf4200-88
    ERROR: dl380-138: selfcheck request failed: No route to host
    ERROR: bla2: selfcheck request failed: Connection timed out
    ERROR: esx-237: selfcheck request failed: Connection timed out
    Client check: 244 hosts checked in 568.725 seconds.  13 problems
    found.
    (brought to you by Amanda 3.5)

Do you have an idea why they fail? Do you need additional logs?

Regards,
Dennis
This message is the property of CARBONITE, INC. and may contain confidential or 
privileged information.
If this message has been delivered to you by mistake, then do not copy or 
deliver this message to anyone.  Instead, destroy it and notify me by reply 
e-mail
diff --git a/common-src/protocol.c b/common-src/protocol.c
index 621c6b7..1ab7294 100644
--- a/common-src/protocol.c
+++ b/common-src/protocol.c
@@ -212,7 +212,7 @@ protocol_sendreq(
     get_platform_and_distro(&platform, &distro);
     if (distro != NULL &&
 	!g_str_equal(distro, "mac") &&
-#if defined HAVE_GETSERVBYNAME_R && defined HAVE_GETSERVBYPORT_R
+#if defined HAVE_FUNC_GETSERVBYNAME_R_4 || defined HAVE_FUNC_GETSERVBYNAME_R_5 || defined HAVE_FUNC_GETSERVBYNAME_R_6
 	1 &&
 #else
 	0 &&

Reply via email to