question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yarn rw db up hangs on "prisma2 generate"

See original GitHub issue

Windows 10 Pro v1909. node v12.14.1 yarn v1.21.1 Using Git Bash.

I’ve been running through the example blog tutorial, and have run into this issue at every step that requires yarn rw db up. After successfully running yarn rw db save, the call to yarn rw db up will hang (forever?) at the step with prisma2 generate. I can kill the process with Ctrl+C, and I think that it finished doing all the work, but I’m not positive. It consistently hangs for me every time, even if I run it multiple times without changing the schema.

$ C:\code\redwoodblog\node_modules\.bin\prisma2 migrate up --experimental --create-db
migrate up

All migrations are already applied
Migrate database up... [completed]
Generating the Prisma client... [started]
$ C:\code\redwoodblog\node_modules\.bin\prisma2 generate
(hangs)

I plan to dig in and see if there are any --debug or --verbose options I can add to provide more useful output for this investigation. If anyone can give me pointers on that, I’d appreciate it.

I see that there is an open issue for updating Prisma to preview24 #279, would it be worthwhile to wait for that first to see if it fixes my issue?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bpennocommented, Jun 11, 2020

Sorry, I meant to mention I was using Windows. I had a look at the issue you mentioned and it does appear to be the same. It might be handy to add to the tutorial that Windows users might have to terminate the command and re-run for it to work. It might be perceived as a bit clunky but at least it will allow people trying out Redwood for the first time to continue.

1reaction
thedavidpricecommented, Mar 20, 2020

I’ll try to prioritize upgrading Prisma today so we have that as a baseline to test against #279

Read more comments on GitHub >

github_iconTop Results From Across the Web

RedwoodJS Community
yarn rw db generate yarn run v1.22.4 $ /Users/olance/Documents/Dev/redwoodblog/node_modules/.bin/rw db generate Generating the Prisma client ...
Read more >
Migration troubleshooting in development - Prisma
This guide describes how to resolve issues with Prisma Migrate in a development environment, which often involves resetting your database.
Read more >
How to use Redwood with Prisma? - Coding ZEAL
The client auto-generates when a change to your Prisma data-model occurs, ... The Prisma migration is a database schema migration tool that ...
Read more >
Create a Reddit clone with RedwoodJS - DEV Community ‍ ‍
To create the tables in the database, run the below command: yarn redwood prisma migrate dev. You can use the alias rw instead...
Read more >
I crashed and burned in RedwoodJS, and its a really good thing
Recovering from Prisma migrations goofs | Blog. ... first # Create a new migration yarn rw db save # Perform the migration yarn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found