Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Rocketchat not loading in browser

Open andrew-thought opened this issue 2 years ago • 5 comments

Description:

Rocketchat is not loading in browser, remains on 3 white dots

Steps to reproduce:

  1. Put in server URL

Expected behavior:

Rocketchat should load login screen

Actual behavior:

Stays on white background with 3 white dots

Server Setup Information:

  • Version of Rocket.Chat Server: 6.5.0
  • Operating System: Ubuntu 18.04
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version: Firefox 115.5/Chrome/Brave
  • Operating System: Debian 12

Additional context

I've changed the SITE URL to the correct value https://chat.xxxx.xxxx Seems to constantly reset to http:/localhost:3000 I am using Apache reverse proxy When i set to https://chat.xxxx.xxxx, still encounter the problem. Works on Android rocketchat app (chat only, admin gets 3 dots) Tried clearing cache and performing various suggestions found about this bug, nothing worked.

Relevant logs:

Firefox debug output Uncaught ReferenceError: meteor_runtime_config is not defined https://chat.xxxx.xxxx/1519e0159bfa893f84a8840a684f71abb3b48133.js?meteor_js_resource=true:1 https://chat.xxxx.xxxx1519e0159bfa893f84a8840a684f71abb3b48133.js?meteor_js_resource=true:1 https://chat.xxxx.xxxx/1519e0159bfa893f84a8840a684f71abb3b48133.js?meteor_js_resource=true:1

Brave debug output Uncaught ReferenceError: meteor_runtime_config is not defined at client_environment.js:1:1 at client_environment.js:78:1 at url_common.js:80:1

andrew-thought avatar Dec 19 '23 16:12 andrew-thought

Same issue...

GMinney avatar Dec 19 '23 23:12 GMinney

@debdutdeb any thought?

hugocostadev avatar Dec 22 '23 17:12 hugocostadev

image

我安装完,访问,就一直卡在这里,无语,ip访问,怎么请求还会localhost:3000

yeshili avatar Dec 26 '23 06:12 yeshili

赶紧换其他的吧 这么多版本都试了 也不行 Snipaste_2023-12-27_13-18-32

WLJ0314 avatar Dec 27 '23 05:12 WLJ0314

So no one cared to reply on this?

This is the issue with Workspace assignment which gets connected to siteurl which was the same issue when images were not displaying as the url with change to :3000 and now in the new version when I change URl to just domain name with port number then this error starts appearing.

I have siteurl set to http://127.0.0.1:3000 cause I need this for nginx reverse proxy as caddy would keep comflicting with nginx on port 80.

with this setting the service is accessible but it defaults to domain.com:3000 but keeps throwing this error everytime admin logs in

image

If I do configuration update then I end up facing the loading error on browser while it works on android.

This issue have been there since ages, this is a direct connection from reverse proxy and SITE URL.

image

If I change this to https://chat.domain.com and reload the page then it will start the loading error.

I see the js file locations are hardcoded somewhat ? Error when reloading.

Uncaught ReferenceError: __meteor_runtime_config__ is not defined
    <anonymous> client_environment.js:1
    <anonymous> client_environment.js:78
    <anonymous> url_common.js:80
[client_environment.js:1](meteor://%F0%9F%92%BBapp/packages/meteor/client_environment.js)
    <anonymous> client_environment.js:1
    <anonymous> client_environment.js:78
    <anonymous> url_common.js:80
Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Restarting rocketchat server resolved loading issue but resets the site url to 127.0.0.1:3000 where we have media not loading inside chats.

f-9t9it avatar Aug 28 '24 10:08 f-9t9it

This have become a big problem now.

Now the images are not loading nor the quote url inside the chat.

Looks like snap needs caddy to operate as I have removed caddy and trying to use nginx directly and all these issues are coming up.

f-9t9it avatar Sep 23 '24 13:09 f-9t9it