Skip to content

Error with Prisma2 installation on Linux #993

Closed

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

  1. ghost closed this as completedon Nov 26, 2019
  2. ghost reopened this on Nov 26, 2019
  3. ghost changed the title [-]Hello,[/-] [+]Error with Prisma2 installation on Linux[/+] on Nov 26, 2019
  4. fveauvy commented on Nov 26, 2019

    @fveauvy

    I got a similar issue in my dockerized environment.

  5. pantharshit00 commented on Nov 26, 2019

    @pantharshit00
    Contributor

    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:

    
      System:
        OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
        CPU: (1) x64 Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
        Memory: 400.54 MB / 983.02 MB
        Container: Yes
        Shell: 5.0.3 - /bin/bash
      Binaries:
        Node: 10.15.2 - /usr/bin/node
        npm: 5.8.0 - /usr/bin/npm
      Managers:
        Apt: 1.8.3 - /usr/bin/apt
      Utilities:
        Make: 4.2.1 - /usr/bin/make
        GCC: 8.3.0 - /usr/bin/gcc
        Git: 2.20.1 - /usr/bin/git
      IDEs:
        Nano: 3.2 - /usr/bin/nano
        Vim: 8.1 - /usr/bin/vim
      Languages:
        Bash: 5.0.3 - /usr/bin/bash
        Perl: 5.28.1 - /usr/bin/perl
        Python: 2.7.16 - /usr/bin/python
        Python3: 3.7.3 - /usr/bin/python3
    
    [email protected], binary version: 6159bf3a263921c3c28ee68e2c9e130b5a69c293
    
  6. added
    bug/0-unknown
    kind/bug
    on Nov 27, 2019
  7. pantharshit00 commented on Nov 27, 2019

    @pantharshit00
    Contributor

    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-perm here as I used nvm.

    image

    [email protected], binary version: 6159bf3a263921c3c28ee68e2c9e130b5a69c293
    

    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.

  8. added
    bug/2-confirmed
    and removed
    bug/0-unknown
    on Nov 27, 2019
  9. timsuchanek commented on Nov 28, 2019

    @timsuchanek
    Contributor

    Thanks @frbrz for providing all the infos! We just released a new alpha - alpha.368. Please try it out, it should fix the prisma2 dev command :)

  10. rejmank commented on Nov 28, 2019

    @rejmank

    This is what i see when acces localhost:555
    image
    It is only chrome issue, on firefox everything is working fine

  11. fveauvy commented on Nov 28, 2019

    @fveauvy

    This is what i see when acces localhost:555
    image
    It is only chrome issue, on firefox everything is working fine

    I got a similar output in localhost:5555 with prisma2.0.0 alpha 368 on docker after prisma2 dev

  12. timsuchanek commented on Nov 28, 2019

    @timsuchanek
    Contributor

    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.

  13. fveauvy commented on Nov 28, 2019

    @fveauvy

    It's working fine now.
    Thank you very much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug/2-confirmedkind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions