Server Log Import ERROR: HTTP Error 500: Internal Server Error

Hi There,

I’m trying to setup PIWIK with log import. Upon running the import: path/to/piwik/misc/log-analytics/import_logs.py
I get the following error:

2016-10-27 01:34:19,167: [INFO] Error when connecting to Piwik: HTTP Error 500: Internal Server Error
2016-10-27 01:34:19,168: [INFO] Retrying request, attempt number 2
2016-10-27 01:34:29,843: [INFO] Error when connecting to Piwik: HTTP Error 500: Internal Server Error
2016-10-27 01:34:29,843: [INFO] Retrying request, attempt number 3
2016-10-27 01:34:40,873: [INFO] Error when connecting to Piwik: HTTP Error 500: Internal Server Error
2016-10-27 01:34:40,874: [INFO] Max number of attempts reached, server is unreachable!
Traceback (most recent call last):
File “misc/log-analytics/import_logs.py”, line 2373, in
resolver = config.get_resolver()
File “misc/log-analytics/import_logs.py”, line 1004, in get_resolver
return StaticResolver(self.options.site_id)
File “misc/log-analytics/import_logs.py”, line 1418, in init
’SitesManager.getSiteFromId’, idSite=self.site_id
File “misc/log-analytics/import_logs.py”, line 1401, in call_api
return cls._call_wrapper(cls._call_api, None, None, method, **kwargs)
File “misc/log-analytics/import_logs.py”, line 1388, in _call_wrapper
raise Piwik.Error(message, code)
main.Error: HTTP Error 500 Internal Server Error, response:





Could anybody be kind enough to help me with this.

Many thanks.

What does the PHP log say at 2016-10-27 01:34:19 (ie. when you get the 500 internal server error)? What version of Piwik are you running?

I’m trying to get my head round this 500 error. No idea where he problem occurs.

I’m running 2.17.0.