Error at starting up

Operating system

macOS

Joplin version

3.3.13

Desktop version info

Hi,
I had to reset my mac user password from an other admin session. Since then, Joplin fails to start with the error below. The storage of Joplin is local (in a OneDrive sync folder). I did check that this one is available. Note that Joplin was asked to encrypt the storage. I can a debug this issue ?
Many thanks
Best regards
Jacques


Sync target

OneDrive

What issue do you have?

An error occurred: Fatal error:

Unexpected token 'r', "raqzN:"... is not valid JSON

SyntaxError: Unexpected token 'r', "raqzN:"... is not valid JSON
at JSON.parse ()
at Setting.formatValue (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/models/Setting.js:584:29)
at pushItemsToCache (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/models/Setting.js:373:32)
at Setting.load (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/models/Setting.js:380:9)
at async loadKeychainServiceAndSettings (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/services/SettingUtils.js:29:5)
at async Application.start (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/BaseApplication.js:666:9)
at async Application.start (/Applications/Joplin.app/Contents/Resources/app.asar/app.js:351:16)
at async main (file:///Applications/Joplin.app/Contents/Resources/app.asar/main-html.js:121:22)

It looks like your %home%/.config/joplin-desktop/settings.json file is corrupted. It should contain json content, but it might be that the whole joplin-desktop dir has been encrypted by the OS and now is no longer readable by Joplin

Thanks @mrjo118 for your suggestion. Xcode has no problem opening ~/.config/joplin-desktop/settings.json and the content looks normal. By the way, my message may have been confusing. Encryption means using End-To-End Encryption featured in Joplin.
Thanks for your help
Best
Jacques

Ok, thanks for clarifying. Does the settings.json file contain raqzN anywhere in it, and if so can you please post that section of the json?

Also can you check if the info.json file in your Joplin OneDrive folder is valid json as well and check if it contains raqzN anywhere in it?

info.json looks also reasonable in Xcode. No raqzN in these files.
Best
J

Ok, maybe something else is just randomly corrupted on the profile. Try deleting the joplin-desktop folder (back it up first) and see if Joplin will start. If it works then you can just reconnect sync to redownload your note data