Skip to content

version 3.0.0 run error #1030

Open
Open

Description

@DalongZhenZ

Describe the bug:
attu 3.0.0 run error

Steps to reproduce:
docker-compose :

attu:
image: zilliz/attu:v3.0.0
ports:
- "3000:3000"
environment:
- MILVUS_ADDRESS=milvus:19530
volumes:
- ./attu-data:/data
depends_on:
- milvus

error:
{
"error": true,
"status": 500,
"unhandled": true
}

detail:
2026-09-04T01:59:22.177643027Z [milvus-attu-1] SqliteError: unable to open database file
2026-09-04T01:59:22.177669401Z [milvus-attu-1] at new Database (/app/.output/server/node_modules/better-sqlite3/lib/database.js:69:26)
2026-09-04T01:59:22.177670420Z [milvus-attu-1] at createSqliteDatabaseProvider (file:///app/.output/server/_chunks/provider.mjs:2101:17)
2026-09-04T01:59:22.177671180Z [milvus-attu-1] at file:///app/.output/server/_chunks/database.mjs:22:109 {
2026-09-04T01:59:22.177671809Z [milvus-attu-1] cause: SqliteError: unable to open database file
2026-09-04T01:59:22.177672417Z [milvus-attu-1] at new Database (/app/.output/server/node_modules/better-sqlite3/lib/database.js:69:26)
2026-09-04T01:59:22.177673230Z [milvus-attu-1] at createSqliteDatabaseProvider (file:///app/.output/server/_chunks/provider.mjs:2101:17)
2026-09-04T01:59:22.177673900Z [milvus-attu-1] at file:///app/.output/server/_chunks/database.mjs:22:109 {
2026-09-04T01:59:22.177674545Z [milvus-attu-1] code: 'SQLITE_CANTOPEN'
2026-09-04T01:59:22.177681375Z [milvus-attu-1] },
2026-09-04T01:59:22.177682044Z [milvus-attu-1] status: 500,
2026-09-04T01:59:22.177682641Z [milvus-attu-1] statusText: undefined,
2026-09-04T01:59:22.177683228Z [milvus-attu-1] headers: undefined,
2026-09-04T01:59:22.177683784Z [milvus-attu-1] data: undefined,
2026-09-04T01:59:22.177684361Z [milvus-attu-1] body: undefined,
2026-09-04T01:59:22.177684947Z [milvus-attu-1] unhandled: true
2026-09-04T01:59:22.177685541Z [milvus-attu-1] }

Attu version:

3.0.0

Activity

  1. shanghaikid commented on Sep 4, 2026

    @shanghaikid
    Collaborator

    Thanks for reporting this. We reproduced the same SQLITE_CANTOPEN error when /data is not writable.

    Attu v3 runs as the non-root node user (uid=1000, gid=1000). The bind mount ./attu-data:/data replaces the /data directory prepared inside the image, so the host directory must be writable by that user.

    The recommended option is to use a named volume:

    services:
      attu:
        image: zilliz/attu:v3.0.0
        ports:
          - "3000:3000"
        environment:
          - MILVUS_ADDRESS=milvus:19530
        volumes:
          - attu-data:/data
    
    volumes:
      attu-data:

    If you need to keep the bind mount, prepare its ownership before starting Attu:

    mkdir -p ./attu-data
    sudo chown -R 1000:1000 ./attu-data
    docker compose up -d

    On an SELinux-enabled host, also use ./attu-data:/data:Z. Please let us know your host OS if the error remains after correcting the directory ownership.

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

Metadata

Metadata

Assignees

No one assigned

    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