Giter Site home page Giter Site logo

Comments (5)

marph91 avatar marph91 commented on June 8, 2024

Same for me:

  • Joplin 2.14.11 (prod, linux)
  • Synchronization interval: 5 minutes
  • Sync target: self-hosted nextcloud

from joplin.

personalizedrefrigerator avatar personalizedrefrigerator commented on June 8, 2024

I can reproduce this with Joplin Server sync (synchronization interval: 1 hour, Joplin in dev mode, v2.14.11), but not filesystem sync.

from joplin.

personalizedrefrigerator avatar personalizedrefrigerator commented on June 8, 2024

I'm getting a large number of

10:02:21: App: "syncInfoCache" was changed - setting up encryption related code

messages in the log.

The relevant code seems to trigger a sync 10 seconds in the future:

// changed. This is not optimal but:
// - The sync target info rarely changes.
// - All the calls below are cheap or do nothing if there's nothing
// to do.
'syncInfoCache': async () => {
if (this.hasGui()) {
appLogger.info('"syncInfoCache" was changed - setting up encryption related code');
await loadMasterKeysFromSettings(EncryptionService.instance());
void DecryptionWorker.instance().scheduleStart();
const loadedMasterKeyIds = EncryptionService.instance().loadedMasterKeyIds();

});
// Schedule a sync operation so that items that need to be encrypted
// are sent to sync target.
void reg.scheduleSync();
}

public scheduleSync = async (delay: number = null, syncOptions: any = null, doWifiConnectionCheck = false) => {
this.schedSyncCalls_.push(true);
try {
if (delay === null) delay = 1000 * 10;
if (syncOptions === null) syncOptions = {};

from joplin.

personalizedrefrigerator avatar personalizedrefrigerator commented on June 8, 2024

From a git bisect, 7b06090 seems to be the first commit with this issue.

from joplin.

stevemagruder avatar stevemagruder commented on June 8, 2024

I've noted this in the Joplin forum, but this applies to the Windows app as well. I'm seeing the same issue happen with a 30-minute interval set. (this is a "for the record" statement, given the above code fix covers Windows too)

from joplin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.