-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
[MacOS]: Websocket infinite reconnection for locally hosted instance #1774
Comments
Thanks for this bug report, but did you read the last message in the old bug report? #1632 (comment) Furthermore, there has never been a Mainsail version with the version number v0.8.0-310... But if it works for you, even on different devices with the same operating system, it sounds very much like a problem with your device (wrong network/proxy settings). Port 80 successfully opens the web interface (you see Mainsail itself), but it cannot connect to your Moonraker instance (the connecting/init dialog). If you open :7125 or ratos/configurator, you only open an HTTP web interface. These don't connect with the WebSocket. Your issue is only the WebSocket connection! But as I wrote already in the other issue: as long as I cannot reproduce this issue, I'm not able to fix it... |
Thanks for your message. I agree that the problem is communication between some OS and Moonraker, and therefore those OS's are the outliers. However Moonraker is the only service I have experienced issues with reverse proxy... Would it be possible for you to recommend some debugging steps on Moonraker / Nginx? |
I did not say that the OS generally causes issues. I have been working exclusively on Mac for a long time and never had this problem. It's a setting of your specific setup on the 2018 Intel device... a reverse proxy is always a special setup. we do not officially support it, so you are on your own. but reverse proxies need their own settings for a WebSocket connection, as this socket must be kept open. but this is generally a reverse proxy "issue". |
Thanks for your reply. On MacBookPro there is yet a bridge and virtual interfaces, which can mix up the source interface/address when reaching a webserver (in our case the reverse proxy). So before mirroring the switch port where my printer resides and wireshark the communication, I decided to delete all virtual interfaces. Rebooted the system and that fixed the problem. Here is step by step what helped me:
|
I think we found the issue (thanks to a user on Discord). It appears that the 'Screen Time' feature in macOS is causing the issue. If I set the Screen Time function on a website like 'reddit.com' (which was the exact case from the discord user), I can reproduce the issue. Please check if you are using this feature in macOS. I would appreciate feedback to see if this is indeed the problem for everyone here. You can find the function here:
Disable the complete feature to double-check it. Don't forget to reboot your mac after disabling it! Link to the Discord post: https://discord.com/channels/758059413700345988/1274313808852029482 |
@meteyou Holy crap! This worked! I've been dealing with this for the past couple years and have been beyond confused. Thank you for the help! |
Mainsail Version:
v0.8.0-310
Browser:
Chrome
Device:
Laptop
Operating System:
macOS
What happened?
The issue was initially posted here #1632, Arksine/moonraker#726 and Rat-OS/RatOS#106.
Similar issue was reported on Reddit
What did you expect to happen instead?
It should work on
MacOS Monterey, Ventura, Sonoma
.How to reproduce this bug?
http://ratos.local/
orhttp://<IP_ADDRESS>
.port 80
does this, but when you visitport 7125
orratos.local/configure
it works perfectly.NOTE: the same problem was reproduced with Voron Installing Mainsail instructions
Additional information:
The problem is see with MacOS Monterey, Ventura, Sonoma (running on Intel, 2018).
I tried older laptops with versions MacOS BigSur, Catalina and it works fine (running on Intel, 2012).
On my new M1 with fresh MacOS Sonoma it works.
MacBook-2018 was upgraded from Ventura to Sonoma with no luck. Please note that on this machine I played with Proxy settings before upgrade.
In 2022 I had similar issue, but then I was able to add printer's IP address with port 7125 under Interface Settings -> Printers -> ADD PRINTER. I had to do that every time I started the 3D printer (running RatOS).
The text was updated successfully, but these errors were encountered: