Bug 52494 - ucs-5 beta: Strange error message from UCR module autostart.py
ucs-5 beta: Strange error message from UCR module autostart.py
Status: CLOSED DUPLICATE of bug 51524
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Florian Best
Arvid Requate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-12-15 11:01 CET by Arvid Requate
Modified: 2021-05-25 16:00 CEST (History)
1 user (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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2020-12-15 11:01:57 CET
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'
[...]
Comment 1 Arvid Requate univentionstaff 2020-12-15 11:35:22 CET
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)
Comment 2 Arvid Requate univentionstaff 2020-12-15 11:57:47 CET
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
Comment 3 Florian Best univentionstaff 2020-12-15 12:05:51 CET
A patch is available at Bug #51524.

*** This bug has been marked as a duplicate of bug 51524 ***
Comment 4 Florian Best univentionstaff 2021-05-25 16:00:59 CEST
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".