Amanda-Users

Re: amandahostsauth error (when invoquing amcheck)

2004-06-02 10:37:41
Subject: Re: amandahostsauth error (when invoquing amcheck)
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Wed, 2 Jun 2004 10:31:06 -0400
On Wednesday 02 June 2004 09:58, Sylvain Zimmermann wrote:
>Hello,
>
>I have a problem making function my amanda server. Here is the
> situation.
>
>Here is the output I obtain when invoquing amcheck
>
>[[[ beginning of output ]]]
>
>[amanda@b4 amanda]$ amcheck normal Amanda Tape Server Host Check
> ----------------------------- Holding disk
> /home/amanda/holding-list: 17734984 KB disk space available, that's
> plenty ERROR: cannot overwrite active tape Amanda01 (expecting a
> new tape) NOTE: skipping tape-writable test WARNING: tapecycle (5)
> <= runspercycle (5). Server check took 0.007 seconds
>
>Amanda Backup Client Hosts Check --------------------------------
> ERROR: b4.uhp-nancy.fr: [access as amanda not allowed from
> amanda@b4] amandahostsauth failed Client check: 1 host checked in
> 0.016 seconds, 1 problem found
>
>(brought to you by Amanda 2.4.4p2)
>
>[[[ end of output ]]]
>
>I havn't found anything helping me dealing with amandahostsauth
> error in mailing lists. I searched on the internet to find some
> help and i tried different things advised but they weren't enough.
>
>I installed amanda-2.4.4p2
>
>I changed permissions of the different directories where amanda has
> to put information, i created ~amanda/.amandahosts, making that
> file chmod 600 and owned by amanda:disk which is the user/group of
> my amanda user. Inside this file, i put :
>
>b4.uhp-nancy.fr amanda
>b4.uhp-nancy.fr root
>
>Here is what I have in the amandad.debug :
>
>[[[ begining ]]]
>amandad: debug 1 pid 31975 ruid 500 euid 500: start at Tue Jun  1
> 17:49:41 2004
>amandad: version 2.4.4p2
>amandad: build: VERSION="Amanda-2.4.4p2"
>amandad:        BUILT_DATE="jeu mai 27 16:24:24 CEST 2004"
>amandad:        BUILT_MACH="Linux b4.uhp-nancy.fr
> 2.4.22-26mdkenterprise #1 SMP Wed Jan 7 07:10:39 MST 2004 i686
> unknown unknown GNU/Linux" amandad:        CC="gcc"
>amandad:       CONFIGURE_COMMAND="'./configure' '--with-amandahosts'
> '--with-prefix=/usr/local' '--with-owner=amanda'
> '--with-group=disk' '--with-config=nor mal'
> '--with-debugging=/tmp/amanda-dbg'
> '--with-tape-server=b4.uhp-nancy.fr'
> '--with-index-server=b4.uhp-nancy.fr' '--wit h-gnutar=/bin/tar'
> '--with-user=amanda' '-with-fqdn' '--with-tape-device=/dev/nst0'
> '--with-gnu-ld'
> '--with-changer-device=/dev/sg3'
> '--with-config-dir=/usr/local/etc/amanda'" amandad: paths:
> bindir="/usr/local/bin" sbindir="/usr/local/sbin" amandad:       
> libexecdir="/usr/local/libexec" mandir="/usr/local/man" amandad:   
>     AMANDA_TMPDIR="/tmp/amanda"
>amandad:        AMANDA_DBGDIR="/tmp/amanda-dbg"
>amandad:        CONFIG_DIR="/usr/local/etc/amanda"
> DEV_PREFIX="/dev/" amandad:        RDEV_PREFIX="/dev/r"
> DUMP="/sbin/dump"
>amandad:        RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
>amandad:        XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
> VXRESTORE=UNDEF amandad:        SAMBA_CLIENT="/usr/bin/smbclient"
> GNUTAR="/bin/tar" amandad:        COMPRESS_PATH="/bin/gzip"
> UNCOMPRESS_PATH="/bin/gzip" amandad:        LPRCMD="/usr/bin/lpr"
> MAILER="/usr/bin/Mail" amandad:       
> listed_incr_dir="/usr/local/var/amanda/gnutar-lists" amandad: defs:
>  DEFAULT_SERVER="b4.uhp-nancy.fr"
>amandad:        DEFAULT_CONFIG="normal"
>amandad:        DEFAULT_TAPE_SERVER="b4.uhp-nancy.fr"
>amandad:        DEFAULT_TAPE_DEVICE="/dev/nst0" HAVE_MMAP
> HAVE_SYSVSHM amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID
> DEBUG_CODE amandad:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY
> USE_AMANDAHOSTS amandad:        CLIENT_LOGIN="amanda" FORCE_USERID
> HAVE_GZIP amandad:        COMPRESS_SUFFIX=".gz"
> COMPRESS_FAST_OPT="--fast" amandad:       
> COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc" amandad: time
> 0.000: got packet:
>--------
>Amanda 2.4 REQ HANDLE 000-A0530608 SEQ 1086104981
>SECURITY USER amanda
>SERVICE noop
>OPTIONS features=fffffeff9ffe0f;
>--------
>
>amandad: time 0.000: sending ack:
>----
>Amanda 2.4 ACK HANDLE 000-A0530608 SEQ 1086104981
>----
>
>amandad: time 0.000: bsd security: remote host b4 user amanda local
> user amanda amandad: time 0.001: check failed: [access as amanda
> not allowed from amanda@b4] amandahostsauth failed amandad: time
-------------------^^^^^^^^^  This must exactly match.  If b4 is an 
alias, then it must be found in .amandahosts as b4, so add another 
pair of lines to .amandahosts.  Or use the full FQDN in the disklist, 
not the alias.

> 0.001: sending REP packet: ----
>Amanda 2.4 REP HANDLE 000-A0530608 SEQ 1086104981
>ERROR [access as amanda not allowed from amanda@b4] amandahostsauth
> failed ----
>
>amandad: time 0.001: got packet:
>----
>Amanda 2.4 ACK HANDLE 000-A0530608 SEQ 1086104981
>----
>
>amandad: time 0.001: pid 31975 finish time Tue Jun  1 17:49:41 2004
>
>[[[ end amandad.debug ]]]
>
>I use an amanda.conf file that worked for another machine (with a
> different tape and tape driver) and i adapted things i thought were
> necessary. I don't know if I should put it here. (This amanda.conf
> was running with an amanda server version 2.4.2)
>
>A last information I don't think is really relevant for now: i'm
> using a PowerVault 122T (SDLT 320) with a tape changer.
>
>I have no clue on from where the problem comes from. I would be
> pleased to have some help.
>
>Thanks,
>Sylvain Zimmermann.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.23% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.

<Prev in Thread] Current Thread [Next in Thread>