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

Prisma doesn't work on Azure windows functions #1518

Closed
steebchen opened this issue Feb 4, 2020 · 5 comments
Closed

Prisma doesn't work on Azure windows functions #1518

steebchen opened this issue Feb 4, 2020 · 5 comments
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: deployment-platform topic: windows

Comments

@steebchen
Copy link
Contributor

steebchen commented Feb 4, 2020

Running prisma results in this runtime azure functions error:

Result: Failure
Exception: Error: 
Invalid `prisma.()` invocation in
D:\home\site\wwwroot\prisma-e2e-windows-test\index.js:45:58



EACCES: permission denied, chmod 'D:\home\site\wwwroot\node_modules\@prisma\client\runtime\query-engine-windows.exe'
Stack: Error: 
Invalid `prisma.()` invocation in
D:\home\site\wwwroot\prisma-e2e-windows-test\index.js:45:58



EACCES: permission denied, chmod 'D:\home\site\wwwroot\node_modules\@prisma\client\runtime\query-engine-windows.exe'
    at PrismaClientFetcher.request (D:\home\site\wwwroot\node_modules\@prisma\client\index.js:79:27)

The underlying OS is Windows. When using Linux, everything works fine.

Reproduction is difficult because an azure account is required, but it's available in the e2e testing repo.

@janpio
Copy link
Member

janpio commented Feb 4, 2020

What is the easiest way to try to reproduce this locally on Windows?

Does the file D:\home\site\wwwroot\node_modules\@prisma\client\runtime\query-engine-windows.exe actually exist? What are its "file permissions" (which I did not know existed on Windows)? Does prisma2 also have a binary like this? What is different between those?

@steebchen
Copy link
Contributor Author

What is the easiest way to try to reproduce this locally on Windows?

I don't know how to reproduce this locally. The file system on Azure may be read-only which denies changing the binary.

Does the file D:\home\site\wwwroot\node_modules@prisma\client\runtime\query-engine-windows.exe actually exist?

Yes.

What are its "file permissions" (which I did not know existed on Windows)?

I don't know. I'm having trouble figuring out reading logs from azure.

Does prisma2 also have a binary like this? What is different between those?

I don't understand the question.

@janpio
Copy link
Member

janpio commented Feb 5, 2020

I don't understand the question.

The prisma2 installation should also have a file query-engine-windows.exe. Maybe something in permissions or other attributes of that file could point to what is wrong with the client one.

@schickling
Copy link
Member

Related: prisma/prisma-client-js#466

@Jolg42
Copy link
Member

Jolg42 commented Mar 3, 2020

Works since I removed chmod +x when process.platform === win32 from prisma-client-js (alpha 848)

@Jolg42 Jolg42 closed this as completed Mar 3, 2020
Jolg42 added a commit to prisma/ecosystem-tests that referenced this issue Mar 4, 2020
steebchen pushed a commit to prisma/ecosystem-tests that referenced this issue Mar 4, 2020
steebchen pushed a commit to prisma/ecosystem-tests that referenced this issue Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. topic: deployment-platform topic: windows
Projects
None yet
Development

No branches or pull requests

7 participants