Univention Bugzilla – Bug 43915
Listener error while adding system to pkgdb
Last modified: 2017-04-04 18:29:31 CEST
The following traceback happens in my UCS 4.2 test environment. I've installed pkgdb on the DC master (USI at Bug #43887): Traceback (most recent call last): File "/usr/sbin/univention-pkgdb-scan", line 37, in <module> univention.pkgdb.main() File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 576, in main connection = open_database_connection(config_registry, pkgdbu=True) File "/usr/lib/pymodules/python2.7/univention/pkgdb.py", line 554, in open_database_connection connection_info['password'] = open(password_file, 'rb').read().rstrip('\n') IOError: [Errno 2] No such file or directory: '/etc/postgresql/pkgdb.secret' 16.03.17 07:00:56.236 LISTENER ( ERROR ) : error while adding system=slave423$ to pkgdb
When installing u-postgresql during the setup process, postgresql does not run because FATAL: konnte Shared-Memory-Segment »/PostgreSQL.1203232265« nicht öffnen: Die angeforderte Funktion ist nicht implementiert ... failed! this is because shm_open tries to create the file under /dev/shm (or /run/shm?) which does not exist in the installer /dev. shm_open then falls back to /run which does not have the permissions to allow the user postgres to create files. This then leads to postgresql not being available when creating the "pkgdbu" user. I think /dev/shm should be available during the installation.
*** Bug 43889 has been marked as a duplicate of this bug. ***
univention-system-setup (10.0.10-1) unstable; urgency=medium * Bug #43915: Create /dev/shm if it is missing: POSIX shared memory objects are created (via shm_open) under /dev/shm or /run but /run is only writeable by root, therefore create /dev/shm as tmpfs with world-writeable permissions if it is missing
OK, it works. I've tested it with my latest test installation. Please add a changelog entry.
(In reply to Stefan Gohmann from comment #4) > Please add a changelog entry. r78309
(In reply to Janek Walkenhorst from comment #5) > (In reply to Stefan Gohmann from comment #4) > > Please add a changelog entry. > r78309 OK
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".