# "MySQL server has gone away" bei Thumbnail-Generierung

**URL:** <https://forum.shopware.com/t/mysql-server-has-gone-away-bei-thumbnail-generierung/47900>\
**Category:** Allgemein\
**Created:** [29. August 2017 um 12:06 UTC](https://forum.shopware.com/t/mysql-server-has-gone-away-bei-thumbnail-generierung/47900 "2017-08-29T12:06:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mson](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mson](https://forum.shopware.com/u/mson)\
**Post date:** [29. August 2017 um 12:06 UTC](https://forum.shopware.com/t/mysql-server-has-gone-away-bei-thumbnail-generierung/47900/1 "2017-08-29T12:06:19Z")

</div>

Hallo zusammen,

beim Ausführen des CLI-Commands&nbsp;sw:thumbnail:generate kommt die Meldung:

> PHP Warning:&nbsp; Error while sending QUERY packet. PID=20987 in […]data/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 828
> 
> Warning: Error while sending QUERY packet. PID=20987 in […]data/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 828&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> 
> &nbsp; [Doctrine\DBAL\DBALException]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 
> &nbsp; An exception occurred while executing ‚SELECT count(DISTINCT s0\_.id) AS sclr\_0 FROM s\_media s0\_ WHERE s0\_.albumID = ?‘ with params [-11]:&nbsp;
> 
> &nbsp; SQLSTATE[HY000]: General error: 2006 MySQL server has gone away&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
> 
> &nbsp; [PDOException]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> 
> &nbsp; SQLSTATE[HY000]: General error: 2006 MySQL server has gone away&nbsp;

&nbsp;

Im Issue-Tracker habe ich genau das gefunden: [Shopware Issuetracker](https://issues.shopware.com/issues/SW-17335) jedoch mit dem Hinweis, dass das bereits in einem anderen Ticket behandelt wird. Dieses andere Ticket habe ich jedoch nicht gefunden.

Weiß jemand mehr darüber? Ist die einzige Lösung wie im Ticket geschildert die&nbsp;max\_allowed\_packet Konfiguration zu erhöhen?

Viele Grüße  
Malte 🙂

---

<div class="post-metadata">

**Author:** ![IFF](https://avatars.discourse-cdn.com/v4/letter/i/c37758/32.png) [@IFF](https://forum.shopware.com/u/IFF)\
**Post date:** [29. August 2017 um 12:28 UTC](https://forum.shopware.com/t/mysql-server-has-gone-away-bei-thumbnail-generierung/47900/2 "2017-08-29T12:28:21Z")

</div>

Eventuell das hier:

> **[Shopware Issuetracker](https://issues.shopware.com/issues/SW-19125)**

&nbsp;

---

<div class="post-metadata">

**Author:** ![mson](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mson](https://forum.shopware.com/u/mson)\
**Post date:** [29. August 2017 um 12:34 UTC](https://forum.shopware.com/t/mysql-server-has-gone-away-bei-thumbnail-generierung/47900/3 "2017-08-29T12:34:05Z")

</div>

Danke! Habe mal ein Vote dagelassen. Wobei das ursprünglich von mir gepostete Ticket schon ein paar Monate älter ist. Wäre irgendwie merkwürdig von der Reihenfolge her. Aber die Problematik scheint ähnlich, daher danke!
