Skip to content

Cannot start TUI - Failed to run the query 'DROP INDEX IF EXISTS message_session_idx;' #17944

Closed as not planned

Description

@MKrabs

Description

$ 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
$ opencode --version
1.2.27
# System Details Report
---

## Report details
- **Date generated:**                              2026-03-17 11:07:00

## Hardware Information:
- **Hardware Model:**                              Dell Inc. Latitude 7440
- **Memory:**                                      32.0 GiB
- **Processor:**                                   13th Gen Intel® Core™ i7-1365U × 12
- **Graphics:**                                    Intel® Iris® Xe Graphics (RPL-U)
- **Disk Capacity:**                               512.1 GB

## Software Information:
- **Firmware Version:**                            1.26.1
- **OS Name:**                                     Ubuntu 24.04.4 LTS
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               46
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.17.0-19-generic

Plugins

{ "plugin": ["@franlol/[email protected]"], }

OpenCode version

1.2.27

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

Gnome terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 17, 2026
  2. github-actions commented on Mar 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    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.

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions