Rocket.chat.electron: New v3 version doesn't connect with a valid server

Created on 30 Sep 2020  Â·  54Comments  Â·  Source: RocketChat/Rocket.Chat.Electron

My Setup

  • Operating System: macOS Catalina v10.15.6
  • App Version: 3.0.0
  • Server version: 2.4.11
  • Installation type: brew but update by inapp update system

  • [x] I have tested with the latest version
  • [x] I can simulate the issue easily

Description


After update to latest version get No valid server found at the URL

Current Behavior

Can't connect to working server (I'm connected on browser)

Expected Behavior

Connect properly to server like on mobile apps and browser.

new server page bug

Most helpful comment

Reverting to v2.17.11 and works fine.

All 54 comments

Same here
Operating System: Windows 10.1909
App Version: 3.0.0
Server version: 2.4.9
Installation type: exe from releases

Reverting to v2.17.11 and works fine.

Reverting to v2.17.11 and works fine.

Same here. And my manager on a Mac.

Same here

Operating System: Windows 10 Version: 2004
App Version: 3.0.0
Server version: 3.6.3
Installation type: exe from releases over version 2.17.11

Same thing here.

Operating System: Windows 10
App Version: 3.0.0
Server version: 2.4.9
Installation type: exe from releases over version 2.17.11

Confirm that issue!
Fixed that by creating valid c:\Program Files\Rocket.Chat\resources\servers.json file with my server in it

Same here

Operating System: macOS Catalina v10.15.6
App Version: 3.0.0
Server version: 2.4.11

Desktop app 3.0 pushed the compatibility to Rocket.Chat servers at the version 3.x, rejecting 2.x servers; it's probably a mistake. @AmatorPhasma Could you please double check your conditions?

Desktop app 3.0 pushed the compatibility to Rocket.Chat servers at the version 3.x, rejecting 2.x servers; it's probably a mistake. @AmatorPhasma Could you please double check your conditions?

I'm on 3.6.3 now and experiencing that bug.
I can workaround this issue only creating servers.json file with same server address which shows invalid on add server window.

@tassoevan
Yes, that server version is correct 3.6.3, but it only appears if my users don't write the protocol in front of the domain:

EDIT:
http is redirect with return 301 https://$host$request_uri;

Same problem here: After upgrading the client on both my Windows and Debian mashine, I can no longer connect. Server version is 3.6.3.
I have tried with and without protocol.
I don't even see entries in the nginx log on the server.

Same here. Removing the trailing slash or using http works though.

Can confirm with a manually created servers.json placed in

/Applications/Rocket.Chat.app/Contents/Resources/

it works again
macOS Big Sur Beta 9

for more Info and Syntax of servers.json -> Here

Thank you @AkimoA I've had to use a different path but creating a servers.json file with my company server URL did the job.

I've had to create it here on my version of macOS Catalina 10.15.7 :
/Applications/Rocket.Chat.app/Contents/Resources/servers.json

