R
R
raiboon2015-02-02 19:31:10
PostgreSQL
raiboon, 2015-02-02 19:31:10

How to deal with Django error?

Operations to perform:
  Synchronize unmigrated apps: django_extensions, django_js_reverse, autofixture
  Apply all migrations: contenttypes, sessions, auth, admin
Synchronizing apps without migrations:
  Creating tables...
  Installing custom SQL...
  Installing indexes...
Running migrations:
  Applying contenttypes.0001_initial...
....
django.db.utils.OperationalError: could not connect to server: Connection timed out
  Is the server running on host "****" and accepting
  TCP/IP connections on port ****?

What can be wrong? I rechecked the settings - I connected from 0xDBE - everything is fine, the requests are being fulfilled. Only the migration table is created in the database, and then something is seen to fall off.
Moreover, now I saw this process in htop - it hangs with the idle status.
The python does not spit out additional errors. How to find a joint?
UPD. Op-pa. Lied. The table was successfully created, you can insert a value into it, but with a select:
[08006] An I/O error occurred while sending to the backend.
java.net.SocketException: Connection reset

The user is the owner of this database, so most likely the issue is not in the rights.
The pg logs are empty.
Completely demolished everything. Reinstalled - same thing.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
webbus, 2015-02-02
@webus

What kind of DBMS is that? :) It is obvious that Django cannot connect to the DBMS at this address and port.
1. Check that the DBMS is working at this address and port
2. Reinstall the Python driver to access the DBMS

Y
yttrium, 2015-02-02
@yttrium

Did PostgreSQL run out of disk?

S
Swartalf, 2015-02-03
@Swartalf

I also advise you to look at the logs of the postgres itself, there you can always see a lot of interesting things, if there is little information, then you can always increase the logging level

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question