patchman icon indicating copy to clipboard operation
patchman copied to clipboard

issues from Oracle linux client to Ubuntu 22.04 Server - IndexError: list index out of range

Open u-capg opened this issue 1 year ago • 6 comments

Moorning When i try to launch the script on client: patchman-client -v Server side i have this error:

DEV [root@server-side ]$ [2024-03-06 02:46:10,560: INFO/MainProcess] Task reports.tasks.process_report[0ea1c718-6e66-4f01-a518-3277fcaedacc] received

[2024-03-06 02:46:10,655: ERROR/ForkPoolWorker-4] Task reports.tasks.process_report[0ea1c718-6e66-4f01-a518-3277fcaedacc] raised unexpected: IndexError('list index out of range') Traceback (most recent call last): File "/usr/lib/python3/dist-packages/celery/app/trace.py", line 451, in trace_task R = retval = fun(*args, **kwargs) File "/usr/lib/python3/dist-packages/celery/app/trace.py", line 734, in protected_call return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/reports/tasks.py", line 29, in process_report report.process(verbose=True) File "/usr/lib/python3/dist-packages/reports/models.py", line 171, in process process_modules(report=self, host=host) File "/usr/lib/python3/dist-packages/reports/utils.py", line 80, in process_modules module = process_module(module_str) File "/usr/lib/python3/dist-packages/reports/utils.py", line 322, in process_module m_version = module_str[2] IndexError: list index out of range

I have server side Ubuntu 22.04 and the client side is Oracle linux 8.9

Patchman and patchman client are 3.0.8 on both server

Please could you help me

u-capg avatar Mar 06 '24 07:03 u-capg

other error i have when i lauch patchman-client -s http://172.31../patchman/

sed: -e expression #1, char 15: unterminated `s' command

Then the command end normally

u-capg avatar Mar 06 '24 08:03 u-capg

Seeing something similar using mysql backend:

Processing Reports for all Hosts Reverse DNS check disabled Traceback (most recent call last): 0%| |ETA: --:--:-- File "/opt/patchman/bin/patchman", line 705, in main() File "/opt/patchman/bin/patchman", line 699, in main showhelp = process_args(args) File "/opt/patchman/bin/patchman", line 659, in process_args process_reports(args.host, args.force) File "/opt/patchman/bin/patchman", line 490, in process_reports report.process(find_updates=False) File "/opt/patchman/lib64/python3.9/site-packages/reports/models.py", line 169, in process process_modules(report=self, host=host) File "/opt/patchman/lib64/python3.9/site-packages/reports/utils.py", line 80, in process_modules module = process_module(module_str) File "/opt/patchman/lib64/python3.9/site-packages/reports/utils.py", line 322, in process_module m_version = module_str[2] IndexError: list index out of range

cracksmokinmonkeys avatar Mar 06 '24 16:03 cracksmokinmonkeys

I have postgresql installed My configuration is postgresql 15 Patchman server is Ubuntu 22.04 with pitchman 3.0.8

I have problem with Oracle linux and also Red hat 8

If you could help me to solve

Giovanni

u-capg avatar Mar 06 '24 18:03 u-capg

I was able to get this to work by using the older 3.7 version of patchman-client.

cracksmokinmonkeys avatar Mar 06 '24 18:03 cracksmokinmonkeys

Ok I could use the old version if you are able to solve

u-capg avatar Mar 06 '24 18:03 u-capg

I change my configuration but i have yet the same problem with the old version of patchman-client

Same problem and i have used mysql database

Giovanni

u-capg avatar Mar 07 '24 11:03 u-capg

I have the same problem on Debian 12.5 (Patchman Core) - but only after added an additional host based on AlmaLinux (Client) - as far as I saw the report is much bigger than of our other servers (Clients). Maybe there's the reason, would explain the error message.

TW1920 avatar Jun 07 '24 23:06 TW1920

Can you try commit 0404e57c8fc61ce33a88c3ccd7b672a08cdf1083 in PR #594 ? This should fix it but I want to confirm first.

furlongm avatar Jun 19 '24 21:06 furlongm

Hello, Not sure this the right channel apologies if not. Is there way to the patchman server send patching report by email on security updates only please?

Kind regards, Fuad

On Sun, 23 Jun 2024, 22:20 Marcus Furlong, @.***> wrote:

Closed #563 https://github.com/furlongm/patchman/issues/563 as completed via #594 https://github.com/furlongm/patchman/pull/594.

— Reply to this email directly, view it on GitHub https://github.com/furlongm/patchman/issues/563#event-13258234849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF24KYPJD4E6BA6JXMQQXM3ZI433VAVCNFSM6AAAAABI7OFQMCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGI2TQMRTGQ4DIOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

OpenThink1 avatar Jun 24 '24 12:06 OpenThink1