Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SHIORI_DATABASE_URL fails silent and default (SQLite) is used #978

Open
IeP4nieF opened this issue Sep 8, 2024 · 0 comments
Open
Labels
type:bug Something isn't working

Comments

@IeP4nieF
Copy link

IeP4nieF commented Sep 8, 2024

Data

  • Shiori version: # shiori version Error: unknown command "version" for "shiori" Run 'shiori --help' for usage. FATA[0000] unknown command "version" for "shiori" (I'm using the latest docker image.)
  • Database Engine: Wanted: PostgreSQL, Used: SQLite
  • Operating system: linux
  • CLI/Web interface/Web Extension: ?

Describe the bug / actual behavior

I'm using podman-compose to run the latest docker image of shiori. In compose.yml there is a line

SHIORI_DATABASE_URL='postgres://shiori:[email protected]/shiori?sslmode=require'

and inside the container I get:

# echo $SHIORI_DATABASE_URL
postgres://shiori:[email protected]/shiori?sslmode=require

I thought that shiori is using this database-connection, because the only log-message I get when starting the container is:

[shiori] | time="2024-09-08T09:24:29+01:00" level=info msg="Serve shiori in :8080"

But today I looked at this Database and there are no tables! Shiori is using SQLite.

Expected behavior

If SHIORI_DATABASE_URL is set and there is a problem with connecting to this database, shiori should stop working instead of using the default (SQLite). Otherwise no one will recognize the error.

To Reproduce

Steps to reproduce the behavior:
Use shiori with SHIORI_DATABASE_URL set. Probably you need a problem with this connection too. But I don't know because there are no logs! The only log-message I get with podman-compose logs is the message shown above. BTW: How to set loglovel to debug?

@IeP4nieF IeP4nieF added the type:bug Something isn't working label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

1 participant