Results 1 to 2 of 2

Thread: Socket operation on non-socket with amanda community version 2.5.2p1-1.rhel4

  1. #1

    Default Socket operation on non-socket with amanda community version 2.5.2p1-1.rhel4

    I had been running the RH EL 4 distributed version but wanted to explore the new encryption options, and encountered the following problems when running amcheck on the 252p1 community edition.

    The system is RH EL 4, IPV6 stack is turned off via modprobe.conf:

    #Disable IPv6
    alias net-pf-10 off

    Amanda configured to use BSD auth and udp in both xinetd and amanda.conf.

    disklist is setup to run only the local host, using either localhost or the FQDN.

    With or without the IPV4 flag thrown in the xinetd.d/amanda file.

    amcheck returns:

    Amanda Backup Client Hosts Check
    --------------------------------
    WARNING: MyHost.MyDomain.com: selfcheck request failed: error sending REQ: send REQ to MyHost.MyDomain.com failed: Socket operation on non-socket
    Client check: 1 host checked in 0.007 seconds, 1 problem found

    /tmp/amanda/server/DailyActiveSet/amcheck..... returns:

    amcheck: debug 1 pid 2719 ruid 33 euid 0: start at Sat Sep 15 20:09:52 2007
    amcheck: debug 1 pid 2719 ruid 33 euid 33: rename at Sat Sep 15 20:09:52 2007
    amcheck-clients: time 0.007: security_getdriver(name=bsd) returns 0x8fe3c0
    amcheck-clients: time 0.007: security_handleinit(handle=0x86242e0, driver=0x8fe3
    c0 (BSD))
    amcheck-clients: time 0.014: dgram_bind: socket() failed: Address family not sup
    ported by protocol
    amcheck-clients: time 0.014: dgram_send_addr(addr=0x8624300, dgram=0x910544)
    amcheck-clients: time 0.014: (sockaddr_in6 *)0x8624300 = { 10, 10080, ::ffff:99.
    99.99.99 }
    amcheck-clients: time 0.014: dgram_send_addr: 0x910544->socket = 0
    amcheck-clients: time 0.014: dgram_send_addr: sendto(::ffff:99.99.99.99.10080) fa
    iled: Socket operation on non-socket
    amcheck-clients: time 0.014: security_seterror(handle=0x86242e0, driver=0x8fe3c0
    (BSD) error=send REQ to MyHost.MyDomain.com failed: Socket operation on non-s
    ocket)
    amcheck-clients: time 0.014: security_seterror(handle=0x86242e0, driver=0x8fe3c0
    (BSD) error=error sending REQ: send REQ to MyHost.MyDomain.com failed: Socket
    operation on non-socket)
    amcheck-clients: time 0.014: security_close(handle=0x86242e0, driver=0x8fe3c0 (B
    SD))
    amcheck: time 3.995: pid 2719 finish time Sat Sep 15 20:09:56 2007

    After converting to tcp/bsdtcp auth the problem goes away. So this is not critical for my environment where I can use tcp. But there appears to be a problem in the ipv4-ipv6 mapping... The check code is attempting to use an ipv4 address mapped to ipv6 on a system that is not configured to run ipv6.

    It took several hours to verify my configuration in detail, and then attempted work arounds to discover that things seem to work using tcp as opposed to udp.

    I thought I should pass it on as it may be causing others problems.

  2. #2
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    Your system return IPv6 address to amanda, but amand can't use them because you disabled them at the kernel level.

    Either, fix your system to not return IPv6 address to amanda
    or enable IPv6 in the kernel
    or reconfigure amanda with '--without-ipv6'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •