Univention Bugzilla – Bug 52795
pg.InternalError: could not connect to server: No such file or directory
Last modified: 2021-05-25 16:03:23 CEST
Created attachment 10617 [details] listener.log During the upgrade to UCS 5.0 the log contains the traceback: 246 times in /var/log/univention/listener.log: https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestUpgrade/SambaVersion=no-samba,Systemrolle=master/ws/test/listener.log Traceback (most recent call last): File "/usr/sbin/univention-pkgdb-scan", line 37, in <module> univention.pkgdb.main() File "/usr/lib/python2.7/dist-packages/univention/pkgdb.py", line 580, in main connection = open_database_connection(config_registry, pkgdbu=True) File "/usr/lib/python2.7/dist-packages/univention/pkgdb.py", line 564, in open_database_connection connection = pgdb.connect(database=connectstring) File "/usr/lib/python2.7/dist-packages/pgdb.py", line 1619, in connect cnx = _connect(dbname, dbhost, dbport, dbopt, dbuser, dbpasswd) pg.InternalError: could not connect to server: No such file or directory
I guess it comes from /usr/lib/univention-directory-listener/system/pkgdb.py and it's not "During the upgrade to UCS 5.0" but during the tests after the update. Works on my updated test VM: root@master10:~# udm computers/memberserver create --set name=member1 WARNING: The object is not going to be created underneath of its default containers. Object created: cn=member1,dc=ar41i1,dc=qa listener.log: SQL: CREATE USER "member1$" IN GROUP pkgdbg
no more pg.InternalError errors in listener.log https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestUpgrade/SambaVersion=no-samba,Systemrolle=master/ws/test/listener.log/*view*/ manual update test with univention-pkgdb works, postgres running after the update
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".