Skip to content

Sync does not continue when internet is back online #780

@davidak

Description

@davidak

Search first

  • I searched and no similar issues were found

What Happened?

When internet was offline and is back online, the sync does not start again. I waited 35 minutes!

I reproduced it 2 times. So i would say always reproducible.

Reproduce the Bug

  1. disable internet (not network) like in Sync status online despite no internet connection #779
  2. enable internet again
  3. wait for sync to continue

Expected Behavior

Sync should continue immediately when internet is back up!

Files

Image

Browser, Desktop or Mobile Platform Information

NixOS 25.11.7516.3e20095fe3c6
Desktop App
Logseq 2.0.1 (e8bddda)

Additional Context

Log

sync.cljs:1839 00:53:08.119 [frontend.worker.sync] {:db-sync/ws-stale-timeout {:repo "logseq_db_Test", :stale-ms 638517}, :line 1839}
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$04$$ @ core.cljs:3996
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$03$$ @ core.cljs:3991
$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$ @ core.cljs:3985
(anonymous) @ console.cljs:45
$log_record_handler$$ @ glogi.cljs:199
(anonymous) @ log.js:702
$JSCompiler_StaticMethods_publish$$ @ log.js:701
$goog$log$publishLogRecord$$ @ log.js:994
$lambdaisland$glogi$log$cljs$0core$0IFn$0_invoke$0arity$04$$ @ glogi.cljs:26
(anonymous) @ sync.cljs:1839
setInterval
$frontend$worker$sync$close_stale_ws_loop$$ @ sync.cljs:1828
$frontend$worker$sync$connect_BANG_$$ @ sync.cljs:1876
(anonymous) @ sync.cljs:1791
(anonymous) @ impl.cljc:105
$$jscomp$scope$84173391$25$processNextTick$$ @ promise.js:286
(anonymous) @ promise.js:189
Promise.then
(anonymous) @ promise.js:189
$$jscomp$scope$84173391$24$process$$ @ promise.js:260
$JSCompiler_StaticMethods_fbind$$ @ promise.js:119
$JSCompiler_prototypeAlias$$.$promesa$protocols$IPromise$_mcat$arity$2$ @ impl.cljc:105
$promesa$protocols$_mcat$$.$cljs$core$IFn$_invoke$arity$2$ @ protocols.cljc:17
$promesa$protocols$_mcat$$ @ protocols.cljc:10
(anonymous) @ sync.cljs:1790
(anonymous) @ impl.cljc:105
$$jscomp$scope$84173391$25$processNextTick$$ @ promise.js:286
(anonymous) @ promise.js:189
Promise.then
(anonymous) @ promise.js:189
$$jscomp$scope$84173391$24$process$$ @ promise.js:260
$JSCompiler_StaticMethods_fbind$$ @ promise.js:119
$JSCompiler_prototypeAlias$$.$promesa$protocols$IPromise$_mcat$arity$2$ @ impl.cljc:105
$promesa$protocols$_mcat$$.$cljs$core$IFn$_invoke$arity$2$ @ protocols.cljc:17
$promesa$protocols$_mcat$$ @ protocols.cljc:10
(anonymous) @ sync.cljs:1790
setTimeout
$frontend$worker$sync$schedule_reconnect_BANG_$$ @ sync.cljs:1784
$ws$jscomp$5$$.onclose @ sync.cljs:1815
sync.cljs:1811 00:53:18.792 [frontend.worker.sync] {:db-sync/ws-closed {:repo "logseq_db_Test"}, :line 1811}
sync.cljs:1798 00:53:18.792 [frontend.worker.sync] {:db-sync/ws-reconnect-scheduled {:repo "logseq_db_Test", :delay 1158, :attempt 0, :reason :close}, :line 1798}

Workaround

Change to another graph and back. Then the sync will start again.

Similar to #774, but on desktop.

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

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions