problem to connect postgresql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parswebserver
    Junior Member
    • May 2019
    • 8

    #1

    problem to connect postgresql

    hi

    we have problem to migrate in django in python 3.8
    the error is
    django.db.utils.OperationalError: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

    can you help us?
  • bogdan.sh
    Administrator
    • Nov 2016
    • 1219

    #2
    The error is more related to Cagefs instead of python itself. Do you have PostgreSQL running on the server? If so please just ensure to add the /var/run/postgresql into /etc/cagefs/cagefs.mp , then remount all with:



    Code:
    cagefsctl --remount-all

    Comment

    • bogdan.sh
      Administrator
      • Nov 2016
      • 1219

      #3
      Hey, parswebserver , was it helpful? I would appreciate if you mark it "Set as Answer".


      Thanks

      Comment

      Working...