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

BadConnection when configuring for SQLite in Docker #852

Open
sssilver opened this issue May 21, 2021 · 3 comments
Open

BadConnection when configuring for SQLite in Docker #852

sssilver opened this issue May 21, 2021 · 3 comments
Labels
C: Bug Something isn't working

Comments

@sssilver
Copy link

My configuration looks like this:

    DATABASE_URL=/usr/db/plume.db
    MIGRATION_DIRECTORY=migrations/sqlite
    BASE_URL=mission1701.com
    # TODO: Put this in a vault
    ROCKET_SECRET_KEY=a+qtw6697cIF0cmX7dar33s0SU6JrDemIvWCiLYFv0Ub

When I launch Plume, I get the following error:

  $ k logs plume-7c8b66bc8f-jckbh -c install
Configuration read from /app/.env
thread 'main' panicked at 'Couldn't connect to the database.: BadConnection("missing \"=\" after \"/usr/db/plume.db\" in connection info string\n")', plume-cli/src/main.rs:35:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  • Plume version: latest Docker Hub image (0.6.0)
  • Operating system: Whatever is in the Docker image
  • Web Browser: Not applicable
@sssilver sssilver added the C: Bug Something isn't working label May 21, 2021
@sssilver
Copy link
Author

Looks like https://github.com/Plume-org/Plume/blob/main/Dockerfile does not build with the SQLite feature enabled. Not sure why? In my opinion, as the general Docker image for Plume, it should come with support for both database backends.

@sssilver sssilver changed the title BadConnection when configuring for SQLite BadConnection when configuring for SQLite in Docker May 21, 2021
@sssilver
Copy link
Author

Speaking of Docker, the build is currently broken because Rocket requires a very recent Rust Nightly, but the specified toolchain does not satisfy that requirement.

@trinity-1686a
Copy link
Contributor

trinity-1686a commented May 21, 2021

Plume code can't be compiled with support for both PostgreSQL and SQLite at the same time, that is why the docker image only support PostgreSQL. The installation instructions with docker don't mention SQLite for this reason. There could arguably be a second image published with support for SQLite (but not PostgreSQL)

ahangarha pushed a commit to ahangarha/Plume that referenced this issue Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants