Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote computers not seeing each other, initially #215

Open
jon-ault opened this issue Nov 21, 2024 · 28 comments
Open

Remote computers not seeing each other, initially #215

jon-ault opened this issue Nov 21, 2024 · 28 comments

Comments

@jon-ault
Copy link

jon-ault commented Nov 21, 2024

I have two computers running 8.4.9 (one Windows, one Mac) and one Windows computer running 8.3.18. None of the web clients can see any of the other computers, each one can only show its own status with the other two grayed out.
Screenshot 2024-11-21 at 1 21 08 PM

@jcoffland
Copy link
Member

Are you logged in? You cannot see remote machines unless you're logged in.

@jon-ault
Copy link
Author

jon-ault commented Nov 21, 2024

Yes, logged in on all machines. Also, when logged out the other machines simply don't appear at all; I have to be logged in to see the greyed out sections for those computers.

@muziqaz
Copy link

muziqaz commented Nov 21, 2024

Does Mac have some sort of software firewall? Are you using firewall on Windows machines?

@muziqaz
Copy link

muziqaz commented Nov 21, 2024

Yes, logged in on all machines. Also, when logged out the other machines simply don't appear at all; I have to be logged in to see the greyed out sections for those computers.

FAH is account based. You have to be logged in to see remote machines.

@jon-ault
Copy link
Author

Yes, the Mac has a built-in firewall. It wasn't causing any issues with 8.3, and turning it off does not fix this issue in 8.4.

As for being logged in, the screenshot above was taken while logged in on all computers.

@jon-ault
Copy link
Author

jon-ault commented Nov 21, 2024

OK this is interesting. If I leave the browser running long enough untouched it eventually connects to the other computers. I'm not sure how long it takes, something on the order of 15-20 minutes. I'll try to time it.

@jon-ault
Copy link
Author

It took about 4 minutes for the other machines to appear, so I was way off in my initial estimate.
Screenshot 2024-11-21 at 2 32 09 PM

@muziqaz
Copy link

muziqaz commented Nov 21, 2024

yeah, it seems Firefox is not the favorite browser for FAH :)

That's probably related to this:
FoldingAtHome/fah-client-bastet#287
above moved to the following issue:
#214

@kbernhagen
Copy link
Contributor

Similar problem on macOS Brave browser.
JS console has repeated ~5x error

WebSocket connection to 'wss://node1.foldingathome.org/ws/account' failed: WebSocket is closed before the connection is established.

@jcoffland
Copy link
Member

These are different issues. One is about the local client taking a long time to show. This issue is about seeing remote clients.

@jcoffland
Copy link
Member

Was this issue also caused by not being on the correct Web Control page?

@kbernhagen
Copy link
Contributor

I was using the correct v8-4 web page.
Brave, Safari, mobile Safari are all working normally right now.

@kbernhagen
Copy link
Contributor

kbernhagen commented Nov 21, 2024

I considered it a similar issue because you mentioned web control would abort connections early to avoid browser connection fall off in another issue.

And I was experiencing delay connecting to remotes via node.
This was the correct issue.

@jon-ault
Copy link
Author

Was this issue also caused by not being on the correct Web Control page?

I don't think so, I'm using the url "https://app.foldingathome.org/" on my Mac which redirects to "v8-4.foldingathome.org". But something has changed in the last couple of hours because now it immediately shows all the computers with no delay.

@muziqaz
Copy link

muziqaz commented Nov 21, 2024

I think this is just initial loading. After that, I never had issues in my case

@jcoffland
Copy link
Member

I considered it a similar issue because you mentioned web control would abort connections early to avoid browser connection fall off in another issue.

This is only with the local client connection. Web Control connects directly to the local client when possible. The remote connections are all via fah-node. There's only a delay if you have problems connecting to fah-node which usually only happens when your Internet connection goes down. fah-node itself is on Amazon AWS and has a very high up time.

@jcoffland jcoffland changed the title Computers not seeing each other Remote computers not seeing each other, initially Nov 23, 2024
@kbernhagen
Copy link
Contributor

Then what was causing
WebSocket is closed before the connection is established

@jcoffland
Copy link
Member

That's the Websocket to the local client.

@kbernhagen
Copy link
Contributor

No. It was a node connection.
WebSocket connection to 'wss://node1.foldingathome.org/ws/account' failed: WebSocket is closed before the connection is established.

@kbernhagen
Copy link
Contributor

kbernhagen commented Nov 23, 2024

The local client connected immediately. Remotes did not.
I figured you modified the deployed Web Control or fah-node when it started working again.

@jcoffland
Copy link
Member

I didn't modify anything.

@bollix47
Copy link

The problem is back today after working fine overnight and this morning .... i.e. can see local machine but not the remote ones

@kbernhagen
Copy link
Contributor

kbernhagen commented Nov 23, 2024

Web control v8-3 seems to have the same problem. I don’t have an older client running right now to test against that.

@muziqaz
Copy link

muziqaz commented Nov 23, 2024

Firefox can’t establish a connection to the server at wss://node1.foldingathome.org/ws/account. 
The connection to wss://node1.foldingathome.org/ws/account was interrupted while the page was loading.

This is while I have the tab open with all the clients shown as loading, even the local one. I have not reloaded the tab since I launched it

@bollix47
Copy link

bollix47 commented Nov 23, 2024

my remotes have now shown up .... a half hour after I tried to load the page .... a reload showed all cients again after a slight hesitation

@jcoffland
Copy link
Member

I think this may be a problem with fah-node. There may be some sort of leak. It had been running for a couple of months. The memory usage before the restart seemed a little high. I restarted it and things started moving again.

@kbernhagen
Copy link
Contributor

kbernhagen commented Dec 4, 2024

This was happening again today, and started working right now.
Still takes a few seconds for remotes to connect.
Something is not reliable.
Sending a reset command via lufah had no effect. (but was logged by remote)

macOS 15.1.1, Safari, Brave

@jcoffland
Copy link
Member

I'm still looking into this. I restarted the node again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants