Cannot Upload with 2.21

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Cannot Upload with 2.21

Post by sirbanks »

I upgraded to 2.21 a few weeks ago, and only realized today that we cannot upload files any longer. Downloads are fine. I at first thought it was a file size issue becuase the original file was 500MB where the problem was noticed. I have tested several different file sizes, down to 20 MB now and they all exhibit the same failure: the progress bar for the upload progresses to a point somewhere between midway and 3/4 of the way, then it just stops. No errors or anything, it just stops uploading. I've checked all configuration and PHP settings and cannot find an obvious source problem. Has anyone else seen this? Thanks in advance.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot Upload with 2.21

Post by atrol »

Run admin/check/index.php
You might get a message that PHP fileinfo extension is missing.
Please use Search before posting and read the Manual
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Re: Cannot Upload with 2.21

Post by sirbanks »

Thanks for getting back to me. No, there is no PHP error. I am running PHP 7.3.6, but I have reverted back to 7.2 and 7.0 with the same results. I updated MANTIS to 2.21 only recently and this is when it was noticed. No matter what the file size, it stops around midway through the upload. By stops, I do not mean there is an error message, the upload progress bar just stops progressing and it never moves. I have left an upload for over an hour with no change in the progress bar and no error displayed. It is odd.
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Re: Cannot Upload with 2.21

Post by sirbanks »

I am uncertain if this helps, but this is the last few error lines in my apache2 error_log posted during the time that I was trying to upload.

[Sun Jun 09 07:10:09.028705 2019] [mpm_worker:notice] [pid 1774:tid 139678237308896] AH00297: SIGUSR1 received. Doing graceful restart
[Sun Jun 09 07:10:09.136639 2019] [mpm_worker:notice] [pid 1774:tid 139678237308896] AH00292: Apache/2.4.39 (cPanel) OpenSSL/1.0.2r mod_bwlimited/1.4 configured -- resuming normal operations
[Sun Jun 09 07:10:09.136685 2019] [core:notice] [pid 1774:tid 139678237308896] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
[Sun Jun 09 07:13:58.110341 2019] [proxy_fcgi:error] [pid 23539:tid 139677843560192] (70008)Partial results are valid but processing is incomplete: [client 104.139.80.166:50990] AH01075: Error dispatching request to : (reading input brigade), referer: http://www.cemrelay.com/mantis/view.php?id=2016
[Sun Jun 09 07:27:39.037967 2019] [proxy_fcgi:error] [pid 23507:tid 139678018873088] [client 74.50.31.49:42244] AH01071: Got error 'Primary script unknown'
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Re: Cannot Upload with 2.21

Post by sirbanks »

OK, I just checked the previous installation, which I think was 2.14. It uploaded just fine, so the issue is definitely with the installation of 2.21. I did a clean install and replaced the uploads directory and the configuration files, just like normal. Obviously I missed something but cannot find it. Is it safe to return the 2.14 MANTIS files using the DB for 2.21? Since I upgraded, I do not know if there were any DB configuration changes that will bite me. Assistance appreciated.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot Upload with 2.21

Post by atrol »

sirbanks wrote: 10 Jun 2019, 09:24 Is it safe to return the 2.14 MANTIS files using the DB for 2.21?
It is safe, as there are no database schema changes in any 2.x versions.

I have a certain idea, what could cause this issue.
You could try if 2.19.1 works and the problems starts with 2.20.0.
Please use Search before posting and read the Manual
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Re: Cannot Upload with 2.21

Post by sirbanks »

I will try this later today and get back. My previous version was actually 2.17, not 2.14 as I stated. I'll let you know. Thanks.
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Re: Cannot Upload with 2.21

Post by sirbanks »

OK I just installed 2.19.1, moved the config files and the uploads folder and uploads work fine with this version. I am going to stay on this version for a bit unless there is something you want me to try with the 2.21 installation. I left it on the server and can test anything you need me to. Thanks for the help!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot Upload with 2.21

Post by atrol »

If you encounter the problem just with larger files, this one could be your issue https://www.mantisbt.org/bugs/view.php?id=25763

If so, adding the "timeout" line around ine 728 in js/common.js might fix the issue.

Code: Select all

	var options = {
		timeout: 0,
		forceFallback: zone.data('force-fallback'),
		paramName: "ufile",
It would be great if you could check this with 2.21.
When trying, don't forget to clear browser cache after the change.
Please use Search before posting and read the Manual
sirbanks
Posts: 42
Joined: 05 Nov 2008, 15:14

Re: Cannot Upload with 2.21

Post by sirbanks »

OK, I added the change and that appears to have resolved the issue. I have successfully uploaded 15MB, 75MB and 500MB files. Before now, I could not upload any size file: they all stopped around the midway point of the upload. Since it appears to work, I have left 2.21 active. I will post if any other upload issues occur, but it looks good so far! Thanks for the help!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot Upload with 2.21

Post by atrol »

Implemented PR for it, so this should be officially fixed in 2.22.0 if no one objects https://mantisbt.org/bugs/view.php?id=25763#c62232
Please use Search before posting and read the Manual
Post Reply