-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Element shows fatal misconfigured error when default homeserver can't be reached #11154
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Are you logged in? |
No. Just tried again, and it only shows the error when logged out. Works fine when logged in. |
That's currently expected behaviour :( |
:( |
@turt2live How complex would it be to change this case to be a inline warning in the auth flow instead of blocking the app like this? Blocking the entire app for what might be temporary network failure out of the user's control seems too strong here. |
Not difficult but does have side effects such as us having a default server again and the config being untested. We could also retry, or put a continue anyways button on it. |
I know this issue seems like a minor one since most anyone using matrix will be in an internet-connect environment, but my employer uses matrix/riot on a completely closed network, which means that this bug causes any new employees to be unable to use riot at all. Is there a workaround for this? |
Change the default homeserver via config.json |
and rebuild a custom riot-desktop for every release that comes out? Sorry, I guess I should've mentioned that this is more of an issue with the (harder to customize) desktop build. |
Or ship a config.json via GPO? https://github.com/vector-im/riot-desktop#user-specified-configjson |
That'll work, thank you! |
Can I have confirmation that this is definitely a dupe of #15386 please?
Thanks! Tim. |
Yup sounds like it. |
I'm seeing this error as well. Tried adding a How am I supposed to log in when I see this error? |
@rc0r what exactly did you put into that |
Here's my $ cat ~/.config/Element/config.json
{
"update_base_url": "https://packages.riot.im/desktop/update/",
"default_server_name": "matrix.org",
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"hosting_signup_link": "https://element.io/matrix-services?utm_source=element-web&utm_medium=web",
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"roomDirectory": {
"servers": [
"matrix.org"
]
},
"showLabsSettings": false,
"piwik": {
"url": "https://piwik.riot.im/",
"siteId": 1,
"policyUrl": "https://element.io/cookie-policy"
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"terms_and_conditions_links": [
{
"url": "https://element.io/privacy",
"text": "Privacy Policy"
},
{
"url": "https://element.io/cookie-policy",
"text": "Cookie Policy"
}
]
} And $ element-desktop
/home/rc0r/.config/Element exists: yes
/home/rc0r/.config/Riot exists: no
(electron:1779): Gtk-WARNING **: 17:03:13.351: Theme parsing error: gtk.css:2:33: Failed to import: Fehler beim Öffnen der Datei »/home/rc0r/.config/gtk-3.0/window_decorations.css«: Datei oder Verzeichnis nicht gefunden
Gtk-Message: 17:03:13.397: Failed to load module "appmenu-gtk-module"
Starting auto update with base URL: https://packages.riot.im/desktop/update/
Auto update not supported on this platform
|
You are still trying to connect to matrix.org - so if its unavailable to then the app will refuse to start. |
@t3chguy Thanks for your help. It was a proxy issue on my side. |
@t3chguy Can you provide a full config.json to those like me who simply host a server on a local network without internet connection? Tried I just want a nice local IM service is all. |
https://github.com/vector-im/element-web/blob/develop/docs/config.md |
@t3chguy I understand this decision is to protect fresh user from 3rd part untrusted homeserver. But letting user know that matrix.org is unreachable is enough, making app completely not work doesn't make any sense. As far as I see, it would be a good idea to give the user chance to let them specify homeserver when matrix.org is unreachable. |
@evan0greenup see #11655 (comment) for the plan |
I just installed Element-Desktop, however I am n a network that blocks matrix.org - Because of this, I am getting the screen shown in the OP which is making it impossible to sign into my own homeserver which is approved on this network. This seems like a major oversight, a client application should not fail fatally if the default option is not available and should instead tell me that that server is unavailable and give me the option to input my own. |
i think it would be a great improvement if, upon a failure here, the client would simply ask for a custom homeserver instead. maybe even with matrix.org prefilled. |
I encounter this on fresh windows installs. Is there a workaround for this yet? |
This is not an uncommon issue. In China, the GFW (Great Firewall) blocks matrix.org, while there still exists many homeservers that are easily to connect from China. However, as Element shows the misconfigured page when it is unable to connect to matrix.org, common Chinese users cannot enter the login page and switch to other available homeservers, which makes it difficult to introduce Element (and matrix) to Chinese users because they cannot use it directly. |
But there are users who cannot access the matrix.org server. Also, for decentralisation reasons, Element should rely on a (specific one) server, while there are lots of server offering matrix service and should enable users to use it without matrix.org. So matrix.org won't be able to stop users from using Element. |
Then add an option to easily set another homeserver, and do anything on that server instead of matrix.org. Relying on matrix.org should be erased because it (relying) is not decentralised. |
I agree with @cxzlw. This is not an uncommon issue. This is a blocking issue that prevent all element products(web, android, everything) from being used by users from areas with heavy internet censorship. In those areas, users mainly rely on private non-blocked instances where the element products just errored out and stuck when matrix.org is blocked without letting user to configure their instance in the next step. Other clients like fluffychat does not have this issue and limit. |
Although we can bypass the verification by editting the config, or even deploy a modded Element like what @askender has done, most people dont know how or dont want to do this. Those common people that cannot access matrix.org easily and legally have to use a third-party modded Element application (assume they dont want to learn config editting. You know, they want to use a out-of-the-box client. ). But using third-party Element instance (or modded Element application) is dangerous because they (common people) cannot determine if there is any malicious code such as account recorder or chat recorder. It is irresponsible to force those pitful people to use Element at that risk. We should provide the method to bypass the verification in a simple, reliable and official way. |
My friend is in China and he knows nothing about those config-editing stuff, and it's IMPOSSIBLE for me to explain how to do it. This behaviour makes matrix.org the CENTRALISED SERVER WHICH ENABLES USERS TO USE THE OTHER SERVERS. Thus, it is REALLY against the philosophy of Matrix protocol. |
This comment was marked as spam.
This comment was marked as spam.
This issue is still in the "Open" state, i.e. it has not been given the status of invalid/won't-fix etc. it is merely unfinished. There are many demands placed on the time of the Matrix developers (both those who are paid for their work, and those who are not). Whilst I appreciate that this situation is frustrating, since Element is open source, you do of course have the option of contributing a fix to this issue yourself and/or sponsoring someone else to do-so. |
As linked before - there is a plan - just not enough people to action it right now #11655 (comment) Contributions welcome. |
This is fixed by #25682 |
Element shows fatal misconfigured error when default homeserver can't be reached.
Potential solution
See #11655 (comment)
The text was updated successfully, but these errors were encountered: