remorses / planetscale-to-supabase

Script to migrate Mysql data and schema to Supabase
66 stars 4 forks source link

Issue with the npx script #2

Closed Acemavie234 closed 2 months ago

Acemavie234 commented 4 months ago

I am trying to migrate from planetscale and all has been succesfull until this. I have docker desktop installed and when I run docker --version on cmd it returns fine. But when I run the script it says that I do not have docker installed. I originally removed the part that ran docked --version but then I realized that docker is used in the migrate script too. And after pressing enter at the step where you specify the supabase url I get greeted with this error. Is there something that I'm missing?

<3>WSL (2209) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2 <3>WSL (2209) ERROR: CreateProcessEntryCommon:508: Create process not expected to return Error: Could not run 'docker': code 1 at ChildProcess. (C:\Users\kasutaja\AppData\Local\npm-cache_npx\5c9413c17d99d699\node_modules\migrate-planetscale-to-supabase\dist\index.js:262:27) at ChildProcess.emit (node:events:518:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5)
remorses commented 4 months ago

Maybe you don't have docker installed inside wsl

https://stackoverflow.com/questions/63497928/ubuntu-wsl-with-docker-could-not-be-found

Acemavie234 commented 4 months ago

I got it working. But then I realized postgres is so different and weird. And I have to rewrite half of my API with it. So I'll probably need to find a good mysql alternative