Connection refused

Questions and Answers : Unix/Linux : Connection refused
Message board moderation

To post messages, you must log in.

AuthorMessage
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253318 - Posted: 25 Feb 2006, 0:18:56 UTC

Hi!
I'm trying to run my boinc client on Linux, and I have a problem :
wlk:~/BOINC# ./boinc_cmd -attach_project http://setiathome.berkeley.edu/ <key>
connect: Connection refused
can't connect
What is wrong? Do I have to config my firewall?
ID: 253318 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253450 - Posted: 25 Feb 2006, 7:56:56 UTC

I'm trying to run my boinc client on Linux, and I have a problem :
wlk:~/BOINC# ./boinc_cmd -attach_project http://setiathome.berkeley.edu/ <key>
connect: Connection refused
can't connect
What is wrong? Do I have to config my firewall?

Yes, you need to open outgoing http requests to the seti servers, and the awnsers back from the seti servers on the high ports to your system servers.
Also your system should be able to do a DNS query (nslookup the seti servers).

ID: 253450 · Report as offensive
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253460 - Posted: 25 Feb 2006, 9:18:01 UTC - in response to Message 253450.  

Yes, you need to open outgoing http requests to the seti servers, and the awnsers back from the seti servers on the high ports to your system servers.
Also your system should be able to do a DNS query (nslookup the seti servers).

Can you give me some advice, how to do that?
ID: 253460 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253468 - Posted: 25 Feb 2006, 9:36:34 UTC - in response to Message 253460.  

Yes, you need to open outgoing http requests to the seti servers, and the awnsers back from the seti servers on the high ports to your system servers.
Also your system should be able to do a DNS query (nslookup the seti servers).

Can you give me some advice, how to do that?


For the name resolution :
- /etc/resolv.conf should contain :
domain $YOURDOMAINNAME
nameserver $THE_NAME_SERVER_FROM_YOUR_PROVIDER
- /etc/nsswitch.conf should contain :
hosts: files [NOTFOUND=continue] dns

Which kind of firewall do you have ?
ID: 253468 · Report as offensive
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253511 - Posted: 25 Feb 2006, 11:26:57 UTC - in response to Message 253468.  
Last modified: 25 Feb 2006, 11:28:34 UTC


For the name resolution :
- /etc/resolv.conf should contain :
domain $YOURDOMAINNAME
nameserver $THE_NAME_SERVER_FROM_YOUR_PROVIDER
- /etc/nsswitch.conf should contain :
hosts: files [NOTFOUND=continue] dns

Which kind of firewall do you have ?

I have iptables v1.3.3.
And this is my /etc/nsswitch.conf
passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

and my /etc/resolv.conf
search sytes.net
nameserver 194.204.159.1

is it allright?
ID: 253511 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253559 - Posted: 25 Feb 2006, 13:26:00 UTC - in response to Message 253511.  

I have iptables v1.3.3.

Sorry, I am not so famliar with iptables. But here is a howto : http://www.linuxguruz.com/iptables/howto/iptables-HOWTO.html

And this is my /etc/nsswitch.conf

Looks good. You can verify the name resolution with nslookup.
For example :
nslookup setiathome.berkeley.edu
Name Server: $NAMESERVER
Address: $IP_OF_NAMESERVER

Trying DNS
Non-authoritative answer:
Name: setiathome.SSL.berkeley.edu
Addresses: 128.32.18.152, 128.32.18.151
Aliases: setiathome.berkeley.edu
ID: 253559 · Report as offensive
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253575 - Posted: 25 Feb 2006, 14:01:51 UTC - in response to Message 253559.  

Looks good. You can verify the name resolution with nslookup.
For example :
nslookup setiathome.berkeley.edu
Name Server: $NAMESERVER
Address: $IP_OF_NAMESERVER

Trying DNS
Non-authoritative answer:
Name: setiathome.SSL.berkeley.edu
Addresses: 128.32.18.152, 128.32.18.151
Aliases: setiathome.berkeley.edu

I've got the same results, I know now howto open a port using iptables, but which one I've to open?
ID: 253575 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253582 - Posted: 25 Feb 2006, 14:13:56 UTC - in response to Message 253575.  

I've got the same results, I know now howto open a port using iptables, but which one I've to open?

Good.
You need to open port 80 outgoing. The awnsers back are on the high ports (> 1024).

ID: 253582 · Report as offensive
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253586 - Posted: 25 Feb 2006, 14:23:41 UTC - in response to Message 253582.  

You need to open port 80 outgoing.
I've got port 80 outgoing opened
The awnsers back are on the high ports (> 1024).
Do I've to open all of them? Isn't it highly unsafe?
ID: 253586 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253619 - Posted: 25 Feb 2006, 16:32:01 UTC - in response to Message 253586.  

You need to open port 80 outgoing.
I've got port 80 outgoing opened
The awnsers back are on the high ports (> 1024).
Do I've to open all of them? Isn't it highly unsafe?

The awnsers back from the seti servers are incoming on the high ports. I am not shure, but I think you must not open it.
Can you attach to the project now ?
ID: 253619 · Report as offensive
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253762 - Posted: 25 Feb 2006, 21:33:07 UTC - in response to Message 253619.  

Can you attach to the project now ?
I'm not sure, an error is somewhere else. For example, when I'm trying to
wlk:~/BOINC# ./boinc_cmd --get_host_info
the same error appears:
connect: Connection refused
can't connect
ID: 253762 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253793 - Posted: 25 Feb 2006, 22:40:17 UTC - in response to Message 253762.  
Last modified: 25 Feb 2006, 22:44:15 UTC

Can you attach to the project now ?
I'm not sure, an error is somewhere else. For example, when I'm trying to
wlk:~/BOINC# ./boinc_cmd --get_host_info
the same error appears:
connect: Connection refused
can't connect

The boinc_cmd is a administrative tool for the boinc_client. You can do with them a lot of tasks, like with the GUI (boinc manager). - Sorry, i have not seen this in your first posting.
You have got to set up a password in the file "gui_rpc_auth.cfg", and start the boinc_client. After this step you will be able to connect with with the boinc_cmd to the boinc_client.
But this is not relevant for the beginning, because it is a administrative tool.

I think we should first try, that you can attach to the project...

Please try "boinc_client --attach_project http://setiathome.berkeley.edu $ACCOUNT_KEY" - change $ACCOUNT_KEY to the key you get via Email from the project - to attach to the project.

At the boinc wiki (http://boinc-doc.net/boinc-wiki/) are a lot of usefull installation guides, and documentations about boinc and the different projects.
The linux install guide : http://boinc-doc.net/boinc-wiki/index.php?title=Installing_The_BOINC_Client_Software_on_Linux

ID: 253793 · Report as offensive
kink

Send message
Joined: 31 Oct 03
Posts: 7
Credit: 0
RAC: 0
Poland
Message 253814 - Posted: 25 Feb 2006, 23:38:13 UTC - in response to Message 253793.  

Thank you very much. It works now.
ID: 253814 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 253996 - Posted: 26 Feb 2006, 11:28:12 UTC - in response to Message 253814.  

Thank you very much. It works now.

But, I did not seen any computers attached to the project on your account.
ID: 253996 · Report as offensive

Questions and Answers : Unix/Linux : Connection refused


 
©2025 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.