Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: selfcheck request failed: recv error: Connection reset by peer

  1. #1

    Default selfcheck request failed: recv error: Connection reset by peer

    Hi, I'm installing amanda on a RHEL4
    Server is up and backing up 4 other RHEL5 boxes, the server itself is running RHEL5
    I'm installing amanda 2.6.0.p2 on the client following this guide http://www.zmanda.com/quick-backup-setup.html
    Because of the tar=>1.15 problem, I use the command rpm -ivh amanda-backup_client-2.6.0p2-1.rhel4.i386.rpm --nodeps to ignore the dependency check.
    When everything is done (I did a netstat -a | grep amanda check), I ram amcheck -c daily and get an error "selfcheck request failed: recv error: Connection reset by peer"
    Then I tried other versions of amanda but the problem is still there.
    Is there anyone who know how to solve it?
    The server and all other clients are running amanda 2.6.0p2 on RHEL5, the new client is running RHEL4

  2. #2

    Default

    Hello,

    What do you get if you run (on the server): telnet <hostname-or-IP-of-client> 10080 ?
    Is there any firewall running on the client?

  3. #3

    Default

    Hello

    Try connect
    Code:
    bash-3.1$ telnet 10.25.0.20 10080
    Trying 10.25.0.20...
    Connected to 10.25.0.20 (10.25.0.20).
    Escape character is '^]'.
    chown(/tmp/amanda/amandad/amandad.20091130172156.debug, 11, 0) failed. <Operation not permitted>Fsqq
    dsada
    Connection closed by foreign host.
    bash-3.1$


    and debug log
    Code:
    cat ./amandad.20091130172156.debug
    amandad: debug 1 pid 1924 ruid 11 euid 11: start at Mon Nov 30 17:21:56 2009
    security_getdriver(name=BSDTCP) returns 0xb7ec7140
    amandad: version 2.5.1p3
    amandad: build: VERSION="Amanda-2.5.1p3"
    amandad:        BUILT_DATE="Thu Nov 26 15:37:43 ALMT 2009"
    amandad:        BUILT_MACH="Linux ns1 2.6.16.17 #4 Fri Oct 13 12:33:51 ALMT 2006 i686 pentium4 i386 GNU/Linux"
    amandad:        CC="gcc"
    amandad:        CONFIGURE_COMMAND="'./configure' '--with-user=operator' '--with-group=operator' '--with-bsdtcp-security' '--without-ipv6' '--without-server'"
    amandad: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
    amandad:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
    amandad:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
    amandad:        CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
    amandad:        RDEV_PREFIX="/dev/" DUMP="/usr/sbin/backup"
    amandad:        RESTORE="/usr/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
    amandad:        XFSDUMP="/sbin/xfsdump" XFSRESTORE="/sbin/xfsrestore"
    amandad:        VXDUMP=UNDEF VXRESTORE=UNDEF
    amandad:        SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/usr/bin/tar"
    amandad:        COMPRESS_PATH="/usr/bin/gzip"
    amandad:        UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
    amandad:        MAILER="/usr/bin/Mail"
    amandad:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
    amandad: defs:  DEFAULT_SERVER="ns1" DEFAULT_CONFIG="DailySet1"
    amandad:        DEFAULT_TAPE_SERVER="ns1" HAVE_MMAP HAVE_SYSVSHM
    amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
    amandad:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
    amandad:        CLIENT_LOGIN="operator" FORCE_USERID HAVE_GZIP
    amandad:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
    amandad:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
    amandad: time 4.189: tcpm_recv_token: invalid size 1181970801
    amandad: time 4.189: pid 1924 finish time Mon Nov 30 17:22:00 2009
    root@10.25.0.20:/tmp/amanda/amandad#

  4. #4

    Default help

    and

    Code:
    bash-3.1$ amcheck -c  back_hosting
    
    Amanda Backup Client Hosts Check
    --------------------------------
    WARNING: 10.25.0.20: selfcheck request failed: tcpm_recv_token: invalid size: chown(/tmp/amanda/amandad/amandad.20091130172531.debug, 11, 0) failed. <Operation not permitted>
    Client check: 2 hosts checked in 0.155 seconds, 1 problem found
    
    (brought to you by Amanda 2.5.1p3)
    bash-3.1$
    debug:
    Code:
    cat ./amandad.20091130172531.debug
    amandad: debug 1 pid 6157 ruid 11 euid 11: start at Mon Nov 30 17:25:31 2009
    security_getdriver(name=BSDTCP) returns 0xb7f75140
    amandad: version 2.5.1p3
    amandad: build: VERSION="Amanda-2.5.1p3"
    amandad:        BUILT_DATE="Thu Nov 26 15:37:43 ALMT 2009"
    amandad:        BUILT_MACH="Linux ns1 2.6.16.17 #4 Fri Oct 13 12:33:51 ALMT 2006 i686 pentium4 i386 GNU/Linux"
    amandad:        CC="gcc"
    amandad:        CONFIGURE_COMMAND="'./configure' '--with-user=operator' '--with-group=operator' '--with-bsdtcp-security' '--without-ipv6' '--without-server'"
    amandad: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
    amandad:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
    amandad:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
    amandad:        CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
    amandad:        RDEV_PREFIX="/dev/" DUMP="/usr/sbin/backup"
    amandad:        RESTORE="/usr/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
    amandad:        XFSDUMP="/sbin/xfsdump" XFSRESTORE="/sbin/xfsrestore"
    amandad:        VXDUMP=UNDEF VXRESTORE=UNDEF
    amandad:        SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/usr/bin/tar"
    amandad:        COMPRESS_PATH="/usr/bin/gzip"
    amandad:        UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
    amandad:        MAILER="/usr/bin/Mail"
    amandad:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
    amandad: defs:  DEFAULT_SERVER="ns1" DEFAULT_CONFIG="DailySet1"
    amandad:        DEFAULT_TAPE_SERVER="ns1" HAVE_MMAP HAVE_SYSVSHM
    amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
    amandad:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
    amandad:        CLIENT_LOGIN="operator" FORCE_USERID HAVE_GZIP
    amandad:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
    amandad:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
    security_handleinit(handle=0x8050058, driver=0xb7f75140 (BSDTCP))
    security_streaminit(stream=0x80500d0, driver=0xb7f75140 (BSDTCP))
    amandad: time 0.000: accept recv REQ pkt:
    <<<<<
    SERVICE noop
    OPTIONS features=fffffeff9ffeffffff7f;
    >>>>>
    amandad: time 0.000: creating new service: noop
    OPTIONS features=fffffeff9ffeffffff7f;
    
    amandad: time 0.002: sending ACK pkt:
    <<<<<
    >>>>>
    amandad: time 0.003: sending REP pkt:
    <<<<<
    OPTIONS features=fffffeff9ffeffffff7f;
    >>>>>
    security_stream_seterr(0x80500d0, recv error: Connection reset by peer)
    security_seterror(handle=0x8050058, driver=0xb7f75140 (BSDTCP) error=recv error: Connection reset by peer)
    amandad: time 0.141: receive error: recv error: Connection reset by peer
    amandad: time 0.141: pid 6157 finish time Mon Nov 30 17:25:31 2009

  5. #5
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    874

    Default

    What's the permission on /tmp/amanda and /tmp/amanda/amandad ?
    ls -ld /tmp/amanda /tmp/amanda/amandad

    What's you xinetd config?

  6. #6

    Default

    Quote Originally Posted by martineau View Post
    What's the permission on /tmp/amanda and /tmp/amanda/amandad ?
    ls -ld /tmp/amanda /tmp/amanda/amandad

    What's you xinetd config?


    Code:
    ls -ld /tmp/amanda /tmp/amanda/amandad
    drwxrwSr-- 5 operator operator 216 2009-11-30 17:42 /tmp/amanda
    drwxrwS--- 2 operator operator  96 2009-11-30 17:59 /tmp/amanda/amandad

    Code:
    cat /etc/inetd.conf |grep amanda
    amanda stream tcp nowait operator:operator /usr/local/libexec/amandad amandad  -auth=BSDTCP amdump
    #amanda stream tcp nowait operator:operator /usr/local/libexec/amandad amandad -auth=BSDTCP amdump
    #amandaidx      stream tcp nowait operator:operator /usr/local/libexec/amanda/amindexd  amindexd        -auth=bsdtcp amdump amindexd amidxtaped
    #amidxtape      stream tcp nowait operator:operator /usr/local/libexec/amanda/amidxtaped        amidxtaped      -auth=bsdtcp amdump amindexd amidxtaped

    Code:
    netstat -an |grep 1008
    tcp        0      0 0.0.0.0:10080           0.0.0.0:*               LISTEN


    Code:
    cat .amandahosts
    10.25.0.59              operator        amindexd amidxtaped amdump
    10.25.0.59              root            amindexd amidxtaped amdump
    
    files        operator        amindexd amidxtaped amdump
    files       root            amindexd amidxtaped amdump
    
    10.25.0.20              root            amindexd amidxtaped amdump
    10.25.0.20              operator        amindexd amidxtaped amdump

    files is amanda server

  7. #7

    Default

    and amanda server planer dedug log

    Code:
    cat ./planner.20091201090001.debug
    planner: debug 1 pid 20390 ruid 11 euid 0: start at Tue Dec  1 09:00:01 2009
    planner: debug 1 pid 20390 ruid 11 euid 11: rename at Tue Dec  1 09:00:01 2009
    security_getdriver(name=bsdtcp) returns 0x3f3140
    security_handleinit(handle=0x84a00f0, driver=0x3f3140 (BSDTCP))
    security_streaminit(stream=0x84a0b28, driver=0x3f3140 (BSDTCP))
    planner: time 0.003: connect_port: Skip port 512: Owned by exec.
    planner: time 0.004: connect_port: Skip port 513: Owned by login.
    planner: time 0.004: connect_port: Skip port 514: Owned by shell.
    planner: time 0.004: connect_port: Skip port 515: Owned by printer.
    planner: time 0.005: connect_port: Skip port 516: Owned by videotex.
    planner: time 0.009: connect_port: Try  port 517: Available   -
    planner: time 0.013: connected to 10.25.0.60.10080
    planner: our side is 0.0.0.0.517
    planner: try_socksize: send buffer size is 65536
    planner: try_socksize: receive buffer size is 65536
    security_getdriver(name=bsdtcp) returns 0x3f3140
    security_handleinit(handle=0x84a9d00, driver=0x3f3140 (BSDTCP))
    security_streaminit(stream=0x84a9d78, driver=0x3f3140 (BSDTCP))
    planner: time 0.018: connect_port: Try  port 517: Available   -
    planner: time 0.020: connected to 10.25.0.20.10080
    planner: our side is 0.0.0.0.517
    planner: try_socksize: send buffer size is 65536
    planner: try_socksize: receive buffer size is 65536
    security_getdriver(name=bsdtcp) returns 0x3f3140
    security_handleinit(handle=0x84b23c0, driver=0x3f3140 (BSDTCP))
    security_streaminit(stream=0x84b2c48, driver=0x3f3140 (BSDTCP))
    security_close(handle=0x84a00f0, driver=0x3f3140 (BSDTCP))
    security_stream_close(0x84a0b28)
    read: m
    read: p
    read: /
    read: a
    read: m
    read: a
    read: n
    read: d
    read: a
    read: /
    read: a
    read: m
    read: a
    read: n
    read: d
    read: a
    read: d
    read: /
    read: a
    read: m
    read: a
    read: n
    read: d
    read: a
    read: d
    read: .
    read: 2
    read: 0
    read: 0
    read: 9
    read: 1
    read: 2
    read: 0
    read: 1
    read: 0
    read: 8
    read: 5
    read: 9
    read: 0
    read: 3
    read: .
    read: d
    read: e
    read: b
    read: u
    read: g
    read: ,
    read:
    read: 1
    read: 1
    read: ,
    read:
    read: 0
    read: )
    read:
    read: f
    read: a
    read: i
    read: l
    read: e
    read: d
    read: .
    read:
    read: <
    read: O
    read: p
    read: e
    read: r
    read: a
    read: t
    read: i
    read: o
    read: n
    read:
    read: n
    read: o
    read: t
    read:
    read: p
    read: e
    read: r
    read: m
    read: i
    read: t
    read: t
    read: e
    read: d
    read: >
    planner: time 0.025: tcpm_recv_token: invalid size: chown(/tmp/amanda/amandad/amandad.20091201085903.debug, 11, 0) failed. <Operation not permitted>
    security_stream_seterr(0x84a9d78, tcpm_recv_token: invalid size: chown(/tmp/amanda/amandad/amandad.20091201085903.debug, 11, 0) failed. <Operation not permitted>)
    security_seterror(handle=0x84a9d00, driver=0x3f3140 (BSDTCP) error=tcpm_recv_token: invalid size: chown(/tmp/amanda/amandad/amandad.20091201085903.debug, 11, 0) failed. <Operation not permitted>)
    security_close(handle=0x84a9d00, driver=0x3f3140 (BSDTCP))
    security_stream_close(0x84a9d78)
    security_close(handle=0x84b23c0, driver=0x3f3140 (BSDTCP))
    security_stream_close(0x84b2c48)
    planner: time 0.258: pid 20390 finish time Tue Dec  1 09:00:01 2009

    Any ideas?

  8. #8

    Default

    Good!
    I found renewed.
    problem was with the rights
    I added a user operator in the group root .

    Code:
    # cat /etc/group |grep root
    root::0:root,operator
    This works
    but it is not good, user operator can not be a member of the root


    Code:
    # cat /etc/passwd |grep operator
    operator:x:11:0:operator:/tmp/amanda:/bin/bash
    
    # cat /etc/passwd |grep root
    root:x:0:0::/root:/bin/bash
    
    #cat /etc/group |grep operator
    operator:x:104:operator
    
    # cat /etc/group |grep root
    root::0:root
    bin::1:root,bin,daemon
    daemon::2:root,bin,daemon
    sys::3:root,bin,adm
    adm::4:root,adm,daemon
    disk::6:root,adm
    wheel::10:root
    floppy::11:root
    smmsp::25:smmsp,root
    #
    Code:
    operator# id
    uid=11(operator) gid=0(root) groups=0(root),104(operator)
    anyone else can help me deal with the rights of the user operator

  9. #9

    Question

    somebody ?

  10. #10
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    874

    Default

    From the amandad.*.debug, you are running amanda-2.5.1p3 on the client.
    Change the path in inetd.conf to the path of the 2.6.0p2 amandad binary.

Posting Permissions

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