Can’t connect to localhost

Message boards : Questions and problems : Can’t connect to localhost
Message board moderation

To post messages, you must log in.

AuthorMessage
Radjin

Send message
Joined: 17 Sep 19
Posts: 12
United States
Message 92822 - Posted: 17 Sep 2019, 12:49:06 UTC
Last modified: 17 Sep 2019, 12:50:30 UTC

I installed Boinc on my Debian Buster Linux box and had trouble getting it to work. Asking around the seti@home forums, as that is the project I run on other computers, I received a good suggestion to install a packaged setup optimized for my GPU and is totally within the /home directory. I apt removed, purged and autoremoved then installed the aforementioned package.

Currently my biggest problem is the one in the title. When I run “./boinccmd --project_attach http://setiathome.berkeley.edu <weak key>” I get the “cannot connect to localhost”. In fact, when I run ./boinccmd with any option I get that response. If I run ./boinccmd alone I get the help list meaning boinccmd is responding. If I run ./boinc I get:
/BOINC$ ./boinc
17-Sep-2019 05:36:31 [---] Starting BOINC client version 7.14.2 for x86_64-pc-linux-gnu
17-Sep-2019 05:36:31 [---] log flags: file_xfer, sched_ops, task, sched_op_debug
17-Sep-2019 05:36:31 [---] Libraries: libcurl/7.64.0 GnuTLS/3.6.7 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
17-Sep-2019 05:36:31 [---] Data directory: /home/radjin/BOINC
17-Sep-2019 05:36:31 [---] No usable GPUs found
17-Sep-2019 05:36:31 [---] [libc detection] gathered: 2.28, Debian GLIBC 2.28-10
17-Sep-2019 05:36:31 [---] Host name: webserver
17-Sep-2019 05:36:31 [---] Processor: 8 GenuineIntel Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz [Family 6 Model 42 Stepping 7]
17-Sep-2019 05:36:31 [---] Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
17-Sep-2019 05:36:31 [---] OS: Linux Debian: Debian GNU/Linux 10 (buster) [4.19.0-6-amd64|libc 2.28 (Debian GLIBC 2.28-10)]
17-Sep-2019 05:36:31 [---] Memory: 31.30 GB physical, 15.89 GB virtual
17-Sep-2019 05:36:31 [---] Disk: 884.49 GB total, 750.54 GB free
17-Sep-2019 05:36:31 [---] Local time is UTC -7 hours
17-Sep-2019 05:36:31 [---] Config: use all coprocessors
17-Sep-2019 05:36:31 [---] Last benchmark was 18156 days 12:36:31 ago
17-Sep-2019 05:36:31 [---] No general preferences found - using defaults
17-Sep-2019 05:36:31 [---] Preferences:
17-Sep-2019 05:36:31 [---] max memory usage when active: 16024.55 MB
17-Sep-2019 05:36:31 [---] max memory usage when idle: 28844.18 MB
17-Sep-2019 05:36:31 [---] max disk usage: 751.17 GB
17-Sep-2019 05:36:31 [---] don't use GPU while active
17-Sep-2019 05:36:31 [---] suspend work if non-BOINC CPU load exceeds 25%
17-Sep-2019 05:36:31 [---] (to change preferences, visit a project web site or select Preferences in the Manager)
17-Sep-2019 05:36:31 [---] Setting up project and slot directories
17-Sep-2019 05:36:31 [---] Checking active tasks
17-Sep-2019 05:36:31 [---] Setting up GUI RPC socket
17-Sep-2019 05:36:31 [---] Checking presence of 0 project files
17-Sep-2019 05:36:31 [---] This computer is not attached to any projects
17-Sep-2019 05:36:31 Initialization completed

It continues to run until I ctrl-c.

ldd shows all dependencies are installed

Any suggestions?

Thanks in advance for your help.

Radjin~
ID: 92822 · Report as offensive
Radjin

Send message
Joined: 17 Sep 19
Posts: 12
United States
Message 92865 - Posted: 20 Sep 2019, 16:22:08 UTC - in response to Message 92822.  

This thread was superseded by another post and can be considered resolved.
ID: 92865 · Report as offensive
Ian

Send message
Joined: 6 Oct 19
Posts: 5
United Kingdom
Message 93108 - Posted: 6 Oct 2019, 17:20:33 UTC - in response to Message 92865.  

Sorry, but what is the more recent post that I should refer to?

