Desktop: Offline database issue

Created on 18 Jan 2017  路  35Comments  路  Source: standardnotes/desktop

Hi

I'm getting a message saying "Please enable permissions for Standard Notes to use IndexedDB for offline mode" when using the app in Linux Mint Sarah (based on 16.04 Ubuntu LTS). It looks like I'm getting the message when the app is trying to save the note I'm writing. Even with this popup, the notes look like they're properly synced.

Thanks!

Most helpful comment

Same on Windows

All 35 comments

Hmm that would be for offline storage. It will still sync to remote server. I tested on Linux a couple days ago, but let me test again shortly here and see if I can replicate the issue. Is it working in Chrome for you?

Yes it's working fine in the chrome app.

Ok thanks, will take a look at Linux app before the end of the week.

I'm encountering the same error on Linux Ubuntu MATE.

Same issue on Arch Linux running AwesomeWM

Thanks all will get this checked out asap.

Same on Windows

Is anyone who is having this issue available to jump on Slack real quick and help me test an updated version? I can't replicate this error at all, so I can't be sure if I've fixed it :/

Slack link: https://slackin-ekhdyygaer.now.sh/

Sure, be right there

The fix for @jebeaudet was to restart the app/computer. If anyone could try restarting their computer and confirm if that fixes the issue, let me know.

After restarting the computer, there's a new error:
Offline database issue: undefined

Interesting. I added this new log instead of the old one that aims to print out the actual error. Strange that it's undefined. Can you confirm or deny this: when you are signed out, and you see this error, and you type a note, then reload the app (via Ctrl+R), is your note still there? If it is, then perhaps the error is benign. Let me know what you see.

Regardless of how many times I sign our of the Desktop app, restart it, or the computer, this error remains. It pops up continuously every time the Desktop app tries to save. The app always starts with only one note, the initial New Note 1. When I create a new note, and refresh, the new note is gone with a fresh New Note 1. However, new notes created through the Desktop do appear in the Browser app, but no saved notes appear in the Desktop app, regardless of where they were created. Hope this helps!

Ok, strange, sorry about this. Please use the web app until we can sort this out. Really wish I could replicate it :/

Seems to happen every time the application wants to sync.

image

Ah ha! A log statement. This helps. So the DB instance is null. Now to figure out why that's the case.

Can you take a screenshot of what you see in the inspector here:

screen shot 2017-01-19 at 12 26 38 pm

I don't see anything after restarting the application and refreshing IndexedDB. I'm currently signed into n3.standardnotes.org.

You don't see anything as in the error is gone?

Apologies. The error remains, and there are no child nodes beneath the IndexedDB node in Storage inspector.

Ok, I'm going to push out an update right now with more detailed logging. One min.

Ok can you clear application cache, then reload, and let me know the details of the log statements you see. Should be pretty verbose.

Can you expand the nodes of the error object and target and see if you can find anything descriptive in there of what the issue is? Maybe some kind of error code or something?

image

Do you have sufficient space on your hard drive? Some reports say that might be the issue (I doubt this many people have insufficient space on their disk though)

A few hundred GB available.

Ok can you type this in your file explorer: %appdata%. Then go Standard Notes/IndexedDB and then delete the contents in there. And tell me if that fixes the issue.

I think I know what the issue is. Can you open your task manager and tell me how many Standard Notes processes you see? (detailed view)

Ok so I'm pretty sure the issue is because of this: https://github.com/standardnotes/desktop/issues/14

That is, when you close the window, the app doesn't quit, and therefore when you launch it again, it creates a new process, thus causing conflicts with IndexedDB access. This is why a restart fixed it for some people.

To fix, open up your task manager and quit all processes of Standard Notes. Then install the update here:
https://github.com/standardnotes/desktop/releases/tag/v0.1.2

If anyone runs this, please confirm your results.

Here's what I'm seeing in the inspector:

Offline database issue: Eventbubbles: truecancelBubble: falsecancelable: truecomposed: falsecurrentTarget: nulldefaultPrevented: falseeventPhase: 0isTrusted: truepath: Array[0]returnValue: truesrcElement: IDBOpenDBRequesttarget: IDBOpenDBRequesttimeStamp: 3050.9700000000003type: "error"__proto__: EventAT_TARGET: 2BLUR: 8192BUBBLING_PHASE: 3CAPTURING_PHASE: 1CHANGE: 32768CLICK: 64DBLCLICK: 128DRAGDROP: 2048FOCUS: 4096KEYDOWN: 256KEYPRESS: 1024KEYUP: 512MOUSEDOWN: 1MOUSEDRAG: 32MOUSEMOVE: 16MOUSEOUT: 8MOUSEOVER: 4MOUSEUP: 2NONE: 0SELECT: 16384bubbles: (...)get bubbles: ()cancelBubble: (...)get cancelBubble: ()set cancelBubble: ()cancelable: (...)get cancelable: ()composed: (...)get composed: ()composedPath: composedPath()constructor: Event()currentTarget: (...)get currentTarget: ()defaultPrevented: (...)get defaultPrevented: ()eventPhase: (...)get eventPhase: ()initEvent: initEvent()path: (...)get path: ()preventDefault: preventDefault()returnValue: (...)get returnValue: ()set returnValue: ()srcElement: (...)get srcElement: ()stopImmediatePropagation: stopImmediatePropagation()stopPropagation: stopPropagation()target: (...)get target: ()timeStamp: (...)get timeStamp: ()type: (...)get type: ()Symbol(Symbol.toStringTag): "Event"__proto__: Object
Offline database issue: Event
Getting all items with db null
Uncaught TypeError: Cannot read property 'transaction' of null
Offline database issue: Event
Saving items with db null
Uncaught TypeError: Cannot read property 'transaction' of null
Offline database issue: Event
Saving items with db null
Uncaught TypeError: Cannot read property 'transaction' of null
Offline database issue: Event {isTrusted: true, type: "error", target: IDBOpenDBRequest, currentTarget: IDBOpenDBRequest, eventPhase: 2鈥
Saving items with db null
Uncaught TypeError: Cannot read property 'transaction' of null

@mobitar it worked!

Yesssss!

Upgraded, and it works!

:) Thank you all for your reports.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

quirkyheadband picture quirkyheadband  路  3Comments

erlangp picture erlangp  路  6Comments

dymdipi picture dymdipi  路  5Comments

ErikBjare picture ErikBjare  路  5Comments

derkommandant picture derkommandant  路  5Comments