Joplin trying to sync file from note, but file has been removed

  • The version you are using. LATEST VERSION is not a version number!
    Joplin 1.7.11 (prod, win32)

  • If it is a sync issue, please let us know what you are syncing with.
    DropBox

  • If you report a problem with upgrading, please let us know both versions (from/to).

  • If you report a problem with the editor, please tell us which editor you are using (WYSIWYG/Markdown).

  • The operating system you are using.
    Windows 10 Home - on a Dell PC
    Version 2004
    OS Build 19041.867

THE PROBLEM
Been using Joplin for a month or two, nice app. For the past couple of weeks when I open Joplin it goes into a sync'ing loop(?) . The lower left corner will show a spinning 2 arrows and says 'cancel' . It can stay this way for several minutes. it seems to be on this :

2021-04-09 23:15:37: "Uploading a large resource (resourceId: 0714c0f1560f4b8ca2056599442c439e, size:12540187 bytes) which may tie up the sync process."

Router send and receives lights blink very fast and never stop once Joplin has been started.

Things I've tried, beside searching the net for a solution.

  1. I removed the file from the note
  2. I exported all my notes and then deleted them and restarted Joplin
  3. I stopped Joplin and deleted any Joplin files I could find in C:\Users\dales
  4. I deleted the Joplin app and reinstalled
  5. Went into DropBox and to File | Preferences | Sync and under the DropBox | Apps I de-selected (unchecked) the Joplin folder ( which is the only folder APPS ). I'm using encryption .

At the time the log below is taken, Joplin only has the two notes - the ones that were present when Joplin was first installed - "Joplin Editing Notes' and 'Welcome! (Desktop)' . But it still trying to do the listed above.

ALSO
For DropBox, what are the File | Preferences | Sync settings to use. I saw one article that said the Joplin Folder should be unchecked, but when I do that I see no files.

I also have Joplin installed on Android - latest version, a Dell laptop using Windows 10 Home, and a chrome book. They work fine. When I start Joplin on them, I'll see the list of notes and in the column for the notes, I'll briefly see the note name replace with encrypting. And I can see changes made in notes on them reflected on the problem PC. But never an updated note on the Windows PC to the other devices.

Thank you for any help.

If you can also please provide a log, as described here: https://joplinapp.org/debugging

2021-04-09 23:14:45: App: "Profile directory: C:/Users/dales/.config/joplin-desktop"
2021-04-09 23:14:45: "Database was open successfully"
2021-04-09 23:14:45: "Checking for database schema update..."
2021-04-09 23:14:45: "Current database version", "{"version":34,"table_fields_version":34}"
2021-04-09 23:14:45: "Upgrading database from version 34"
2021-04-09 23:14:45: "New version: 34. Previously recorded version: 34"
2021-04-09 23:14:45: "KeychainService: checking if keychain supported"
2021-04-09 23:14:45: "KeychainService: check was already done - skipping. Supported:", "1"
2021-04-09 23:14:45: App: "Client ID: b5a5a4d5512e475e9852ee42647aaa37"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "ResourceFetcher: Auto-add resources: Mode: always"
2021-04-09 23:14:45: "ResourceFetcher: Auto-added resources: 0"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "Scheduling sync operation...", "10000"
2021-04-09 23:14:45: "Setting up recurrent sync with interval 600"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "Scheduling sync operation...", "10000"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "Scheduling sync operation...", "10000"
2021-04-09 23:14:45: "app.start: doing regular boot"
2021-04-09 23:14:45: App: "Refreshing notes:", "null", "null"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "Scheduling sync operation...", "10000"
2021-04-09 23:14:45: "Setting up recurrent sync with interval 600"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "Scheduling sync operation...", "10000"
2021-04-09 23:14:45: "Trying to load 1 master keys..."
2021-04-09 23:14:45: "Loaded master keys: 1"
2021-04-09 23:14:45: "Scheduling sync operation...", "10000"
2021-04-09 23:14:45: App: "Refreshing notes:", "2", "4c6fc9e37cf544f0adc5a610e42d38ed"
2021-04-09 23:14:45: "Scheduling sync operation...", "1000"
2021-04-09 23:14:45: "RevisionService::runInBackground: Starting background service with revision collection interval 600000"
2021-04-09 23:14:45: SpellCheckerServiceDriverNative: "Set effective language from "en-US" to "en-US""
2021-04-09 23:14:46: "Preparing scheduled sync"
2021-04-09 23:14:46: "Saving updated Dropbox auth."
2021-04-09 23:14:46: "DecryptionWorker: starting decryption..."
2021-04-09 23:14:46: "Starting scheduled sync"
2021-04-09 23:14:47: "Loading existing note", "fbfc9875f95e4f76a00d1a25fecc057b"
2021-04-09 23:14:47: "Sync: starting: Starting synchronisation to target 7... [1618028087213]"
2021-04-09 23:14:47: FileApi: "get info.json"
2021-04-09 23:14:47: "Loaded note:", "{"id":"fbfc9875f95e4f76a00d1a25fecc057b","parent_id":"4c6fc9e37cf544f0adc5a610e42d38ed","title":"markdown editing","body":"\n1.\n### add a horizonal line\n\n* * \n\n2.\n### add 1 blank line\n\n

