# The db\_connection service is synthetic

**URL:** <https://forum.shopware.com/t/the-db-connection-service-is-synthetic/91180>\
**Category:** Shopware 5\
**Created:** [29. Oktober 2021 um 07:03 UTC](https://forum.shopware.com/t/the-db-connection-service-is-synthetic/91180 "2021-10-29T07:03:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [29. Oktober 2021 um 07:03 UTC](https://forum.shopware.com/t/the-db-connection-service-is-synthetic/91180/1 "2021-10-29T07:03:03Z")

</div>

Die Nacht gab es bei einem Kunden von uns über Stunden folgende Fehlermeldung:

```auto
In Container.php line 334:
The "db_connection" service is synthetic, it needs to be set at boot time before it can be used.
sw:cron:run [-f|--force] [--] [<cronjob>]

```

Habe hierzu Beiträge gefunden, welche die config.php abgesprochen haben, aber hier ist alles korrekt. Und die config.php kann sich nicht über Nacht verstellen. Was könnte sonst so einen Fehler ausgelöst haben?

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [29. Oktober 2021 um 08:24 UTC](https://forum.shopware.com/t/the-db-connection-service-is-synthetic/91180/2 "2021-10-29T08:24:09Z")

</div>

die Meldung kommt auch wenn die DB down ist.
