Hi,
I installed the latest version 2.11.1 on our apache server with PHP 5.5.22 and mysql version 5.6.19. I created a piwik folder in htdocs and accessed it through browser http:<server ip address>/piwik for the install. But it gave me the list of files in htdocs/piwik directory. I had to click index.php to start the install. The install was complete without any errors. Now when I try to import log files using the .py script it gives me weird error. please see the details below
command : python /<apache-loc>htdocs/piwik/misc/log-analytics/import_logs.py --url=http://<server Ip address>/piwik/index.php --token-auth=xxx <log-file location> --idsite=1 --enable-static --enable-http-errors --enable-bots --enable-http-redirects --output=out.log &
Error: File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1898, in <module>
resolver = config.get_resolver()
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 765, in get_resolver
return StaticResolver(self.options.site_id)
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1106, in __init__
'SitesManager.getSiteFromId', idSite=self.site_id
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1089, in call_api
return cls._call_wrapper(cls._call_api, None, None, method, **kwargs)
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1078, in _call_wrapper
raise Piwik.Error(message)
__main__.Error: Piwik returned an invalid response: <!DOCTYPE html>
Could someone please look into this and let me know if I am missing anything
I installed the latest version 2.11.1 on our apache server with PHP 5.5.22 and mysql version 5.6.19. I created a piwik folder in htdocs and accessed it through browser http:<server ip address>/piwik for the install. But it gave me the list of files in htdocs/piwik directory. I had to click index.php to start the install. The install was complete without any errors. Now when I try to import log files using the .py script it gives me weird error. please see the details below
command : python /<apache-loc>htdocs/piwik/misc/log-analytics/import_logs.py --url=http://<server Ip address>/piwik/index.php --token-auth=xxx <log-file location> --idsite=1 --enable-static --enable-http-errors --enable-bots --enable-http-redirects --output=out.log &
Error: File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1898, in <module>
resolver = config.get_resolver()
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 765, in get_resolver
return StaticResolver(self.options.site_id)
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1106, in __init__
'SitesManager.getSiteFromId', idSite=self.site_id
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1089, in call_api
return cls._call_wrapper(cls._call_api, None, None, method, **kwargs)
File "/<apache-loc>/htdocs/piwik/misc/log-analytics/import_logs.py", line 1078, in _call_wrapper
raise Piwik.Error(message)
__main__.Error: Piwik returned an invalid response: <!DOCTYPE html>
Could someone please look into this and let me know if I am missing anything