You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][Onboarding] GitHub token on v1.0.3-beta9 #8693
Hi @zachspar! I'm Dosu and I’m helping the incubator-devlake team.
This error happens because the database migration adds a token_expires_at column, but the Go struct used for onboarding doesn't include or set this field. As a result, when a new GitHub connection is created, MySQL tries to insert its zero value ('0000-00-00') for a NOT NULL DATETIME column, which is invalid in strict SQL modes and causes the error you see. This is a known class of issue and has affected other datetime fields in previous versions as well (example).
A fix for token management and the token_expires_at field was merged recently (PR #8667), so this should be resolved in a future release. For v1.0.3-beta9, you can work around this by either altering the _tool_github_connections table to allow NULL for token_expires_at, or by manually setting a valid default value (like CURRENT_TIMESTAMP) for that column in your database schema. There is no official workaround documented for this version, but these steps are based on the migration and model analysis.
If possible, keep an eye out for the next release and consider upgrading when it's available.
Activity
dosubot commentedon Feb 2, 2026
Hi @zachspar! I'm Dosu and I’m helping the incubator-devlake team.
This error happens because the database migration adds a token_expires_at column, but the Go struct used for onboarding doesn't include or set this field. As a result, when a new GitHub connection is created, MySQL tries to insert its zero value ('0000-00-00') for a NOT NULL DATETIME column, which is invalid in strict SQL modes and causes the error you see. This is a known class of issue and has affected other datetime fields in previous versions as well (example).
A fix for token management and the token_expires_at field was merged recently (PR #8667), so this should be resolved in a future release. For v1.0.3-beta9, you can work around this by either altering the _tool_github_connections table to allow NULL for token_expires_at, or by manually setting a valid default value (like CURRENT_TIMESTAMP) for that column in your database schema. There is no official workaround documented for this version, but these steps are based on the migration and model analysis.
If possible, keep an eye out for the next release and consider upgrading when it's available.
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
klesh commentedon Feb 3, 2026
Hi @ysinghc, could you please take a look at this when you have a moment? Thanks in advance!
ysinghc commentedon Feb 3, 2026
@klesh sure, I will take a look at this issue asap.
ysinghc commentedon Feb 6, 2026
I have reproduced the issue. I will try to fix it by the weekend
KunalKatariya commentedon Feb 9, 2026
As a workaround I added below line in command of mysql in docker-compose.yaml: