CPANEL-39343 - cPanel & WHM update failure in upcp script - find_outdated_services
Has anyone noticed the "Code" option in the Rich Text Editor opens a popup with the Forum List, or is it just me?
Running v112.0.1, this has recently started happening:
----------------------
...
[2023-05-31 00:30:21 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] STDERR: [Errno 2] No such file or directory: '/proc/1115512/stat'
[2023-05-31 00:30:21 +0100] E [/usr/local/cpanel/scripts/find_outdated_services]
[2023-05-31 00:30:21 +0100] E [/usr/local/cpanel/scripts/find_outdated_services]
[2023-05-31 00:30:21 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::Exception::ProcessFailed::Error/(XID p3mn8s) "/usr/bin/needs-restarting" reported error code "1" when it ended: [Errno 2] No such file or directory: '/proc/1115512/stat'
...
----------------------
So this morning, I ran the command manually:
----------------------
root@gamma [~]# /usr/local/cpanel/scripts/find_outdated_services
Looking for outdated services "
0 files removed
The system found 4 outdated services:
crond
tailwatchd
lfd
queueprocd
Would you like to restart these services? [y/n]: y
Restarting "crond" "
The system has restarted "crond".
Restarting "tailwatchd" "
The system has restarted "tailwatchd".
Restarting "lfd" "
The system has restarted "lfd".
Restarting "queueprocd" "
The system has restarted "queueprocd".
root@gamma [~]# /usr/local/cpanel/scripts/find_outdated_services
Looking for outdated services "
0 files removed
The system found 4 outdated services:
queueprocd
tailwatchd
crond
lfd
Would you like to restart these services? [y/n]:
----------------------
It doesn't matter if I choose "Y" and it says the services have restarted. They're not restarting and I'm forced to perform a server reboot.
Is this something you're aware of? I've also managed to replicate this exact issue on another server, both running AlmaLinux 8.8 and cPanel/WHM 112.0.1.
-
- Has anyone noticed the "Code" option in the Rich Text Editor opens a popup with the Forum List, or is it just me? Same for me 0 -
- Has anyone noticed the "Code" option in the Rich Text Editor opens a popup with the Forum List, or is it just me? Same for me
Same. I thought it was a browser issue, but tried multiple browsers and no change. I am able to manually insert code using BBCode as shown below, so the issue only occurs when clicking "Code" in the toolbar.test0 -
[QUOTE]I am able to manually insert code using BBCode as shown below, so the issue only occurs when clicking "Code" in the toolbar.
Correct0 -
The code issue is well known. We can't fix it, but we have bigger plans for the Forums later this year. I am seeing an issue with the /usr/local/cpanel/scripts/find_outdated_services services command. I'm looking into that now and I'll post again once I have more details. 0 -
I see this issue is fixed in the next 112 release, which is 112.0.2, so this will be resolved likely within the next week or two. 0 -
I see this issue is fixed in the next 112 release, which is 112.0.2, so this will be resolved likely within the next week or two.
I assume this response refers to the upcp error and not the editor/code insert bug, correct?0 -
Correct 0 -
Hi, I'm running 112.0.7 and I still have this same issue in my server. 0 -
@Pedro Marques - is this happening when you run "/scripts/upcp" on the server? 0 -
Yes. Here's the error part in the logfile emailed by cPanel. If needed I can send the whole log. [2023-08-15 04:33:44 +0100] Processing: Restarting any outdated services [2023-08-15 04:33:44 +0100] - Processing command `/usr/local/cpanel/scripts/find_outdated_services --auto` [2023-08-15 04:33:47 +0100] [/usr/local/cpanel/scripts/find_outdated_services] Looking for outdated services " [2023-08-15 04:33:47 +0100] [/usr/local/cpanel/scripts/find_outdated_services] 97 files removed [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] STDERR: Traceback (most recent call last): [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/bin/needs-restarting", line 101, in [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] main.user_main(MAPPING[command] + args, exit_code=True) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 201, in user_main [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] errcode = main(args) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return _main(base, args, cli_class, option_parser_class) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return cli_run(cli, base) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] cli.run() [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1055, in run [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return self.command.run() [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf-plugins/needs_restarting.py", line 270, in run [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] for ofile in list_opened_files(uid): [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf-plugins/needs_restarting.py", line 77, in list_opened_files [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] lines = smaps_file.readlines() [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return codecs.ascii_decode(input, self.errors)[0] [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2950: ordinal not in range(128) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::Exception::ProcessFailed::Error/(XID nvqxzm) "/usr/bin/needs-restarting" reported error code "1" when it ended: Traceback (most recent call last): [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/bin/needs-restarting", line 101, in [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] main.user_main(MAPPING[command] + args, exit_code=True) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 201, in user_main [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] errcode = main(args) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return _main(base, args, cli_class, option_parser_class) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return cli_run(cli, base) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] cli.run() [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1055, in run [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return self.command.run() [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf-plugins/needs_restarting.py", line 270, in run [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] for ofile in list_opened_files(uid): [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib/python3.6/site-packages/dnf-plugins/needs_restarting.py", line 77, in list_opened_files [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] lines = smaps_file.readlines() [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] return codecs.ascii_decode(input, self.errors)[0] [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2950: ordinal not in range(128) [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 161. [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::ChildErrorStringifier::to_exception(Cpanel::SafeRun::Object=HASH(0x2caf3a0)) called at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 140 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::ChildErrorStringifier::die_if_error(Cpanel::SafeRun::Object=HASH(0x2caf3a0)) called at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 680 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::SafeRun::Object::die_if_error(Cpanel::SafeRun::Object=HASH(0x2caf3a0)) called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 274 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::ProcessCheck::Outdated::_outdated_services_default() called at /usr/local/cpanel/Cpanel/ProcessCheck/Outdated.pm line 68 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Cpanel::ProcessCheck::Outdated::outdated_services() called at /usr/local/cpanel/scripts/find_outdated_services line 88 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] scripts::find_outdated_services::__ANON__() called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 100 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 91 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] Try::Tiny::try(CODE(0x23bcd88), Try::Tiny::Catch=REF(0x20f37e8)) called at /usr/local/cpanel/scripts/find_outdated_services line 108 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] scripts::find_outdated_services::run(scripts::find_outdated_services=HASH(0x20c65a0)) called at /usr/local/cpanel/scripts/find_outdated_services line 73 [2023-08-15 04:33:47 +0100] E [/usr/local/cpanel/scripts/find_outdated_services] The "/usr/local/cpanel/scripts/find_outdated_services --auto" command (process 619419) reported error number 255 when it ended. [2023-08-15 04:33:47 +0100] The Administrator will be notified to review this output when this script completes [2023-08-15 04:33:47 +0100] - Finished command `/usr/local/cpanel/scripts/find_outdated_services --auto` in 2.322 seconds 0 -
Could you submit a ticket so our team can check this out directly? 0 -
Sure, I'll do that. Thanks! 0 -
Once you've done that, if you could post the ticket number here so I can follow along that would be great! 0 -
Hello again. Here's the ticket number: #95107054 Thanks! 0 -
Thanks! 0 -
Our team found this was related to an upstream RedHat case, outlined here - 2212953 " Smaps file parsing in DNF's needs-restarting cannot handle garbage UTF-8-ish characters in smaps lines 0
Please sign in to leave a comment.
Comments
16 comments