I have a Raspberry pi Zero (raspbian jessie) running boinc-client - ran after install but did not survive a reboot - now all boinc-client commands result in the "Can't connect to localhost" response, which is not helpful. It is clear that no client is running either.

There is spare CPU time on this machine which is otherwise running a ham-radio digital access point but I cannot, it seems, give it away!

Any help appreciated.

Ian

PS - I have run this linux client on another raspberry pi Zero and a raspberry pi 3, both running simh as their main activity and no trouble has been encountered following restarts.
ID: 93108 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2533
United Kingdom
Message 93110 - Posted: 6 Oct 2019, 19:06:49 UTC - in response to Message 93108.  

have you tried running

 sudo /etc/init.d/boinc-client start

in a terminal to start the client?
ID: 93110 · Report as offensive
Ian

Send message
Joined: 6 Oct 19
Posts: 5
United Kingdom
Message 93111 - Posted: 6 Oct 2019, 19:18:25 UTC - in response to Message 93110.  

Yes, and it responds: Starting boinc-client (via systemctl): boinc-client.service.
Then when I type: boinccmd --get_host_info
I get: can't connect to localhost.

I don't see the daemon running either:-(

Ian
ID: 93111 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 93113 - Posted: 6 Oct 2019, 21:18:30 UTC
Last modified: 6 Oct 2019, 21:26:46 UTC

Ian, you refer to running Jessie, the current version of Raspbian is Buster. Is there some reason you are 2 OS versions behind?

The command line tool used to have issues. What happens if you cd to /etc/boinc-client and do the boinccmd from there?
MarkJ
ID: 93113 · Report as offensive
Ian

Send message
Joined: 6 Oct 19
Posts: 5
United Kingdom
Message 93115 - Posted: 7 Oct 2019, 6:35:17 UTC - in response to Message 93113.  

The core application on this device runs under Jessie - it was a pre-built binary and the current versions (including beta versions) all run on Jessie.

Yes, running the command from the directory results in the same issues - also the command does work because I can get the --help output.

The version of boinc-client that I am using is the latest version as far as I am aware.

Ian
ID: 93115 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 93119 - Posted: 7 Oct 2019, 13:16:49 UTC

Jessie had 7.4.23, stretch had 7.6.33 and Buster has 7.14.2. We’re currently testing 7.16. If you’ve used the repo version I expect you’ll be running the 7.4.23 version. You can do a “boinccmd—version” without the quotes to see what it thinks it’s got.

Back to the issue at hand, can you see if boinc-client is running. If it installed correctly then it should start up when the Pi does. Try “sudo service boinc-client status” without the quotes to see if it thinks it’s running “sudo service boinc-client start” to get it going.
MarkJ
ID: 93119 · Report as offensive
Ian

Send message
Joined: 6 Oct 19
Posts: 5
United Kingdom
Message 93121 - Posted: 7 Oct 2019, 14:38:32 UTC - in response to Message 93119.  

Thanks MarkJ - I am now away until next Sunday and will revert with an update then. I'm pretty certain that the same boinc client is on each of my machines and will report all versions at that time.
Best regards,
Ian
ID: 93121 · Report as offensive
Profile jimbo

Send message
Joined: 9 Oct 19
Posts: 7
United States
Message 93140 - Posted: 9 Oct 2019, 1:27:37 UTC

I have an issue. I have been doing a few or more projects here for some time now. seti@home, collatz, world community grid, universe@home, primegrid, moo! wrapper, cosmology@home and more. if I login into any of them to my account and then click on Boincstats well, they all direct me to the Cosmology@home stats only and that is all I get. is there a bug in there somewhere? should I login with my account key?
ID: 93140 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2533
United Kingdom
Message 93142 - Posted: 9 Oct 2019, 7:35:51 UTC - in response to Message 93140.  

I have an issue. I have been doing a few or more projects here for some time now. seti@home, collatz, world community grid, universe@home, primegrid, moo! wrapper, cosmology@home and more. if I login into any of them to my account and then click on Boincstats well, they all direct me to the Cosmology@home stats only and that is all I get. is there a bug in there somewhere? should I login with my account key?


Could be to do with GDPR compliance. With CPDN you now need to go to your account settings and actively opt in to stats export to external sites.
ID: 93142 · Report as offensive
Profile jimbo

Send message
Joined: 9 Oct 19
Posts: 7
United States
Message 93144 - Posted: 9 Oct 2019, 7:55:53 UTC - in response to Message 93142.  
Last modified: 9 Oct 2019, 8:53:11 UTC

