Bug 2193258 - insights-client service generating ABRT core dumps: "[Errno 2] No such file or directory: '/tmp/insights-client.ppid"
Summary: insights-client service generating ABRT core dumps: "[Errno 2] No such file o...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: insights-client
Version: 7.9
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: CSI Client Tools Bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-04 21:57 UTC by Amar Huchchanavar
Modified: 2023-08-11 11:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ESSNTL-4923 0 None None None 2023-06-02 07:54:05 UTC
Red Hat Issue Tracker RHELPLAN-156462 0 None None None 2023-05-04 21:57:44 UTC

Description Amar Huchchanavar 2023-05-04 21:57:02 UTC
Description of problem:
Insights service generating ABRT core dumps. 

# abrt-cli ls
id 4d8793e4166e92034865a78d6e2a5654112c0898
reason:         utilities.py:127:write_to_disk:OSError: [Errno 2] No such file or directory: '/tmp/insights-client.ppid'
time:           Fri 07 Apr 2023 03:30:00 AM GMT
cmdline:        /usr/bin/python /usr/bin/insights-client --retry 3
package:        insights-client-3.1.7-2.el7_9
uid:            0 (root)
count:          1
Directory:      /var/spool/abrt/Python-2023-04-07-03:30:00-29062
Run 'abrt-cli report /var/spool/abrt/Python-2023-04-07-03:30:00-29062' for creating a case in Red Hat Customer Portal

# insights-client --version
Client: 3.1.7
Core: 3.1.16-1

# systemctl status insights-client
● insights-client.service - Insights Client
   Loaded: loaded (/usr/lib/systemd/system/insights-client.service; static; vendor preset: disabled)
   Active: inactive (dead) since Fri 2023-04-07 03:30:00 GMT; 5h 30min ago
     Docs: man:insights-client(8)
  Process: 29065 ExecStartPost=/bin/bash -c echo 1G >/dev/null 2>&1 > /sys/fs/cgroup/memory/system.slice/insights-client.service/memory.soft_limit_in_bytes (code=exited, status=0/SUCCESS)
  Process: 29063 ExecStartPost=/bin/bash -c echo 2G >/dev/null 2>&1 > /sys/fs/cgroup/memory/system.slice/insights-client.service/memory.memsw.limit_in_bytes (code=exited, status=0/SUCCESS)
  Process: 29062 ExecStart=/usr/bin/insights-client --retry 3 (code=exited, status=0/SUCCESS)
 Main PID: 29062 (code=exited, status=0/SUCCESS)

Apr 07 03:29:59 system1.example.com insights-client[29062]: File "/var/lib/insights/last_stable.egg/insights/client/utilities.py", line 127, in write_to_disk
Apr 07 03:29:59 system1.example.com insights-client[29062]: os.remove(filename)
Apr 07 03:29:59 system1.example.com insights-client[29062]: OSError: [Errno 2] No such file or directory: '/tmp/insights-client.ppid'
Apr 07 03:29:59 system1.example.com insights-client[29062]: Error in sys.exitfunc:
Apr 07 03:29:59 system1.example.com python[29062]: detected unhandled Python exception in '/usr/bin/insights-client'
Apr 07 03:30:00 system1.example.com insights-client[29062]: Traceback (most recent call last):
Apr 07 03:30:00 system1.example.com insights-client[29062]: File "/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
Apr 07 03:30:00 system1.example.com insights-client[29062]: func(*targs, **kargs)
Apr 07 03:30:00 system1.example.com insights-client[29062]: File "/var/lib/insights/last_stable.egg/insights/client/utilities.py", line 127, in write_to_disk
Apr 07 03:30:00 system1.example.com insights-client[29062]: OSError: [Errno 2] No such file or directory: '/tmp/insights-client.ppid'

Version-Release number of selected component (if applicable):
insights-client-3.1.7-2.el7_9.noarch

How reproducible:
Customer site only

Steps to Reproduce:
1.


Actual results:
Apr 07 03:30:00 system1.example.com insights-client[29062]: OSError: [Errno 2] No such file or directory: '/tmp/insights-client.ppid'

Expected results:
It should not fail with above-mentioned error.

Additional info:
- This issue does not occur if we execute #insights-client manually


Note You need to log in before you can comment on or make changes to this bug.