FirstHonour
FirstHonour3mo ago

self host getting stuck

Hello i am self hosting convex using docker. it was working perfectly for months. then suddenly one day after restarting my pc (windows 11) running the backend no longer works. the commands:
$env:PATH += ";C:\Program Files\Git\bin"
$env:AWS_LC_SYS_PREBUILT_NASM = "1"
just run-local-backend
$env:PATH += ";C:\Program Files\Git\bin"
$env:AWS_LC_SYS_PREBUILT_NASM = "1"
just run-local-backend
the log
cargo run -p local_backend --bin convex-local-backend -- "$@"
warning: unused variable: `hash`
--> crates\fivetran_common\build.rs:36:9
warning: unused variable: `hash`
--> crates\fivetran_common\build.rs:36:9
|
36 | let hash = hasher.finish();
36 | let hash = hasher.finish();
| ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
|
= note: `#[warn(unused_variables)]` on by default

warning: constant `FILE_HASH` is never used
--> crates\fivetran_common\build.rs:22:7
|
22 | const FILE_HASH: u64 = 1411440539;
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default

warning: `convex_fivetran_common` (build script) generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.61s
Running `target\debug\convex-local-backend.exe`
2025-09-10T06:07:54.645978Z INFO convex_local_backend: Starting a Convex backend
2025-09-10T06:07:54.646342Z INFO convex_local_backend: The self-host Convex backend will periodically communicate with a remote beacon server. This is to help Convex understand and improve the product. You can disable this telemetry by setting the --disable-beacon flag or the DISABLE_BEACON environment variable if you are self-hosting using the Docker image.
2025-09-10T06:07:54.646650Z INFO convex_local_backend: Sentry is not enabled.
2025-09-10T06:07:54.650565Z INFO db_connection: Connected to SQLite at convex_local_backend.sqlite3
2025-09-10T06:07:54.651242Z INFO search::searcher::searcher: Searchlight starting, local_storage_path: C:\Users\nopel\AppData\Local\Temp\.tmpjbbhsY max_size: 500.0 MiB
cargo run -p local_backend --bin convex-local-backend -- "$@"
warning: unused variable: `hash`
--> crates\fivetran_common\build.rs:36:9
warning: unused variable: `hash`
--> crates\fivetran_common\build.rs:36:9
|
36 | let hash = hasher.finish();
36 | let hash = hasher.finish();
| ^^^^ help: if this is intentional, prefix it with an underscore: `_hash`
|
= note: `#[warn(unused_variables)]` on by default

warning: constant `FILE_HASH` is never used
--> crates\fivetran_common\build.rs:22:7
|
22 | const FILE_HASH: u64 = 1411440539;
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default

warning: `convex_fivetran_common` (build script) generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.61s
Running `target\debug\convex-local-backend.exe`
2025-09-10T06:07:54.645978Z INFO convex_local_backend: Starting a Convex backend
2025-09-10T06:07:54.646342Z INFO convex_local_backend: The self-host Convex backend will periodically communicate with a remote beacon server. This is to help Convex understand and improve the product. You can disable this telemetry by setting the --disable-beacon flag or the DISABLE_BEACON environment variable if you are self-hosting using the Docker image.
2025-09-10T06:07:54.646650Z INFO convex_local_backend: Sentry is not enabled.
2025-09-10T06:07:54.650565Z INFO db_connection: Connected to SQLite at convex_local_backend.sqlite3
2025-09-10T06:07:54.651242Z INFO search::searcher::searcher: Searchlight starting, local_storage_path: C:\Users\nopel\AppData\Local\Temp\.tmpjbbhsY max_size: 500.0 MiB
5 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
FirstHonour
FirstHonourOP3mo ago
keeping in mind i did not change the schema or anything related to the database for over a week now and it was running perfectly i desperately need help as we are developing a project for work well it works it just takes 30 minutes to load..
ari-cake
ari-cake3mo ago
Is that the entire log? It looks like the process is still running from this Ah, hm, that makes more sense. How big's your DB, and have you turned on rust tracing?
FirstHonour
FirstHonourOP2mo ago
hi sorry for responding late my database is pretty big i think i have 24 tables and about 80 indexes it only started taking this long after i tested my app and used it for a whole day and filled it with alot of data so i think its the indexes that take long?
ari-cake
ari-cake2mo ago
Not sure - what do the logs say? And let’s ignore number of tables, how many documents / rows? How much data (in gigabytes)

Did you find this page helpful?