Page 1 of 1

Using Jobs in Neos

Posted: 28 Oct 2017, 16:05
by kimholberg
I am trying to get Jobs working in Neos by using this manuel in command line instruction:

./flow aimeos:jobs "order/cleanup/unfinished"

but get this message:

bitnami@ip-172-31-73-205:/opt/bitnami/apps/neos/htdocs$ ./flow aimeos:jobs "order/cleanup/unfinished"
The URI must be a valid string.

Type: InvalidArgumentException
Code: 1176550571
File: Packages/Framework/Neos.Flow/Classes/Http/Uri.php
Line: 107
bitnami@ip-172-31-73-205:/opt/bitnami/apps/neos/htdocs$

So what do i do wrong or miss. Aimeos manual is not very claer on this.

Re: Using Jobs in Neos

Posted: 29 Oct 2017, 13:00
by aimeos
Flow/Neos requires the baseUri configured when you execute Flow commands that may create URLs. Can you add this to your "Configuration/Settings.yaml" file:

Code: Select all

Neos:
  Flow:
    http:
      baseUri: 'https://yourdomain.tld'

Re: Using Jobs in Neos

Posted: 29 Oct 2017, 21:06
by kimholberg
Thanks that solved the case and i could clean up unfinished orders.

One important point though:

you need the / at the end of the URI path, otherwise it won't work!