[RESOLVED] APPLICATION ERROR #401

Get help from other users here.

Moderators: Contributor, Developer

Post Reply
lordmax
Posts: 24
Joined: Jul 01, 2011 4:38 am

[RESOLVED] APPLICATION ERROR #401

Post by lordmax » Jul 04, 2011 4:36 am

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
Last edited by lordmax on Jul 05, 2011 9:46 am, edited 1 time in total.

atrol
Site Admin
Posts: 7581
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: APPLICATION ERROR #401

Post by atrol » Jul 04, 2011 6:07 am

lordmax wrote: mysql my.ini had
max_allowed_packet=20M
Did you restart the database after setting this value?
Please use Search before posting and read the Manual

lordmax
Posts: 24
Joined: Jul 01, 2011 4:38 am

Re: APPLICATION ERROR #401

Post by lordmax » Jul 04, 2011 7:31 am

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

atrol
Site Admin
Posts: 7581
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: APPLICATION ERROR #401

Post by atrol » Jul 04, 2011 10:12 am

Check also max_execution_time in php.ini

Which version of MantisBT do you use?
Which version of PHP do you use?
Please use Search before posting and read the Manual

lordmax
Posts: 24
Joined: Jul 01, 2011 4:38 am

Re: APPLICATION ERROR #401

Post by lordmax » Jul 05, 2011 4:44 am

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

atrol
Site Admin
Posts: 7581
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: APPLICATION ERROR #401

Post by atrol » Jul 05, 2011 6:57 am

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;
Please use Search before posting and read the Manual

lordmax
Posts: 24
Joined: Jul 01, 2011 4:38 am

Re: APPLICATION ERROR #401

Post by lordmax » Jul 05, 2011 7:44 am

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:

lordmax
Posts: 24
Joined: Jul 01, 2011 4:38 am

Re: [RESOLVED] APPLICATION ERROR #401

Post by lordmax » Jul 05, 2011 9:46 am

OK.


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

atrol
Site Admin
Posts: 7581
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: [RESOLVED] APPLICATION ERROR #401

Post by atrol » Jul 05, 2011 12:10 pm

lordmax wrote: DB problem, some strange permission on server.
:roll:
Really strange, can you tell which permission has to be changed?
Please use Search before posting and read the Manual

lordmax
Posts: 24
Joined: Jul 01, 2011 4:38 am

Re: [RESOLVED] APPLICATION ERROR #401

Post by lordmax » Jul 06, 2011 2:44 am

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:

atrol
Site Admin
Posts: 7581
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: [RESOLVED] APPLICATION ERROR #401

Post by atrol » Jul 06, 2011 2:59 am

Thanks for telling the real cause.
Please use Search before posting and read the Manual

lexlogos
Posts: 1
Joined: Jun 30, 2012 4:02 pm

Re: [RESOLVED] APPLICATION ERROR #401

Post by lexlogos » Jun 30, 2012 4:06 pm

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

Post Reply