zAfLu
March 1, 2014, 4:14am
1
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
matthieu
(Matthieu Aubry)
March 4, 2014, 3:02am
2
can you please post the FULL output of the script? thanks
zAfLu
March 4, 2014, 8:01pm
3
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:
matthieu
(Matthieu Aubry)
March 31, 2014, 9:55pm
5
stanna
April 10, 2014, 4:02pm
6
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)