Good afternoon
I have been regularly uploading media items to Omeka-S for quite some time with no issues. About one month ago I began receiving the notorious “HTTP ERROR 500” whenever I tried to upload media. I think there is a timeout occurring as I seem to be able to upload very small files (<8MB) but not anything much larger. It doesn’t appear to be a server issue as I can upload the same media outside of Omeka.
The log files contain the following error header when this occurs:
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
followed by various stack trace items.
I noticed, furthermore, that this problem began right after I was unable to execute two jobs: one multiple items update and one batch export. I had to stop these manually and the Status/Log field in the Jobs page still shows as “Stopping” (not “Stopped”). I have a feeling that this might be causing the problem with the uploading.
Any assistance would be greatly appreciated!
Thanks in advance,
Steven Teasdale
PS. The full log is below:
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:112
Stack trace:
#0 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(112): PDOStatement->execute()
#1 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1292): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1825): Doctrine\DBAL\Connection->executeQuery()
#3 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1765): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getOneToManyStatement()
#4 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(2965): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToManyCollection()
#5 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(729): Doctrine\ORM\UnitOfWork->loadCollection()
#6 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(228): Doctrine\ORM\PersistentCollection->doInitialize()
#7 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php(281): Doctrine\ORM\PersistentCollection->initialize()
#8 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/ItemAdapter.php(267): Doctrine\Common\Collections\AbstractLazyCollection->getIterator()
#9 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(630): Omeka\Api\Adapter\ItemAdapter->hydrate()
#10 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(440): Omeka\Api\Adapter\AbstractEntityAdapter->hydrateEntity()
#11 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Manager.php(233): Omeka\Api\Adapter\AbstractEntityAdapter->update()
#12 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Manager.php(136): Omeka\Api\Manager->execute()
#13 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Mvc/Controller/Plugin/Api.php(152): Omeka\Api\Manager->update()
#14 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Controller/Admin/ItemController.php(245): Omeka\Mvc\Controller\Plugin\Api->update()
#15 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Admin\ItemController->editAction()
#16 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#17 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#18 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil()
#19 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch()
#20 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch()
#21 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#22 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil()
#23 /home/q1gkdyezwjfd/public_html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#24 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(114): Doctrine\DBAL\Driver\PDO\Exception::new()
#1 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1292): Doctrine\DBAL\Driver\PDOStatement->execute()
#2 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1825): Doctrine\DBAL\Connection->executeQuery()
#3 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1765): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getOneToManyStatement()
#4 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(2965): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToManyCollection()
#5 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(729): Doctrine\ORM\UnitOfWork->loadCollection()
#6 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(228): Doctrine\ORM\PersistentCollection->doInitialize()
#7 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php(281): Doctrine\ORM\PersistentCollection->initialize()
#8 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/ItemAdapter.php(267): Doctrine\Common\Collections\AbstractLazyCollection->getIterator()
#9 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(630): Omeka\Api\Adapter\ItemAdapter->hydrate()
#10 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(440): Omeka\Api\Adapter\AbstractEntityAdapter->hydrateEntity()
#11 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Manager.php(233): Omeka\Api\Adapter\AbstractEntityAdapter->update()
#12 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Manager.php(136): Omeka\Api\Manager->execute()
#13 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Mvc/Controller/Plugin/Api.php(152): Omeka\Api\Manager->update()
#14 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Controller/Admin/ItemController.php(245): Omeka\Mvc\Controller\Plugin\Api->update()
#15 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Admin\ItemController->editAction()
#16 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#17 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#18 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil()
#19 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch()
#20 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch()
#21 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#22 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil()
#23 /home/q1gkdyezwjfd/public_html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#24 {main}
Next Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing ‘SELECT t1.id AS id_2, t1.title AS title_3, t1.is_public AS is_public_4, t1.created AS created_5, t1.modified AS modified_6, t0.ingester AS ingester_7, t0.renderer AS renderer_8, t0.data AS data_9, t0.source AS source_10, t0.media_type AS media_type_11, t0.storage_id AS storage_id_12, t0.extension AS extension_13, t0.sha256 AS sha256_14, t0.size AS size_15, t0.has_original AS has_original_16, t0.has_thumbnails AS has_thumbnails_17, t0.position AS position_18, t0.lang AS lang_19, t0.alt_text AS alt_text_20, t1.owner_id AS owner_id_21, t1.resource_class_id AS resource_class_id_22, t1.resource_template_id AS resource_template_id_23, t1.thumbnail_id AS thumbnail_id_24, t0.item_id AS item_id_25, t1.resource_type FROM media t0 INNER JOIN resource t1 ON t0.id = t1.id WHERE t0.item_id = ? ORDER BY t0.position ASC’ with params [36573]:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115
Stack trace:
#0 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(182): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
#1 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(159): Doctrine\DBAL\DBALException::wrapException()
#2 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(2214): Doctrine\DBAL\DBALException::driverExceptionDuringQuery()
#3 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1301): Doctrine\DBAL\Connection->handleExceptionDuringQuery()
#4 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1825): Doctrine\DBAL\Connection->executeQuery()
#5 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(1765): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getOneToManyStatement()
#6 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(2965): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToManyCollection()
#7 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(729): Doctrine\ORM\UnitOfWork->loadCollection()
#8 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php(228): Doctrine\ORM\PersistentCollection->doInitialize()
#9 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php(281): Doctrine\ORM\PersistentCollection->initialize()
#10 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/ItemAdapter.php(267): Doctrine\Common\Collections\AbstractLazyCollection->getIterator()
#11 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(630): Omeka\Api\Adapter\ItemAdapter->hydrate()
#12 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(440): Omeka\Api\Adapter\AbstractEntityAdapter->hydrateEntity()
#13 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Manager.php(233): Omeka\Api\Adapter\AbstractEntityAdapter->update()
#14 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Api/Manager.php(136): Omeka\Api\Manager->execute()
#15 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Mvc/Controller/Plugin/Api.php(152): Omeka\Api\Manager->update()
#16 /home/q1gkdyezwjfd/public_html/omeka-s/application/src/Controller/Admin/ItemController.php(245): Omeka\Mvc\Controller\Plugin\Api->update()
#17 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Admin\ItemController->editAction()
#18 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#19 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#20 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil()
#21 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch()
#22 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch()
#23 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#24 /home/q1gkdyezwjfd/public_html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil()
#25 /home/q1gkdyezwjfd/public_html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#26 {main}