View Full Version : Connection refused. How to debug problem?
Talefod
August 13th, 2008, 02:20 AM
Hi,
Using SLES10 on both client and server.
When I from the server
telnet <HOSTNAME> amanda
I get connection refused.
How do I debug this, so I can get a hint on what wrong?
If there is a log file, please give me a path for it :)
pyeatman
August 13th, 2008, 01:50 PM
Are you trying telnet because amcheck is failing? What type of authorization--bsd, bsdudp, bsdtcp--are you using?
Paul
ken
August 14th, 2008, 02:11 PM
A couple of questions...
First, do you have any firewall running? If so, be sure to open the Amanda port (10080)
Second, do you have the Amanda server listed in your /var/lib/amanda/.amandahosts? You need to make sure that the server is authorized to connect?
Finally, did you restart xinetd after you installed the Amanda client?
Ken
Talefod
August 19th, 2008, 12:30 AM
Are you trying telnet because amcheck is failing? What type of authorization--bsd, bsdudp, bsdtcp--are you using?
Yes, I used telnet, just to see if it would connect.
I use "bsdtcp" in both client and server. It was the default value, so I just that =)
Talefod
August 19th, 2008, 12:46 AM
First, do you have any firewall running? If so, be sure to open the Amanda port (10080)
No firewall on either client or server.
Second, do you have the Amanda server listed in your /var/lib/amanda/.amandahosts?
Yes, I have also tried to add the IP address for the server on the client, and add the IP address on the client on the server.
This is /var/lib/amanda/.amandahosts on the client
localhost amandabackup amdump
localhost.localdomain amandabackup amdump
linux02.talefod.dk amandabackup amdump
192.168.0.15 amandabackup amdump
This is /var/lib/amanda/.amandahosts on the server
localhost root amindexd amidxtaped
localhost amandabackup amdump
localhost.localdomain root amindexd amidxtaped
localhost.localdomain amandabackup amdump
webserver.talefod.dk root amindexd amidxtaped
192.168.0.19 root amindexd amidxtaped
webserver is the client and linux02 is the server.
You need to make sure that the server is authorized to connect?
Is that done with the above, or does I have to configure that somewhere else also?
Finally, did you restart xinetd after you installed the Amanda client?
The problem is the same when I restart it.
Talefod
August 19th, 2008, 12:48 AM
Btw, this it the error I get:
amandabackup@linux02:~> amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
slot 1:read label `DailySet1-1', date `X'.
NOTE: skipping tape-writable test
Tape DailySet1-1 label ok
NOTE: host info dir /etc/amanda/DailySet1/curinfo/webserver.talefod.dk does not exist
NOTE: it will be created on the next run.
NOTE: index dir /etc/amanda/DailySet1/index/webserver.talefod.dk does not exist
NOTE: it will be created on the next run.
Server check took 0.183 seconds
Amanda Backup Client Hosts Check
--------------------------------
WARNING: webserver.talefod.dk: selfcheck request failed: Connection refused
Client check: 1 host checked in 10.042 seconds. 1 problem found.
(brought to you by Amanda 2.6.0p1)
amandabackup@linux02:~>
ken
August 19th, 2008, 11:15 AM
Amanda needs to be able to resolve the IP addresses in the .amandahosts file, so you also need /etc/hosts entries if you are not using DNS.
Talefod
August 20th, 2008, 03:31 AM
Amanda needs to be able to resolve the IP addresses in the .amandahosts file, so you also need /etc/hosts entries if you are not using DNS.
I am using DNS, and have also included the hosts in /etc/hosts, just to be one the safe side of things :)
But I still get this "selfcheck" error.