# Orders Export mit Cronjob

**URL:** <https://forum.shopware.com/t/orders-export-mit-cronjob/41394>\
**Category:** Administration\
**Created:** [16. November 2016 um 12:52 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394 "2016-11-16T12:52:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asmird](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@asmird](https://forum.shopware.com/u/asmird)\
**Post date:** [16. November 2016 um 12:52 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/1 "2016-11-16T12:52:09Z")

</div>

Halo Shopware community,

ich würde gerne mit dem Adv. Import Export Tool &nbsp;Alle x Stunden Per Cronjob einen Export fahren Was die neuen Bestellungen sind.

Leider hänge ich an dem Bereich wie ich das Per Cronjob Machen kann.

&nbsp;

Hat einer von euch einen Tipp?

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [16. November 2016 um 18:09 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/2 "2016-11-16T18:09:13Z")

</div>

Du hast ja den Konsolenbefehl per SSH wie hier beschrieben: [http://community.shopware.com/Import-Export-Grundmodul\_detail\_1769.html#Export\_2](http://community.shopware.com/Import-Export-Grundmodul_detail_1769.html#Export_2)  
Damit kannst du dir ein Script schreiben und den Export auf dem Server einrichten. Das geht aber nur, wenn du auch SSH Zugang hast.

---

<div class="post-metadata">

**Author:** ![asmird](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@asmird](https://forum.shopware.com/u/asmird)\
**Post date:** [21. November 2016 um 16:24 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/3 "2016-11-21T16:24:07Z")

</div>

Hallo Moritz

Leider Funktioniert das bei mir nicht.

&nbsp;

[safwf2w34r23rd2rf2rf@hostxxxx.de](mailto:safwf2w34r23rd2rf2rf@hostxxxx.de):/web/bin$ /opt/php-5.6.8/bin/php console sw:importexport:export  
&nbsp;WARNING! Could not connect to database. Message from SQL Server: SQLSTATE[HY000] [2002] No such file or directory in /web/engine/Shopware/Components/DependencyInjection/Bridge/Db.php

&nbsp; [Symfony\Component\Console\Exception\CommandNotFoundException]  
&nbsp; There are no commands defined in the “sw:importexport” namespace.  
&nbsp; Did you mean one of these?  
&nbsp; &nbsp; &nbsp; sw:refresh:search  
&nbsp; &nbsp; &nbsp; sw:thumbnail  
&nbsp; &nbsp; &nbsp; sw:theme  
&nbsp; &nbsp; &nbsp; sw:refresh  
&nbsp; &nbsp; &nbsp; sw:migrations  
&nbsp; &nbsp; &nbsp; sw:clone  
&nbsp; &nbsp; &nbsp; sw:clone:category  
&nbsp; &nbsp; &nbsp; sw:theme:dump  
&nbsp; &nbsp; &nbsp; sw:theme:cache  
&nbsp; &nbsp; &nbsp; sw:rebuild  
&nbsp; &nbsp; &nbsp; sw:rebuild:category  
&nbsp; &nbsp; &nbsp; sw:snippets:find  
&nbsp; &nbsp; &nbsp; sw:snippets:to  
&nbsp; &nbsp; &nbsp; sw:cache  
&nbsp; &nbsp; &nbsp; sw:snippets  
&nbsp; &nbsp; &nbsp; sw:cron  
&nbsp; &nbsp; &nbsp; sw:settings:label:find  
&nbsp; &nbsp; &nbsp; sw:database  
&nbsp; &nbsp; &nbsp; sw:admin  
&nbsp; &nbsp; &nbsp; sw:store:list  
&nbsp; &nbsp; &nbsp; sw:store  
&nbsp; &nbsp; &nbsp; sw:generate  
&nbsp; &nbsp; &nbsp; sw:plugin  
&nbsp; &nbsp; &nbsp; sw:firstrunwizard  
&nbsp; &nbsp; &nbsp; sw:warm  
&nbsp; &nbsp; &nbsp; sw:settings  
&nbsp; &nbsp; &nbsp; sw:settings:label  
&nbsp; &nbsp; &nbsp; sw:plugin:config  
&nbsp; &nbsp; &nbsp; sw:product:feeds  
&nbsp; &nbsp; &nbsp; sw:warm:http  
&nbsp; &nbsp; &nbsp; sw:product  
&nbsp; &nbsp; &nbsp; sw

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [21. November 2016 um 16:54 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/4 "2016-11-21T16:54:06Z")

</div>

Also bei mir Lokal läuft das.

Was ist denn wenn du nur bin/console aufrufst. Zeigt er dir denn dann den Befehl an?

---

<div class="post-metadata">

**Author:** ![asmird](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@asmird](https://forum.shopware.com/u/asmird)\
**Post date:** [22. November 2016 um 15:39 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/5 "2016-11-22T15:39:28Z")

</div>

Egal Welchen Befehl ich ausführen will bekomme ich den Folgenden Fehler.

&nbsp;

Shopware \> sw:cron:list

&nbsp; [Symfony\Component\DependencyInjection\Exception\RuntimeException]  
&nbsp; You have requested a synthetic service (“db\_connection”). The DIC does not know how to construct this service.

sw:cron:list

The command terminated with an error status (1)  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [22. November 2016 um 17:15 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/6 "2016-11-22T17:15:29Z")

</div>

Aber du hast schon eine config.php im Hauptverzeichnis?

---

<div class="post-metadata">

**Author:** ![guru\_meditation](https://avatars.discourse-cdn.com/v4/letter/g/8c91f0/32.png) [@guru\_meditation](https://forum.shopware.com/u/guru_meditation)\
**Post date:** [1. Februar 2017 um 17:07 UTC](https://forum.shopware.com/t/orders-export-mit-cronjob/41394/7 "2017-02-01T17:07:19Z")

</div>

Hallo zusammen,

also ich habe das gleiche Problem und ich habe in meinem /web Verzeichnis ein config.php mit den notwendigen Daten. Hab auch spasseshalber mal die config.php in das root Verzeichnis geschoben -\> gleicher Effekt.

Hat noch jemand eine Idee was der Fehler sein kann?

Danke im Voraus  
Guru
