Bug 35902 - Traceback in pkgdb when postgres not running
Traceback in pkgdb when postgres not running
Status: NEW
Product: UCS Test
Classification: Unclassified
Component: pkgdb
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on: 34723
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-11 14:50 CEST by Stefan Gohmann
Modified: 2018-04-14 13:47 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-09-11 14:50:32 CEST
Please check if a test case is possible.

+++ This bug was initially created as a clone of Bug #34723 +++

Reported by traceback feedback:

 Traceback:
The init function of the module has failed: InternalError: 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"?

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/modserver.py",
line 228, in handle
    self.__handler.init()
  File
"/usr/lib/pymodules/python2.6/univention/management/console/modules/pkgdb/__init__.py",
line 210, in init
    self.connection = updb.open_database_connection(self.ucr, pkgdbu=True)
  File "/usr/lib/pymodules/python2.6/univention/pkgdb.py", line 521, in
open_database_connection
    connection = pgdb.connect(database=connectstring)
  File "/usr/lib/python2.6/dist-packages/pgdb.py", line 482, in connect
    dbtty, dbuser, dbpasswd)
InternalError: 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"?