Log Analytics tool and a Fatal Error


Afternoon all.

I’ve just setup Piwik on a new server and am trying to use the log analytics tool to import some files.

python /var/www/stats/misc/log-analytics/import_logs.py --url=http://something.something.com /deploy/logs/20005/httpd/access.log

It thinks for a bit and then spits out the following error:

Fatal error: [Errno 111] Connection refused

Nothing has been imported at all. I am thinking that this is related to connecting to the MySQL database, but I cannot see any parameters or anything to pass with the DB login details.

Any ideas?


(Matthieu Aubry) #2

should be the piwik URL

Otherwise look into the apache server logs of the server you are calling (eg http://something.something.com )


I have the same issue. It doesn’t display any data. I’ve checked log folder and it says “Connection refused”. Any idea?? Thanks in advance.


Hi All,

I am facing similar issue. In my case, it imports few logs, then gives error:

Fatal error: [Errno 111] Connection refused
You can restart the import of <LOGFILE> from the point it failed by specifying --skip=283307 on the command line

Please suggest.

Anchal Aggarwal