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

Space bar keeps trying to use SQLite instead of Postgres Docker. #1248

Open
grenius opened this issue Dec 20, 2024 · 1 comment
Open

Space bar keeps trying to use SQLite instead of Postgres Docker. #1248

grenius opened this issue Dec 20, 2024 · 1 comment

Comments

@grenius
Copy link

grenius commented Dec 20, 2024

Describe the bug
When creating a spacebar server with postgres in docker, the server keeps trying to use SQL lite and tries to install it.

To Reproduce
Create a docker compose file with postgres as the database and run it.

Expected behavior
Spacebar should start.

Console Logs
spacebar | DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
spacebar | at SqliteDriver.loadDependencies (/exec/node_modules/typeorm/driver/sqlite/SqliteDriver.js:143:19)
spacebar | at new SqliteDriver (/exec/node_modules/typeorm/driver/sqlite/SqliteDriver.js:25:14)
spacebar | at DriverFactory.create (/exec/node_modules/typeorm/driver/DriverFactory.js:44:24)
spacebar | at new DataSource (/exec/node_modules/typeorm/data-source/DataSource.js:53:59)
spacebar | at Object. (/exec/dist/util/util/Database.js:42:27)
spacebar | at Module._compile (node:internal/modules/cjs/loader:1256:14)
spacebar | at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
spacebar | at Module.load (node:internal/modules/cjs/loader:1119:32)
spacebar | at Module._load (node:internal/modules/cjs/loader:960:12)
spacebar | at Module.require (node:internal/modules/cjs/loader:1143:19) uncaughtException

System Information (please complete the following information):

  • OS: Debian 12
  • Version (If not applicable skip): Bookworm
  • Python 3 Version: Python 3.11

Env and Software info

  • Release: Docker container
  • Database: Postgres 15
  • Reverse Proxy: ngnix

Additional context
Database is up, healthy and listening.

@TheArcaneBrony
Copy link
Member

We don't officially support docker. Did you set the DATABASE environment variable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants