This is related to new MariaDb upgrade from 10.1.41 to 10.1.42 and also for servers which were updated from 10.2.27 to 10.2.28
Go to solution ( Special Thanks to @Valetia )
You will see errors in following formats/messages:
- No file or input found
- MySQL Server has gone away
- Connection to MySQL Server failed
- sqlstate[hy000]: general error: 2013 lost connection to mysql server during query
- General error: 2006 MySQL server has gone away
- ERROR 2006 (HY000): MySQL server has gone away
- ERROR 2013 (HY000): Lost connection to MySQL server during query
Log files (/var/lib/mysql/$hostname.err) will have or can have any of these errors:
- assertion fail /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.28/storage/innobase/dict/dict0dict.cc line 1467
- the resulting row size is greater than maximum allowed size (8126) for a record on index leaf page
- stack_bottom = 0x0 thread_stack 0x49000 mysys/stacktrace.c:268(my_print_stacktrace)[0x5564e62807bb] sql/signal_handler.cc:209(handle_fatal_signal)[0x5564e5d4b4f5]
Other Symptoms:
/etc/init.d/mysql start
Starting MySQL/etc/init.d/mysql: line 159: kill: (10704) – No such process
[FAILED]
Solution:
yum downgrade MariaDB-* -y
whmapi1 update_updateconf RPMUP=manual UPDATES=manual
(run as root #)
This will downgrade MariaDb installation to previous version
Line 2 will cancel automatic update on WHM/CPanel installations
If you are not using WHM, use line 1 only OR you can downgrade the repository individually too
yum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel
References:
- https://forums.cpanel.net/threads/innodb-corruption-repair-guide.418722/
- https://forums.cpanel.net/threads/mariadb-error-after-update-10-2-28.662609/
- https://dba.stackexchange.com/a/65736
- https://forums.cpanel.net/threads/lost-connection-to-mysql-server-during-query-error.620751/
Leave a Reply