-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
Error on update database migration: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes #788
Comments
I guess the problem is that my collation is utf8mb4 by default but the migration script assumes it's utf8 from |
Yep, sorry! That was reported yesterday, but I didn't have the time to fix it by now: #782 (comment) AFAIK this is not happening on newer database engines (both MySQL and MariaDB), I tried it on at least three servers and none failed, thats why I didn't find it. But I will push an update later, reducing the column length to 100 character, nobody needs tags with 255 chars ;-) |
I fixed it quick and dirty: I changed 255 to 191 on line 35 in the last migration script. Here: Now it migrates and runs flawlessly At least now I have a working setup, will I have a problem later with this change? I think my next git pull will overwrite this, but will it be a problem on the next migration? |
No, you won't get into troubles with that solution. |
Oh btw: are you using the calendar? |
No |
Too bad, then I need to find someone else for testing :D |
Are you speaking about this PR? #784 I can test it. |
Cool, thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Describe the bug
I'm on rolling release on my prod server, so I just
git pull
without checkout. I followed the upgrading guide and on the database migration I got the following error:Now I get error 500. Is it fixable, or should I reinstall kimai? I have a backup before the migration.
Here is the full terminal output: https://pastebin.com/GSUbFrgS
I tried running migration again as root and again as www-data. This is a sudo-less debian install so before this I always run migration as www-data.
Here is the output of the other two trials: https://pastebin.com/J4q6qGri
To Reproduce
Try to update from my current setup.
Logfile
Here is the prod.log around this time: https://pastebin.com/nAgCdR9P
Screenshots
Desktop/Smartphone
Additional context
Add any other context about the problem here.
Mysql: collation on all tables is utf8mb4_unicode_ci except for the migration table, that's utf8_unicode_ci
Here is my DB summary:
Kimai version: from 0.9 master to current master
PHP:
The text was updated successfully, but these errors were encountered: