File "/usr/lib64/python2.6/", line 532, in __bootstrap_inner

Very long story, but I am running my Piwik server on an eCloud environment, my provider kindly carried out some maintenance and then kindly screwed things up and as a result I lost the entire VM, without a backup. So I re-installed the latest version of Piwik, but since then I have been seeing some very strange errors in my script and archiving.

below is the script that I am using.


#set -x
num=ls -ltr | wc -l
#for HOUR in {01…23}
for HOUR in {00…23}
echo ${HOUR}/${DAY}/${MON}
echo “”
python /var/www/html/piwik/misc/log-analytics/ --login --password --enable-http-errors --enable-http-errors --enable-http-redirects --exclude-path-from=/export/home/piwik/scripts/excludepaths.txt --url= --idsite=1 /export/home/piwik/upload/$MON/$DAY/na.gcsip.com_access2015${MON}${DAY}${HOUR};
sleep 10;
#sudo /var/www/html/piwik/misc/cron/ --url=;
sudo php /var/www/html/piwik/console core:archive --url=https// >> /export/home/piwik/piwik-archive.log

below is the error seen.

Performance summary

Total time: 364 seconds
Requests imported per second: 80.99 requests per second

Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File “/usr/lib64/python2.6/”, line 532, in __bootstrap_inner
File “/usr/lib64/python2.6/”, line 484, in run
File “/var/www/html/piwik/misc/log-analytics/”, line 1410, in _run_bulk
File “/usr/lib64/python2.6/”, line 168, in get
File “/usr/lib64/python2.6/”, line 232, in wait
<type ‘exceptions.TypeError’>: ‘NoneType’ object is not callable

I have no idea why this has started happening because it was not like this before.

I have done some reading and the below URL might mean something.

I hope someone can help.


Hi there,

sorry i dont know what could cause this issue. To get a follow up please create a bug report in the project tracker at: Issues · matomo-org/piwik-log-analytics · GitHub