On Tuesday, May 24, 2011 11:10:55 PM Jean-Louis Martineau did opine:
> gene heskett wrote:
> > bsdtcp in this, from my coyote.coyote.den/etc/xinetd.d/amanda:
> > # default = off
> > #
> > # description: Part of the Amanda server package
> > # This is the list of daemons & such it needs
> > service amanda
> > {
> >
> > disable = no
> >
> > # only_from = coyote.coyote.den
> >
> > socket_type = dgram
> > protocol = udp
> > wait = yes
> > user = amanda
> > group = disk
> > groups = yes
> > server = /usr/local/libexec/amanda/amandad
> > server_args = -auth=bsd amdump amindexd amidxtaped
> >
> > }
>
> This is a configuration for bsd auth, is it what you are using for that
> client?
> amadmin CONF disklist CLIENT-NAME | grep -i auth
>
This comes back as BSD because its set that way so 4040 will work.
> Your amcheck debug files show your dle are configured for bsdtcp!!!
>
> THERE IS A MISMATCH.
>
Obviously. As I stated, that was after I had reset it so that 4040 worked.
> All dles for one client must use the same AUTH (auth in the dumptype),
> and the xinetd for that client must also be configured for that auth.
>
> The first thing to do and decide with auth you want to use.
>
> If you want to use BSD, then the fix your dumptype.
> If you want to use bsdtcp, then fix your xinetd configuration (man
> amanda-auth, check the example for bsdtcp)
Ok, I will do that. And then reinstall 4048. Starting with the xinetd.d:
So now I have:
>
> You can verify which auth the server try to use by looking at the
> amcheck debug file, it is in uppercase.
I just did, "BSDTCP".
[root@coyote ~]# su - amanda -c "grep -i auth /etc/xinetd.d/amanda"
server_args = -auth=bsdtcp amdump amindexd amidxtaped
xinetd was restarted here.
And an amcheck with 4040 is a total failure.
Next, fix amanda.conf...
[root@coyote ~]# su - amanda -c "amadmin Daily disklist coyote | grep -i
auth"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
[root@coyote ~]# su - amanda -c "amadmin Daily disklist shop | grep -i
auth"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
auth "bsdtcp"
Amcheck is still 100% connection refused for the 4040 install.
Now install 4048. Done.
[root@coyote amanda-4.0.0alpha.svn.4048]# su - amanda -c "amcheck Daily"
Amanda Tape Server Host Check
-----------------------------
Holding disk /usr/dumps: 434552832 kB disk space available, using 434040832
kB
Searching for label 'Dailys-22':found in slot 22: volume 'Dailys-22'
Will write to volume 'Dailys-22' in slot 22.
NOTE: skipping tape-writable test
Server check took 0.203 seconds
Amanda Backup Client Hosts Check
--------------------------------
WARNING: coyote: selfcheck request failed: Connection refused
WARNING: shop: selfcheck request failed: Connection refused
Client check: 2 hosts checked in 10.027 seconds. 2 problems found.
(brought to you by Amanda 4.0.0alpha.svn.4048)
Now I've blown away the 4048 tree, and restarting the install from the
tarball. Exactly the same, now trying 4058 since I grabbed it an hour ago.
Exactly the same except for the version reported by amcheck.
And, just for grins, 4063. And I just found iptables is running, so I
stopped it before 4063 has finished. Its no great loss, I am behind DD-WRT
here, and nothing gets through that unless I give them the password, and it
would take John the Ripper long past the universe running down to guess
that password.
But that didn't make any diff either:
install done, now running amcheck as the user amanda
Amanda Tape Server Host Check
-----------------------------
Holding disk /usr/dumps: 434540544 kB disk space available, using 434028544
kB
Searching for label 'Dailys-22':found in slot 22: volume 'Dailys-22'
Will write to volume 'Dailys-22' in slot 22.
NOTE: skipping tape-writable test
Server check took 0.346 seconds
Amanda Backup Client Hosts Check
--------------------------------
WARNING: coyote: selfcheck request failed: Connection refused
WARNING: shop: selfcheck request failed: Connection refused
Client check: 2 hosts checked in 10.031 seconds. 2 problems found.
(brought to you by Amanda 4.0.0alpha.svn.4063)
Now, I have about 40 minutes to restore things so that 4040 will run
tonight. But I will attach the last amcheck-*-debug first. Done.
Thanks Jean-Louis
--
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)
<http://tinyurl.com/ddg5bz>
<http://www.cantrip.org/gatto.html>
It's easier to get forgiveness for being wrong than forgiveness for being
right.
Tue May 24 23:54:40 2011: amcheck: pid 15687 ruid 0 euid 501 version
4.0.0alpha.svn.4063: start at Tue May 24 23:54:40 2011
Tue May 24 23:54:40 2011: amcheck: pid 15687 ruid 0 euid 501 version
4.0.0alpha.svn.4063: rename at Tue May 24 23:54:40 2011
Tue May 24 23:54:40 2011: amcheck-clients: security_getdriver(name=bsdtcp)
returns 0xb7724220
Tue May 24 23:54:40 2011: amcheck-clients:
security_handleinit(handle=0x9184978, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:40 2011: amcheck-clients:
security_streaminit(stream=0x9189ce8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:40 2011: amcheck-server: Spawning
"/usr/local/libexec/amanda/amcheck-device
/usr/local/libexec/amanda/amcheck-device Daily" in pipeline
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 512: owned
by exec.
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 513: owned
by login.
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 514: owned
by shell.
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 515: owned
by printer.
Tue May 24 23:54:40 2011: amcheck-clients: make_socket opening socket with
family 2
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Try port 516:
available - Success
Tue May 24 23:54:40 2011: amcheck-clients: connect_portrange: Connect from
0.0.0.0:516 failed: Connection refused
Tue May 24 23:54:40 2011: amcheck-clients: connect_portrange: connect to
192.168.71.3:10080 failed: Connection refused
Tue May 24 23:54:40 2011: amcheck-clients: stream_client: Could not bind to
port in range 512-1023.
Tue May 24 23:54:40 2011: amcheck-clients: security_seterror(handle=0x9184978,
driver=0xb7724220 (BSDTCP) error=Connection refused)
Tue May 24 23:54:40 2011: amcheck-clients: security_close(handle=0x9184978,
driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:40 2011: amcheck-clients: security_stream_close(0x9189ce8)
Tue May 24 23:54:40 2011: amcheck-clients: security_getdriver(name=bsdtcp)
returns 0xb7724220
Tue May 24 23:54:40 2011: amcheck-clients:
security_handleinit(handle=0x91843e8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:40 2011: amcheck-clients:
security_streaminit(stream=0x9189ce8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 512: owned
by exec.
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 513: owned
by login.
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 514: owned
by shell.
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Skip port 515: owned
by printer.
Tue May 24 23:54:40 2011: amcheck-clients: make_socket opening socket with
family 2
Tue May 24 23:54:40 2011: amcheck-clients: connect_port: Try port 516:
available - Success
Tue May 24 23:54:40 2011: amcheck-clients: connect_portrange: Connect from
0.0.0.0:516 failed: Connection refused
Tue May 24 23:54:40 2011: amcheck-clients: connect_portrange: connect to
192.168.71.4:10080 failed: Connection refused
Tue May 24 23:54:40 2011: amcheck-clients: stream_client: Could not bind to
port in range 512-1023.
Tue May 24 23:54:40 2011: amcheck-clients: security_seterror(handle=0x91843e8,
driver=0xb7724220 (BSDTCP) error=Connection refused)
Tue May 24 23:54:40 2011: amcheck-clients: security_close(handle=0x91843e8,
driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:40 2011: amcheck-clients: security_stream_close(0x9189ce8)
Tue May 24 23:54:40 2011: amcheck-server: userbad: 0
Tue May 24 23:54:40 2011: amcheck-server: confbad: 0
Tue May 24 23:54:40 2011: amcheck-server: tapebad: 0
Tue May 24 23:54:40 2011: amcheck-server: disklow: 0
Tue May 24 23:54:40 2011: amcheck-server: logbad: 0
Tue May 24 23:54:40 2011: amcheck-server: infobad: 0
Tue May 24 23:54:40 2011: amcheck-server: indexbad: 0
Tue May 24 23:54:40 2011: amcheck-server: pgmbad: 0
Tue May 24 23:54:45 2011: amcheck-clients:
security_handleinit(handle=0x9186bd0, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:45 2011: amcheck-clients:
security_streaminit(stream=0x9189ce8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 512: owned
by exec.
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 513: owned
by login.
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 514: owned
by shell.
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 515: owned
by printer.
Tue May 24 23:54:45 2011: amcheck-clients: make_socket opening socket with
family 2
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Try port 516:
available - Success
Tue May 24 23:54:45 2011: amcheck-clients: connect_portrange: Connect from
0.0.0.0:516 failed: Connection refused
Tue May 24 23:54:45 2011: amcheck-clients: connect_portrange: connect to
192.168.71.3:10080 failed: Connection refused
Tue May 24 23:54:45 2011: amcheck-clients: stream_client: Could not bind to
port in range 512-1023.
Tue May 24 23:54:45 2011: amcheck-clients: security_seterror(handle=0x9186bd0,
driver=0xb7724220 (BSDTCP) error=Connection refused)
Tue May 24 23:54:45 2011: amcheck-clients: security_close(handle=0x9186bd0,
driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:45 2011: amcheck-clients: security_stream_close(0x9189ce8)
Tue May 24 23:54:45 2011: amcheck-clients:
security_handleinit(handle=0x9186bd0, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:45 2011: amcheck-clients:
security_streaminit(stream=0x9189ce8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 512: owned
by exec.
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 513: owned
by login.
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 514: owned
by shell.
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Skip port 515: owned
by printer.
Tue May 24 23:54:45 2011: amcheck-clients: make_socket opening socket with
family 2
Tue May 24 23:54:45 2011: amcheck-clients: connect_port: Try port 516:
available - Success
Tue May 24 23:54:45 2011: amcheck-clients: connect_portrange: Connect from
0.0.0.0:516 failed: Connection refused
Tue May 24 23:54:45 2011: amcheck-clients: connect_portrange: connect to
192.168.71.4:10080 failed: Connection refused
Tue May 24 23:54:45 2011: amcheck-clients: stream_client: Could not bind to
port in range 512-1023.
Tue May 24 23:54:45 2011: amcheck-clients: security_seterror(handle=0x9186bd0,
driver=0xb7724220 (BSDTCP) error=Connection refused)
Tue May 24 23:54:45 2011: amcheck-clients: security_close(handle=0x9186bd0,
driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:45 2011: amcheck-clients: security_stream_close(0x9189ce8)
Tue May 24 23:54:50 2011: amcheck-clients:
security_handleinit(handle=0x9186bd0, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:50 2011: amcheck-clients:
security_streaminit(stream=0x9189ce8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 512: owned
by exec.
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 513: owned
by login.
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 514: owned
by shell.
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 515: owned
by printer.
Tue May 24 23:54:50 2011: amcheck-clients: make_socket opening socket with
family 2
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Try port 516:
available - Success
Tue May 24 23:54:50 2011: amcheck-clients: connect_portrange: Connect from
0.0.0.0:516 failed: Connection refused
Tue May 24 23:54:50 2011: amcheck-clients: connect_portrange: connect to
192.168.71.3:10080 failed: Connection refused
Tue May 24 23:54:50 2011: amcheck-clients: stream_client: Could not bind to
port in range 512-1023.
Tue May 24 23:54:50 2011: amcheck-clients: security_seterror(handle=0x9186bd0,
driver=0xb7724220 (BSDTCP) error=Connection refused)
Tue May 24 23:54:50 2011: amcheck-clients: security_close(handle=0x9186bd0,
driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:50 2011: amcheck-clients: security_stream_close(0x9189ce8)
Tue May 24 23:54:50 2011: amcheck-clients:
security_handleinit(handle=0x9189b98, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:50 2011: amcheck-clients:
security_streaminit(stream=0x9189ce8, driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 512: owned
by exec.
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 513: owned
by login.
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 514: owned
by shell.
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Skip port 515: owned
by printer.
Tue May 24 23:54:50 2011: amcheck-clients: make_socket opening socket with
family 2
Tue May 24 23:54:50 2011: amcheck-clients: connect_port: Try port 516:
available - Success
Tue May 24 23:54:50 2011: amcheck-clients: connect_portrange: Connect from
0.0.0.0:516 failed: Connection refused
Tue May 24 23:54:50 2011: amcheck-clients: connect_portrange: connect to
192.168.71.4:10080 failed: Connection refused
Tue May 24 23:54:50 2011: amcheck-clients: stream_client: Could not bind to
port in range 512-1023.
Tue May 24 23:54:50 2011: amcheck-clients: security_seterror(handle=0x9189b98,
driver=0xb7724220 (BSDTCP) error=Connection refused)
Tue May 24 23:54:50 2011: amcheck-clients: security_close(handle=0x9189b98,
driver=0xb7724220 (BSDTCP))
Tue May 24 23:54:50 2011: amcheck-clients: security_stream_close(0x9189ce8)
Tue May 24 23:54:50 2011: amcheck: pid 15687 finish time Tue May 24 23:54:50
2011