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

Thread: Another Selfcheck Request Failed

  1. #1

    Question Another Selfcheck Request Failed

    Hello,

    I'm fairly new to Amanda and I'd appreciate some help from the forum members if you please.

    I inherited a NAT'ed Linux server running Amanda 2.5.2p1 connecting to a public IP'ed Linux client which has been running very reliably for almost a year. I have made no changes other than to clean up some ever-expanding logfiles & archives on the client. A couple days ago backups started failing and now amcheck is failing...

    amcheck DailySet1
    Amanda Tape Server Host Check
    -----------------------------
    Holding disk /dumps/amanda: 27977276 KB disk space available, using 27874876 KB
    slot 2: read label `DailySet1-02', date `20091005'
    NOTE: skipping tape-writable test
    Tape DailySet1-02 label ok
    Server check took 0.065 seconds
    amcheck-clients: error: couldn't exec : No such file or directory
    close debug file: Bad file descriptor
    Amanda Backup Client Hosts Check
    --------------------------------
    WARNING: host.foo.bar: selfcheck request failed: error sending REQ: write error to : Broken pipe
    Client check: 1 host checked in 0.150 seconds, 1 problem found



    server debug log shows:
    amcheck: debug 1 pid 7152 ruid 34 euid 0: start at Wed Oct 14 15:55:21 2009
    amcheck: debug 1 pid 7152 ruid 34 euid 34: rename at Wed Oct 14 15:55:21 2009
    amcheck-clients: time 0.004: security_getdriver(name=ssh) returns 0x7f9664f2d600
    amcheck-clients: time 0.004: security_handleinit(handle=0x61eb20, driver=0x7f9664f2d600 (SSH))
    amcheck-clients: time 0.022: security_streaminit(stream=0x621540, driver=0x7f9664f2d600 (SSH))
    amcheck-clients: time 0.023: security_stream_seterr(0x621540, write error to : Broken pipe)
    amcheck-clients: time 0.023: security_seterror(handle=0x61eb20, driver=0x7f9664f2d600 (SSH) error=write error to : Broken pipe)
    amcheck-clients: time 0.023: security_seterror(handle=0x61eb20, driver=0x7f9664f2d600 (SSH) error=error sending REQ: write error to : Broken pipe)
    amcheck-clients: time 0.023: security_close(handle=0x61eb20, driver=0x7f9664f2d600 (SSH))
    amcheck-clients: time 0.023: security_stream_close(0x621540)
    amcheck-clients: time 0.023: security_stream_seterr(0x621540, write error to : Broken pipe)
    changer_query: changer return was 12 1
    changer_query: searchable = 0
    changer_find: looking for DailySet1-02 changer is searchable = 0
    amcheck: time 0.068: pid 7152 finish time Wed Oct 14 15:55:21 2009


    I am able to ssh from the server to the client without being prompted for a password, so ssh is working.

    My /etc/xinetd.d/amandaserver:
    # default: on
    # description: The amanda service
    service amanda
    {
    socket_type = stream
    protocol = tcp
    wait = yes
    user = backup
    group = backup
    groups = yes
    server = /usr/lib/amanda/amandad
    server_args = -auth=bsd amdump amindexd amidxtaped
    disable = no
    }


    Additonal note: on the server, under xinetd.d, I have amandaidx and amidxtape files as well. Are these necessary?

    And here is my client /etc/xinetd.d/amanda
    # default: on
    # description: The amanda service
    service amanda
    {
    socket_type = stream
    protocol = tcp
    wait = yes
    user = backup
    group = backup
    groups = yes
    server = /usr/lib/amanda/amandad
    server_args = -auth=bsd amdump
    disable = no
    }


    Correct me if I'm wrong, but having a NAT'ed setup, shouldn't auth=ssh? If so, then shouldn't auth=bsd fail? However, in my amanda.conf file, auth is set to ssh so I'm guessing that this may override any xinetd settings, no?

    I have changed both xinetd.d files to -auth=ssh, restarted xinetd and no love.

    Any ideas/thoughts?

    Thanks
    Randy

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

    Default

    xinetd is not used with ssh authentification.

    What changed on the server? it looks it doesn't find the ssh binary:
    amcheck-clients: error: couldn't exec : No such file or directory

  3. #3

    Default

    Thanks for the input martineau.

    what do you mean by 'it looks like it doesn't find the ssh binary'?

    As I stated, I'm able to ssh into the client without a password, so ssh is working there.

    Any ideas on where/what to look for here?

    Thanks
    Randy

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

    Default

    Quote Originally Posted by skjellyfetti View Post
    amcheck-clients: error: couldn't exec : No such file or directory
    It should have printed the ssh path, it doesn't, amanda was compiled without the ssh path. I can't believe ssh worked!

    What do you changed? do you recompiled amanda? do you changed the auth?

  5. #5

    Default

    Thanks martineau.

    I've recompiled the server using --with-ssh-security and I'm still getting the same error. After I issued 'configure' with all the options, there is a 'checking for ssh... /usr/bin/ssh line. Unless I'm missing something, I didn't see anything else for ssh configuration in the help file.

    As I stated, this is an inherited system, it's running on Ubuntu 7.10 and it was a .deb install so it wasn't installed from source.

    I'm able to ssh, without a password, as the server backup user to the client, so I don't understand where Amanda is breaking when it (amandad?) tries to ssh to the client.

    Any suggestions you--or anyone else--have for sorting this out would be greatly appreciated.

    Randy

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

    Default

    What is the result of the 'checking for ssh... /usr/bin/ssh' line?
    In your compilation directory, what is the result of 'grep SSH config/config.h'
    Do the SSH path is correct?

  7. #7

    Default

    hi martineau,

    That is the output:
    'checking for ssh... /usr/bin/ssh

    I recompiled from source using the following:
    ./configure --with-user=backup --with-group=backup --with-homedir=/var/backups --with-ssh-security --with-configdir=/etc/amanda

    My OS is Ubuntu 7.10 64-bit and now I'm getting the following error running amcheck...
    backup@generic:~$ amcheck DailySet1
    Amanda Tape Server Host Check
    -----------------------------
    Holding disk /dumps/amanda: 27963352 KB disk space available, using 27860952 KB
    slot 4: read label `DailySet1-04', date `20091007'
    NOTE: skipping tape-writable test
    Tape DailySet1-04 label ok
    Server check took 0.075 seconds
    /usr/local/libexec/amandad: error while loading shared libraries: libamandad-2.5.2p1.so: wrong ELF class: ELFCLASS32

    Amanda Backup Client Hosts Check
    --------------------------------
    WARNING: foo.generic.com: selfcheck request failed: EOF on read from foo.generic.com
    Client check: 1 host checked in 3.289 seconds, 1 problem found

    (brought to you by Amanda 2.5.2p1)


    file /usr/local/lib/libamandad-2.5.2p1.so yields the following:
    /usr/local/lib/libamandad-2.5.2p1.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), not stripped

    and

    file /usr/local/libexec/amandad yields this:
    ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), not stripped

    Previous installs kept giving the error I initially posted and now I'm getting this error.

    Any thoughts/ideas/solutions?

    Thanks

  8. #8
    Join Date
    Mar 2010
    Posts
    27

    Default Me too...

    Did the OP ever get this resolved?

    I'm using Amanda 2.5.2p1 (distributed as part of Ubuntu 8.04 Hardy). I'm working on setting up the Amanda server, and it is the only client I've configured.

    When I'm logged in as the backup user -- the user shown as CLIENT_LOGIN in the "amadmin xx version" output -- I can use SSH to the client (in this case, the client is the server) without a password. But my amcheck xx shows...

    Code:
    $ amcheck bbx
    Amanda Tape Server Host Check
    -----------------------------
    slot 2: read label `diskstorage-2', date `X'
    NOTE: skipping tape-writable test
    Tape diskstorage-2 label ok
    NOTE: conf info dir /etc/amanda/xx/curinfo does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /etc/amanda/xx/index does not exist
    NOTE: it will be created on the next run.
    Server check took 0.068 seconds
    amcheck-clients: error: couldn't exec : No such file or directory
    close debug file: Bad file descriptor
    Amanda Backup Client Hosts Check
    --------------------------------
    WARNING: binkley.example.com: selfcheck request failed: error sending REQ: write error to : Broken pipe
    Client check: 1 host checked in 0.002 seconds, 1 problem found
    
    (brought to you by Amanda 2.5.2p1)
    As someone else pointed out above, I see I also have the "couldn't exec : No such file or directory" line. That seems to indicate the problem... but what is Amanda trying to execute at that point in the test?

  9. #9
    Join Date
    Mar 2010
    Posts
    27

    Default

    ...really?? Noone out there has even the slightest idea or hint?

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

    Default

    amanda is compiled without the ssh path, you must recompile amanda

Tags for this Thread

Posting Permissions

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