# Pastebin m0F5CGTx root@noc:/opt/noc# ./noc fix Traceback (most recent call last): File "manage.py", line 35, in import noc.urls File "/opt/noc/urls.py", line 14, in init_solutions() File "/opt/noc/lib/solutions.py", line 53, in init_solutions CustomField.install_fields() File "/opt/noc/main/models/customfield.py", line 283, in install_fields for f in cls.objects.filter(is_active=True).order_by("table"): File "/opt/noc/local/lib/python2.7/site-packages/django/db/models/query.py", line 118, in _result_iter self._fill_cache() File "/opt/noc/local/lib/python2.7/site-packages/django/db/models/query.py", line 892, in _fill_cache self._result_cache.append(self._iter.next()) File "/opt/noc/local/lib/python2.7/site-packages/django/db/models/query.py", line 291, in iterator for row in compiler.results_iter(): File "/opt/noc/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 763, in results_iter for rows in self.execute_sql(MULTI): File "/opt/noc/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 817, in execute_sql cursor = self.connection.cursor() File "/opt/noc/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 319, in cursor cursor = util.CursorWrapper(self._cursor(), self) File "/opt/noc/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 177, in _cursor self.connection = Database.connect(**conn_params) File "/opt/noc/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect conn = _connect(dsn, connection_factory=connection_factory, async=async) psycopg2.OperationalError: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?