\n\n### add 2 blank lines\n\n

\n\n\n
* \n\n3.\n\n### this will allow tabs, but will not keep font\n\n

\nline1\t\ttext1\nline2\t\ttext2\nline3\t\ttext3\n
\n\n * *\n\n4.\n\n# BOLD & adds a horizontal line\n\n## BOLD\n\n### BOLD\n\n#### BOLD\n\n","created_time":1611461311083,"updated_time":1611514675214,"is_conflict":0,"latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":0,"user_created_time":1611461311083,"user_updated_time":1611514675214,"encryption_cipher_text":"","encryption_applied":0,"markup_language":1,"is_shared":0,"type_":1}"
2021-04-09 23:14:47: "Saving settings..."
2021-04-09 23:14:47: "DecryptionWorker: completed decryption."
2021-04-09 23:14:47: "Settings have been saved."
2021-04-09 23:14:49: "RevisionService::maintenance: Starting..."
2021-04-09 23:14:49: "RevisionService::maintenance: Service is enabled"
2021-04-09 23:14:49: "RevisionService::collectRevisions: Created revisions for 0 notes"
2021-04-09 23:14:49: "RevisionService::maintenance: Done in 118ms"
2021-04-09 23:14:53: "Sync target info:", "{"version":2}"
2021-04-09 23:14:53: FileApi: "list "
2021-04-09 23:14:53: FileApi: "list "
2021-04-09 23:14:55: "SearchEngine: Updating FTS table..."
2021-04-09 23:14:55: "SearchEngine: Updated FTS table in 1ms. Inserted: 0. Deleted: 0"
2021-04-09 23:15:01: FileApi: "put temp/timeCheck405101.txt", "null"
2021-04-09 23:15:05: FileApi: "stat temp/timeCheck405101.txt"
2021-04-09 23:15:08: FileApi: "delete temp/timeCheck405101.txt"
2021-04-09 23:15:08: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:15:15: "ResourceService::indexNoteResources: Start"
2021-04-09 23:15:15: "ResourceService::indexNoteResources: Completed"
2021-04-09 23:15:15: "ResourceService::deleteOrphanResources:", "[]"
2021-04-09 23:15:24: FileApi: "stat 0714c0f1560f4b8ca2056599442c439e.md"
2021-04-09 23:15:28: "Sync: createRemote: remote does not exist, and local is new and has never been synced: Resource: (Local 0714c0f1560f4b8ca2056599442c439e)"
2021-04-09 23:15:37: "Uploading a large resource (resourceId: 0714c0f1560f4b8ca2056599442c439e, size:12540187 bytes) which may tie up the sync process."
2021-04-09 23:15:37: FileApi: "put .resource/0714c0f1560f4b8ca2056599442c439e", "{"path":"C:/Users/dales/.config/joplin-desktop/resources/0714c0f1560f4b8ca2056599442c439e.crypted","source":"file"}"
2021-04-09 23:16:24: FileApi: "list "
2021-04-09 23:16:27: FileApi: "list "
2021-04-09 23:16:27: FileApi: "list "
2021-04-09 23:16:30: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:17:24: FileApi: "list "
2021-04-09 23:17:29: FileApi: "list "
2021-04-09 23:17:29: FileApi: "list "
2021-04-09 23:17:34: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:18:24: FileApi: "list "
2021-04-09 23:18:29: FileApi: "list "
2021-04-09 23:18:29: FileApi: "list "
2021-04-09 23:18:33: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:19:24: FileApi: "list "
2021-04-09 23:19:27: FileApi: "list "
2021-04-09 23:19:27: FileApi: "list "
2021-04-09 23:19:31: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:20:24: FileApi: "list "
2021-04-09 23:20:27: FileApi: "list "
2021-04-09 23:20:27: FileApi: "list "
2021-04-09 23:20:32: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:21:24: FileApi: "list "
2021-04-09 23:21:27: FileApi: "list "
2021-04-09 23:21:27: FileApi: "list "
2021-04-09 23:21:31: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:22:24: FileApi: "list "
2021-04-09 23:22:27: FileApi: "list "
2021-04-09 23:22:27: FileApi: "list "
2021-04-09 23:22:33: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:23:24: FileApi: "list "
2021-04-09 23:23:28: FileApi: "list "
2021-04-09 23:23:28: FileApi: "list "
2021-04-09 23:23:32: FileApi: "put locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json", "null"
2021-04-09 23:23:58: FileApi: "list "
2021-04-09 23:24:03: FileApi: "list "
2021-04-09 23:24:06: "FetchError: network timeout at: https://content.dropboxapi.com/2/files/upload
FetchError: network timeout at: https://content.dropboxapi.com/2/files/upload
at C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\node_modules\node-fetch\index.js:126:13"
2021-04-09 23:24:06: FileApi: "delete locks/sync_desktop_b5a5a4d5512e475e9852ee42647aaa37.json"
2021-04-09 23:24:10: "Sync: finished: Synchronisation finished [1618028087213]"
2021-04-09 23:24:10: "Operations completed: "
2021-04-09 23:24:10: "createRemote: 1"
2021-04-09 23:24:10: "Total folders: 2"
2021-04-09 23:24:10: "Total notes: 6"
2021-04-09 23:24:10: "Total resources: 63"
2021-04-09 23:24:11: "Setting up recurrent sync with interval 600"
2021-04-09 23:24:11: "Updating all notifications..."
2021-04-09 23:24:11: "Garbage collecting alarms..."
2021-04-09 23:24:11: "Sync has finished and note has never been changed - reloading it"
2021-04-09 23:24:12: "DecryptionWorker: starting decryption..."
2021-04-09 23:24:12: "DecryptionWorker: completed decryption."
2021-04-09 23:24:45: "RevisionService::maintenance: Starting..."
2021-04-09 23:24:45: "RevisionService::maintenance: Service is enabled"
2021-04-09 23:24:45: "RevisionService::collectRevisions: Created revisions for 0 notes"
2021-04-09 23:24:45: "RevisionService::maintenance: Done in 113ms"