Adding a space after slash is workaround ( https://rocket.server.url/_ )

FYI: Both workarounds (trailing slash and/or space & servers-file) did not work for me. Reverted to 2.17

(macos 10.15.6)

u must have done something wrong then , servers.jsonworkaround works here on 10.14.x, 10.15.x, and macOS 11

FYI: Both workarounds (trailing slash and/or space & servers-file) did not work for me. Reverted to 2.17

(macos 10.15.6)

In my case I first put url without https:// and clicked connect and when app corrected the url with https and tell me that url is wrong, I added a space.
But I will also revert to 2.17 - version 3 is quite buggy at the moment - I noticed also problems with graphics, moreover app asks server's address every start, it hung twice on my computer... I thing this app should be in alpha or beta stage because of to these bugs.

u must have done something wrong then , servers.jsonworkaround works here on 10.14.x, 10.15.x, and macOS 11

you're right. my bad.

Same here, can't access my server (using specific Port) like: https://sub.domain.com:4444
Server in v3.6.3

But what if I don't have/find this servers.json ? What's the content on it ?
My client is installed (win10) on %appadata%\Rocket.Chat\ (and no "resources" folder there)

@Nono-m0le Did you consult this? I didn't at first, and because of that I wasted everybodies time :)

https://github.com/RocketChat/Rocket.Chat.Electron#default-servers

@Nono-m0le Did you consult this? I didn't at first, and because of that I wasted everybodies time :)

https://github.com/RocketChat/Rocket.Chat.Electron#default-servers

Which mean I need to create the folder too?

Not on MacOS, that's for sure. Don't know about Windows though. Maybe someone else in this thread?

Thanks @plmorpheus, I've found that the app fixes the typed URL but still uses it to check the server version - what obviously fails because there is no protocol in the URL.

To downgrade on ubuntu following the suggestion from @lucianomlima :

sudo snap refresh rocketchat-desktop --edge

Desktop app 3.0 pushed the compatibility to Rocket.Chat servers at the version 3.x, rejecting 2.x servers; it's probably a mistake. @AmatorPhasma Could you please double check your conditions?

Is rejection of 2.x servers an intended change? I didn't see this in the release notes for this build.

Thanks for addressing the issue, hoping it will be pushed as a hotfix soon!

server v. 2.2.0 still same problem with v. 3.0.1 client

confirmed also on macOS

when entering server address in 3.0.1 it duplicates https://

workaround from yesterday still works

It's not fixed yet really, @tassoevan
image
That URL works perfect in Web version
RC Server version is 3.6.3
Paid Wildcard certificate

Hi,

I found a wordaround which works for me:

Add the server Url into the config.json located in c:\windows\users\user\AppData\Roaming\Rocket.Chat like this:

{
"__internal__": {
"migrations": {
"version": "3.0.1"
}
},
"currentServerUrl": "https://yourserver.com/",
"doCheckForUpdatesOnStartup": true,
"isMenuBarEnabled": true,
"isShowWindowOnUnreadChangedEnabled": false,
"isSideBarEnabled": true,
"isTrayIconEnabled": true,
"rootWindowState": {
"focused": false,
"visible": false,
"maximized": false,
"minimized": false,
"fullscreen": false,
"normal": true,
"bounds": {
"x": 460,
"y": 240,
"width": 994,
"height": 594
}
}

Add it in our config made the authentification pass with success. Hopes it will help and still look for the client or server hotfix.

Confirm bug in 3.0.1 from Ubuntu snap package

@UnnamedHero you can install 3.0.2 from latest/edge, works fine for me

Confirm bug in 3.0.2 for https URL.
Fix by add file servers.json

The servers.json fix does not work on snap installed instances because the snap is installed in a readonly FS and cannot be adjusted.

The servers.json fix does not work on snap installed instances because the snap is installed in a readonly FS and cannot be adjusted.

the servers.json file is intended to be added on client side, not on server, it works on our RC installed on snap/ubuntu

Yes it's the client I'm talking about ;-) I'm unsure if I understand you correctly - is the RC on snap workaround something that "end users" can reproduce or are you talking about a staging version in a development setup?

No problem :) we are using a Rocket Chat server in production environment, the server is a snap in Ubuntu. Onto clients, we add the servers.json to avoid server authentification process and it works fine, tried on w7 and w10. Hopes my english is clear, thanks RC team for support

Ludovic VAUDOIS
Responsable informatique
ESAD de Reims

tél. : 03.26.89.42.76

www.esad-reims.fr
----- Mail original -----

De: "Sandro Kalbermatter" notifications@github.com
À: "RocketChat/Rocket.Chat.Electron" Rocket.Chat.Electron@noreply.github.com
Cc: "LudovicVaudois" lvaudois@esaddereims.fr, "Comment" comment@noreply.github.com
Envoyé: Lundi 5 Octobre 2020 12:25:20
Objet : Re: [RocketChat/Rocket.Chat.Electron] New v3 version doesn't connect with a valid server (#1743)

Yes it's the client I'm talking about ;-) I'm unsure if I understand you correctly - is the RC on snap workaround something that "end users" can reproduce or are you talking about a staging version in a development setup?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub , or unsubscribe .

same problem here
How can this bug go public 😥

We can fix issues by downgrading client version to 2.17.11

@lucianomlima Thank you

https://github.com/RocketChat/Rocket.Chat.Electron/issues/1743#issuecomment-701660331

We can fix issues by downgrading client version to 2.17.11

@lucianomlima Thank you

#1743 (comment)

I agree. The best solution at this moment is to remain at 2.17.xx version when you have production environment. I think that v3 will be soon patched but until then it shoul be used only for testing purposes.

Follow-up: here I'm using v3.0.2 without issues.

Same problem here. Tried server 3.6.0 and even upgraded to 3.7.0, can't connect. Using same URL via web browser works fine.

image

Using client 3.0.2 on Windows 10 Pro 2004

As I know, all that problems will be resolved in 3.0.3

Hosed here on 3.0.2.

Made a C:\Users\cubeMaster\AppData\Roaming\Rocket.Chatservers.json file per https://github.com/RocketChat/Rocket.Chat.Electron#default-servers and that fixed me.

