I gave this a try in the demo instance and I could upload a large file as well. @Mastadamus Can you check if you are able to reproduce this in our demo instance at https://my.demo.cloudron.io (username: cloudron password: cloudron). There's a bunch of large sample files that you can upload from this site - https://www.quinticsports.com/sample-videos/ . This will help us figure if this is related to browser or your network or your server etc.
Also, the error inside rocket.chat usually says the exact number like " File exceeds allowed size of 1 B. [error-file-too-large] ". Does it say 100MB in that error for you? That would mean the File Upload size setting did not get saved for some reason.
[image: 1618421352939-21537c50-4cb1-4911-94c4-f16aac44b35e-image.png]
@blaise ah ok, but yes I can see the same error message as such, but after revisiting the channel it seems to work fine. If that is what you mean, then this is very much an upstream bug.
I did a quick search in their issue tracker, but couldn't find anything specific yet.
@blaise It heavily depends on the usage. 1.000 members without any interaction? 200 concurrent uses?
Good news is: you can easily restore your whole Cloudron or a single app on a "bigger" instance. (just in case your vps provider can't do an upgrade of your vps).
So the advice is: start with a smaller instance and throw some more cpu&ram on it in a later state with knowledge about the load.
Their bot didn't like whatever format I tried posting the issue on GitHub so after a 2nd attempt got auto-closed I just emailed their Zendesk. No clue why an open-source project would use Zendesk though
@derin Is the rocket.chat hosted on Cloudron as well? If so you have to set the CSP headers on the chat app to allow embedding - see https://docs.cloudron.io/apps/#custom-csp
@potemkin_ai It seems to appear fine in our chat instance atleast. I get a preview of the pdf as well. Do you see anything in the app logs?
[image: 1610942873760-5df3896b-d0dc-49ae-9189-acd146af7d3f-image.png]
Might be worthwhile testing with different pdfs as well. Maybe some specific pdfs have issue.
OK, this got sorted out. There is a domain allow list set inside Rocket.Chat. There was confusion on where a user's email address comes from. It comes from the Users view and not from the Email view. The email view is used only by the mail server.
@privsec It seems if you send the request id to rocket.chat support, they can help you out . See https://github.com/RocketChat/Rocket.Chat/issues/19396#issuecomment-728653283 (Also, saw this same message on their forum - https://forums.rocket.chat/t/i-cant-connect-to-rocket-chat-cloud/9589).
@robw @alex-adestech An update on this.
Crux of the issue is that the indices name generated are too long. @alex-adestech pointed out to me that this issue only sorted out in MongoDB 4.4 and not even MongoDB 4.2. Searching through the rocket.chat issue tracker I saw only person hit this and nobody replied. Search further, I found that Rocket.Chat doesn't even support MongoDB 4.2. The releases page mentions the versions they test with - https://github.com/RocketChat/Rocket.Chat/releases. This got me wondering why we hit this issue. Well, the answer it turns out is that Cloudron generates 32 byte mongodb database names for apps. This in turn ends up affecting the length of the index.
I have made a fix now for Cloudron 5.6 that generates shorter names. (We have had to do something similar for apps using MySQL as well in the past).