• Register
0 votes
198 views

Problem :

I am not very sure how can I fix the below issue

I have really no idea about why am I facing below error while trying to do the runserver:

Performing system checks...
System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at 0x1085589b0>
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/django/utils/autoreload.py", line 333, in wrapper
    fn(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/django/core/management/commands/runserver.py", line 218, in inner_run
    self.check_migrations()

 

And when I try to connect to my postgres I face below error:

psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
6 5 3
7,540 points

1 Answer

0 votes

Solution :

It can be some of the below issues:

1. The PostgreSQL is not running. You need to check it with the sudo service postgresql status

2. The PostgresSQl is not running on the port no 5432. You need to check it by typing sudo netstat -nl | grep postgres

3. You have something wrong while trying to connect to the db like your username,your password or your databasename. You need to check that they are what the postgres ask for you to connect it and that is your db_name that you want to access to.

9 7 4
38,600 points

Related questions

1 vote
1 answer 112 views
112 views
Problem: I am beginner to ruby on rails. Recently I have started learning ruby on rails in depth. I am trying to use the ruby on rails to develop my website but I am facing below error whenever I try to open the localhost. could not connect to server: Connection refused ... can&rsquo;t fix the error so now I am looking for help from ruby on rails expert to give me the quick fix for above error.
asked May 18 Martin K 6.6k points
0 votes
1 answer 130 views
130 views
Problem : I am facing a lot of errors with the below message : &ldquo;DatabaseError: current transaction is aborted, commands ignored until end of transaction block&rdquo; Whenever I tried to change from the python-psycopg to the python-psycopg2 as my Django project's database engine. My code remains the same, just unable to know where those errors are coming from ?
asked Jan 4 alecxe 7.5k points
0 votes
1 answer 69 views
69 views
Problem : I am having hell lot of troubles because of below error message internalerror: current transaction is aborted, commands ignored until end of transaction block
asked Nov 14, 2019 peterlaw 6.9k points
1 vote
1 answer 14 views
14 views
Problem : I am very new to MySQL Server. I am newly assigned to this MySQL Server project. If I try to connect with the local MySQL server during my assigned test suite it shows me the below error: "Can't connect to local MySQL server through socket '/tmp/ ... that exception I can connect with my exact same parameters. I am very confused about above error. Can some expert help me in fixing it?
asked Apr 8 morrisBson 3.2k points
0 votes
1 answer 1.2K views
1.2K views
Problem : I had recently uninstalled the Postgres10 and after that reinstalled the Postgres10. After that I went to run a Node, Express, React application that relies on connecting to a Postgres10 database and also communicates with it using Sequelize. Initially I was unable to ... app at in the browser. Does anyone have any idea what is going wrong? Please suggest me the solution for my error.
asked Nov 22, 2019 peterlaw 6.9k points