Repository navigation
Description
After installing prisma2 with the following command (#836) in a clean system (#966):
npm install -g --unsafe-perm prisma2
And simply doing:
prisma2 init hello-prisma
Whenever I try to run prisma2 dev I get the following error with Photon on Linux:
Failed to generate Photon client: Error: Error: Command failed with ENOENT: /home/username/Documents/Code/hello-prisma/node_modules/prisma2/query-engine-linux-glibc-libssl1.1.0 cli --dmmf
spawn /home/username/Documents/Code/hello-prisma/node_modules/prisma2/query-engine-linux-glibc-libssl1.1.0 ENOENT
at Object.<anonymous> (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/index.js:121706:19)
at Generator.throw (<anonymous>)
at rejected (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/index.js:121635:65)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error starting Photon: TypeError: Cannot destructure property 'dmmf' of '(intermediate value)' as it is undefined.
at Photon.start (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/index.js:307034:25)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async connect (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/photon-worker.js:44:31)
at async process.<anonymous> (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/photon-worker.js:9:18)
Error connecting to photon TypeError: Cannot destructure property 'dmmf' of '(intermediate value)' as it is undefined.
at connect (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/photon-worker.js:44:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async process.<anonymous> (/home/username/Documents/Code/hello-prisma/node_modules/prisma2/build/photon-worker.js:9:18)
My specs npx envinfo are the following:
System:
OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
Container: Yes
Shell: 3.0.2 - /usr/bin/fish
Binaries:
Node: 13.2.0 - ~/.config/nvm/13.2.0/bin/node
Yarn: 1.19.1 - /usr/bin/yarn
npm: 6.13.1 - ~/.config/nvm/13.2.0/bin/npm
Utilities:
Make: 4.2.1 - /usr/bin/make
GCC: 8.3.0 - /usr/bin/gcc
Git: 2.20.1 - /usr/bin/git
Virtualization:
Docker: 18.09.7 - /usr/bin/docker
VirtualBox: 6.0.14 - /usr/bin/vboxmanage
Languages:
Bash: 5.0.3 - /bin/bash
Perl: 5.28.1 - /usr/bin/perl
Python: 2.7.16 - /usr/bin/python
Ruby: 2.5.5 - /usr/bin/ruby
Databases:
MongoDB: 4.0.13 - /usr/bin/mongo
I already have libssl1.1 installed (#2) wich I can confirm by running apt-cache policy libssl1.1 or openssl version -a. The former says
libssl1.1:
Installed: 1.1.1b-1ubuntu2.4
Candidate: 1.1.1b-1ubuntu2.4
Version table:
*** 1.1.1b-1ubuntu2.4 500
500 http://ar.archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.1.1b-1ubuntu2 500
500 http://ar.archive.ubuntu.com/ubuntu disco/main amd64 Packages
My problem seems to emerge due to libssl1.1 or glibc (#2, specifically this comment #2 (comment)) but I have that library installed too, wich I can confirm by running apt-cache policy libc-bin wich says
libc-bin:
Installed: 2.29-0ubuntu2
Candidate: 2.29-0ubuntu2
Version table:
*** 2.29-0ubuntu2 500
500 http://ar.archive.ubuntu.com/ubuntu disco/main amd64 Packages
100 /var/lib/dpkg/status
Other useful information (#935) is...
..."lsb_release -a"
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
..."openssl version"
OpenSSL 1.1.1b 26 Feb 2019
...and "uname -a"
Linux envy 5.0.0-36-generic #39-Ubuntu SMP Tue Nov 12 09:46:06 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Is there something I can do to effectively run Prisma2 on my Linux machine?
////////////////////////
UPDATE:
Even when I try to run npm install -g --unsafe-perm prisma2 but with sudo privileges by doing sudo -s and with my VPN disabled (#938) I get the same error.
Activity
[-]Hello,[/-][+]Error with Prisma2 installation on Linux[/+]fveauvy commentedon Nov 26, 2019
I got a similar issue in my dockerized environment.
pantharshit00 commentedon Nov 26, 2019
I am unable to reproduce this. It is strange that your cli is still using the old binary name instead of the new ones.
Can you please make sure that your cli is using on preview017 version?
I am unable to reproduce this with system with similar config:
pantharshit00 commentedon Nov 27, 2019
Thanks, I am able to reproduce this now with Ubuntu 19.04 with nvm and with a sudo user. The global installation is without
--unsafe-permhere as I used nvm.I think this issue is very similar to #999 so might get already fixed once #999 as we are working on that one.
I think we are still using the old binary names for that command somehow.
timsuchanek commentedon Nov 28, 2019
Thanks @frbrz for providing all the infos! We just released a new alpha - alpha.368. Please try it out, it should fix the
prisma2 devcommand :)rejmank commentedon Nov 28, 2019
This is what i see when acces localhost:555

It is only chrome issue, on firefox everything is working fine
fveauvy commentedon Nov 28, 2019
I got a similar output in localhost:5555 with prisma2.0.0 alpha 368 on docker after prisma2 dev
timsuchanek commentedon Nov 28, 2019
Thanks for reporting that, everyone! The big plus should be gone now in the latest alpha (369).
We'll do a patch release now including a fix for this!
Let me know if it's still an issue for you and I'll reopen this issue.
fveauvy commentedon Nov 28, 2019
It's working fine now.
Thank you very much !
TML-2816: close out explicit-namespace-dsl — promote ADR 238, delete …