Skip to content

[BUG] SQLiteError: unable to open database file when running with podman compose #141

@yushisora

Description

@yushisora

Describe the bug
The container cannot start with SQLiteError: unable to open database file when running with podman compose.

Affects:

  • Standalone mode

To Reproduce
Steps to reproduce the behavior:

  1. start container with podman-compose up -d

Expected behavior
the container starts

Additional context
Here is the error log:

220 |           onconnect(null);
221 |       } catch {
222 |       }
223 |     } catch (err) {
224 |       if (err && typeof err === "object" && "name" in err && err.name === "SQLiteError") {
225 |         this.storedError = new SQLiteError(message, { code, errno, byteOffset });
                                 ^
SQLiteError: unable to open database file
      errno: 14,
 byteOffset: -1,
       code: "SQLITE_CANTOPEN"

      at new SQLiteAdapter (internal:sql/sqlite:225:28)
      at adapterFromOptions (bun:sql:11:14)
      at new SQL2 (bun:sql:17:117)
      at initDb (/usr/src/app/src/db.js:14:8)
      at initDb (/usr/src/app/src/db.js:11:22)
      at /usr/src/app/src/db.js:78:12

Bun v1.3.2 (Linux x64 baseline)

This is my compose.yml which is executed by podman compose:

services:
  cap:
    image: docker.io/tiago2/cap:latest
    container_name: cap
    ports:
      - 3000:3000
    network_mode: pasta
    env_file: .env
    volumes:
      - ./data:/usr/src/app/.data

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions