prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

admin on localhost stuck in loading #134

Open ryankauk opened 5 years ago

ryankauk commented 5 years ago

Describe the bug I updated my prisma from 1.30.1 to 1.31.0 and migrating all datamodels and deployed. Everything works fine but when I browse the _admin it's stuck on loading. Checked the console and network and now issues. I tore down my docker and removed all volumes to do a completely fresh build but still stuck.

Versions (please complete the following information):

jamier1978 commented 5 years ago

I have the exact same issue with the same setup except CLI is running on node 8.16.0

Tried clearing local storage with no success.
Also tried deleting all docker containers / volumes and doing a fresh rebuild but admin page still stuck on loading.

No error messages in the browser console and nothing obvious in docker-compose logs

Let me know if there is anything else I can provide

philsch commented 5 years ago

Just a guess: Have you tried to "hard reload without cache" in your browser? e.g. in Chrome this is done by opening the dev console (F12), long press the reload button (next to your address bar) and choose "Empty Cache and Hard Reload"

jessep commented 5 years ago

same issue

bkstorm commented 5 years ago

Just a guess: Have you tried to "hard reload without cache" in your browser? e.g. in Chrome this is done by opening the dev console (F12), long press the reload button (next to your address bar) and choose "Empty Cache and Hard Reload"

I tried, but it doesn't work.

ryankauk commented 5 years ago

Just a guess: Have you tried to "hard reload without cache" in your browser? e.g. in Chrome this is done by opening the dev console (F12), long press the reload button (next to your address bar) and choose "Empty Cache and Hard Reload"

I did as well, did a hard cache reload, removes and completely rebuilt with docker, went into chrome > application and deleted all website storage and cache, and tried in incognito

divyenduz commented 5 years ago

If possible, can you all share your docker-compose files? And all relevant versions like CLI, Prisma server etc?

jamier1978 commented 5 years ago

@divyenduz

services:
  prisma:
    image: prismagraphql/prisma:1.31
    restart: always
    ports:
      - "4466:4466"
    environment:
      PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: my-secret
        databases:
          default:
            connector: postgres
            host: postgres
            user: prisma
            password: prisma
            rawAccess: true
            port: 5432
            migrations: true
  postgres:
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: prisma
      POSTGRES_PASSWORD: prisma
    volumes:
      - postgres:/var/lib/postgresql/data
volumes:
  postgres:

prisma: 1.31.1 node 8.16.0

jvlobo commented 5 years ago

This is happening to me also. Stuck on Loading when trying to access to my Heroku service :(

benvan commented 5 years ago

Same here with prisma 1.32, mac os Mojave

EDIT: As mentioned in #130, removing rawAccess and migrations settings from PRISMA_CONFIG got this working again. Incidentally, one of the issues with diagnosing this is there seems to be no simple way to enable debug logging on the prisma server? Setting an env var of DEBUG='*' made no difference to the logs.

toriaezunama commented 5 years ago

Just removing the rawAccess key (not migrations key) fixed it for me.

jvlobo commented 5 years ago

Are there any plans on fixing this? I would like to use raw queries and have the admin panel working...

0x0000F1 commented 4 years ago

interestingly enough for me, the admin is stuck on loading on chrome but on firefox it opens perfectly...