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

SQLite is not working #3435

Open
matrixbot opened this issue Nov 2, 2024 · 2 comments
Open

SQLite is not working #3435

matrixbot opened this issue Nov 2, 2024 · 2 comments

Comments

@matrixbot
Copy link
Collaborator

This issue was originally created by @paigeadelethompson at matrix-org/dendrite#3435.

followed the documentation @ https://matrix-org.github.io/dendrite/installation/manual/database and it don't work

monolith-1  | time="2024-09-28T13:21:13.627063518Z" level=panic msg="failed to connect to room server db" error="near \"SEQUENCE\": syntax error"
monolith-1  | panic: (*logrus.Entry) 0xc0002682a0
  database:
    connection_string: file:dendrite_component.db
    max_open_conns: 5
    max_idle_conns: 5
    conn_max_lifetime: -1

tried file:/// and it dont work

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @manchelsi at matrix-org/dendrite#3435 (comment).

Note that Dendrite cannot share a single SQLite database across multiple components. Each component must be configured with its own SQLite database filename. You will have to remove the global.database section from your Dendrite config and add it to each individual section instead in order to use SQLite.

@vxtls
Copy link

vxtls commented Nov 21, 2024

`room_server:
database:
type: sqlite3
connection_string: "file:/data/chat/room_server.db"

federation_api:
database:
type: sqlite3
connection_string: "file:/data/chat/federation_api.db"

key_server:
database:
type: sqlite3
connection_string: "file:/data/chat/key_server.db"

media_api:
database:
type: sqlite3
connection_string: "file:/data/chat/media_api.db"

sync_api:
database:
type: sqlite3
connection_string: "file:/data/chat/sync_api.db"

user_api:
account_database:
type: sqlite3
connection_string: "file:/data/chat/user_api.db"

relay_api:
database:
type: sqlite3
connection_string: "file:/data/chat/relay_api.db"

mscs:
database:
type: sqlite3
connection_string: "file:/data/chat/mscs.db"
`

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