android - latest version is 11

I'm sync'ing a note that doesn't exist anymore in Joplin.

not doing an upgrade

I'm using the default editor

In Joplin I exported all the notes, then deleted everything from DropBox and all notes from Joplin. No difference.

It's still trying to access a ~12M file that I used to have in a note. I've deleted the note it was in.

DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dales/AppData/Local/Programs/Joplin/resources/app.asar/ErrorBoundary.js.map:
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dales/AppData/Local/Programs/Joplin/resources/app.asar/versionInfo.js.map:
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dales/AppData/Local/Programs/Joplin/resources/app.asar/MenuBar.js.map:
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dales/AppData/Local/Programs/Joplin/resources/app.asar/import-enex-md-gen.js.map:
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dales/AppData/Local/Programs/Joplin/resources/app.asar/ResourceScreen.js.map:
DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dales/AppData/Local/Programs/Joplin/resources/app.asar/gui/note-viewer/pluginAssets/mermaid/mermaid.min.js.map:
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:16: Sync target info: {version: 2}
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:16: SearchEngine: Updating FTS table...
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:17: SearchEngine: Updated FTS table in 2ms. Inserted: 0. Deleted: 0
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:37: ResourceService::indexNoteResources: Start
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:37: ResourceService::indexNoteResources: Completed
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:37: ResourceService::deleteOrphanResources:
C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181 23:24:57: Uploading a large resource (resourceId: 0714c0f1560f4b8ca2056599442c439e, size:12540187 bytes) which may tie up the sync process.
log @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:181
warn @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:56
(anonymous) @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:451
fulfilled @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:5
Promise.then (async)
step @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:7
fulfilled @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:5
Promise.then (async)
step @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:7
fulfilled @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:5
Promise.then (async)
step @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:7
fulfilled @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:5
Promise.then (async)
step @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:7
fulfilled @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:5
Promise.then (async)
step @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:7
fulfilled @ C:\Users\dales\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Synchronizer.js:5

