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

0.74.1 crashloop when uploading big file to channel (70MB) #13355

Open
himpierre opened this issue Feb 5, 2019 · 8 comments
Open

0.74.1 crashloop when uploading big file to channel (70MB) #13355

himpierre opened this issue Feb 5, 2019 · 8 comments

Comments

@himpierre
Copy link

Description:

I was trying to upload a mp4 to a channel. During that process Rocketchat crashloops. It does not recover even after a restart of rocketchat. Had to restore from backup. Error message:

<--- Last few GCs --->

[23045:0x559902607170]    45650 ms: Mark-sweep 882.2 (969.4) -> 882.2 (969.4) MB, 260.7 / 0.0 ms  allocation failure GC in old
 space requested
[23045:0x559902607170]    45938 ms: Mark-sweep 882.2 (969.4) -> 882.2 (919.4) MB, 287.2 / 0.0 ms  last resort GC in old space 
requested
[23045:0x559902607170]    46229 ms: Mark-sweep 882.2 (919.4) -> 882.2 (912.9) MB, 290.8 / 0.0 ms  last resort GC in old space 
requested


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x3e0a51da1769 <JSObject>
    1: /* anonymous */ [/opt/rocketchat-0.74.1/programs/server/packages/base64.js:~61] [pc=0x7f1cd34163e](this=0xaef9b40c2e9 <
JSGlobal Object>,elm=49,i=56406920)
    2: arguments adaptor frame: 3->2
    3: forEach(this=0xca90225e9b9 <Uint8Array map = 0x25db677831d1>)
    4: encode [/opt/rocketchat-0.74.1/programs/server/packages/base64.js:61] [bytecode=0x3817bee5dc51 offset=144](this=0x1d966
1aa2...

Steps to reproduce:

  1. Upload a big file (70MB+) to a channel
  2. Rocketchat crashes
  3. Rocketchat restart does not help

Expected behavior:

Upload succeeds or a info message appears (file to big or somethin)

Actual behavior:

Rocketchat crashloops.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.74.1
  • Operating System: Linux
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: no
  • NodeJS Version: 8.15.0
  • MongoDB Version: 3.6.10
@reetp
Copy link

reetp commented Feb 5, 2019

Server spec, particularly RAM?

@himpierre
Copy link
Author

himpierre commented Feb 5, 2019

Rocketchat runs on a virtual machine with 4GB of RAM. It does not seem the VM was running out of RAM. Is that what the error message says?

thanks and cheers
t.

@moonwolf-github
Copy link

Looks similar (related maybe?) to my #13191.

@himpierre
Copy link
Author

Yes it does. WebDAV integrations is enabled on my installation but not used in this case. I just hit the + and "Computer" to upload the file.

@reetp
Copy link

reetp commented Feb 5, 2019

Rocketchat runs on a virtual machine with 4GB of RAM. It does not seem the VM was running out of RAM. Is that what the error message says?

No it doesn't, but from experience it is always worth checking the basics. I've seen a lot of people running into this sort of issue with 'unable to upload large file' due to the use of underspecced VMs. Just trying to differentiate your issue from others.

Also note the recommended version of node is currently like 8.11.4 though again it is unlikely to make much difference in this instance. Just going through the basics again. Check the release notes to see.

https://github.com/RocketChat/Rocket.Chat/releases

@himpierre
Copy link
Author

Should i try to upload that file to https://open.rocket.chat?

@reetp
Copy link

reetp commented Feb 5, 2019

They may have file limits on there.

See if a dev comes back to you here first.

@himpierre
Copy link
Author

It seems my bug is somewhat connected to the webdav setting. After I disabled webdav integration i'm able to upload that 70MB file.

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

No branches or pull requests

3 participants