Skip to content

Throwing error when using SQLite with volume in Railway #454

Open

Description

@takshch

In Railway, it is throwing an error when using SQLite with volume(mount path /data)
Error: Failed to initialize SQL driver: unable to open database file: out of memory (14)

Screenshot from 2024-05-02 04-48-28

Steps To Reproduce
Create authorizer service using Docker file or this repository (https://github.com/takshch/authorizer-sqlite)

Docker file:

FROM lakhansamani/authorizer:1.4.0

ENV DATABASE_TYPE sqlite
ENV DATABASE_URL /data/data.db

CMD ./build/server

Create a volume with mount path /data and attach it to the authorizer service.

Check the deployment logs of the authorizer service.

Activity

  1. takshch commented on May 1, 2024

    @takshch
    Author

    Volume is required for data persistence.
    I want to use the authorizer with SQLite and the volume of the Railway.

  2. takshch commented on May 2, 2024

    @takshch
    Author

    @lakhansamani Can you please take a look into it?

  3. lakhansamani commented on Aug 3, 2024

    @lakhansamani
    Contributor

    @takshch sorry for the delay I will look into it this weekend

  4. takshch commented on Apr 18, 2025

    @takshch
    Author

    @lakhansamani I again received the same error.

  5. lakhansamani commented on Apr 19, 2025

    @lakhansamani
    Contributor
    Image

    I was able to make it work
    Mount path I choose for volumen was /app
    Database url I choose was data.db

    Image Image
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