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


#1

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 import_logs.py script and archiving.

below is the script that I am using.

#!/bin/bash
DAY=$2
MON=$1

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

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/threading.py”, line 532, in __bootstrap_inner
File “/usr/lib64/python2.6/threading.py”, line 484, in run
File “/var/www/html/piwik/misc/log-analytics/import_logs.py”, line 1410, in _run_bulk
File “/usr/lib64/python2.6/Queue.py”, line 168, in get
File “/usr/lib64/python2.6/threading.py”, 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.

Lawrence


(Matthieu Aubry) #2

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