MySQL statement prepare error [2006]: MySQL server has gone away during new Install

rdn

Well-known member
Server Software:
  • CentOS 7.8
  • Nginx 1.19.4
  • PHP 7.4.12 w/ zend opcache
  • MariaDB 10.4.16
  • Redis 6.0.9
CLI Install error
xf22.webp

Web Install error
1604614198771.webp
 
There won't be anything to us to change here. It will be a server configuration issue.

I'd most likely check wait_timeout first but if you search for that error on this forum you may find other recommendations.
 
I'll try to increase wait_timeout now.
This is a new server in DO 2cpu/2gb ram for testing.
 
Mysql wait_timeout and PHP max execution increase to 180, but still the same error :/
 
What was the wait_timeout value before you changed it?

The default is typically 28800 so 180 would be far from sufficient.

Also no reason to increase PHP max_execution timeout for this as that isn't a factor in this issue.
 
  • Like
Reactions: rdn
You might want to consider increasing max_allowed_packet too.

After making the changes make sure the MySQL server has been restarted.

You can also verify the values are taking effect by querying the server directly after restarting:

SQL:
show variables like 'wait_timeout';

SQL:
show variables like 'max_allowed_packet';

etc.
 
  • Like
Reactions: rdn
I even set it to:
max_allowed_packet = 256M

Still the same :|
Not sure what to adjust now, Maybe I'll try with MariaDB 10.3 install.
 
MariaDB 10.3.26 would have same 10.4.16 stricter packet validation, only downgrading to MariaDB 10.3.25 or 10.4.15 would have previous packet validation policies which are more relaxed.
 
  • Like
Reactions: rdn
Is there anything in the mysql logs?
Nothing on /var/log/mysqld.log

but I will try again today with 10.3.x.
Unfortunately same issue.

MariaDB 10.3.26 would have same 10.4.16 stricter packet validation, only downgrading to MariaDB 10.3.25 or 10.4.15 would have previous packet validation policies which are more relaxed.
This is new CMM server install though.
Not possible to install specific version.
 
This is new CMM server install though.
Not possible to install specific version.
downgrade not working ?

Code:
yum downgrade MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared galera

if not then you need to specify specific MariaDB version via MariaDB repo file edits
 
  • Like
Reactions: rdn
I did the new xf2 install on old server and just imported it on test server.
All done for now.
Thanks Eva.

 
so old server had older MariaDB 10.3.25 ? or it worked with 10.3.26 ? and not just with 10.4.16 ?
 
Top Bottom