log attached here
Oct 24 23:41:51 srv uwsgi: xxx.com [pid: 132|app: 0|req: 2/2] 192.83.228.246 () {52 vars in 857 bytes} [Wed Oct 24 23:41:51 2018] GET /iredadmin => generated 21 bytes in 0 msecs (HTTP/1.1 500) 1 headers in 63 bytes (2 switches on core 0)
Oct 24 23:42:36 srv uwsgi: Traceback (most recent call last):
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/application.py", line 237, in process
Oct 24 23:42:36 srv uwsgi: return p(lambda: process(processors))
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/session.py", line 84, in _processor
Oct 24 23:42:36 srv uwsgi: self._cleanup()
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/session.py", line 172, in _cleanup
Oct 24 23:42:36 srv uwsgi: self.store.cleanup(timeout)
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/session.py", line 319, in cleanup
Oct 24 23:42:36 srv uwsgi: self.db.delete(self.table, where="$last_allowed_time > atime", vars=locals())
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/db.py", line 906, in delete
Oct 24 23:42:36 srv uwsgi: db_cursor = self._db_cursor()
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/db.py", line 566, in _db_cursor
Oct 24 23:42:36 srv uwsgi: return self.ctx.db.cursor()
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/db.py", line 507, in _getctx
Oct 24 23:42:36 srv uwsgi: self._load_context(self._ctx)
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/db.py", line 518, in _load_context
Oct 24 23:42:36 srv uwsgi: ctx.db = self._connect(self.keywords)
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/db.py", line 960, in _connect
Oct 24 23:42:36 srv uwsgi: conn = DB._connect(self, keywords)
Oct 24 23:42:36 srv uwsgi: File "/usr/lib/python2.7/site-packages/web/db.py", line 546, in _connect
Oct 24 23:42:36 srv uwsgi: return self.db_module.connect(**keywords)
Oct 24 23:42:36 srv uwsgi: File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
Oct 24 23:42:36 srv uwsgi: conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
Oct 24 23:42:36 srv uwsgi: OperationalError: could not connect to server: Connection refused
Oct 24 23:42:36 srv uwsgi: Is the server running on host "127.0.0.1" and accepting
Oct 24 23:42:36 srv uwsgi: TCP/IP connections on port 5432?
Oct 24 23:42:36 srv uwsgi: xxx.com [pid: 132|app: 0|req: 3/3] 192.83.228.246 () {52 vars in 857 bytes} [Wed Oct 24 23:42:36 2018] GET /iredadmin => generated 21 bytes in 0 msecs (HTTP/1.1 500) 1 headers in 63 bytes (2 switches on core 0)