It's not fixed yet really, @tassoevan
image
That URL works perfect in Web version
RC Server version is 3.6.3
Paid Wildcard certificate

Problem with my server completely fixed in 3.0.3 version

All that is not working for me on Mac Catalina

All that is not working for me on Mac Catalina

it doesnt really hurt if you explain a bit more in depth what your problem is and how u went about it to fix it

did you create a servers.json did you put it in the right place ?

Sorry, I wrote my comment in haste. It's working now. Was my mistake. I made a servers.js instead of servers.json file.

I copied the server.json file into this folder:
/Applications/Rocket.Chat.app/Contents/Resources/

_Maybe it will help someone:_

If you are snap in Ubuntu 18.04 LTS you have to copy file into snap

for example
snap/rocketchat-desktop/210/.config/Rocket.Chat/

In my case, I have to uninstall and install rocketChat

I have similar issues:
Rocket-Chat-Server / nginx (both on raspberry pi) with self-signed CA and certificates

  • iphone: Browser and App: HTTPS -> No Problem
  • Desktop: Linux Mint 19.1 Tessa: Browser: HTTPS -> No problem
  • Desktop: Linux Mint 19.1 Tessa: App / snap version 3.0.1 -> No valid Server
  • Desktop: Linux Mint 19.1 Tessa: App / deb version 3.0.4 -> ERR_CERT_AUTHORITY_INVALID -> Popup "Trust anyway" -> clicking "yes" -> error no valid server

@zenhighzer Could you create a new issue describing the ERR_CERT_AUTHORITY_INVALID in more detail, please?

Still encounter the same "No valid server found at the URL" issue with:
Client version: 3.0.3 on Mac BigSur 11.1
Server version 1.3.2 (cannot upgrade due to https://github.com/RocketChat/Rocket.Chat.Embedded.armhf

Manually creating server.json file under /Applications/Rocket.Chat.app/Contents/Resources/servers.json bypasses the issue, but is it possible to update the client side on Mac Desktop to not have the check?

Since the bug still have not been fixed, here is a workaround for ubuntu/snap version of RocketChat:

Edit file /home/<username>/snap/rocketchat-desktop/current/.config/Rocket.Chat/config.json
The servers key will probably be an empty array looking like this:

{
    ...
    "servers": [],
    ...
}

Replace it with following code (Make sure to replace rocketchat.example.com in my code with the url to your rocketchat instance):

    "servers": [
        {
            "url": "https://rocketchat.example.com/",
            "title": "Rocket.Chat - https://rocketchat.example.com/",
            "lastPath": "https://rocketchat.example.com/channel/general",
            "badge": 141,
            "style": {
                "background": "rgb(47, 52, 61) none repeat scroll 0% 0% / auto padding-box border-box",
                "color": "rgb(158, 162, 168)"
            },
            "favicon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAOtUlEQVR4Xu1dCXAUVRr+/p6BBCKERcIhJCTdPYkHgpaopSsq3uuJlKIlpW7JikdpyZaoi3jrUuutyKqIVykoKwpoAM+SuCKriJxyZKbfJIQoEETMAeSafluvDTEhM91vTjph/qqpCeR///+9/8vrd/3vNSEtrooAuQpNGgzShLjsjyBNSJoQl0XAZXDSLSRNiMsi4DI4MbWQiqKiIxpCoTxPKGQqXm9ts2nWeUKh2vzy8loCQi6rY6eC40iI3+c7WTHNczhwDoC8lo/XppZ+DvwAYLWH8w2NprnxqPLy8k4VlYMItgMh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oge8xnG/1Lp162+WgkJqOqDIJK+EjsBFRLL+DN8hhHbWeMEAHCjiVZCDE07iwPiApPrkghULDcsJGABJ1qYrOWHJOJPuukOfYh4aUuzolxGv7/K+8+JQMCBZUS0wCRaWBQIxL4nmggwLrdhOzFkqipS2k8wiU4Q3wDyWj5e23pxvgaKUgLTXOnhfKVaVmZ/mYjLg5RKeI5LJ+HAVBQVHdEQCglyOlxulVlfvy63sjL+2WEqo+AiXzER4iL8XQ5KmhCXUZomJE2IyyLgMjjpFpImxGURcBmcdAtxGSH/B8P8+bBwIPqQAAAAAElFTkSuQmCC",
            "failed": false,
            "webContentsId": 3
        }
    ],
Was this page helpful?
0 / 5 - 0 ratings