Questions and Answers :
Unix/Linux :
Connection refused
Message board moderation
Author | Message |
---|---|
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
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? |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
I'm trying to run my boinc client on Linux, and I have a problem : 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). |
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
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. Can you give me some advice, how to do that? |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
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. 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 ? |
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
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? |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
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 |
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
Looks good. You can verify the name resolution with nslookup. I've got the same results, I know now howto open a port using iptables, but which one I've to open? |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
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). |
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
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? |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
You need to open port 80 outgoing.I've got port 80 outgoing openedThe 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 ? |
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
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 |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
Can you attach to the project now ?I'm not sure, an error is somewhere else. For example, when I'm trying to 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 |
kink Send message Joined: 31 Oct 03 Posts: 7 Credit: 0 RAC: 0 ![]() |
Thank you very much. It works now. |
Dotsch ![]() Send message Joined: 9 Jun 99 Posts: 2422 Credit: 919,393 RAC: 0 ![]() |
Thank you very much. It works now. But, I did not seen any computers attached to the project on your account. |
©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.