authorizerdev / authorizer

Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
https://authorizer.dev
MIT License
1.49k stars 150 forks source link

Throwing error when using SQLite with volume in Railway #454

Open takshch opened 4 months ago

takshch commented 4 months ago

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.

takshch commented 4 months ago

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

takshch commented 4 months ago

@lakhansamani Can you please take a look into it?

lakhansamani commented 1 month ago

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