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

uploading file progress stuck and cancel button not work any more #10709

Closed
alirezaimi opened this issue May 9, 2018 · 11 comments
Closed

uploading file progress stuck and cancel button not work any more #10709

alirezaimi opened this issue May 9, 2018 · 11 comments

Comments

@alirezaimi
Copy link

Description:

File Upload have some serous problems and stuck in uploading and cancel button not work anymore !
This is some lines for one file with 12MB size :

Server Setup Information:

  • Version of Rocket.Chat Server: 0.63.3
  • Operating System: debian 4.9.0-6-amd64
  • Deployment Method(snap/docker/tar/etc): snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ?
  • Node Version: v4.8.2
  • mongoDB Version: 3.2.11-2+deb9u1

Steps to Reproduce:

  1. upload a file with button or drag & drop in a direct chat or some where else

Expected behavior:

upload file completion !

Actual behavior:

one time upload is complete and another time stuck some where in uploading .

Relevant logs:

May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]:    { name: 'a.rar',
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]:      size: 10904804,
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]:      type: 'application/x-rar-compressed',
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]:      rid: 'gA34WeKZTqA9GbL4G',
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]:      description: '',
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]:      store: 'Uploads' } }
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.0015024570822180757
May 09 11:24:09 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:11 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.0030049141644361513
May 09 11:24:11 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:14 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.004507371246654227
May 09 11:24:14 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:16 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.006009828328872303
May 09 11:24:16 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:18 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.007512285411090378
May 09 11:24:18 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:20 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.009014742493308454
May 09 11:24:20 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:22 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Upload URL: /ufs/FileSystem:Uploads/PBAeR9khNYYPYhMtx?token=98Ba19293a&progress=0.010517199575526529
May 09 11:24:22 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 UploadProxy ➔ debug Correct instance
May 09 11:24:22 sp2lnx1chat rocketchat-server.rocketchat-server[663]: rocketchat_logger rocketchat_logger.js:278 Meteor ➔ method ufsDelete -> userId: XLJPpMqC35jJDWTxR , arguments:  { '0': 'PBAeR9khNYYPYhMtx', '1': 'Uploads', '2': '98Ba19293a' }
May 09 11:24:22 sp2lnx1chat rocketchat-server.rocketchat-server[663]: Error: FileNotFound: no file with id PBAeR9khNYYPYhMtx found
@TwizzyDizzy
Copy link

Hi @alirezaimi

could you please adjust the title of this issue to the one I just linked to? He's got the better headline, but you got the logs ;)

Cheers
Thomas

@alirezaimi
Copy link
Author

Hi @TwizzyDizzy
one of problem is that cancel button not work when uploading process stuck, the Big and main problem is that uploading process stuck sometimes.

@alirezaimi alirezaimi changed the title upload file stuck uploading file progress stuck and cancel button not work any more May 9, 2018
@TwizzyDizzy
Copy link

Thanks! I haven't been able to find it just now but there is at least one issue that concerns itself with the file upload utself not working. IIRC it was when running multiple instances.

Cheers
Thomas

@alirezaimi
Copy link
Author

@TwizzyDizzy
I installed rocket chat with snap and by default it installed on 1 instance, is that all about ? multi instance is solution ?

@blmt
Copy link

blmt commented May 9, 2018

Hi all. I am experiencing the same issue. Our system is installed via snap and it was working before it automatically upgraded. (not sure which one is the last known-good version)

As a consequence of the file upload not working the browser reports.
XML Parsing Error: no root element found
Location: https://mychatsite/ufs/GridFS:Uploads/6c8YsSsbviHzewWAp?token=F8fadBFAca&progress=0.1616943164210921
Line Number 1, Column 1:

@Mr-Gryphon
Copy link
Contributor

Hello i have submit a PR, #10715 . please check and review :)

@rodrigok
Copy link
Member

Closed via #10715

@alirezaimi
Copy link
Author

alirezaimi commented May 29, 2018

Thank you for support,
In this bug report i announce two different problem with one specific section of rocketchat, file uploading .
1- cancel problem that stuck and not work
2- file uploading problem that some files uploaded successfully and some files not ! this part of log related to it :
May 09 11:24:22 sp2lnx1chat rocketchat-server.rocketchat-server[663]: Error: FileNotFound: no file with id PBAeR9khNYYPYhMtx found

Which part are fixed in this release(0.65.1) ?
I upgrade rocketchat to 0.65.0 and none of these problems not solved !

@ZsZs73
Copy link

ZsZs73 commented Jun 29, 2018

@alirezaimi Are you sure that your Site URL is correct?
Administration / General / Sire URL should be the same as the ROOT_URL environment variable of the main.js process.
I had the same issue after changing the hostname, ROOT_URL, but forgot to change the Site URL accordingly.
After changing the Site URL to the value of ROOT_URL the upload works again.
HTH,
Zsolt

@alirezaimi
Copy link
Author

@ZsZs73
Upload works for me too , but some times not ! because of error that i sent it.

@stefersonferreira
Copy link

This was the question!! ROOT_URL

Thanks.

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

8 participants