Error when connecting to Matomo: 'utf-8' codec can't decode byte

Hi,

I have installed a new Matomo server on ubuntu.
I am trying to import old server log files
I am getting the following…

localadmin@uhs-matomo:/var/www/html$ python3 /var/www/html/misc/log-analytics/import_logs.py --url=http://myurl.com /home/localadmin/logs/2019/u_ex190620.log
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Parsing log /home/localadmin/logs/2019/u_ex190620.log…
2024-05-29 10:21:37,453: [INFO] Error when connecting to Matomo: ‘utf-8’ codec can’t decode byte 0xe9 in position 27775: invalid continuation byte
2024-05-29 10:21:37,453: [INFO] Retrying request, attempt number 2
4104 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
4104 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
4104 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
4104 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)

Ive found some mentions of a similar error on a 3 year old bug that seems to have been fixed and then nothing since. Anyone know how i can work out whats going on. ?

Anyone ?

I’m getting put under pressure to get our log files into Matomo.

If anyone can suggest a solution or at least a debugging tactic that would be great.