obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Bug report: No available storage method found.

Open Quorafind opened this issue 1 year ago • 19 comments

What happened?

Tons of errors in Console:

图片

Uncaught (in promise) Error: No available storage method found. at driverPromiseLoop (plugin:dataview:13561:33)

And don't know why.

DQL

No.

JS

No.

Dataview Version

0.5.41

Obsidian Version

0.15.8

Device

PC

OS

windows 10

Quorafind avatar Jul 25 '22 06:07 Quorafind

Can you give us steps to reproduce this error?

AB1908 avatar Jul 25 '22 06:07 AB1908

It is weird that I can repro this in Sandbox, and don't need to do anything except download Dataview plugin.

图片

Is it related to admin rights in Windows 10?

Quorafind avatar Jul 25 '22 07:07 Quorafind

Very interesting. I'll let blacksmithgu comment.

AB1908 avatar Jul 25 '22 07:07 AB1908

Same issue here. And no response from any of the queries at the notes.

image

Fixed after a few restarts of Obsidian.

Obsidian: 1.3.4
Dataview: 0.5.56

juanbretti avatar Jun 01 '23 06:06 juanbretti

I have fixed that. just delete obsidian entirely(including roam folder). use everything or other software to find them and delete. reinstall, the error will disappear.

BetterWorld-Liuser avatar Jun 18 '23 03:06 BetterWorld-Liuser

I am seeing a bunch of these as well: 6plugin:dataview:12401 Uncaught (in promise) Error: No available storage method found. at driverPromiseLoop (plugin:dataview:12401:34)

Obsidian 1.5.0 Dataview 0.5.64 Windows

I'm also seeing very slow performance with my Obsidian (Obsidian is almost unusable). I don't know that dataview is the culprit yet. I'm still trying to figure that out.

Smitty010 avatar Nov 28 '23 21:11 Smitty010

I'm also seeing very slow performance with my Obsidian (Obsidian is almost unusable). I don't know that dataview is the culprit yet. I'm still trying to figure that out.

Could you list all the plugins you have installed?

juanbretti avatar Nov 28 '23 21:11 juanbretti

There's a bunch (which is why I'm not ready to point a finger at dataview yet). I have the commuity-plugins.json below.

To give you an idea of performance, I just did a video recording of a screen showing my windows task manager (performance screen), the obsidian developer tools page and my obsidian. One the logical cores went to 100% and stayed there for 16 minutes. I also looked at the processes and obsidian was taking anywhere from 25% to 50% according to windows (I'm not sure how it calculates those numbers). I should also mention that I have about 12k notes and 23k images. So, there's plenty of data to be looked at. Still I typically see dataview saying "all 11944 files have been indexed in 16.494s (11941 cached, 2 skipped)" (or something similar) within a minute of starting up.

My next thing to do is to create a clean vault with all of my notes, but none of the community plugins and slowly add plugins back in.

There's another message I saw which I can't quite find, but dataview was complaining that there was no document to focus on (something like that). I think it relates to the clipboard and I was doing some templater/dataview stuff at the time.

[ "obsidian-tasks-plugin", "templater-obsidian", "calendar", "obsidian-kanban", "obsidian-excalidraw-plugin", "obsidian-outliner", "nldates-obsidian", "quickadd", "periodic-notes", "homepage", "obsidian-minimal-settings", "note-refactor-obsidian", "darlal-switcher-plus", "recent-files-obsidian", "obsidian-spaced-repetition", "obsidian-style-settings", "obsidian-emoji-toolbar", "buttons", "workspaces-plus", "tag-wrangler", "hotkeysplus-obsidian", "obsidian-fullscreen-plugin", "obsidian-projects", "obsidian-plugin-update-tracker", "obsidian-wikipedia", "obsidian-reading-time", "obsidian-icon-folder", "text-extractor", "obsidian-task-marker", "open-vscode", "obsidian-grandfather", "no-dupe-leaves", "cm-editor-syntax-highlight-obsidian", "callout-manager", "obsidian-quiet-outline", "obsidian-linter", "mysnippets-plugin", "obsidian-textgenerator-plugin", "cmdr", "obsidian-admonition", "table-editor-obsidian", "obsidian-auto-link-title", "obsidian-statusbar-pomo", "obsidian-advanced-uri", "update-time-on-edit", "metadata-menu", "obsidian-scroll-to-top-plugin", "supercharged-links-obsidian", "dataview" ]

Here's the core-plugins.json

[ "file-explorer", "global-search", "switcher", "graph", "backlink", "canvas", "outgoing-link", "tag-pane", "properties", "page-preview", "templates", "note-composer", "command-palette", "slash-command", "editor-status", "bookmarks", "markdown-importer", "outline", "workspaces", "file-recovery", "sync" ]

Smitty010 avatar Nov 28 '23 21:11 Smitty010

btw--I'm not convinced that disabling a plugin totally keeps it from running. I got a complaint about dataview not being enabled (which it wasn't at the time) from excalibrain. But excalibrain was also disabled. I'm worried that disabling a plugin doesn't stop background threads from running.

