Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Superset
  3. Error when trying to connect a Postgresql database : could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied

Error when trying to connect a Postgresql database : could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied

Scheduled Pinned Locked Moved Solved Superset
7 Posts 4 Posters 1.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Valexico
    wrote on last edited by Valexico
    #1

    This error occurs with default engine (psycopg2)

    (psycopg2.OperationalError) connection to server at "**********" (151.80.10.***), port 5432 failed: could not open certificate file "/root/.postgresql/postgresql.crt": Permission denied
    
    (Background on this error at: https://sqlalche.me/e/14/e3q8)
    

    I think it is a cloudron app issue

    You can workaround using sqlalchemy.

    1 Reply Last reply
    1
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      @Valexico we need more context here. What are you trying to do and what is this error you have posted?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Valexico
        wrote on last edited by Valexico
        #3

        @joseph Sorry it was a bit rough but in short

        • Install Superset
        • Connect to a PostgreSQL database with SSL :

        digi-studio 2024-12-18 at 18.05.17.png

        d41a6002-444c-464e-a00b-a2379b2ab95b-digi-studio 2024-12-18 at 18.05.59.png

        Workaround :
        Use SQLalchemy URI

        digi-studio 2024-12-18 at 18.06.38.png

        I think the issue is that there is no /root/.postgresql/postgresql.crt inside the container app

        1 Reply Last reply
        0
        • P Offline
          P Offline
          plusone-nick
          wrote on last edited by plusone-nick
          #4

          pretty sure it has to be via ssh if your app is outside of cloudron
          *nvm i now see you're going out from cloudron

          ✌💙+1

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            There is in issue in the library somewhere. See https://github.com/psycopg/psycopg2/issues/1535 and https://gitlab.alpinelinux.org/alpine/aports/-/issues/14565 . I put a workaround to make it work. Should have a new package soon.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @Valexico Fixed in latest package. Atleast, I can connect to DO postgres db with the change

              1 Reply Last reply
              2
              • V Offline
                V Offline
                Valexico
                wrote on last edited by
                #7

                @girish I confirm after update id works

                1 Reply Last reply
                0
                • nebulonN nebulon marked this topic as a question on
                • nebulonN nebulon has marked this topic as solved on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search