Page 1 of 1

[RESOLVED] APPLICATION ERROR #401

Posted: 04 Jul 2011, 09:36
by lordmax
Hi to all

I've searched for old posts but not found solution to my problem.

The problem is really simple: When a user try to upload a file greater then 1Mb Mantis return "APPLICATION ERROR #401" and nothing else.
Into log file I can find nothing useful.

php.ini had
memory_limit = 128M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 8M

mysql my.ini had
max_allowed_packet=20M

mantis config_inc.php had
$g_max_file_size="2000000";

Can you help me?

thanks

Re: APPLICATION ERROR #401

Posted: 04 Jul 2011, 11:07
by atrol
lordmax wrote: mysql my.ini had
max_allowed_packet=20M
Did you restart the database after setting this value?

Re: APPLICATION ERROR #401

Posted: 04 Jul 2011, 12:31
by lordmax
atrol wrote:
lordmax wrote: mysql my.ini had
max_allowed_packet=20M
Did you restart the database after setting this value?
Yes.
sigh
^__^

I've restarted the mySql service
And I've restarted IIS too

Re: APPLICATION ERROR #401

Posted: 04 Jul 2011, 15:12
by atrol
Check also max_execution_time in php.ini

Which version of MantisBT do you use?
Which version of PHP do you use?

Re: APPLICATION ERROR #401

Posted: 05 Jul 2011, 09:44
by lordmax
atrol wrote:Check also max_execution_time in php.ini

Which version of MantisBT do you use?
Which version of PHP do you use?

max_execution_time =300
But I don't think it's a timeout problem, the error message is almost immediate and I can upload little files (less than 1Mb).

MantisBT Version 1.2.5 Schema Version 183, I thinks it's the last one.
PHP Version 5.3.6

Re: APPLICATION ERROR #401

Posted: 05 Jul 2011, 11:57
by atrol
I have no idea at the moment.
To exclude any database related issue you can switch to file storage for attachments.
Add temporary the following line to file config_inc.php and check the settings for "Upload File Path" in "Manage" -> "Manage Projects"

Code: Select all

$g_file_upload_method	= DISK;

Re: APPLICATION ERROR #401

Posted: 05 Jul 2011, 12:44
by lordmax
atrol wrote:I have no idea at the moment.
To exclude any database related issue you can switch to file storage for attachments.
Add temporary the following line to file config_inc.php and check the settings for "Upload File Path" in "Manage" -> "Manage Projects"

Code: Select all

$g_file_upload_method	= DISK;
Done.
Sadly it works. :oops:

Go on DB, Tears, cracks, fans. :evil:

Re: [RESOLVED] APPLICATION ERROR #401

Posted: 05 Jul 2011, 14:46
by lordmax
OK.


DB problem, some strange permission on server.
:roll:

Re: [RESOLVED] APPLICATION ERROR #401

Posted: 05 Jul 2011, 17:10
by atrol
lordmax wrote: DB problem, some strange permission on server.
:roll:
Really strange, can you tell which permission has to be changed?

Re: [RESOLVED] APPLICATION ERROR #401

Posted: 06 Jul 2011, 07:44
by lordmax
Well.

Problem was so simple that I feel idiot.

One of the Systems Engineer put a rule on the server that made all files read only but in a transparent way (I don't know how) so when I changed db settings on my.ini apparently it was changed but it was mantained at the original status.

Understood it I phone call the "engeneer" and get the right my.ini files on the system, restar mysql all done.
:cry: :roll:

Re: [RESOLVED] APPLICATION ERROR #401

Posted: 06 Jul 2011, 07:59
by atrol
Thanks for telling the real cause.

Re: [RESOLVED] APPLICATION ERROR #401

Posted: 30 Jun 2012, 21:06
by lexlogos
atrol - You are a genius, I had this problem for a year and did not know how to solve. Because of you I managed to solve. Thanks