Fatal error: `Unable to init PersistenceStore undefined`
- Prisma version (
prisma -vornpx prisma -v):
prisma : 3.11.1
@prisma/client : 3.9.2
Current platform : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 1a2506facaf1a4727b7c26850735e88ec779dee9 (at ../../node_modules/.pnpm/@[email protected]/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
Migration Engine : migration-engine-cli 1a2506facaf1a4727b7c26850735e88ec779dee9 (at ../../node_modules/.pnpm/@[email protected]/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core 1a2506facaf1a4727b7c26850735e88ec779dee9 (at ../../node_modules/.pnpm/@[email protected]/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary : prisma-fmt 1a2506facaf1a4727b7c26850735e88ec779dee9 (at ../../node_modules/.pnpm/@[email protected]/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : 1a2506facaf1a4727b7c26850735e88ec779dee9
Studio : 0.458.0
- Logs from Developer Tools Console or Command line, if any:
Screenshot
-
Does the issue persist even after updating to the latest
prismaCLI dev version? (npm i -D prisma@dev) Yes -
Prisma schema (if relevant): N/A
Additional notes
This started to happen to me as of today with Brave V1.37.109 (Mar 30, 2022).
Their changelog mentions an upgrade to Chromium 100.0.4896.60 (changelog).
The only reference to "indexed db" I found is a commit that reverts https://chromium-review.googlesource.com/c/chromium/src/+/3271759/.
Also worth mentioning, Studio works with Firefox.
Thanks for the report. Let's see if someone else has the same problem with Chrome(ium) 100.
Consistently running into "Unable to init PersistenceStore" error (presented by dialog, in Studio), in Firefox.
This is no longer an issue for me with Chromium 101.0.4951.64. Given others reported the same issue with Firefox, I'm going to keep the issue open.
Can confirm having this issue with Chrome: 106.0.5249.61 however not getting this on Brave: Version 1.44.108 Chromium: 106.0.5249.103 or on Edge: Version 106.0.1370.37. Weird maybe something chrome specific?
It works on Incognito on Chrome for me. I tried to see if it was any extensions but didn't seem to be.
Still an issue on FireFox (107.0.1)
Additional context, from browser log on FireFox:
[PersistenceStore.init] Unable to init PersistenceStore undefined [index.js:1:1750](https://server-dev-jf52kv5fsq-uw.a.run.app/admin/prisma/assets/index.js)
DOMException: A mutation operation was attempted on a database that did not allow mutations. [index.js:1:1781](https://server-dev-jf52kv5fsq-uw.a.run.app/admin/prisma/assets/index.js)
Object { path: "PersistenceStore.init", code: undefined, type: undefined, message: "Unable to init PersistenceStore", stack: undefined, context: null, nativeError: DOMException }
[index.js:1:84080](https://server-dev-jf52kv5fsq-uw.a.run.app/admin/prisma/assets/index.js)
[BootstrapStore.init] Studio bootstrap failed
Object { message: "Unable to init PersistenceStore", stack: undefined }
[index.js:1:1750](https://server-dev-jf52kv5fsq-uw.a.run.app/admin/prisma/assets/index.js)
Object { path: "PersistenceStore.init", code: undefined, type: undefined, message: "Unable to init PersistenceStore", stack: undefined, context: null, nativeError: DOMException }
[index.js:1:1781](https://server-dev-jf52kv5fsq-uw.a.run.app/admin/prisma/assets/index.js)
Uncaught (in promise)
Object { path: "BootstrapStore.init", code: undefined, type: undefined, message: "Studio bootstrap failed", stack: undefined, context: {…}, nativeError: {…} }
Yep! Same error on firefox. Using Cloudflare as a auth gateway for my database to keep it public. Y´all have a nice day!
I saw this same issue on Chrome (111.0.5563.65). The issue did not occur in incognito mode or using any other browser. This happened right after I made a significant database migration, so I assume it was related to some state stored in the browser. I cleared all browser cache and cookies then restarted my browser to fix it.
I had the same problem with Chrome. Works fine on Mozila.
I'm seeing the error on Chrome (versions / platform below). Oddly, Prisma Studio works in Incognito Mode
| Platform | Version |
|---|---|
| Chrome | Version 112.0.5615.137 (Official Build) (arm64) |
| MacOS | 13.3.1 (22E261) |
I'm getting this error with Brave even with all plugins disabled and shields down. However, It works using Google Chrome for me.
Work around that works for me:
Add to the package.json launchers "studio": "npx prisma studio --browser /usr/bin/google-chrome-stable"
I figured this out.. You need to allow ALL cookies from localhost and 127.0.0.1. For some reason just lowering the shields does not work
Hey :wave:
Prisma ORM 7 introduces a brand new standalone Studio, built from the ground up to work everywhere, with or without Prisma ORM. Consequently, all "old Studio" issues are being closed as there won't be any further work on it. :mega:
The new Studio is also available in the Prisma VS Code extension and in the Prisma Console application. :electric_plug:
Help shape, improve and fix the new Studio with us in this repository by submitting bug reports and feature requests. :construction_worker: