Open Tomasvrba opened 5 years ago
Question: Do your other file uploads work as expected or do they all produce a similar error with no logs?
Update: I saw in your question that regular file uploads work correctly
@Tomasvrba
I use nginx as a reverse proxy and was able to resolve this issue by making sure that I included
client_max_body_size 0;
under the http { section of the ngxin.conf file. It cannot be set to any strict amount, even high amounts in the GBs. Setting it to 0 tells http connections to have no limit, which ensures this error doesn't pop up.
@Tomasvrba
Thanks a bunch. I added that line to the config file and it worked like a charm
@chirospasm Thanks for the tip. We ended up just switching to RC without importing the Slack history and at this point there probably isn't too much of a reason for doing it. I will test out your solution on a new instance though and close this issue since it seems to be working.
Hey, I got the same issue here. Unfortunately I have no access to the nginx.conf-file. So I access RocketChat directly via IP and Port, so the nginx-reverse proxy should have no influence.
But it's still the same, RocketChat throws a timeout (RocketChat-site tries to "connect...") while uploading the zip-file (8MB).
After a while it reconnects, showing all the users but only a the public channels in the import options.
Anyone an idea about that?
Messages says "66120", so it looks like it has parsed all the messages, but not all the channels.
(I have disabled all the rate Limiters)
The import of Slacks "standard"-export (only public channels and users) worked flawlessly, thats why we switched to the plus-plan to use the "coporate"-export (incl. private chats and closed channels). Itwould be a pity if we could not import these files now...
EDIT: Looks like there are 2 independent issues:
super.updateProgress(ProgressStep.PREPARING_CHANNELS)
etc.) should be displayed in the frontend.channels.json
), users (users.json
) and the message-folders (all messages, not only the ones from the channels.json
). I will open a feature request about also processing direct messages (dms.json
), private channels (groups.json
) and multi-user-conversations (mpims.json
) from Slack-coporate-exports.I am having the exact same issue. Running via nginx and body size to unlimited as well as going to the node process by ip and port yields the same error. The export .zip file is 3mb in size and uploading shows the error, after which I am silently returned to the standard slack upload page.
I have exactly the same issue. Setting reverse proxy does not help. Can someone share a detailed workaround?
@pierre-lehnen-rc @sampaiodiego Hello, guys! Can we reopen this issue and investigate some more? We are still getting 413 error "Payload Too Large". Maybe there is some regression happened... Tried import with two archives with sizes 38 MB and 212 MB, got the same 413 error. Meanwhile, uploading these archives to channel works fine, so the problem caused not by client_max_body_size config.
Server Setup Information Version of Rocket.Chat Server: 4.5.2 Operating System: CentOS Linux release 7.9.2009 (Core) Deployment Method: https://www.vultr.com/es/docs/how-to-install-rocket-chat-on-centos-7/ (yum + src) Number of Running Instances: 1 DB Replicaset Oplog: NodeJS Version: v14.0.0 MongoDB Version: 4.2.19 / wiredTiger (oplog Enabled) Proxy: nginx/1.20.1 Firewalls involved: iptables, ACCEPT ALL
as a workaround you can put your Slack backup into the Linux file system (e.g. /home/folder/backup.zip) and then go to Rocket Chat import section and select "Server File Path" (if I recall correctly) as "File Type"
@dudanogueira @frdmn @rodrigok hello! Sorry for disturbing, but maybe you guys can reopen this issue?
Description:
When attempting to import a .zip file with Slack history, an error message always pops up in the upper right hand corner saying ""Failed_To_upload_Import_File". This error does not produce a log entry. Regular file uploads work well.
Steps to reproduce:
Go to 'Administration' > 'Import' > 'Slack' > either 'Choose File' or use a 'File URL' Both options result in the same error.
Expected behavior:
Slack history should be uploaded to the server.
Actual behavior:
An error message always pops up in the upper right hand corner saying ""Failed_To_upload_Import_File".
Screenshot
Server Setup Information:
Additional context
I am evaluating Rocket.Chat to use at our company instead of Slack and running into and issue when trying to import Slack history. I have set up a self-hosted instance of Rocket.Chat on our server which runs Debian Stretch. Both Rocket.Chat and the MongoDB are running in Docker containers and everything is working smoothly. Registration, chat, file uploads (GridFS), encryption, backups, etc
POST method fails with 413 status Payload Too Large when trying to import a slack .zip file. However, the file is less than 1MB and I have successfully tested uploads on 50+MB files.
Relevant logs:
Server does not produce a log entry when the error occurs. Browser produces 413 status Payload Too Large.