Almalinux upgrade : Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505
When doing the precheck on my CentOS 7 with WHM and Cpanel for the Almalinux Upgrade I get the following blocking error :
* 2023-08-19 17:32:54 [WARN] Unknown error while checking blockers: STDERR: Can't exec "/bin/bash": Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505.
exec(/bin/bash) failed: Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505.
exec(/bin/bash) failed: Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505.
Cpanel::Exception::ProcessFailed::Error/(XID sv4z2b) "/bin/bash" reported error code "13" when it ended: Can't exec "/bin/bash": Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505.
exec(/bin/bash) failed: Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505.
exec(/bin/bash) failed: Permission denied at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 505.
at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 161.
Cpanel::ChildErrorStringifier::to_exception(Cpanel::SafeRun::Object=HASH(0x423a878)) called at /usr/local/cpanel/Cpanel/ChildErrorStringifier.pm line 140
Cpanel::ChildErrorStringifier::die_if_error(Cpanel::SafeRun::Object=HASH(0x423a878)) called at /usr/local/cpanel/Cpanel/SafeRun/Object.pm line 680
Cpanel::SafeRun::Object::die_if_error(Cpanel::SafeRun::Object=HASH(0x423a878)) called at /scripts/elevate-cpanel line 985
Elevate::Blockers::Grub2::_parse_shell_variable("/etc/default/grub", "GRUB_ENABLE_BLSCFG") called at /scripts/elevate-cpanel line 942
Elevate::Blockers::Grub2::_blocker_blscfg(Elevate::Blockers::Grub2=HASH(0x423a0f8)) called at /scripts/elevate-cpanel line 902
Elevate::Blockers::Grub2::check(Elevate::Blockers::Grub2=HASH(0x423a0f8)) called at /scripts/elevate-cpanel line 338
Elevate::Blockers::_check_single_blocker(Elevate::Blockers=HASH(0x3a032d0), "Grub2") called at /scripts/elevate-cpanel line 326
Elevate::Blockers::_check_all_blockers(Elevate::Blockers=HASH(0x3a032d0)) called at /scripts/elevate-cpanel line 289
eval {...} called at /scripts/elevate-cpanel line 289
Elevate::Blockers::_has_blockers(Elevate::Blockers=HASH(0x3a032d0), 1) called at /scripts/elevate-cpanel line 254
Elevate::Blockers::check(Elevate::Blockers=HASH(0x3a032d0), "dry_run", 1) called at /scripts/elevate-cpanel line 4838
cpev::run("cpev", "--check", "--upgrade-to=almalinux") called at /scripts/elevate-cpanel line 4784
Any pointers to where to look ?
Cheers
Stefan
-
Hey there! This seems more like an issue with Bash itself. Can you confirm that /bin/bash exists and has 755 permissions, and that you were running the ELevate script as root? Are you able to run /bin/bash manually when you're logged in? 0 -
Hey there! This seems more like an issue with Bash itself. Can you confirm that /bin/bash exists and has 755 permissions, and that you were running the ELevate script as root? Are you able to run /bin/bash manually when you're logged in?
/bin/bash exists and has the 755 permissions. Script was running as root. I can execute bash scripts without a problem. Tested on a simple script. Everything Bash works. If i look at the script itselve and the errorline on line 505 : exec( $OPTS{'program'}, @$args_ar ) or die "$exec_failed_message $!"; have no idea where to look..0 -
Thanks for the update! Could you submit a ticket to our team so we can check this out directly on the system? 0
Please sign in to leave a comment.
Comments
3 comments