Error when starting TYPO3-Scheduler - "File or directory "" doesn't exist"

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Webworker
Posts: 4
Joined: 07 Sep 2020, 10:12

Error when starting TYPO3-Scheduler - "File or directory "" doesn't exist"

Post by Webworker » 20 Oct 2020, 14:05

Hi folks.

I've configured aimeos as mentioned in the documentation. When I'd like to start the Scheduler tasks by cronjob, the following error occurs in the backend:
Screenshot 2020-10-20 160309.jpg
Screenshot 2020-10-20 160309.jpg (47.08 KiB) Viewed 2138 times
In the logs i see:
Tue, 20 Oct 2020 15:24:50 +0200 [ERROR] request="838c9827a0568" component="TYPO3.CMS.Scheduler.Task.AbstractTask": Task failed to execute successfully. Class: Aimeos\Aimeos\Scheduler\Task\Email6, UID: 2, Code: 0, File or directory "" doesn't exist - {"exception":"Aimeos\\Controller\\Jobs\\Exception: File or directory \"\" doesn't exist in /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3conf/ext/ai ... :86\nStack trace:\n#0 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3conf/ext/ai ... rd.php(59): Aimeos\\Controller\\Jobs\\Attribute\\Import\\Xml\\Standard->run()\n#1 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3conf/ext/ai ... se.php(62): Aimeos\\Controller\\Jobs\\Xml\\Import\\Standard->run()\n#2 [internal function]: Aimeos\\Aimeos\\Scheduler\\Base::Aimeos\\Aimeos\\Scheduler\\{closure}(Object(Aimeos\\MShop\\Context\\Item\\Typo3), Object(Aimeos\\Bootstrap), 'xml/import')\n#3 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3conf/ext/ai ... ne.php(44): call_user_func_array(Object(Closure), Array)\n#4 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3conf/ext/ai ... se.php(65): Aimeos\\MW\\Process\\None->start(Object(Closure), Array, true)\n#5 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3conf/ext/ai ... l6.php(93): Aimeos\\Aimeos\\Scheduler\\Base::execute(Array, Array, Array, '366')\n#6 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/sch ... r.php(182): Aimeos\\Aimeos\\Scheduler\\Task\\Email6->execute()\n#7 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/sch ... r.php(767): TYPO3\\CMS\\Scheduler\\Scheduler->executeTask(Object(Aimeos\\Aimeos\\Scheduler\\Task\\Email6))\n#8 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/sch ... r.php(275): TYPO3\\CMS\\Scheduler\\Controller\\SchedulerModuleController->executeTasks()\n#9 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/sch ... r.php(178): TYPO3\\CMS\\Scheduler\\Controller\\SchedulerModuleController->getModuleContent(Object(TYPO3\\CMS\\Scheduler\\Task\\Enumeration\\Action))\n#10 [internal function]: TYPO3\\CMS\\Scheduler\\Controller\\SchedulerModuleController->mainAction(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#11 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... er.php(66): call_user_func_array(Array, Array)\n#12 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... er.php(94): TYPO3\\CMS\\Backend\\Http\\RouteDispatcher->dispatch(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#13 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/ext ... or.php(49): TYPO3\\CMS\\Backend\\Http\\RequestHandler->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#14 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Extbase\\Middleware\\SignalSlotDeprecator->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(TYPO3\\CMS\\Backend\\Http\\RequestHandler))\n#15 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... er.php(69): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#16 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\SiteResolver->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#17 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... rs.php(41): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#18 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\AdditionalResponseHeaders->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#19 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... on.php(47): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#20 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\OutputCompression->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#21 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... or.php(77): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#22 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\BackendUserAuthenticator->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#23 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... on.php(58): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#24 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\BackendRouteInitialization->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#25 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... or.php(55): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#26 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\ForcedHttpsBackendRedirector->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#27 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... rd.php(73): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#28 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Backend\\Middleware\\LockedBackendGuard->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#29 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... te.php(45): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#30 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... r.php(172): TYPO3\\CMS\\Core\\Middleware\\NormalizedParamsAttribute->process(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest), Object(class@anonymous))\n#31 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... er.php(78): class@anonymous->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#32 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... on.php(85): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#33 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/bac ... on.php(63): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#34 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/sysext/cor ... on.php(97): TYPO3\\CMS\\Backend\\Http\\Application->handle(Object(TYPO3\\CMS\\Core\\Http\\ServerRequest))\n#35 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/index.php(25): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()\n#36 /home/httpd/vhosts/swsieber.ch/www.swsieber.ch/htdocs/typo3/index.php(26): {closure}()\n#37 {main}"}

