logseq / logseq/db-test

Not retrying sync even when network is online again (rtc-state: close)

Open
#969 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
28
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

I suspended the computer and resumed today. I left Logseq running.

I found the network recognized to be "online", but sync seem to be stopped completely. There is not even a sync status indicator (green or orange dot).

### Reproduce the Bug

0. Have Logseq running
1. Suspend Computer
2. Resume Computer
3. Check Sync status

### Expected Behavior

Sync should be regularly retried when network is online. No manual intervention should be needed when sync can work technically.

### Screenshots

Image

It synced again after clicking "Start Sync":
Image

### Files

I have sent db-worker-node logs by e-mail.

Issue state:

```
{:pending-local-ops 1,
:local-tx 1244,
:remote-tx 1244,
:rtc-state :close}
```

At the same time on android with working sync:

```
{:pending-local-ops 0,
:local-tx 1500,
:remote-tx 1500,
:rtc-state :open}
```

The issue state seem to be displayed by `:rtc-state :close`.

### Browser, Desktop or Mobile Platform Information

NixOS 25.11.10684.8fd9daa3db09
Logseq-linux-x86_64-2.0.1-alpha+nightly.20260623

### Additional Context

Similar behavior to https://github.com/logseq/db-test/issues/780, but there the sync status is shown.

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files, tests, or entry points are named. First reproduce the suspend-and-resume sequence on the reported NixOS desktop, then inspect the sync status around the reported `:rtc-state :close` value and compare it with the working Android state. Done means sync retries automatically after the network is online and the status indicator returns without clicking “Start Sync”.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, nixos
Domain
distributed-systems, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.