Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive.php as cron does not run anymore since 2.8.2 #6513

Closed
wotis opened this issue Oct 23, 2014 · 4 comments
Closed

archive.php as cron does not run anymore since 2.8.2 #6513

wotis opened this issue Oct 23, 2014 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@wotis
Copy link

wotis commented Oct 23, 2014

On webservers without CLI the archive.php can not be run as cronjob anymore. The script stops with the message, that the token_auth is required, which can't be added as commandline-parameter.

Till < 2.8.2 everything was fine. See also
#6012

@diosmosis
Copy link
Member

Are you running php /path/to/piwik/console core:archive ... or php /path/to/piwik/misc/cron/archive.php ...? If using archive.php can you switch to using php console core:archive ... and see if it works?

@wotis
Copy link
Author

wotis commented Oct 24, 2014

console does not work on 1&1 managed webservers. I have to use archive.php. See referenced issue #6012 for the discussion why.

@diosmosis
Copy link
Member

Can you add to token_auth=... your php-cgi command and see if it works? eg, php-cgi -f /path/to/piwik/misc/cron/archive.php token_auth=....

@wotis
Copy link
Author

wotis commented Oct 25, 2014

Thank you diosmosis!
Adding the token_auth=... with a blank after the archive.php worked! Cron is now running again under version 2.8.3.

@wotis wotis closed this as completed Oct 25, 2014
diosmosis pushed a commit that referenced this issue Oct 27, 2014
…ssion that caused it to fail) and add system test to catch future regressions, if any.
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants