osx 10.15.5 - FAHControl will not connect to localhost
Moderators: Site Moderators, FAHC Science Team
osx 10.15.5 - FAHControl will not connect to localhost
I installed the software yesterday and it ran and monitored correctly. I restarted my computer today (mac) and FAHControl cannot connect to localhost. If i go to client.foldingathome.org, It shows that it is running. I tried stopping and starting via the web ui. still not connecting. I have 2 other linux computers, which have not been rebooted since install, and those do connect.
I don't recall adding a password to my localhost client. I only added them to the linux hosts, I believe. I am trying to find the osx config xml file to verify.
I don't recall adding a password to my localhost client. I only added them to the linux hosts, I believe. I am trying to find the osx config xml file to verify.
Last edited by nleco on Fri Jul 10, 2020 1:48 am, edited 1 time in total.
-
- Site Admin
- Posts: 7951
- Joined: Tue Apr 21, 2009 4:41 pm
- Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2 - Location: W. MA
Re: osx 10.15.5 - FAHControl will not connect to loalhost
Under a default install, all data files including config.xml are located in /Library/Application Support/FAHClient.
Do you have the builtin firewall from the OS activated?
Do you have the builtin firewall from the OS activated?
iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Re: osx 10.15.5 - FAHControl will not connect to loalhost
my firewall is turned off.
I did also try to kill the process via the pid for 'FAHClient'.
the config file seems to have default values aside from my username/passkey.
I did also try to kill the process via the pid for 'FAHClient'.
the config file seems to have default values aside from my username/passkey.
Re: osx 10.15.5 - FAHControl will not connect to loalhost
FAHClient is designed to run as a daemon (with permissions from Apple). If it's like the Linux daemon or the Windows service, it is supposed to restart itself... but I'm not an OS-X expert, so correct me if I'm wrong.
Posting FAH's log:
How to provide enough info to get helpful support.
How to provide enough info to get helpful support.
Re: osx 10.15.5 - FAHControl will not connect to loalhost
I'm a bit unclear about this. I mentioned that the client does appear to be running. I can control it via the Web interface (client.foldingathome.org), which has an iframe pointing to the localhost ui. I can update it there, and via 'htop' I can see the cores begin to work based on the intensity.bruce wrote:FAHClient is designed to run as a daemon (with permissions from Apple). If it's like the Linux daemon or the Windows service, it is supposed to restart itself... but I'm not an OS-X expert, so correct me if I'm wrong.
The issue I am having is with FAHControl not connecting to the localhost instance. Curious if there is something that can help me diagnose why.
I do see this in the logs:
Code: Select all
default 18:53:48.269076-0700 FAHControl Connection Error: 32: Broken pipe
default 18:53:48.771380-0700 FAHControl Connection lost
default 18:53:48.771485-0700 FAHControl ERROR on connection to 127.0.0.1:36330: Lost connection
Re: osx 10.15.5 - FAHControl will not connect to localhost
Bruce,
I found this while searching. saw you recommended use of telnet to test:
viewtopic.php?f=108&t=35365&p=335385&hilit=can%27t+connect+port+36330#p335385
i did do that. and what's interesting is I get this.
when I type 'help' it loses connection.
i see this when I ping what ports are in use:
I found this while searching. saw you recommended use of telnet to test:
viewtopic.php?f=108&t=35365&p=335385&hilit=can%27t+connect+port+36330#p335385
i did do that. and what's interesting is I get this.
Code: Select all
Welcome to the FAHClient command server.
>
i see this when I ping what ports are in use:
Code: Select all
19:08:06 $ sudo lsof -i -n -P | grep TCP | grep FAHC
FAHContro 1322 ssanchez 9u IPv4 0x1b443986d2fb0bf7 0t0 TCP 127.0.0.1:32455 (LISTEN)
FAHContro 1322 ssanchez 20u IPv4 0x1b443986d3c59837 0t0 TCP 192.168.86.45:50521->192.168.86.44:36330 (ESTABLISHED)
FAHClient 2066 nobody 5u IPv4 0x1b443986cb75b837 0t0 TCP *:7396 (LISTEN)
FAHClient 2066 nobody 6u IPv4 0x1b443986d029f477 0t0 TCP *:36330 (LISTEN)
-
- Site Admin
- Posts: 7951
- Joined: Tue Apr 21, 2009 4:41 pm
- Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2 - Location: W. MA
Re: osx 10.15.5 - FAHControl will not connect to localhost
Apple pulled out the native telnet from the command line environment, you can use the 'nc' command instead in Terminal:
nc 127.0.0.1 36330
That should give you the command server prompt. Does it still close after entering the 'help' command?
The output of the lsof command on my Mac looks like the following for comparison:
I am running 10.13.6 on this particular Mac, don't currently have a system running a later version.
nc 127.0.0.1 36330
That should give you the command server prompt. Does it still close after entering the 'help' command?
The output of the lsof command on my Mac looks like the following for comparison:
Code: Select all
$ sudo lsof -i -n -P | grep TCP | grep FAHC
FAHClient 71 nobody 5u IPv4 0xd3d925bc30dae605 0t0 TCP *:7396 (LISTEN)
FAHClient 71 nobody 7u IPv4 0xd3d925bc30dad335 0t0 TCP *:36330 (LISTEN)
FAHClient 71 nobody 8u IPv4 0xd3d925bc481f4335 0t0 TCP 127.0.0.1:36330->127.0.0.1:49339 (ESTABLISHED)
FAHContro 22459 -------- 9u IPv4 0xd3d925bc481f4c9d 0t0 TCP 127.0.0.1:32455 (LISTEN)
FAHContro 22459 -------- 20u IPv4 0xd3d925bc48b8a8d5 0t0 TCP 127.0.0.1:49339->127.0.0.1:36330 (ESTABLISHED)
iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Re: osx 10.15.5 - FAHControl will not connect to localhost
I installed telnet via homebrew. People ported it over.
https://formulae.brew.sh/formula/telnet
the 'nc' command you gave didn't seem to do anything. no prompt. What's interesting is that it actually did work right after I installed it.
https://formulae.brew.sh/formula/telnet
the 'nc' command you gave didn't seem to do anything. no prompt. What's interesting is that it actually did work right after I installed it.
Re: osx 10.15.5 - FAHControl will not connect to localhost
We probably should try to contact calxalot.
Posting FAH's log:
How to provide enough info to get helpful support.
How to provide enough info to get helpful support.
-
- Site Moderator
- Posts: 1161
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: osx 10.15.5 - FAHControl will not connect to localhost
I would guess that you altered the allow/deny IP address settings. You should make sure that 127.0.0.1 is in all allow lists. You need to stop the client service before editing config.xml, which you should not do unless you absolutely have to. Make sure that config.xml is owned by user nobody after editing it, and before restarting the service.
Re: osx 10.15.5 - FAHControl will not connect to localhost
That was exactly what happened and it slipped my mind. It was set to my LAN's address vs 127.0.0.1. This resolved it.calxalot wrote:I would guess that you altered the allow/deny IP address settings. You should make sure that 127.0.0.1 is in all allow lists. You need to stop the client service before editing config.xml, which you should not do unless you absolutely have to. Make sure that config.xml is owned by user nobody after editing it, and before restarting the service.
thank you so much.