if you can goto this site and look at number rank# 265 u can see the username Jimbo and then if you goto rank# 230 you can see the username Jimbo. they are both me. I want only one Jimbo plz

https://www.boincstats.com/stats/-1/user/list/0/200/United%20States#266

Here you can see me on 879 and 765:
https://www.boincstats.com/stats/-1/user/list/0/800#879
https://www.boincstats.com/signature/-1/user/4877/sig.png
https://www.boincstats.com/signature/-1/user/58271033255/sig.png
ID: 93144 · Report as offensive
Profile jimbo

Send message
Joined: 9 Oct 19
Posts: 7
United States
Message 93145 - Posted: 9 Oct 2019, 12:14:14 UTC - in response to Message 93142.  

not sure about that but I clicked on cross project for the certificate when I logged into collatz on me profile and I get this message just above the certificate:
Notice: Undefined property: BoincUser::$projects in /home/boincadm/projects/collatz/html/user/cert_all.php on line 43

Warning: Invalid argument supplied for foreach() in /home/boincadm/projects/collatz/html/user/cert_all.php on line 43

then on the certificate itself I get this:
Jimbo
has contributed 0 Cobblestones of computation (0.00 trillion floating-point operations)to the following scientific research projects:
Notice: Undefined property: BoincUser::$projects in /home/boincadm/projects/collatz/html/user/cert_all.php on line 78
Warning: Invalid argument supplied for foreach() in /home/boincadm/projects/collatz/html/user/cert_all.php on line 78
Project Cobblestones Joined
ID: 93145 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 93152 - Posted: 10 Oct 2019, 4:54:35 UTC - in response to Message 93145.  

All of that is a problem with Collatz.
You need to talk to them about it.
ID: 93152 · Report as offensive
Profile jimbo

Send message
Joined: 9 Oct 19
Posts: 7
United States
Message 93171 - Posted: 12 Oct 2019, 18:03:42 UTC - in response to Message 93152.  
Last modified: 12 Oct 2019, 18:04:40 UTC

Okay but both of these are done by me and for some reason were split and I dunno why! !
My user id has always been 4877



BOINC Cross Project IDentifier: 569a61cde43766e076463a263b1d9a32
User ID: 4877

-------------------------------------------------------------------------
BOINC Cross Project IDentifier: 3c582669d266d3f19a465aadee960216
User ID: 58271033255
ID: 93171 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 93173 - Posted: 12 Oct 2019, 21:27:15 UTC

The Cross Project IDentifier is created by BOINC.
If it can't find one in your files, meaning you're just starting out, or you haven't connected that computer to a project where you already exist, then BOINC will create one.
If you DO have other proejcts already, then the next time that BOINC contacts one of them, it will find the older ID among the files, and change the new one on that computer.

But looking at the messages in your previous post, something has gone seriously wrong at Collatz.
Whatever it is, your problem won't get fixed until the people at Collatz fix their problem.

It may already be fixed, and you just need to talk to them to get your details corrected.
ID: 93173 · Report as offensive
Ian

Send message
Joined: 6 Oct 19
Posts: 5
United Kingdom
Message 93188 - Posted: 13 Oct 2019, 18:24:29 UTC

Its version 7.4.23 as you suspected.

I've discovered that the application running has locked the file system. I don't know how the application was able to be installed and run prior to a re-boot but we are where we are. I can add an external (USB) drive - is there a way to get the application to use an external (FAT32) disk for storage/cache or whatever - its 4GB s0 should be sufficient room?

Ian
ID: 93188 · Report as offensive
Profile jimbo

Send message
Joined: 9 Oct 19
Posts: 7
United States
Message 93238 - Posted: 16 Oct 2019, 19:39:22 UTC - in response to Message 93144.  
Last modified: 16 Oct 2019, 19:40:20 UTC

same issue
the retired projects all separated from my current active projects perhaps


https://www.boincstats.com/signature/-1/user/4877/sig.png <retired projects

https://www.boincstats.com/signature/-1/user/58271033255/sig.png <current active
ID: 93238 · Report as offensive
Tamarin Tracker

Send message
Joined: 9 Jun 18
Posts: 8
United States
Message 93336 - Posted: 27 Oct 2019, 21:30:19 UTC

I have installed BOINC on an Inspiron I5 machine but cannot not connect to a local host as it states that it has tried three times and is disconnected and asks if I want to try again.
Any suggestions? Running Win 10.
ID: 93336 · Report as offensive

Message boards : Questions and problems : Can’t connect to localhost

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.