I'm having problems with prisma export ``` api šŸ’ƒ...
# prisma-whats-new
j
I'm having problems with prisma export
Copy code
api šŸ’ƒ  master * šŸ‘‰  prisma export -p ~/dev/blah/api/prisma-export.zip
Downloading nodes !
 ā–ø    [object Object]

Get in touch if you need help: <https://www.graph.cool/forum>
To get more detailed output, run $ export DEBUG="*"
There is no file generated. And nothing in
.export/
I.e.
Copy code
.export šŸ’ƒ  master * šŸ‘‰  tree
.
ā”œā”€ā”€ lists
ā”œā”€ā”€ nodes
└── relation
As this is a bit urgent, @nilan I hope you don't mind me cc'ing you.
Ahah! I think it's an error in the documentation somewhere. One says
-e
and the other says
-p
Nope... I think -e is for the env path šŸ˜•
Fixed it by running the local prisma (
yarn prisma
) in my project versus the globally-installed one.. (
prisma
) suggesting maybe there's an incompatibility somewhere
That said, the 000001.json files are basically empty. I see no data in them.
{"valueType":"nodes","values":[]}
j
I tried that but by the time I did I'd already screwed up my database šŸ˜• Still it's only test data. But doesn't fill me full of confidence.
h
what does it say if you run it with
DEBUG="*"
?
j
I don't know. I've had to reset docker to attempt to fix that nightmarish 300% CPU use so I'll have to try again when I've reinstalled prisma later
m
@jof could you export your data directly from your db using SQL?
j
I guess so. I snapshotted the docker containers so I'll have a go over the weekend and see what works best. I wish Prisma (esp Cloud) was a lot less hand-waving about backups... this stuff should really be built-in to the cli imo.
m
@jof With Prisma Cloud, the user brings their own database. So they have full control over backup. I'm using AWS RDS so it's doing all of that for me. I'd be interested to see how a restore might work in tandem with prisma
n
@jof I haven't seen this behaviour before šŸ™‚ If this continues to be an issue, please create a new issue report here: https://github.com/graphcool/prisma
j
I will, yeah. I plan to spend some time to see if I can repeat the problem.
n
thanks a lot 😊 I was also going to make the suggestion to do a MySQL dump if you are unexpected problems with
prisma export
.
j
Slightly on-topic; I hadn't fully looked at Prisma cloud (been using prisma docker until now). I see what you mean about RDS... I should have been paying more attention.
šŸ‘ 1
n
"Slightly on-topic"? šŸ˜„
sounds funny