Smitty010 avatar Nov 28 '23 21:11 Smitty010

btw--I'm not convinced that disabling a plugin totally keeps it from running. I got a complaint about dataview not being enabled (which it wasn't at the time) from excalibrain. But excalibrain was also disabled. I'm worried that disabling a plugin doesn't stop background threads from running.

Maybe, you could check here if the plugin is off. As long is not listed.

image

You can open the console with Shift+Ctrl+I (on Windows).

juanbretti avatar Nov 28 '23 22:11 juanbretti

I experienced this with a sandbox vault when I started Obsidian up. I only had dataview, tasks and templater plugins enabled/installed. It doesn't happen every time I start obsidian. But, once one note generates the error, it appears never to recover and all subsequent notes generate the same error. dataview tables are all empty.

It feels like a timing problem. Maybe the storage method isn't always available when you go to get it. I wonder if has to do with large vaults (10k+ notes). I don't know enough about obsidian internals to suggest anything else. I can tell you that when I start up, I have at least one CPU which is 100% utilized for a long time (can be a minute; have seen it as long as 15 minutes -- and yes, I mean minutes, not seconds).

Smitty010 avatar Nov 30 '23 00:11 Smitty010

I have 13.5k notes, and it does not take minutes to start. Are your notes too heavy, how much storage space takes your vault?

juanbretti avatar Nov 30 '23 18:11 juanbretti

Most are medium articles. The average note size is about 8k bytes (about 89MB total). there are 28k images averaging about 250K each (hopefully, dataview doesn't do much with them). The vault is about 9.3GB, but images are 8.11 and another 750MB in the .obsidian directory.

I have 128gb of ram and dual quad-core intel i9 processor. All of my drives are ssd.

It doesn't make sense to me either. It seems like it started when 1.5 arrived.

On Thu, Nov 30, 2023 at 11:16 AM Juan Pedro Bretti Mandarano < @.***> wrote:

I have 13.5k notes, and it does not take minutes to start. Are your notes too heavy, how much storage space takes your vault?

— Reply to this email directly, view it on GitHub https://github.com/blacksmithgu/obsidian-dataview/issues/1282#issuecomment-1834310155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4V7S76OJ32PPBMVLMHGG3YHDEQXAVCNFSM54RBLUH2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBTGQZTCMBRGU2Q . You are receiving this because you commented.Message ID: @.***>

Smitty010 avatar Nov 30 '23 23:11 Smitty010

Can someone lookup steps to clear localStorage and then attempt this again? IIRC there was some issue with it being full but I never managed to repro or investigate.

AB1908 avatar Dec 01 '23 01:12 AB1908

@BetterWorld-Liuser suggested I delete the C:\Users\scott\AppData\Roaming\obsidian directory and reinstall obsidian fresh. Looking in there, I can see files and directories which haven't been modified since at least March of last year. Not excited about that, but if you think it might solve the problem, I can give it a go. Is that what you're suggesting?

Smitty010 avatar Dec 01 '23 04:12 Smitty010

@BetterWorld-Liuser suggested I delete the C:\Users\scott\AppData\Roaming\obsidian directory and reinstall obsidian fresh. Looking in there, I can see files and directories which haven't been modified since at least March of last year. Not excited about that, but if you think it might solve the problem, I can give it a go. Is that what you're suggesting?

Maybe later, you can manually restore the data.json from each of the plugins (one by one). So, you don't have to reconfigure all again.

juanbretti avatar Dec 01 '23 06:12 juanbretti

See also: https://forum.obsidian.md/t/dataview-plugin-in-v1-4-4/65980?page=2

AB1908 avatar Dec 01 '23 08:12 AB1908

So, I believe the suggestion is that I go into the Application tab in the developers Tools, go to indexedDB and delete the dataview/cache/nnnnn DB entries. There's nothing "Local Storage" that seems to be dataview related. If that sounds correct, then I will proceed (though probably "tomorrow")

Smitty010 avatar Dec 01 '23 08:12 Smitty010

I have done this. I'll let you know if I see a repeat of the no storage method. It doesn't happen all of the time, so it may be difficult to spot again.

Smitty010 avatar Dec 01 '23 21:12 Smitty010