Announcement

Collapse
No announcement yet.

problem to connect postgresql

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


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


      Thanks

      Comment

      Working...
      X