I think it's because you have note history enabled

Thank you everyone for your help. I finally solved the problem of Joplin continually attempting to sync a 12M file that I had removed from the Joplin note . I also changed on and off the selective sync, several times in DropBox, the apps folder in Joplin. Nothing seemed to help. So in Windows File Explorer I searched for anything that had Joplin in the name and deleted it, except the downloaded file to install Joplin, and the exported notes file. Reinstalled Joplin on the problem PC. No longer trying to sync the 12M file in a note. In Joplin I probably had encryption on.

But now I'm getting the dreaded " One or more master keys need a password. Set the password" banner at the top of the Joplin app on every device (PC, laptop, android, chromebook), but the sync process on all machines is now quick. I've searched the web for this message, and found a few matches, none were a good solution. Plus, on the Windows PC that had the 12M file issue, after making changes to notes on the other devices, when it syncs to the Windows PC, it creates a 'Conflicts' folder in Joplin, but the updated notes are in the 'real' folder, and in Conflicts they are the old notes.

In Joplin I've looked at the keys and I have at least two IDs, except on the Windows PC . The link "One or more master keys need a password. Set the password" doesn't give much information, and this link is long, with several entries describing a long and problematic process that may or may not resolve the problem.

I suspect I've the 'Set the password' problem by deleting all the Joplin files I could find on the Windows PC, plus deleting, more than once, the files in the DropBox / Apps / Joplin folder.

Think my next step will be to decrypt on every device and do syncs. Is there anything else I can do, or another solution to my problem of (1) the 'set the password' banner , and (2) the Windows PC getting the Conflicts folder when I sync changes that were made on other devices.

UPDATE: encryption is now off on all 4 devices and sync has been done. Last evening from the Windows PC I went into DropBox and for selective sync I unchecked Apps | Joplin . From the laptop this morning I used the web to access dropbox (other three I use dropbox app) and I see in Apps | Joplin the xxxxxxxxx.md files, I opened one and it is decrypted - I can read it normally. But I still have the banner at the top of the Joplin app that says 'One or more master keys need a password.' .

And I do have note history off, has been off since first suggested in a previous post.

And in DropBox under Apps | Joplin I looked for xxxxxxxx.md files that had the ' Missing Master Keys' ID in Joplin encryption setting ( there are two except on one device - The Windows PC that was having the problems ), and did not find file names that had the key ID. I also looked in the .resources sub-directory.

So after some testing between my 4 devices, I can only update a note on the Windows 10 PC, the machine that I had the sync problem trying to sync the ~12M file that no longer existed.

And I've noticed that when a sync is done, one of the last things I see is 'Decrypting items: 27/27' . But I have decryption turned off in Joplin on all 4 devices. And occasionally when I updated a not on the Windows 10 PC , and a sync occurs, I get a 'Conflicts' folder with that note.

I've exported my notes.

Is there any way I can erase everything related to Joplin and Dropbox and start over?

  1. Export all notes as JEX File > Export all > JEX
  2. Copy keymap-desktop.json, userchrome.css, userstyle.css and templates
  3. Close all Joplin Apps
  4. Delete %userprofile%\.config\joplin-desktop
  5. Delete the Appdata on the Mobile device
  6. Delete the Joplin folder in Dropbox
  7. Start Joplin Desktop
  8. Import the JEX File > Import > Jex
  9. Copy keymap-desktop.json, userchrome.css, userstyle.css and templates back
  10. Setup Sync on Desktop
  11. Wait until sync is completed
  12. Set up sync on the other devices

When you have

Thank you, it worked !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.