Univention Bugzilla – Bug 52494
ucs-5 beta: Strange error message from UCR module autostart.py
Last modified: 2021-05-25 16:00:59 CEST
Configure 96univention-samba4.inst Sat Dec 12 22:12:43 CET 2020 2020-12-12 22:12:43.693312332+01:00 (in joinscript_init) 12.12.20 22:12:44.744 DEBUG_INIT Create samba4/role Multifile: /etc/samba/smb.conf File: /etc/samba/base.conf Multifile: /etc/samba/smb.conf Setting samba/quota/command Multifile: /etc/samba/smb.conf Stopping smbd (via systemctl): smbd.service. Stopping nmbd (via systemctl): nmbd.service. Stopping winbind (via systemctl): winbind.service. Stopping heimdal-kdc (via systemctl): heimdal-kdc.service. heimdal-kdc.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable heimdal-kdc Created symlink /etc/systemd/system/heimdal-kdc.service → /dev/null. Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'R' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' [...] Failed getting parent: invalid literal for int() with base 10: 'S' Create samba/autostart Create winbind/autostart Setting kerberos/autostart Module: autostart Multifile: /etc/samba/smb.conf Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'S' Failed getting parent: invalid literal for int() with base 10: 'R' Failed getting parent: invalid literal for int() with base 10: 'S' [...]
root@slave202:~# rgrep "Failed getting parent" /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages/univention/service_info.py: log.error('Failed getting parent: %s', ex)
python3-univention-config-registry: /usr/lib/python3/dist-packages/univention/service_info.py : =========================================================================== stat = os.path.join('/proc', proc, 'stat') try: with open(stat, 'r') as fd: status = fd.read() ppid = int(status.split()[3], 10) children.setdefault(ppid, []).append(pid) except (EnvironmentError, ValueError) as ex: log.error('Failed getting parent: %s', ex) =========================================================================== Looks like the index into the proc is one off at that point? Looks right though after joining. Example: 17153 (tfork(17154)) S 17140 17140 17140 0 -1 4194368 70 0 0 0 0 0 0 0 20 0 1 0 6607345 135847936 6388 18446744073709551615 94117189193728 94117189219909 140724780723664 0 0 0 6784 1052672 17505 1 0 0 17 3 0 0 0 0 0 94117189236800 94117189239936 94117204119552 140724780732213 140724780732232 140724780732232 140724780732392 0
A patch is available at Bug #51524. *** This bug has been marked as a duplicate of bug 51524 ***
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".