Skip to content
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

Users often disconnected #1622

Closed
VoidAndAny opened this issue Dec 10, 2015 · 15 comments
Closed

Users often disconnected #1622

VoidAndAny opened this issue Dec 10, 2015 · 15 comments

Comments

@VoidAndAny
Copy link

I installed Rocket.chat in our LAN on a Ubuntu 14.04 LXC container, Rocket Chat is available from WAN through a NGINX reverse proxy which handle SSL.
We use Rocket.chat from website and Mac OS app depending of users.
We are 16 users max and we are often disconnected from rocket.chat
When Rocket chat is accessed through web UI we can see 502 errors.

The server which host LXC container is not specially busy (0,5 / 1 of load average, 4GB of free RAM)
Can we check something ?
Can Rocket Chat installation be optimized ? (hidden parameter somewhere, network configuration, I don't know)

Thanks a lot.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@engelgabriel
Copy link
Member

please share the json response of you /api/info ?

@VoidAndAny
Copy link
Author

Sorry, but how to do that ?
Just adding /api/info to my Rocket Chat URL ?

The GET info call return HTML (Firebug console) containing this (excerpt) :

<script type="text/javascript">__meteor_runtime_config__ = JSON.parse(decodeURIComponent("%7B%22meteorRelease
%22%3A%22METEOR%401.2.1%22%2C%22PUBLIC_SETTINGS%22%3A%7B%7D%2C%22ROOT_URL%22%3A%22https%3A%2F%2Fclavardage
.mydomain.fr%22%2C%22ROOT_URL_PATH_PREFIX%22%3A%22%22%2C%22accountsConfigCalled%22%3Atrue%2C%22autoupdateVersion
%22%3A%22843422b651782a9716d1921b531f5f836b2c545a%22%2C%22autoupdateVersionRefreshable%22%3A%222f807f4ce334e8677812d8305d36ef60862e5303
%22%2C%22autoupdateVersionCordova%22%3A%2217390d8b0708758f2a0806fac5cffc0450fa891a%22%7D"));</script
>

Is it what you need ?

@engelgabriel
Copy link
Member

This must be a very old version :)

@engelgabriel
Copy link
Member

Should be something like: https://demo.rocket.chat/api/info

{
  "version": "0.8.0",
  "compile": {
    "date": "2015-12-10T13:56:44.030Z",
    "nodeVersion": "v0.10.40",
    "arch": "x64",
    "platform": "linux",
    "osRelease": "3.13.0-52-generic",
    "totalMemmory": 8373084160,
    "freeMemmory": 241123328,
    "cpus": 4
  },
  "commit": {
    "hash": "c3cfb051e8e8fabe4449ed4505dfc8f169813159",
    "date": "Thu Dec 10 11:42:51 2015 -0200",
    "author": "Marcelo Schmidt",
    "subject": "Fixes issue #1619 persistent custom oauth."
  },
  "tag": "v0.8.0",
  "branch": "develop"
}

@VoidAndAny
Copy link
Author

Argh
I installed Rocket chat the 25/11/2015, using this instruction https://github.com/RocketChat/Rocket.Chat/wiki/Deploy-Rocket.Chat-without-docker (before they change).
So I download Rocket Chat with URL : https://github.com/RocketChat/Rocket.Chat/archive/master.tar.gz

I will try to update my installation.

@VoidAndAny
Copy link
Author

Update done (develop version), here is the json :

{
  "version": "0.8.0",
  "compile": {
    "date": "2015-12-10T21:15:22.554Z",
    "nodeVersion": "v0.10.40",
    "arch": "x64",
    "platform": "linux",
    "osRelease": "3.13.0-63-generic",
    "totalMemmory": 7844462592,
    "freeMemmory": 5086568448,
    "cpus": 2
  },
  "travis": {
    "buildNumber": "2579",
    "branch": "develop",
    "tag": ""
  },
  "commit": {
    "hash": "3bb885ae17dc6d02b5c4c005c0e23e271660ff89",
    "date": "Thu Dec 10 19:04:12 2015 -0200",
    "author": "Gabriel Engel",
    "subject": "Merge pull request #1626 from fduraibi/patch-10"
  },
  "tag": "v0.8.0",
  "branch": "HEAD"
}

Apparently, I still have disconnection (3 since the update)

@Againstreality
Copy link

same here. version is the same

@marceloschmidt
Copy link
Member

Is your instance running as a Replica Set? Does anything show up on developer console when users are disconnected? Is your server on a public accessible URL we could join to test also? Thanks.

@VoidAndAny
Copy link
Author

No it isn't possible our Rocket chat instance is connected on our company LDAP...
By the way since the update, it seems that the connection is really really more stable.

Only thing I often have the Rocket "gif" over the channel, what does it mean ?

@VoidAndAny
Copy link
Author

One more thing, it seems disconnection occurs always just after file upload.

@engelgabriel
Copy link
Member

Thanks for the info @VoidAndAny , this helps.

@tpetrosy
Copy link

Is this case related with this one ? #1491

@engelgabriel
Copy link
Member

I dont think so @tpetrosy

I seems to be a "flood" of requests to the DB and its OpLog after upload... the first thing to test this hypothesis would be to move the file storage to the filesystem or S3.

We will do that soon.

@engelgabriel
Copy link
Member

This depends on #369

@engelgabriel engelgabriel mentioned this issue Feb 16, 2016
4 tasks
@engelgabriel engelgabriel added this to the 0.40.0 milestone Sep 14, 2016
@engelgabriel
Copy link
Member

Fixed by 1e83b4d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants