PDA

View Full Version : connection refused


patrick.conway
August 1st, 2008, 09:40 AM
I have installed amanda server on fedora 6 and a client on fedora 8

the client can backup , at least it doesnt show any errors during the backup

but amrecover fails with connection refused

running netstat -a | grep amanda shows no results

It seems the server isnt running

the amandad file is in /usr/libexec/amanda/amandad

the /etc/xinetd.d/amandaserver file has entry

"server=/usr/libexec/amanda/amandad"
"server_args = -auth=bsdtcp amdump amindexd amidxtaped"

ken
August 4th, 2008, 06:08 PM
What versions of Amanda are you running on the client and server? Also, are you running Amanda packages provided by Fedora, ore the Zmanda packages:

http://www.zmanda.com/download-amanda.php

Also, since the server and/or client are running under xinetd, they won't be running all the time, just when needed.

The best way to make sure "all is well" on this front is simply to type:

# telnet <HOSTNAME> amanda

for each hostname. This ensures that the Amanda daemon will run on-demand.

patrick.conway
August 5th, 2008, 01:28 AM
What versions of Amanda are you running on the client and server? Also, are you running Amanda packages provided by Fedora, ore the Zmanda packages:

http://www.zmanda.com/download-amanda.php

Also, since the server and/or client are running under xinetd, they won't be running all the time, just when needed.

The best way to make sure "all is well" on this front is simply to type:

# telnet <HOSTNAME> amanda

for each hostname. This ensures that the Amanda daemon will run on-demand.

I installed the latest version of amanda backup server from amanda.zmanda.com

amanda-backup_server-2..0p1-1.fc6.i386.rpm


when I try: telnet backupserver.local I get connection refused

telnet backupserver.local amanda
Trying 192.168.155.6...
telnet: connect to address 192.168.155.6: Connection refused

same with amrecover
amrecover
AMRECOVER Version 2.6.0p1. Contacting server on backupserver.local ...
[request failed: Connection refused]


when I telnet to the client from the server it connects ok

patrick.conway
August 5th, 2008, 02:28 AM
1217600160.748799: amrecover: security_streaminit(stream=0x80652e8, driver=0xb6b1e0 (BSDTCP))
1217600160.749522: amrecover: connect_port: Skip port 700: owned by epp.
1217600160.750058: amrecover: connect_port: Skip port 701: owned by lmp.
1217600160.750541: amrecover: connect_port: Skip port 702: owned by iris-beep.
1217600160.753490: amrecover: connect_port: Try port 703: available - Success
1217600160.753549: amrecover: connect_portrange: Connect from 0.0.0.0.703 failed: Connection refused
1217600160.753557: amrecover: connect_portrange: connect to 127.0.0.1.10080 failed: Connection refused
1217600160.754066: amrecover: connect_port: Skip port 700: owned by epp.
1217600160.754546: amrecover: connect_port: Skip port 701: owned by lmp.
1217600160.755028: amrecover: connect_port: Skip port 702: owned by iris-beep.
1217600160.757924: amrecover: connect_port: Try port 703: available - Success
1217600160.757968: amrecover: connect_portrange: Connect from ::.703 failed: Connection refused
1217600160.757977: amrecover: connect_portrange: connect to ::1.10080 failed: Connection refused
1217600160.757990: amrecover: stream_client: Could not bind to port in range 700-710.
1217600160.758003: amrecover: security_seterror(handle=0x8065178, driver=0xb6b1e0 (BSDTCP) error=Connection refused)
1217600160.758010: amrecover: security_close(handle=0x8065178, driver=0xb6b1e0 (BSDTCP))
1217600160.758017: amrecover: security_stream_close(0x80652e8)
1217600165.757568: amrecover: security_handleinit(handle=0x8065178, driver=0xb6b1e0 (BSDTCP))
1217600165.757765: amrecover: security_streaminit(stream=0x80652e8, driver=0xb6b1e0 (BSDTCP))
1217600165.758488: amrecover: connect_port: Skip port 700: owned by epp.
1217600165.758980: amrecover: connect_port: Skip port 701: owned by lmp.
1217600165.759462: amrecover: connect_port: Skip port 702: owned by iris-beep.
1217600165.762413: amrecover: connect_port: Try port 703: available - Success
1217600165.762467: amrecover: connect_portrange: Connect from 0.0.0.0.703 failed: Connection refused
1217600165.762474: amrecover: connect_portrange: connect to 127.0.0.1.10080 failed: Connection refused
1217600165.763021: amrecover: connect_port: Skip port 700: owned by epp.
1217600165.763503: amrecover: connect_port: Skip port 701: owned by lmp.
1217600165.763988: amrecover: connect_port: Skip port 702: owned by iris-beep.
1217600165.766892: amrecover: connect_port: Try port 703: available - Success
1217600165.766937: amrecover: connect_portrange: Connect from ::.703 failed: Connection refused
1217600165.766946: amrecover: connect_portrange: connect to ::1.10080 failed: Connection refused
1217600165.766960: amrecover: stream_client: Could not bind to port in range 700-710.
1217600165.766973: amrecover: security_seterror(handle=0x8065178, driver=0xb6b1e0 (BSDTCP) error=Connection refused)
1217600165.766983: amrecover: security_close(handle=0x8065178, driver=0xb6b1e0 (BSDTCP))
1217600165.766989: amrecover: security_stream_close(0x80652e8)

patrick.conway
August 8th, 2008, 09:11 AM
upgraded server to fedora 8 and all is ok


note: had problem with amrecover...


resolved by create ~amandabackup/.am_passphrase on both client and server

you need .am_passphrase with the same content on both...wasnt in install guide

datacare
August 9th, 2008, 01:39 PM
I have been using linux a few years now, and recently decided to build a amanda server. What I thought was going to be easy has turned out to be the hardest challenge I have had yet.
I am running Fedora 9. I used Yum to install the amanda-server package. I have configured Vtapes. I have ready the 15 minute challenge, and the quick start guide. I have reinstalled the whole machine several times and still I get:
selfcheck request failed: connection refused, when running amcheck. I have changed every optoin I can find and still can't get past this error. I get this error even from the client on the server itself.
PLEASE HELP!!:mad:

patrick.conway
August 11th, 2008, 02:03 AM
I have been using linux a few years now, and recently decided to build a amanda server. What I thought was going to be easy has turned out to be the hardest challenge I have had yet.
I am running Fedora 9. I used Yum to install the amanda-server package. I have configured Vtapes. I have ready the 15 minute challenge, and the quick start guide. I have reinstalled the whole machine several times and still I get:
selfcheck request failed: connection refused, when running amcheck. I have changed every optoin I can find and still can't get past this error. I get this error even from the client on the server itself.
PLEASE HELP!!:mad:

I would guess a problem with the client. Also check the file /etc/xinetd.d/amandaserver or whatever your file is called

if you used the file from the guide this line may be wrong... look for the amandad file n your system and correct the line to be that location

probably server= /usr/libexec/amanda/amandad


p.s. you would probably get more help if you start your own thread in the forum

ken
August 14th, 2008, 02:22 PM
First of all, you are using the Amanda packages provided by Fedora, instead of the newer packages from Zmanda ("I used Yum to install the amanda-server package"). As a good first step, I would suggest using the packages available from:

http://www.zmanda.com/download-amanda.php

Then you can make use of all the information from the Amanda Wiki a lot easier:

http://wiki.zmanda.com

Finally, make sure that you do not have a firewall blocking the Amanda port (10080) and that /etc/services has the Amanda port open for both TCP and UDP.

That should give you a good start...

Ken