prisma-client-go
prisma-client-go copied to clipboard
Error: prisma-fmt-debian-openssl-1.1.x' was not included into executable at compilation stage
Hey Prisma team! Thank you so much for your work on the Go client!
I'm running into this error when trying to run the package to create a migration or generate the client:
$ go run github.com/prisma/prisma-client-go generate
Environment variables loaded from .env
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
System information:
OS: Ubuntu 20.04.2 LTS on Windows 10 [WSL2]
Host: x86_64
Kernel: 4.19.104-microsoft-standard
Go: go1.13.8 linux/amd64
Thanks for the bug report. It looks like this may be related to WSL.
Can you please share your schema.prisma (at least the config blocks at the top).
Are you upgrading from a previous Go client version or did this error occur when starting from scratch?
Sure, my schema can be found at https://github.com/sycer-dev/giveaways-next/blob/main/prisma/schema.prisma
The error occurs when doing go run ...
however it does not when I do prisma generate
when installed globally with Yarn.
Looks like the repo is private
oops! try now :p
Unfortunately I don't know why it's happening. I would need to boot up my Bootcamp Windows, install WSL and see if I can reproduce. Will try to get to it on Monday.
Alright, thank you for the speedy response!
Just pushed some local changes so the schema has a lot more data now.
Also, when generating the client with prisma generate
, it creates the openss-1.1.x file:
prisma
├── db
│ ├── .gitignore
│ ├── db_gen.go
│ ├── query-engine-debian-openssl-1.1.x_gen.go
│ └── query-engine-linux_gen.go
├── migrations
│ ├── 20210327021306_init
│ │ └── migration.sql
│ └── migration_lock.toml
└── schema.prisma
Did you experiment with the binaryTargets
in the schema file? Otherwise I can't explain how the Debian binary got in there in the first place
Hey, I'm facing the same issue.
However I am running on Ubuntu in a cooperate network. We have a custom CA. On Prisma Typescript I also have to use export NODE_TLS_REJECT_UNAUTHORIZED=0
before prisma generate
.
Is there a similar setting for Golang to ignore SSL errors?
@SvenC56 yours looks slightly different, can you please open a new issue or discussion? thanks
@steebchen I am running into the same issue as @Fyko. I am just saying that it is maybe due to coperate network policies.
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:426:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:469:29)
at Object.fs.open (pkg/prelude/bootstrap.js:505:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18027:32)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18525:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18430:35
I just did some testing on my private machine. On my private WSL machine I am running into the same issue again. If I run it on the base machine (Windows) I am not running to issues.
So I guess it's a problem of Ubuntu/ Debian? (My cooperate VM has also Ubuntu as OS, no WSL!)
To me it looks like a WSL issue, not Debian. However I will need to investigate.
Just to clarify. My work Ubuntu VM is not running in WSL but rather in vSphrere vCenter. But I also encountered this issue on my private WSL computer. So for me both are not working...
Maybe vSphrere vCenter
is similar to WSL in some regard.
I'm also facing this issue, however I'm not running WSL. I'm running a Debian
image under Docker through VSCode's devcontainer.
I'm also facing this issue, however I'm not running WSL. I'm running a
Debian
image under Docker through VSCode's devcontainer.
Hmm, weirdly enough, I tried to run it again on my host machine which is running Manjaro
, this issue happened again and taking a look at it, it seems that it is unable to run the CLI, as it is panicking at this part
[email protected]/main.go
...
// prisma CLI
if err := cli.Run(args, true); err != nil {
panic(err)
}
...
I later then reverted to the v0.7.0 with
go get github.com/prisma/[email protected]
and it ran just fine.
I'll stay on v0.7.0 first for now until we figure it out what was causing the issue on v0.8.0
Funny enough, tag v0.8.0
is working for me without issues now 🚀. I can finally use the generate command.
Update: somehow I tried rebuilding the docker container and installed 0.8.0
again and it works fine now on the latest version.
This looks like an intermittent bug, so it's incredibly hard to debug. I did some testing but couldn't reproduce, but I know I ran into these issue myself, so I will keep re-retrying to reproduce next week. Please keep commenting should you run into this again, and add as much as information as possible (OS, go client version, whether starting in a new project or upgrading the version, etc.).
If anyone has a dockerfile which can reproduce this problem, it would be ideal
I don't have a specific dockerfile that reproduces the problem, but I noticed this panic happened consistently in a github action where I was using both node 15.x and go 1.16.x
Tried to use prisma-client-go
at one project of mine, had the same issue occur:
redacted/go-server on develop [✘!?] is 📦 v1.0.0 via ⬢ v14.15.5 via 🐹 v1.16.5
➜ go run github.com/prisma/prisma-client-go generate
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18435:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18435:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18435:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
panic: could not run [generate]: exit status 1
goroutine 1 [running]:
main.main()
/home/vottusuwu/go/pkg/mod/github.com/prisma/[email protected]/main.go:29 +0x49b
exit status 2
OS: Ubuntu 20.04 Go: 1.16.5 Node.js: 14.15.5
Tried to use
prisma-client-go
at one project of mine, had the same issue occur:...
OS: Ubuntu 20.04 Go: 1.16.5 Node.js: 14.15.5
I have also reproduced this issue on another setup - Windows 10 (no WSL), Go 1.16.5, Node.js 15
. This issue however didn't occur on macOS 11, Go 1.16.2, Node.js 15.11.0
.
The error message you are all posting indicates this comes from the CLI built with pkg
: https://github.com/vercel/pkg/blob/cd5ce74ec181d0f6cd7ae0b218658b6c449e5655/prelude/bootstrap.js#L555-L566 It is not really a problem of the Go Client or Prisma CLI itself - it is the wrapper around that, which also includes some files - and for some reason it sometimes thinks these files are not present as they should be.
What is strange here of course is that it is not happening to everyone, all the time - although you are all using the same executable file downloaded from S3.
When this happens again, can you please run go run github.com/prisma/prisma-client-go -v
and post its output?
The error message you are all posting indicates this comes from the CLI built with
pkg
: https://github.com/vercel/pkg/blob/cd5ce74ec181d0f6cd7ae0b218658b6c449e5655/prelude/bootstrap.js#L555-L566 It is not really a problem of the Go Client or Prisma CLI itself - it is the wrapper around that, which also includes some files - and for some reason it sometimes thinks these files are not present as they should be.What is strange here of course is that it is not happening to everyone, all the time - although you are all using the same executable file downloaded from S3.
When this happens again, can you please run
go run github.com/prisma/prisma-client-go -v
and post its output?
Yeah, that's true. Moreover, when I built the binary myself, it worked just fine.
-v
returns the same error:
matherion-serdae/go-server on develop [✘!+?] via 🐹 v1.16.5
➜ go run github.com/prisma/prisma-client-go -v
Environment variables loaded from .env
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18435:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18435:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18435:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18032:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18531:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
panic: could not run [-v]: exit status 1
goroutine 1 [running]:
main.main()
/home/vottusuwu/go/pkg/mod/github.com/prisma/[email protected]/main.go:29 +0x49b
exit status 2
Ok, so the CLI generally decides this file is missing.
@steebchen can you post a S3 download link for the CLI so people can download that manually, outside of Go context, and try to execute that to see if the same behavior applies there? Or help us to find the CLI on our disk so we can copy it to somewhere else and execute it directly? (this would be even better, as it would be the same binary that throws the error via Go)
Setting a log env var and checking the paths would be indeed interesting:
export PHOTON_GO_LOG=info
go run github.com/prisma/prisma-client-go generate
This should log many things, but the interesting bit would be a path of a prisma engine, e.g.
/Users/luca/Library/Caches/prisma/binaries/cli/2.23.0/adf5e8cba3daf12d456d911d72b6e9418681b28b/prisma-query-engine-darwin
It should also log the download URLs of the CLI, e.g. https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-2.23.0-darwin.gz
, so it would be interesting to know if downloading this file manually, unzipping and executing it works.
@VottusCode Can you please run this command yourself, get the equivalent path and check if that path exists on your file system, and if you can execute that file? Thanks!
mia@DESKTOP-QDAT38R MINGW64 ~/ayaka/go-server (develop)
$ ls
database/ dev.sh go.mod go.sum main.go middleware/ redis/ router/ utils/ websocket/
mia@DESKTOP-QDAT38R MINGW64 ~/ayaka/go-server (develop)
$ PHOTON_GO_LOG=info go run github.com/prisma/prisma-client-go generate
debug: 2021/07/26 04:56:16 invoking command [generate]
debug: 2021/07/26 04:56:16 running cli with args [generate]
debug: 2021/07/26 04:56:16 global cache dir: C:\Users\mia\AppData\Local
debug: 2021/07/26 04:56:16 ensuring CLI prisma-cli-windows from C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/pris
ma-cli-windows.exe to https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-2.26.0-windows.exe.gz
info: 2021/07/26 04:56:16 prisma cli doesn't exist, fetching... (this might take a few minutes)
info: 2021/07/26 04:56:28 prisma cli fetched successfully.
debug: 2021/07/26 04:56:28 checking query-engine...
debug: 2021/07/26 04:56:28 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/query-engine.exe.gz
debug: 2021/07/26 04:56:28 query-engine is missing, downloading...
debug: 2021/07/26 04:56:31 download() took 3.0192668s
debug: 2021/07/26 04:56:31 query-engine done
debug: 2021/07/26 04:56:31 checking migration-engine...
debug: 2021/07/26 04:56:31 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/migration-engine.exe.gz
debug: 2021/07/26 04:56:31 migration-engine is missing, downloading...
debug: 2021/07/26 04:56:34 download() took 2.2158291s
debug: 2021/07/26 04:56:34 migration-engine done
debug: 2021/07/26 04:56:34 checking introspection-engine...
debug: 2021/07/26 04:56:34 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/introspection-engine.exe.gz
debug: 2021/07/26 04:56:34 introspection-engine is missing, downloading...
debug: 2021/07/26 04:56:35 download() took 1.3307601s
debug: 2021/07/26 04:56:35 introspection-engine done
debug: 2021/07/26 04:56:35 checking prisma-fmt...
debug: 2021/07/26 04:56:35 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/prisma-fmt.exe.gz
debug: 2021/07/26 04:56:35 prisma-fmt is missing, downloading...
debug: 2021/07/26 04:56:35 download() took 564.662ms
debug: 2021/07/26 04:56:35 prisma-fmt done
debug: 2021/07/26 04:56:35 running C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/prisma-cli-windows [generate]
Error: Could not find a schema.prisma file that is required for this command.
You can either provide it with --schema, set it as `prisma.schema` in your package.json or put it into the default locatio
n ./prisma/schema.prisma https://pris.ly/d/prisma-schema-location
panic: could not run [generate]: exit status 1
goroutine 1 [running]:
main.main()
C:/Users/mia/go/pkg/mod/github.com/prisma/[email protected]/main.go:29 +0x4b0
exit status 2
mia@DESKTOP-QDAT38R MINGW64 ~/ayaka/go-server (develop)
$ PHOTON_GO_LOG=info go run github.com/prisma/prisma-client-go generate --schema ../prisma/schema.prisma
debug: 2021/07/26 05:00:31 invoking command [generate --schema ../prisma/schema.prisma]
debug: 2021/07/26 05:00:31 running cli with args [generate --schema ../prisma/schema.prisma]
debug: 2021/07/26 05:00:31 global cache dir: C:\Users\mia\AppData\Local
debug: 2021/07/26 05:00:31 ensuring CLI prisma-cli-windows from C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/pris
ma-cli-windows.exe to https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-2.26.0-windows.exe.gz
debug: 2021/07/26 05:00:31 prisma cli is cached
debug: 2021/07/26 05:00:31 checking query-engine...
debug: 2021/07/26 05:00:31 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/query-engine.exe.gz
debug: 2021/07/26 05:00:31 C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/
prisma-query-engine-windows.exe is cached
debug: 2021/07/26 05:00:31 checking migration-engine...
debug: 2021/07/26 05:00:31 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/migration-engine.exe.gz
debug: 2021/07/26 05:00:31 C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/
prisma-migration-engine-windows.exe is cached
debug: 2021/07/26 05:00:31 checking introspection-engine...
debug: 2021/07/26 05:00:31 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/introspection-engine.exe.gz
debug: 2021/07/26 05:00:31 C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/
prisma-introspection-engine-windows.exe is cached
debug: 2021/07/26 05:00:31 checking prisma-fmt...
debug: 2021/07/26 05:00:31 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/prisma-fmt.exe.gz
debug: 2021/07/26 05:00:31 C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/
prisma-prisma-fmt-windows.exe is cached
debug: 2021/07/26 05:00:31 running C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/prisma-cli-windows [generate --sc
hema ../prisma/schema.prisma]
Prisma schema loaded from ..\prisma\schema.prisma
debug: 2021/07/26 05:00:34 invoking prisma
debug: 2021/07/26 05:00:34 global cache dir: C:\Users\mia\AppData\Local
debug: 2021/07/26 05:00:34 checking query-engine...
debug: 2021/07/26 05:00:34 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/wi
ndows/query-engine.exe.gz
debug: 2021/07/26 05:00:34 C:\Users\mia\AppData\Local/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/
prisma-query-engine-windows.exe is cached
debug: 2021/07/26 05:00:34 global cache dir: C:\Users\mia\AppData\Local
debug: 2021/07/26 05:00:34 checking query-engine...
debug: 2021/07/26 05:00:34 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/li
nux-musl/query-engine.gz
debug: 2021/07/26 05:00:34 query-engine is missing, downloading...
debug: 2021/07/26 05:00:38 query-engine done
debug: 2021/07/26 05:00:38 global cache dir: C:\Users\mia\AppData\Local
debug: 2021/07/26 05:00:39 write go file at query-engine-windows_gen.go
debug: 2021/07/26 05:00:39 global cache dir: C:\Users\mia\AppData\Local
debug: 2021/07/26 05:00:40 write go file at query-engine-linux_gen.go
✔ Generated Prisma Client Go to .\..\prisma\db in 6.29s
debug: 2021/07/26 05:00:40 warning: ignoring EOF error. stdin: ``
debug: 2021/07/26 05:00:40 success
mia@DESKTOP-QDAT38R MINGW64 ~/ayaka/go-server (develop)
Trying to run the command on my Windows machine (through Git Bash) and it doesn't give me that cursed error anymore, yay. Has this been fixed or is this the kind of "it works on my machine" problem?
Unfortunately it's the kind of "it sometimes doesn't work on some machines but we don't know when or why"
(oops, misclick)
Ran this with debug again on my main station with Linux Ubuntu 20.04
go-ayaka on main [!] via 🐹 v1.16.5
➜ go run github.com/prisma/prisma-client-go generate
debug: 2021/08/02 22:35:44 invoking command [generate]
debug: 2021/08/02 22:35:44 running cli with args [generate]
debug: 2021/08/02 22:35:44 global cache dir: /home/vottusuwu/.cache
debug: 2021/08/02 22:35:44 ensuring CLI prisma-cli-linux from /home/vottusuwu/.cache/prisma/binaries/cli/2.26.0/prisma-cli-linux to https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-2.26.0-linux.gz
debug: 2021/08/02 22:35:44 prisma cli is cached
debug: 2021/08/02 22:35:44 checking query-engine...
debug: 2021/08/02 22:35:44 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/debian-openssl-1.1.x/query-engine.gz
debug: 2021/08/02 22:35:44 /home/vottusuwu/.cache/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/prisma-query-engine-debian-openssl-1.1.x is cached
debug: 2021/08/02 22:35:44 checking migration-engine...
debug: 2021/08/02 22:35:44 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/debian-openssl-1.1.x/migration-engine.gz
debug: 2021/08/02 22:35:44 /home/vottusuwu/.cache/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/prisma-migration-engine-debian-openssl-1.1.x is cached
debug: 2021/08/02 22:35:44 checking introspection-engine...
debug: 2021/08/02 22:35:44 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/debian-openssl-1.1.x/introspection-engine.gz
debug: 2021/08/02 22:35:44 /home/vottusuwu/.cache/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/prisma-introspection-engine-debian-openssl-1.1.x is cached
debug: 2021/08/02 22:35:44 checking prisma-fmt...
debug: 2021/08/02 22:35:44 download url https://binaries.prisma.sh/all_commits/9b816b3aa13cc270074f172f30d6eda8a8ce867d/debian-openssl-1.1.x/prisma-fmt.gz
debug: 2021/08/02 22:35:44 /home/vottusuwu/.cache/prisma/binaries/cli/2.26.0/9b816b3aa13cc270074f172f30d6eda8a8ce867d/prisma-prisma-fmt-debian-openssl-1.1.x is cached
debug: 2021/08/02 22:35:44 running /home/vottusuwu/.cache/prisma/binaries/cli/2.26.0/prisma-cli-linux [generate]
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18038:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18541:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18444:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18038:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18541:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18444:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18038:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18541:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18444:35
Error: File or directory '/**/node_modules/prisma/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:446:17)
at openFromSnapshot (pkg/prelude/bootstrap.js:487:29)
at Object.open (pkg/prelude/bootstrap.js:523:5)
at ReadStream.open (internal/fs/streams.js:146:13)
at new ReadStream (internal/fs/streams.js:134:10)
at Object.createReadStream (fs.js:1888:10)
at Object.getHash (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18038:33)
at binaryNeedsToBeDownloaded (/snapshot/node_modules/prisma/node_modules/@prisma/engines/dist/index.js:18541:48)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
panic: could not run [generate]: exit status 1
goroutine 1 [running]:
main.main()
/home/vottusuwu/go/pkg/mod/github.com/prisma/[email protected]/main.go:29 +0x49b
exit status 2
go-ayaka on main [!] via 🐹 v1.16.5
➜