Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5707

Cron archive + docker : do not work

$
0
0

Hello,

I’m using docker to run Matomo and I’ve set up a cron to get auto-archiving working.

Here is my crontab:

*/5 * * * * su www-data -s /bin/bash -c '/usr/local/bin/php /var/www/html/console core:archive --url=https://matomo.XXX .com/2>/tmp/matomo-archive-error.log >/tmp/matomo-archive.log'

The cron task is triggered every 5min, but the php command has no effect.
The files matomo-archive-error.log and matomo-archive.log are well created, but are empty (o byte).

The strangest thing is that if I manually run the following command from the container shell, it works perfectly fine :confused:

su www-data -s /bin/bash -c '/usr/local/bin/php /var/www/html/console core:archive --url=https://matomo.XXX.com/2>/tmp /matomo-archive-error.log >/tmp/matomo-archive.log'

If anyone has a good idea… :pray:

Thank you in advance for your help…

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5707

Trending Articles