Error, when log import

I am using the Piwik 2.17.1

when i try to log importing, Error occur as following

[root@CCTRACKER cctracker]# python ./misc/log-analytics/import_logs.py --url=http://tracker1.crosscounter.co.kr/cctracker --idsite=1 --replay-tracking /home/logs/lighttpd/access_imp.log
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Parsing log /home/logs/lighttpd/access_imp.log…
2018-01-08 16:37:15,677: [INFO] Error when connecting to Piwik: HTTP Error 400: Bad Request
2018-01-08 16:37:15,678: [INFO] Retrying request, attempt number 2
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
2018-01-08 16:37:26,213: [INFO] Error when connecting to Piwik: HTTP Error 400: Bad Request
2018-01-08 16:37:26,214: [INFO] Retrying request, attempt number 3
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
99 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
2018-01-08 16:37:36,424: [INFO] Error when connecting to Piwik: HTTP Error 400: Bad Request
2018-01-08 16:37:36,424: [INFO] Max number of attempts reached, server is unreachable!
Fatal error: Server returned status 400 (Bad Request).
Is the BulkTracking plugin disabled?
You can restart the import of “/home/logs/lighttpd/access_imp.log” from the point it failed by specifying --skip=0 on the command line.

By the way, my Piwik 2.16.0, There is no error occur…

please give me the solution, i still try to find way the solution this full day…
please…

Hi,

Can you check serverside (e.g. in the log of your webserver) why it is returning a 400.

You can also check the Piwik log (How do I view Piwik application logs? - Analytics Platform - Piwik) if there is a reason for a 400.

Fatal error: Server returned status 400 (Bad Request).
Is the BulkTracking plugin disabled?

Did you double-check that the BulkTracking plugin is enabled?

Posting my solution here. When I encountered this problem, it occurred because the data drive on my matomo server had run out of space. Something else to check if you run out of options!