Log Analytics: Fatal error: misc/cron/updatetoken.php failed:

Hello,

i tried to import my IIS 7.5 Logs into Piwik. But it doesnt work. i always get:

Fatal error: misc/cron/updatetoken.php failed:

My import String: python import_logs.py --url=http://xx.xxxx.xx c:\Logs\xx\u_ex140228.log --idsite=3 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots

any ideas?

Thanks for your help :slight_smile:

can you please post the FULL output of the script? thanks

That is the issue … this is the full output.


C:\XXX\\Piwik\misc\log-analytics> python import_logs.py --url=XXX.XXX C:\XXX\XXX\u_ex140304.log --idsite=3 --recorders=4 --enable-http-errors --enable-http-redirects --e
nable-static --enable-bots
Fatal error: misc/cron/updatetoken.php failed:

C:\XXX\Piwik\misc\log-analytics>

/usr/bin/python /home/user/web/path/misc/log-analytics/import_logs.py --url=http://domain.com /var/log/apache2/access.log --idsite=1 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots

Fatal error: misc/cron/updatetoken.php failed:

Thansk for the report, I created a ticket at Log Analytics: import_logs does not work on windows (updatetoken.php fail) · Issue #4934 · matomo-org/matomo · GitHub

I’m getting the same error with the same code, could someone post what the answer is?
Thank you.

i would like to update that i was able to resolve this issue… not sure if the issue was the same on windows as im on ubuntu 13.10 … i apparently forgot i was sudo’d to root when i was running the script. i ran again as a normal user and it worked fine… i used the following command:


/usr/bin/python /home/user/public_html/domain.com/misc/log-analytics/import_logs.py --url=http://domain.com /var/log/apache2/domain.com.access.log --idsite=1 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots

i checked out the link to the bug and its marked fixed… but also detailed as ‘windows’

shrug

(btw piwik is fantastic, and a nicely polished ios app too)