View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022414 | mantisbt | attachments | public | 2017-02-23 09:34 | 2017-03-08 04:09 |
Reporter | RetroLaszlo | Assigned To | dregad | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 2.0.0 | ||||
Summary | 0022414: Error "2006: MySQL server has gone away" when uploading attachments | ||||
Description | Original issue title: requesting reopening of 0020547 Hi! I have a relatively (1 month) new mantis BT on a Centos 7 x64 VM. Now I am trying to upload a file as attachment the first time and I am getting: APPLICATION ERROR 0000401 Db is MariaDB as per deafult Centos 7 install. Any guess what I could do to remedy? | ||||
Tags | No tags attached. | ||||
I fail to see the relationship or the need to reopen 0020547, that was fixed in the code, and furthermore it is not the same error message you're reporting (2006: MySQL server has gone away). That is usually caused by some sort of timeout, so likely not a MantisBT issue. Try a google search on this error message, and see if one of the numerous answers fixes the issue for you. |
|
If you take a look at the query the MantisBT is sending the MariaDB server, the problem is with the ?-s. The same query error as with the previous 0020547 bug. The very same error as with the ms sql bug https://www.mantisbt.org/forums/viewtopic.php?f=2&t=23590 So I am guessing that there is a setting I am not aware of, or the bug that got fixed in this issue, somehow reappeared. |
|
The database reacts to every other function of mantis immediately, so it is not a server issue I guess. |
|
I am not getting any errors here (although I'm on Ubuntu/MySQL, not CentOS/MariaDB). Is this consistently reproducible on your end ?
What makes you say that, and what do you think the problem is with those query parameters ? |
|
Wait, I ll do an in depth test with different case ids and different files on the weekend and I ll report back monday. |
|
Ok, Sorry, entirely my fault. Not Mantis's fault! After checking the php ini max_post_size, and upload_max_filesize and checking the $g_max_file_size I thought that i had everything covered. in mariadb, /etc/my.conf.d folder i had to add a max_allowed_packet=<WHATIWANT>M; and after restarting services, it worked likea charm. |
|
Glad to hear you resolved your problem, thanks for letting us know. |
|