bluebubbles-server icon indicating copy to clipboard operation
bluebubbles-server copied to clipboard

Connection Issue - "Failed To Connect" and Socket Connection error

Open brettlandau opened this issue 1 year ago • 8 comments

I first witnessed this happening today. Server has been running fine for a few weeks now.

First, there was an issue sending a message, and I got the notification on my Android device "Could not connect - Your server may be offline!". In the settings panel of the BlueBubbles app on Android I see a socket connection error: Screenshot_20240822-183051 . Strange, so I went to manually reboot my Mac and see if that helped.

When I did the reboot, I noticed that the message that I was trying to send earlier actually did go through (it showed in the Mac Messages app). After reboot, I got the same "Could not connect" notification and socket connection error.

While this was all happening, I could actually continue to send and receive messages as if nothing was wrong. Thought the error message would fix itself and go away after a few hours but it didn't so I:

  • installed BB server 1.9.8: no change
  • deleted Android app and reinstalled: this actually made things worse since now I cannot reconnect for long enough to download the messages. After tapping on the Firebase project and entering my server pw, I immediately get the popup "Failed To Connect! Please make sure you are connected to the internet and your server is online!"
  • tried BB web app: it starts to download messages (I can see the logs) but then I get the "Failed To Connect!" after a few seconds.

Any ideas what might be going on? Could my ISP be messing things up with the server? Thanks, all help is much appreciated.

brettlandau avatar Aug 23 '24 04:08 brettlandau

Exactly the same issue need help. Since yesterday so annoying.

HenryTheX avatar Aug 23 '24 09:08 HenryTheX

I was having the same issue, and I think it's related to Cloudflare. I also deleted the app and was getting the same connection error when trying to set it back up.

I took a few minutes and set the server up using port forwarding and the dynamic DNS option just for trial purposes, and I seem to be back up and running as usual again.

DaSnof avatar Aug 23 '24 11:08 DaSnof

Also started happening to me in the last day. But it still actually works. It just annoyingly keeps giving this notification.

alexpaluzzi avatar Aug 23 '24 14:08 alexpaluzzi

I wish I hadn’t deleted the app 😅

Interesting to see I’m not the only one having this issue. I can collect logs if it’s helpful.

brettlandau avatar Aug 23 '24 14:08 brettlandau

I agree, wish I hadn't deleted what I deleted. Removed and reinstalled BlueBubbles. Rebuilt Cloudflare over and over. Tried different email addresses and reinstalled BlueBubbles over and over and nothing changed. Also tried 2 user accounts on MAC, and that was worse.

No errors in my BlueBubbles logs. Everything looks good. Just can't connect any client to it. Not Pixel, not any desktop version. Nothing is working and kinda freaking out.

Now I'm getting this "failed to connect" message. Found people saying to turn Wi-Fi on and off, but that hasn't helped. Screenshot_20240823-113358

Any help is appreciated!!

JeffreyGECH avatar Aug 23 '24 15:08 JeffreyGECH

Everyone, please switch your server proxy to Zrok or set up a self-hosted solution like Tailscale. Zrok setup is extremely easy:

go to the mac you use as a server
open bluebubbles server app
go to settings
under Connection Settings, Proxy Setup, select "Zrok (Beta)" from the drop down
follow on-screen instructions which are:
type in email, press button
go to your email, click link
choose password
log in
go to "Detail" tab on the Zrok web interface
click the eye to show your token
copy token
paste into bluebubbles server where it says to
click the equivalent of the "ok" button in bluebubbles server 

Your server should now show a zrok URL and your client should pick that up.

tneotia avatar Aug 23 '24 16:08 tneotia

@tneotia I had recommended to Zach that we switch to Zrok by default. Cloudflare tunnels by default both changes a lot and also can be easily deprioritized not to mention that you cannot send large videos. What are your thoughts on making that change

cameronaaron avatar Aug 23 '24 22:08 cameronaaron

Everyone, please switch your server proxy to Zrok or set up a self-hosted solution like Tailscale. Zrok setup is extremely easy:

go to the mac you use as a server
open bluebubbles server app
go to settings
under Connection Settings, Proxy Setup, select "Zrok (Beta)" from the drop down
follow on-screen instructions which are:
type in email, press button
go to your email, click link
choose password
log in
go to "Detail" tab on the Zrok web interface
click the eye to show your token
copy token
paste into bluebubbles server where it says to
click the equivalent of the "ok" button in bluebubbles server 

Your server should now show a zrok URL and your client should pick that up.

This seemed to work for a bit but during syncing it disconnected. Do you know if this still works?

IceBlueLugia avatar Feb 15 '25 00:02 IceBlueLugia