Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Replica stuck at startup because database file is locked #611

Open
penberg opened this issue Aug 20, 2023 · 0 comments
Open

Replica stuck at startup because database file is locked #611

penberg opened this issue Aug 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@penberg
Copy link
Contributor

penberg commented Aug 20, 2023

We hit the following problem with a replica being stuck because database file is locked:

[info] _ _
[info] ___ __ _| | __| |
[info] / __|/ _` | |/ _` |
[info] \__ \ (_| | | (_| |
[info] |___/\__, |_|\__,_|
[info] |_|
[info] Welcome to sqld!
[info] version: 0.17.1
[info] commit SHA: 15edf5e5c902711c1ef8aa0e0cdb81efb6d18ed4
[info] build date: 2023-07-26
[info] This software is in BETA version.
[info] If you encounter any bug, please open an issue at https://github.com/libsql/sqld/issues
[info] config:
[info] - mode: replica (primary at [REDACTED])
[info] - database path: /data/iku.db
[info] - extensions path: <disabled>
[info] - listening for HTTP requests on: [::]:8080
[info] - grpc_tls: no
[info] 2023-08-20T06:42:52.828441Z INFO sqld::replication::replica::replicator: Attempting to perform handshake with primary.
[info] 2023-08-20T06:42:52.831402Z INFO sqld: Using JWT-based authentication
[info] 2023-08-20T06:42:52.832518Z INFO sqld: Server sending heartbeat to URL [REDACTED]
[info] 2023-08-20T06:42:52.832770Z INFO sqld::http: listening for HTTP requests on [::]:8080
[info] 2023-08-20T06:42:52.834973Z INFO sqld::hrana::ws: Listening for Hrana connections on [::]:2023
[info] 2023-08-20T06:42:52.838643Z WARN sqld: failed to open connection for storager monitor: Error code 5: The database file is locked, trying again in 60s
@penberg penberg added the bug Something isn't working label Aug 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant