Mantis version 2.21.1
209
PHP 7.3.33
Hello everyone,
I've created a new user lately and he's the first who cannot upload docs, pics or whatever on tickets. My entire user community never faced that issue.
He's got a reporter role and can create tickets and write notes without issue, but when trying to upload files, he's got "le serveur a répondu avec le code 0" which translates to "server responded with code 0" (see pic attached).
I tried on the same tickets he did, I can upload files, including the files he tried to unsuccessfully.
Would anyone understand what it means?
Thanks a lot!
One user cannot upload files
Moderators: Developer, Contributor
-
- Posts: 6
- Joined: 08 Nov 2021, 07:43
One user cannot upload files
- Attachments
-
- upload_code0.jpg (82.62 KiB) Viewed 8089 times
-
- Posts: 6
- Joined: 08 Nov 2021, 07:43
Re: One user cannot upload files
Yes, Chrome, that I can use without issue to upload files on Mantis tickets.
On probably 200 users for more than 3 years it's the first time someone can't upload files on Mantis. Weird.
On probably 200 users for more than 3 years it's the first time someone can't upload files on Mantis. Weird.
Re: One user cannot upload files
We are seeing this problem ramp up lately in our organization. Today we had over 500 out of 2500 uploads fail. It just freezes up. Looking at the history it seems to have always had this problem (with avg of 50 out of 3000 failing per day) but it has ramped up recently. We've rebooted servers and taken them off line. Users report that it comes and goes. Sometimes it will work in the morning and then fail in the afternoon. It is extremely random per user but consistent when a user encounters the problem.
From our traces, it looks like no data is being sent when the upload happens. Isn't there any kind of logging we can do or error handling time out? Could it be new security added to chrome/edge recently? We are on the latest version and haven't changed anything in months. Over the last two days MantisBT has been unusable.
From our traces, it looks like no data is being sent when the upload happens. Isn't there any kind of logging we can do or error handling time out? Could it be new security added to chrome/edge recently? We are on the latest version and haven't changed anything in months. Over the last two days MantisBT has been unusable.
Re: One user cannot upload files
Do you have installed latest stable version 2.25.7?
Did you check web server / PHP logs for errors and warnings?
Are there any errors in the brwoser console?
Did you check web server / PHP logs for errors and warnings?
Are there any errors in the brwoser console?
Re: One user cannot upload files
We are on 2.25.7. There are no errors in the web server / php logs that we can find. The browser console just shows it sitting there waiting.
Re: One user cannot upload files
We still have this problem when there are multiple columns on the load balancer. Right now we are only running one and the problem doesn't happen. When we run more than one and someone tries to upload a file, mantisbt will freeze up when uploading files. Here are from the log:
[09-Oct-2023 09:09:37 America/Tegucigalpa] Class "finfo" not found
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 1177: - - - - file_create_finfo()
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 850: - - - - file_get_mime_type()
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 75: - - - - file_add()
D:\Applications\MantisBT\MantisBT_wwwroot\core\commands\IssueAddCommand.php: 379: - - - - file_attach_files()
D:\Applications\MantisBT\MantisBT_wwwroot\core\commands\Command.php: 137: IssueAddCommand - -> - process()
D:\Applications\MantisBT\MantisBT_wwwroot\bug_report.php: 260: Command - -> - execute()
[09-Oct-2023 09:09:37 America/Tegucigalpa] Class "finfo" not found
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 1177: - - - - file_create_finfo()
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 850: - - - - file_get_mime_type()
D:\Applications\MantisBT\MantisBT_wwwroot\core\file_api.php: 75: - - - - file_add()
D:\Applications\MantisBT\MantisBT_wwwroot\core\commands\IssueAddCommand.php: 379: - - - - file_attach_files()
D:\Applications\MantisBT\MantisBT_wwwroot\core\commands\Command.php: 137: IssueAddCommand - -> - process()
D:\Applications\MantisBT\MantisBT_wwwroot\bug_report.php: 260: Command - -> - execute()
Re: One user cannot upload files
finfo is a mandatory extension when using file uploads, e.g. for some more information see https://www.mantisbt.org/bugs/view.php?id=24501#c59975
You should always run admin/check/index.php after installation
Re: One user cannot upload files
That did the trick. Thank You!