MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_description,img_user,img_user_text,img_timestamp,img_sha1 FROM `image` WHERE img_sha1 = 'szvnq47we16gmnzbz8xb3dtwu5tsgo9'
Function: DatabaseBase::select
Error: 1927 Lost connection to backend server: connection closed by peer (server3: Generated event) (database_maxscale:4006)
' in /var/www/ISWiki/prod/current/lib/includes/db/Database.php:918
Stack trace:
#0 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(885): DatabaseBase->reportQueryError('Lost connection...', 1927, 'SELECT img_nam...', 'DatabaseBase::s...', false)
#1 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(1358): DatabaseBase->query('SELECT img_nam...', 'DatabaseBase::s...')
#2 /var/www/ISWiki/prod/current/lib/includes/filerepo/LocalRepo.php(223): DatabaseBase->select('image', Array, Array)
#3 /var/www/ISWiki/prod/current/lib/includes/filerepo/RepoGroup.php(245): LocalRepo->findBySha1('szvnq47we16gmnz...')
#4 /var/www/ISWiki/prod/current/lib/includes/WikiFilePage.php(128): RepoGroup->findBySha1('szvnq47we16gmnz...')
#5 /var/www/ISWiki/prod/current/lib/includes/ImagePage.php(754): WikiFilePage->getDuplicates()
#6 /var/www/ISWiki/prod/current/lib/includes/ImagePage.php(160): ImagePage->imageDupes()
#7 /var/www/ISWiki/prod/current/lib/includes/actions/ViewAction.php(40): ImagePage->view()
#8 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(484): ViewAction->show()
#9 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(278): MediaWiki->performAction(Object(ImagePage))
#10 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(593): MediaWiki->performRequest()
#11 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(503): MediaWiki->main()
#12 /var/www/ISWiki/prod/current/lib/index.php(58): MediaWiki->run()
#13 {main}

Exception caught inside exception handler: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT value,exptime FROM `objectcache` WHERE keyname = 'webmol_energypedia:resourceloader:filter:minify-css:7:c88e2bcd56513749bec09a7e29cb3ffa' LIMIT 1
Function: SqlBagOStuff::get
Error: 1927 Lost connection to backend server: connection closed by peer (server3: Generated event) (database_maxscale:4006)
' in /var/www/ISWiki/prod/current/lib/includes/db/Database.php:918
Stack trace:
#0 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(885): DatabaseBase->reportQueryError('Lost connection...', 1927, 'SELECT value,e...', 'SqlBagOStuff::g...', false)
#1 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(1358): DatabaseBase->query('SELECT value,e...', 'SqlBagOStuff::g...')
#2 /var/www/ISWiki/prod/current/lib/includes/db/Database.php(1445): DatabaseBase->select('objectcache', Array, Array, 'SqlBagOStuff::g...', Array, Array)
#3 /var/www/ISWiki/prod/current/lib/includes/objectcache/SqlBagOStuff.php(124): DatabaseBase->selectRow('objectcache', Array, Array, 'SqlBagOStuff::g...')
#4 /var/www/ISWiki/prod/current/lib/includes/resourceloader/ResourceLoader.php(149): SqlBagOStuff->get('webmol_energype...')
#5 /var/www/ISWiki/prod/current/lib/includes/resourceloader/ResourceLoader.php(783): ResourceLoader->filter('minify-css', 'a:lang(ar), a:l...')
#6 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(2594): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array)
#7 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(3310): OutputPage->makeResourceLoaderLink(Array, 'styles')
#8 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(2407): OutputPage->buildCssLinks()
#9 /var/www/ISWiki/prod/current/lib/includes/SkinTemplate.php(465): OutputPage->headElement(Object(SkinIswiki))
#10 /var/www/ISWiki/prod/current/lib/includes/OutputPage.php(1982): SkinTemplate->outputPage()
#11 /var/www/ISWiki/prod/current/lib/includes/Exception.php(182): OutputPage->output()
#12 /var/www/ISWiki/prod/current/lib/includes/Exception.php(209): MWException->reportHTML()
#13 /var/www/ISWiki/prod/current/lib/includes/Exception.php(490): MWException->report()
#14 /var/www/ISWiki/prod/current/lib/includes/Exception.php(569): MWExceptionHandler::report(Object(DBQueryError))
#15 /var/www/ISWiki/prod/current/lib/includes/Wiki.php(506): MWExceptionHandler::handle(Object(DBQueryError))
#16 /var/www/ISWiki/prod/current/lib/index.php(58): MediaWiki->run()
#17 {main}