Any suggestions?

Another Problem:
Mail to the shop owner has not been sent, but the mail to the customer.

Can anyone help? Thanks

TYPO3 10.4.6, Aimeos 20.7.2

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Error when starting TYPO3-Scheduler - "File or directory "" doesn't exist"

Post by aimeos » 21 Oct 2020, 10:02

You've added the XML import jobs but they need a source directory configured, e.g.
https://aimeos.org/docs/latest/config/c ... /#location
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Webworker
Posts: 4
Joined: 07 Sep 2020, 10:12

Re: Error when starting TYPO3-Scheduler - "File or directory "" doesn't exist"

Post by Webworker » 22 Oct 2020, 07:58

Hi...

Exactly, that was the problem. But I have a second problem. The shop owner does not receive any confirmation emails. I did try to configure that in a separate file

Code: Select all

/typo3conf/ext/custom_shop/Resources/Private/Extensions/custom_shop/config/client.php
With the following contents:

Code: Select all

<?php
return [
	'html' => [
	    'email' => [
                'from-email' => 'shop@domain.com',
                'from-name' => 'Shop Name',
                'reply-email' => 'shop@domain.com',
                'reply-name' => 'Shop Name',
                'bcc-email' => 'orders@domain.com'
            ]
	],
	'jsonapi' => [
	],
];
or by Typoscript setup in the scheduler task:

Code: Select all

plugin.tx_aimeos.settings.client.html.email.bcc-email = orders@domain.com
plugin.tx_aimeos.settings.client.html.email.payment.bcc-email = orders@domain.com
without any success. Customer mail has been sent, but no bcc email to the shop owner.

I'd like, that order confirmation mails will be submitted to orders@domain.com too.

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Error when starting TYPO3-Scheduler - "File or directory "" doesn't exist"

Post by aimeos » 26 Oct 2020, 09:22

Webworker wrote: 22 Oct 2020, 07:58 or by Typoscript setup in the scheduler task:

Code: Select all

plugin.tx_aimeos.settings.client.html.email.bcc-email = orders@domain.com
plugin.tx_aimeos.settings.client.html.email.payment.bcc-email = orders@domain.com
without any success. Customer mail has been sent, but no bcc email to the shop owner.
Strange, this should work even if you don't need the "plugin.tx_aimeos.settings." prefix because this is only for the frontend:

Code: Select all

client.html.email.bcc-email = orders@domain.com
client.html.email.payment.bcc-email = orders@domain.com
Here's the relevant code:
https://github.com/aimeos/ai-client-htm ... #L287-L319
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

georgood
Posts: 7
Joined: 21 Nov 2020, 17:22

Re: Error when starting TYPO3-Scheduler - "File or directory "" doesn't exist"

Post by georgood » 08 Feb 2021, 08:29

Hi,

When the system says "Task failed to execute successfully.", Starting Sheduller with the task ID helps me. For example (task uid=8):

Code: Select all

/usr/local/bin/php typo3/sysext/core/bin/typo3 scheduler:run  --task=8
See the source here: https://docs.typo3.org/c/typo3/cms-sche ... Index.html

If you have several tasks in Sheduller, then some of them may work, and some may not, when using: "scheduler: run".
It is necessary for each task to have its own line in the system file and script: "scheduler: run --task=8". Then all these tasks will work out.

Best

Post Reply