New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Error "Data too long for column 'config_device_model'" #21061
Comments
Hi @Thomas-TeS. It looks something is wrong with the import in your case. The field |
@sgiehl Ah ok, then I've confused the field from your side with the useragent from the log. I took the value
which I pasted above directly from the source logs and thought it would just be parsed into the field. As log-format we're using apache combined. To my knowledge nothing has recently changed in the way we import or format the logs. And the first 6410 lines don't seem to create any problems which puzzles me... If bot-detection is on by default, we also have this on. For testing purposes I created a new website inside Matomo with only the default settings. One additional thing I've noticed is that the line from the ERROR changes to different values, e.g.:
This seems to be connected to the param --skip which I tried with different values (e.g. 1000,2000,6410). |
Ok, I've found the correct line which fails the import. My assumption that I could just use the skip-param given by the error was incorrect. The log-line which fails the import contains the following user agent which is likely to contain a device name larger than 100 chars (I don't know how you split the name specificially):
This was line 6528 btw. |
@Thomas-TeS I've just checked that specific useragent with the device detector version that is used with Matomo 4.15. |
@sgiehl thanks for the update. For a quick fix we decided to trim the string and that worked too. Nonetheless, good to hear that this'll be fixed with the new major version :) |
Context
I'm automatically and periodically importing logs into Matomo. Since a few days now, a problem occurred during the log-import. The server hosting Matomo always sent a "HTTP Error 500" after a certain number of lines got imported.
I've now tried to import them manually with the same behaviour as above and the following hint:
Using the line 6410 and the error-logs from the Matomo server I've narrowed it down to the following error:
The log contains the following value for 'config_device_model' which seems to be too long for the import:
Expected Behavior
No error on log import? I don't know what to write here...
Current Behavior
Log-import fails and is completely aborted after failing.
Possible Solution
I think truncating the 'config_device_model' or increasing the size of the accoring column in the db are two feasable solutions.
Steps to Reproduce (for Bugs)
Create a log-file with the 'config_device_model' value from above and try to import it.
Your Environment
The text was updated successfully, but these errors were encountered: