PDA

View Full Version : PROBLEM: Debian Amanda 2.5.1p1 to Windows client = not allowed to execute noop



juddmaltin
July 11th, 2007, 01:36 PM
Hi folks,

I'm running Debian Amanda 2.5.1p1 to the current Windows client. I'm authenticating bsdtcp.

When I run amcheck -c dailyv, I get the following error:



ERROR: NAK wtbase: user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client


The error message seems very odd to me. amdump does not exist in the zmanda windows client distribution, nor does it exist in Debian's client distribution, so I'm pretty sure there's some kind of incompatibility or error here.

But to humor the client I've added:



/var/lib/amanda/.amandahosts:
batina backup amdump


But it does no good at all. :( Same error message.

The zmanda client logs show the following:








amandad: debug 1 pid 5012 ruid 2177 euid 2177: start at Wed Jul 11 17:14:51 2007
Reading conf file "/etc/amanda/amanda-client.conf".
amandad: time 0.000: security_getdriver(name=bsdtcp) returns 0x4281f0
amandad: version 2.5.2p1
amandad: time 0.000: build: VERSION="Amanda-2.5.2p1"
amandad: time 0.000: BUILT_DATE="Wed Jun 6 22:18:20 PDT 2007"
amandad: time 0.000: BUILT_MACH="CYGWIN_NT-5.1 windows-build 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin"
amandad: time 0.000: CC="gcc" CONFIGURE_COMMAND="'./configure' 'cygwin'"
amandad: time 0.000: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad: time 0.000: libexecdir="/usr/lib/amanda" mandir="/usr/man"
amandad: time 0.000: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad: time 0.000: CONFIG_DIR="/etc/amanda" DEV_PREFIX="/" RDEV_PREFIX="/"
amandad: time 0.000: DUMP="/bin/dump" RESTORE="/usr/sbin/restore" VDUMP=UNDEF
amandad: time 0.000: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: time 0.000: VXRESTORE=UNDEF SAMBA_CLIENT=UNDEF GNUTAR="/bin/tar.exe"
amandad: time 0.000: COMPRESS_PATH="/usr/bin/gzip"
amandad: time 0.000: UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
amandad: time 0.000: MAILER="NONE"
amandad: time 0.000: listed_incr_dir="/var/lib/amanda/gnutar-lists"
amandad: time 0.000: defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
amandad: time 0.000: DEFAULT_TAPE_SERVER="localhost" NEED_STRSTR HAVE_SYSVSHM
amandad: time 0.000: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad: time 0.000: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
amandad: time 0.000: CLIENT_LOGIN="amandabackup" HAVE_GZIP
amandad: time 0.000: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: time 0.000: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.000: security_handleinit(handle=0xad7380, driver=0x4281f0 (BSDTCP))
amandad: time 0.000: security_streaminit(stream=0xad7b48, driver=0x4281f0 (BSDTCP))
amandad: time 0.000: security_seterror(handle=0xad7380, driver=0x4281f0 (BSDTCP) error=user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client)
amandad: time 0.000: accept error: user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client
amandad: time 0.000: sending NAK pkt:
<<<<<
ERROR user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client
>>>>>
amandad: time 0.000: security_close(handle=0xad7380, driver=0x4281f0 (BSDTCP))
amandad: time 0.000: security_stream_close(0xad7b48)
amandad: time 158.734: pid 5012 finish time Wed Jul 11 17:17:30 2007


Any help out there?

Many thanks,
-judd

paddy
July 11th, 2007, 03:27 PM
Hi folks,

I'm running Debian Amanda 2.5.1p1 to the current Windows client. I'm authenticating bsdtcp.

When I run amcheck -c dailyv, I get the following error:



ERROR: NAK wtbase: user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client


The error message seems very odd to me. amdump does not exist in the zmanda windows client distribution, nor does it exist in Debian's client distribution, so I'm pretty sure there's some kind of incompatibility or error here.

But to humor the client I've added:



/var/lib/amanda/.amandahosts:
batina backup amdump


But it does no good at all. :( Same error message.

The zmanda client logs show the following:








amandad: debug 1 pid 5012 ruid 2177 euid 2177: start at Wed Jul 11 17:14:51 2007
Reading conf file "/etc/amanda/amanda-client.conf".
amandad: time 0.000: security_getdriver(name=bsdtcp) returns 0x4281f0
amandad: version 2.5.2p1
amandad: time 0.000: build: VERSION="Amanda-2.5.2p1"
amandad: time 0.000: BUILT_DATE="Wed Jun 6 22:18:20 PDT 2007"
amandad: time 0.000: BUILT_MACH="CYGWIN_NT-5.1 windows-build 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin"
amandad: time 0.000: CC="gcc" CONFIGURE_COMMAND="'./configure' 'cygwin'"
amandad: time 0.000: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad: time 0.000: libexecdir="/usr/lib/amanda" mandir="/usr/man"
amandad: time 0.000: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad: time 0.000: CONFIG_DIR="/etc/amanda" DEV_PREFIX="/" RDEV_PREFIX="/"
amandad: time 0.000: DUMP="/bin/dump" RESTORE="/usr/sbin/restore" VDUMP=UNDEF
amandad: time 0.000: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: time 0.000: VXRESTORE=UNDEF SAMBA_CLIENT=UNDEF GNUTAR="/bin/tar.exe"
amandad: time 0.000: COMPRESS_PATH="/usr/bin/gzip"
amandad: time 0.000: UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
amandad: time 0.000: MAILER="NONE"
amandad: time 0.000: listed_incr_dir="/var/lib/amanda/gnutar-lists"
amandad: time 0.000: defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
amandad: time 0.000: DEFAULT_TAPE_SERVER="localhost" NEED_STRSTR HAVE_SYSVSHM
amandad: time 0.000: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad: time 0.000: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
amandad: time 0.000: CLIENT_LOGIN="amandabackup" HAVE_GZIP
amandad: time 0.000: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: time 0.000: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.000: security_handleinit(handle=0xad7380, driver=0x4281f0 (BSDTCP))
amandad: time 0.000: security_streaminit(stream=0xad7b48, driver=0x4281f0 (BSDTCP))
amandad: time 0.000: security_seterror(handle=0xad7380, driver=0x4281f0 (BSDTCP) error=user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client)
amandad: time 0.000: accept error: user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client
amandad: time 0.000: sending NAK pkt:
<<<<<
ERROR user backup from batina, is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client
>>>>>
amandad: time 0.000: security_close(handle=0xad7380, driver=0x4281f0 (BSDTCP))
amandad: time 0.000: security_stream_close(0xad7b48)
amandad: time 158.734: pid 5012 finish time Wed Jul 11 17:17:30 2007


Any help out there?

Many thanks,
-judd


Adding amdump entry to client .amandahosts allows Amanda server running amdump
to contact the client.

Did you modify the correct file on the windows client? See http://wiki.zmanda.com/index.php/Windows_client#List_of_configuration_files_in_the_ Windows_client
for .amandahosts location on Windows client

See Troubleshooting section (http://wiki.zmanda.com/index.php/Planner:_ERROR_amanda_user_is_not_allowed_to_execu te_the_service_noop) for more information.

Paddy

juddmaltin
July 12th, 2007, 08:59 AM
Hi Peggy,

Thanks for your quick response.

Yes, my .amandahosts is the correct file. I can make sure by changing it's permissions and getting the following error:



Amanda Backup Client Hosts Check
--------------------------------
ERROR: NAK wtbase: user backup from batina, is not allowed to execute the service noop: /var/lib/amanda/.amandahosts: incorrect permissions; file must be accessible only by its owner
Client check: 11 hosts checked in 0.680 seconds, 1 problem found

(brought to you by Amanda 2.5.1p1)


So I changed the permissions back to 400, and I receive, as earlier, the "cannot execute ther service noop" message.

I really do appreciate any help with this.

-judd

JohnWheaton
October 5th, 2007, 12:15 PM
I'm getting an identical message using WhiteBox Enterprise 4 as host and Windows Server 2000 as client. Both are members of the domain and joined to AD. I have added amdump to the .amandahosts file, as directed, and checked and corrected all permissions. I get the same message each time.

ERROR: NAK <windows client>: user amandabackup from <amanda linux server> is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client

Can someone help, please?

paddy
October 5th, 2007, 12:24 PM
I'm getting an identical message using WhiteBox Enterprise 4 as host and Windows Server 2000 as client. Both are members of the domain and joined to AD. I have added amdump to the .amandahosts file, as directed, and checked and corrected all permissions. I get the same message each time.

ERROR: NAK <windows client>: user amandabackup from <amanda linux server> is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client

Can someone help, please?

What version of Amanda are you running on the server? Are you using packages from Zmanda downloads (http://www.zmanda.com/download-amanda.php) page?

Please post the contents of .amandahosts file.

Paddy

JohnWheaton
October 8th, 2007, 12:09 PM
I'm using 2.5.2p1. Here's the .amandahosts file:

sevenofnine.stfrancishighschool.com amandabackup@sevenofnine amdump
sevenofnine.stfrancishighschool.com root amindexd amidxtaped
sevenofnine.stfrancishighschool.com amandabackup amdump

sevenofnine is the Linux server. amandabackup is a user on the client (dax.stfrancishighschool.com) and on the server, of course.

Both the client and server can ping each other. Both are listed in AD. There seem to be no DNS issues. So I basically stumped.

ktill
October 8th, 2007, 02:03 PM
>sevenofnine.stfrancishighschool.com amandabackup@sevenofnine amdump

try to take the above line out.

>sevenofnine.stfrancishighschool.com root amindexd amidxtaped
>sevenofnine.stfrancishighschool.com amandabackup amdump

try to add the line
sevenofnine amandabackup amdump

Run amcheck again, cut and paste the error message and list /tmp/amanda/amandad/*debug* file.

JohnWheaton
October 9th, 2007, 05:47 AM
Done. Here's the text of the debug file:

==========================================
amandad: debug 1 pid 3036 ruid 1010 euid 1010: start at Tue Oct 9 09:38:22 2007
Reading conf file "/etc/amanda/amanda-client.conf".
amandad: time 0.109: security_getdriver(name=bsdtcp) returns 0x4281f0
amandad: version 2.5.2p1
amandad: time 0.109: build: VERSION="Amanda-2.5.2p1"
amandad: time 0.109: BUILT_DATE="Wed Jun 6 22:18:20 PDT 2007"
amandad: time 0.109: BUILT_MACH="CYGWIN_NT-5.1 windows-build 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin"
amandad: time 0.109: CC="gcc" CONFIGURE_COMMAND="'./configure' 'cygwin'"
amandad: time 0.109: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad: time 0.109: libexecdir="/usr/lib/amanda" mandir="/usr/man"
amandad: time 0.109: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad: time 0.109: CONFIG_DIR="/etc/amanda" DEV_PREFIX="/" RDEV_PREFIX="/"
amandad: time 0.109: DUMP="/bin/dump" RESTORE="/usr/sbin/restore" VDUMP=UNDEF
amandad: time 0.109: VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF
amandad: time 0.109: VXRESTORE=UNDEF SAMBA_CLIENT=UNDEF GNUTAR="/bin/tar.exe"
amandad: time 0.109: COMPRESS_PATH="/usr/bin/gzip"
amandad: time 0.109: UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
amandad: time 0.109: MAILER="NONE"
amandad: time 0.109: listed_incr_dir="/var/lib/amanda/gnutar-lists"
amandad: time 0.109: defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
amandad: time 0.109: DEFAULT_TAPE_SERVER="localhost" NEED_STRSTR HAVE_SYSVSHM
amandad: time 0.109: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad: time 0.109: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
amandad: time 0.109: CLIENT_LOGIN="amandabackup" HAVE_GZIP
amandad: time 0.109: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: time 0.109: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.187: security_handleinit(handle=0x684578, driver=0x4281f0 (BSDTCP))
amandad: time 0.187: security_streaminit(stream=0x684d98, driver=0x4281f0 (BSDTCP))
amandad: time 0.187: security_seterror(handle=0x684578, driver=0x4281f0 (BSDTCP) error=user amandabackup from sevenofnine.stfrancishighschool.com is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client)
amandad: time 0.187: accept error: user amandabackup from sevenofnine.stfrancishighschool.com is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client
amandad: time 0.187: sending NAK pkt:
<<<<<
ERROR user amandabackup from sevenofnine.stfrancishighschool.com is not allowed to execute the service noop: Please add "amdump" to the line in /var/lib/amanda/.amandahosts on the client
>>>>>
amandad: time 0.187: security_close(handle=0x684578, driver=0x4281f0 (BSDTCP))
amandad: time 0.187: security_stream_close(0x684d98)
amandad: time 0.187: pid 3036 finish time Tue Oct 9 09:38:22 2007
================================================== =

JohnWheaton
October 9th, 2007, 05:53 AM
I amalso getting this event logged by Windows:
Application popup: noop.exe - Unable To Locate DLL : The dynamic link library cygwin1.dll could not be found in the specified path C:\cygwin\lib\amanda;.;C:\WINNT\system32;C:\WINNT\ system;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINN T\System32\Wbem;F:\oracle\product\10.2.0\db_1\bin; ;C:\PROGRA~1\CA\SHARED~1\SCANEN~1.

ktill
October 10th, 2007, 09:55 AM
Please see if cygwin1.dll is installed anywhere on the client machine. If installed, moving it to the right path might help.

JohnWheaton
October 10th, 2007, 11:37 AM
I tried that. I get the same message on the server as before.

ktill
October 11th, 2007, 08:50 AM
Just to make sure, the .amandahosts file that needs to be edited is on the Winows client.
That's:
.amandahosts file : C:\Cygwin\var\lib\amanda\.amandahosts

JohnWheaton
October 16th, 2007, 07:13 AM
That's correct.

JohnWheaton
October 22nd, 2007, 11:36 AM
Anyone have an answer?

paddy
October 22nd, 2007, 03:54 PM
I amalso getting this event logged by Windows:
Application popup: noop.exe - Unable To Locate DLL : The dynamic link library cygwin1.dll could not be found in the specified path C:\cygwin\lib\amanda;.;C:\WINNT\system32;C:\WINNT\ system;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINN T\System32\Wbem;F:\oracle\product\10.2.0\db_1\bin; ;C:\PROGRA~1\CA\SHARED~1\SCANEN~1.


Please check if cygwin1.dll is installed on the machine.

Paddy

JohnWheaton
October 23rd, 2007, 12:32 PM
It is. I get the same message. (See above. I already answered this question.)

naomi
March 19th, 2008, 03:16 AM
SOLVED!!!

All of the operations are making on Windows host(bash have to work under amandabackup account under cygwin,the easist way to do that is to launch Start - Programs - Amanda - Amanda Maintenance Shell)

1). Make shure that you have right content of .amandahosts
Amanda> more ~/.amandahosts
amanda-server.example.org operator amdump
Amanda>
Where amanda-server.example.org is a unix tape server and operator is an amanda user on that server.

2). Check rights on the .amandahosts file
I have following:
Amanda> ls -al ~
total 92
drwxrwxr-x+ 3 Administrator Administrators 0 Mar 18 20:10 ..
-rwx------ 1 amandabackup Administrators 42 Mar 19 13:06 .amandahosts
-rwx------ 1 amandabackup None 93 Mar 18 20:28 .amandahosts.orig
-rwxr-x--- 1 Administrators Backup Operators 803 Jun 6 2007 .amoldrecoverr

-rwxr-x--- 1 Administrators Backup Operators 783 Jun 6 2007 .amrecoverrc
-rwxr-x--- 1 Administrator Backup Operators 300 Mar 18 20:11 .bashrc
-rw-r--r-- 1 Administrators Backup Operators 2899 Jun 6 2007 Zmanda_logo.jp

-rwxr-x--- 1 Administrators Backup Operators 1208 Jun 6 2007 amkeyswap
-rwxr-x--- 1 Administrators Backup Operators 766 Jun 6 2007 amsh
drwxrwx---+ 2 Administrators Backup Operators 0 Mar 18 20:10 gnutar-lists
-rw-r--r-- 1 Administrators Backup Operators 13661 Jun 6 2007 manifest
-rwxr-xr-x 1 Administrators Backup Operators 33907 Jun 6 2007 postinstall.sh
-rwxr-xr-x 1 Administrators Backup Operators 21652 Jun 6 2007 restore.ico
-rwxr-xr-x 1 Administrators Backup Operators 2074 Jun 6 2007 setup_logo.jpg
-rwxr-xr-x 1 Administrators Backup Operators 3516 Jun 6 2007 uninstall.sh
Amanda>

3). Cause bsdtcp authentication(which suggested by default!) doesn't work for me on windows with Amanda 2.5.1p1(AmandaBackupClient-2-5-2p1.msi)
I've changed /etc/inetd.conf to the following:
Amanda> more /etc/inetd.conf
#
# Amanda backup service.
#

#amanda stream tcp nowait amandabackup /usr/lib/amanda/amandad.exe amandad -auth=bsdtcp amdump
#amanda dgram udp wait System /usr/local/libexec/amandad amandad
amanda dgram udp wait amandabackup /usr/lib/amanda/amandad.exe amandad -auth=bsd amdump
Amanda>

Don't forget to restart inetd service after

4). check it!(`amcheck your_config` on the tape server)

I don't know what was exactly wrong...(it may be spaces, tabs, CR/LF(if you've edited that files in windows before),new line character in the end of configs,
wrong owner or file permissions... who knows? I haven't time to find the exact reason of the problem.
Yes, win-amanda is a strange fruit) But after all it works well ;)