Skip to content

Error: The certificate was not trusted #884

Closed

Description

@yovanoc

Hello, I've got this error today with latest alpha:

[email protected], binary version: c55e482a7a27ec30ea41b074ffb3de8a1a40c36e

image

PS: I'm with sslmode=prefer and report id 457

Activity

  1. pantharshit00 commented on Nov 6, 2019

    @pantharshit00
    Contributor

    Can you please tell me where your database is hosted?

  2. added
    bug/0-unknown
    kind/bug
    on Nov 6, 2019
  3. yovanoc commented on Nov 6, 2019

    @yovanoc
    Author

    On a random Vultr server

  4. pantharshit00 commented on Nov 6, 2019

    @pantharshit00
    Contributor

    You are trying to access the postgres instance over localhost on the vultr instance or you are using that vultr instance locally on your machine?

  5. yovanoc commented on Nov 6, 2019

    @yovanoc
    Author

    I'm not sure to understand the question. All was working before but I think I'm using this db locally. I just put in the datasource url my db connection string and use this with a local server

  6. pantharshit00 commented on Nov 6, 2019

    @pantharshit00
    Contributor

    I am trying to ask are you trying to connect to your vultr server where postgres is hosted from your development machine or you are running you prisma2 application on the same vultr box in which your database is hosted?

  7. yovanoc commented on Nov 6, 2019

    @yovanoc
    Author

    Oh no the database is in the vultr server, and i'm locally trying to use this database

  8. iherger commented on Nov 6, 2019

    @iherger

    I am having the same problem.

    PS: it works alright with preview015

  9. williamluke4 commented on Nov 7, 2019

    @williamluke4

    Currently receiving the same error

  10. williamluke4 commented on Nov 7, 2019

    @williamluke4

    @iherger Preview 15 fails for me,
    [email protected], binary version: 20b6dc1

  11. janpio commented on Nov 7, 2019

    @janpio
    Contributor

    @iherger @williamluke4 Can you please make sure all the information about what you are actually doing is provided in your comment - so it is easy and straightforward for @pantharshit00 to try to reproduce the problem.

  12. iherger commented on Nov 7, 2019

    @iherger

    @janpio , @pantharshit00

    1. new project, no previous database migrations
    2. postgresql database hosted on DigitalOcean (connection string works fine)
    3. running prisma2 lift save produces the error above

    The same three steps with a local postgresql database work fine.

  13. 13 remaining items

  14. jwld commented on Nov 20, 2019

    @jwld

    Encountering the same issue with a postgres database hosted on heroku. Adding sslaccept=accept_invalid_certs to the connection url fixed it.

  15. modified the milestones: Preview 17, Preview 18 on Nov 22, 2019
  16. BiscuiTech commented on Nov 26, 2019

    @BiscuiTech

    I have a few issues currently with the Prisma2 platform and I think it all stems from this issue (unless majorly mistaken).

    I have tried all the params above without success, on both localhost and hosted on DO. The same error seems to show up on a variety of steps. Sometimes on prisma2 lift up, lift save, dev. Sometimes not at all, but later on during prisma2 dev.

    I have created this #999 which seems to be the same error on #919.

    I'd really grateful if someone had a temporary workaround while the devs iron this out.

  17. tomhoule commented on Dec 4, 2019

    @tomhoule
    Contributor

    This is fixed upstream, the change should make it in preview 18 :) More context in prisma/specs#325

  18. BiscuiTech commented on Dec 6, 2019

    @BiscuiTech

    This is fixed upstream, the change should make it in preview 18 :) More context in prisma/specs#325

    Has this been fixed in 18? Because the notes do not mention this issue.

  19. dizzyn commented on Dec 15, 2019

    @dizzyn

    I have 2.0.0-preview018.2 and the problem is still there

  20. BiscuiTech commented on Dec 16, 2019

    @BiscuiTech

    I have 2.0.0-preview018.2 and the problem is still there

    The devs haven't replied, but I am pretty sure it's fixed. I haven't had the issue ever since I updated. Now it's mostly the lift engine panicking at every turn.

    Can you make sure you have prisma 18.2 throughout your stack? Your global pckg, your local file and your server, if any?

  21. dizzyn commented on Dec 16, 2019

    @dizzyn

    I have just tried this approach:

    1. Setup local environment with a Prisma schema pointed to the local DB and run the prisma2 generate -- works without any problem
    2. Prepare new Postgress on Heroku and change the link in the local schema to the remote one and call again the prisma2 generate (on my local) -- seen the error
    3. Fixed the postgress URL by the parameter: sslaccept=accept_invalid_certs and call the command again -- now it works fine, the remote database were generated.

    So IMHO the problem is still there

  22. BiscuiTech commented on Dec 16, 2019

    @BiscuiTech

    @janpio
    Could we get a clarification on this?

  23. dizzyn commented on Dec 16, 2019

    @dizzyn

    --- NO LONGER VALID ---

    I have tried to replicate that again to provide more details with the 2.0.0-preview018.2 and it works FINE. So the error was on my side somewhere, probably by using the npx that uses 017 version.

    Sorry for that and thank you for the good work.

  24. janpio commented on Dec 17, 2019

    @janpio
    Contributor

    By my knowledge this should work as expected, sorry I did not get to confirm this earlier - but happy you figured it out yourself.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions