Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to init PersistenceStore on Chrome #987

Closed
kamigerami opened this issue Jul 23, 2022 · 2 comments
Closed

Unable to init PersistenceStore on Chrome #987

kamigerami opened this issue Jul 23, 2022 · 2 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: Unable to init PersistenceStore

Comments

@kamigerami
Copy link

kamigerami commented Jul 23, 2022

  1. Prisma version (prisma -v or npx prisma -v):
➜ yarn prisma -v
yarn run v1.22.10
Environment variables loaded from .env
prisma                  : 4.1.0
@prisma/client          : 4.1.0
Current platform        : darwin
Query Engine (Node-API) : libquery-engine 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine        : migration-engine-cli 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt 8d8414deb360336e4698a65aa45a1fbaf1ce13d8 (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : 8d8414deb360336e4698a65aa45a1fbaf1ce13d8
Studio                  : 0.467.0
Preview Features        : referentialIntegrity
  1. Logs from Developer Tools Console or Command line, if any:
Unable to init PersistenceStore
undefined

screenshot-prisma-studio

  1. Does the issue persist even after updating to the latest prisma CLI dev version? (npm i -D prisma@dev)

  2. Prisma schema (if relevant):

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
    provider        = "prisma-client-js"
    binaryTargets   = ["native", "darwin"]
    previewFeatures = ["referentialIntegrity"]
}

datasource db {
    provider             = "mysql"
    url                  = env("DATABASE_URL")
    referentialIntegrity = "prisma"
}

model Example {
    id String @id @default(cuid())
}

// Necessary for Next auth
model Account {
    id                String  @id @default(cuid())
    userId            String
    type              String
    provider          String
    providerAccountId String
    refresh_token     String?
    access_token      String?
    expires_at        Int?
    token_type        String?
    scope             String?
    id_token          String?
    session_state     String?
    user              User    @relation(fields: [userId], references: [id], onDelete: Cascade)

    @@unique([provider, providerAccountId])
}

model Session {
    id           String   @id @default(cuid())
    sessionToken String   @unique
    userId       String
    expires      DateTime
    user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
    id            String    @id @default(cuid())
    name          String?
    email         String?   @unique
    emailVerified DateTime?
    image         String?
    accounts      Account[]
    sessions      Session[]
}

model VerificationToken {
    identifier String
    token      String   @unique
    expires    DateTime

    @@unique([identifier, token])
}

// Timereport

model Timereport {
    id          String   @id @default(cuid())
    userId      String
    start       DateTime
    end         DateTime
    description String?
}

Tried deleting the index as mentioned in @586.

Error from console

Studio version 0.467.0
index.css:1          GET http://localhost:5555/inter-latin-400-normal.27ae72da.woff2 net::ERR_ABORTED 404 (Not Found)
index.css:1          GET http://localhost:5555/inter-all-400-normal.4c1f8a0d.woff net::ERR_ABORTED 404 (Not Found)
index.js:1 [PersistenceStore.init] Unable to init PersistenceStore undefined
overrideMethod @ react_devtools_backend.js:4026
B @ index.js:1
init @ index.js:1
await in init (async)
init @ index.js:1
await in init (async)
Cc @ vendor.js:50
n @ vendor.js:50
window.databrowser @ index.js:1
await in window.databrowser (async)
(anonymous) @ databrowser.js:1
Show 1 more frame
index.js:1 DOMException: Internal error.
overrideMethod @ react_devtools_backend.js:4026
B @ index.js:1
init @ index.js:1
await in init (async)
init @ index.js:1
await in init (async)
Cc @ vendor.js:50
n @ vendor.js:50
window.databrowser @ index.js:1
await in window.databrowser (async)
(anonymous) @ databrowser.js:1
Show 1 more frame
index.js:1 F {path: 'PersistenceStore.init', code: undefined, type: undefined, message: 'Unable to init PersistenceStore', stack: undefined, …}
overrideMethod @ react_devtools_backend.js:4026
init @ index.js:1
await in init (async)
Cc @ vendor.js:50
n @ vendor.js:50
window.databrowser @ index.js:1
await in window.databrowser (async)
(anonymous) @ databrowser.js:1
Show 1 more frame
index.js:1 [BootstrapStore.init] Studio bootstrap failed {message: 'Unable to init PersistenceStore', stack: undefined}
overrideMethod @ react_devtools_backend.js:4026
B @ index.js:1
init @ index.js:1
await in init (async)
Cc @ vendor.js:50
n @ vendor.js:50
window.databrowser @ index.js:1
await in window.databrowser (async)
(anonymous) @ databrowser.js:1
Show 1 more frame
index.js:1 F {path: 'PersistenceStore.init', code: undefined, type: undefined, message: 'Unable to init PersistenceStore', stack: undefined, …}
overrideMethod @ react_devtools_backend.js:4026
B @ index.js:1
init @ index.js:1
await in init (async)
Cc @ vendor.js:50
n @ vendor.js:50
window.databrowser @ index.js:1
await in window.databrowser (async)
(anonymous) @ databrowser.js:1
Show 1 more frame
index.css:1          GET http://localhost:5555/inter-latin-600-normal.87d718a2.woff2 net::ERR_ABORTED 404 (Not Found)
index.js:1 Uncaught (in promise) F {path: 'BootstrapStore.init', code: undefined, type: undefined, message: 'Studio bootstrap failed', stack: undefined, …}
init @ index.js:1
await in init (async)
Cc @ vendor.js:50
n @ vendor.js:50
window.databrowser @ index.js:1
await in window.databrowser (async)
(anonymous) @ databrowser.js:1
index.css:1          GET http://localhost:5555/inter-all-600-normal.d0a7c8a9.woff net::ERR_ABORTED 404 (Not Found)

Chrome version

Version 103.0.5060.114 (Officiell version) (arm64)

Works fine using Safari.

@kamigerami kamigerami changed the title Unable to init PersistenceStore Unable to init PersistenceStore on Chrome Jul 23, 2022
@petradonka
Copy link
Contributor

Thanks for sharing all the info!

Have you tried clearing your IndexedDB? See #895 (comment)

@petradonka petradonka added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. team/developer-productivity labels Jul 25, 2022
@kamigerami
Copy link
Author

Thanks for sharing all the info!

Have you tried clearing your IndexedDB? See #895 (comment)

yes, did not work however what eventually worked was resetting the db and restarting prisma studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: Unable to init PersistenceStore
Projects
None yet
Development

No branches or pull requests

3 participants