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
Cannot start TUI - Failed to run the query 'DROP INDEX IF EXISTS message_session_idx;' #17944
$ opencode
Error: Unexpected error, check log file at /home/<user>/.local/share/opencode/log/2026-03-17T100129.log for more details
Failed to run the query 'DROP INDEX IF EXISTS `message_session_idx`;'
$ cat /home/<user>/.local/share/opencode/log/2026-03-17T100129.log
INFO 2026-03-17T10:01:29 +705ms service=default version=1.2.27 args=[] opencode
INFO 2026-03-17T10:01:29 +5ms service=default directory=/home/<user>/xxx creating instance
The error pattern (Drizzle migration failure on startup) is similar, though the specific query is different (DROP INDEX IF EXISTS message_session_idx vs `CREATE TABLE `project). The fix from #16506 (OPENCODE_SKIP_MIGRATIONS=1 bunx opencode-ai@dev) may help here as well.
Activity
github-actions commentedon Mar 17, 2026
This issue might be a duplicate of existing issues. Please check:
Failed to run the queryon startup)project" and logging issues #16678: Same startup crash withFailed to run the queryafter upgradeThe error pattern (Drizzle migration failure on startup) is similar, though the specific query is different (
DROP INDEX IF EXISTSmessage_session_idxvs `CREATE TABLE `project). The fix from #16506 (OPENCODE_SKIP_MIGRATIONS=1 bunx opencode-ai@dev) may help here as well.github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.