Skip to main content

[Suggestion] Elevate from Ubuntu 22.04 to 24.04 behavior on failure

Answered

Comments

9 comments

  • LeviathanX

    Ok, let me add some more information as there is more broken in stage 3 than I was expecting.

    With terminal access I found no logs for dist-upgrade issues. However, after some digging I found the issue. In my installation the system runs on mysql.. and for whatever reason, after entering Stage 3 the mysql-client package started causing conflicts and the package was set "on hold". That led the Ubuntu provided update script to terminate immediately. The short solution is "apt remove mysql-client" then I could continue the elevate process.

    Now, the SSH issue is rather strange. I verified the SSH service running and listening. BUT, for some reason only local connections were allowed, despite the binding clearly showing me it listening on wildcards (0.0.0.0) and not localhost only. "sshd -T" also confirmed that. Disabling the iptables service didn't solve the issue either. Very strange... After elevation was done, SSH returned back to normal state. I would appreciate it if you can clarify what happens with the SSH service in stage 3.

    Somehow the user "dovecot" and its group "dovecot" are not getting added as well, causing the next break in the upgrade process. Adding both, group and user, manually enabled the continuation of the elevation process.

    Having the installation on a md0 (software raid) causes a failure when grub is about to be updated. Manual interaction required. Just calling "update-grub" did the trick. 

     

    0
  • cPRex Jurassic Moderator

    Hey there!  I've reached out to the ELevate team and I'll let you know what they have to say!

    0
  • cPRex Jurassic Moderator

    I spoke with the team and they confirmed that there are no changes in the script that affect SSH access.  If the server is left in a state where it doesn't work properly SSH could be affected, but that isn't something the script specifically shuts off.

    Local connections being the only allowed method gets removed in stage 4 of ELevate as that runs, so I wouldn't expect that to be a persistent issue either.

    It's also worth noting that cPanel *never* attempts to run ELevate in an automated fashion, so I'm not sure what you were seeing when you mention that background process "since February" as ELevate has to be manually initiated by a user.

    It might be best to create a ticket so the system can be examined directly.  If we're able to reproduce any of these issues we'd be happy to have our developers take a look!

    0
  • LeviathanX

    Thank you for the quick reply.

    Local connections being the only allowed method gets removed in stage 4 of ELevate as that runs, so I wouldn't expect that to be a persistent issue either.

    So, that fits my observation as stated above (local only connections). Isn't it possible to allow outside connections in stage 3 when it fails? Sure, not everyone has a hoster that only is reachable 8-6 from Mo till Fr, but it would reduce downtime for such cases and makes things quicker to fix.

    It's also worth noting that cPanel *never* attempts to run ELevate in an automated fashion, 

    Then I might be misinterpreting the log? In the elevate-cpanel.log file, I have several entries since February and I never executed that script. Does the system do background checks for some (undocumented) reason? If that's also not the case, then I can attach it to a ticket if you like. Not sure if that brings some insight at all.

    Also, did the ELevate team say something about the missing dovecot user and group? Actually, I do wonder why both were removed in the first place.

     

    0
  • cPRex Jurassic Moderator

    I'm being told it would be best to create a ticket since we've never seen this behavior on our side before, so I don't have any specific advice I can provide.

    0
  • LeviathanX

    Ok, as you have requested, I have created a ticket. The number is 95993851. 

     

    0
  • cPRex Jurassic Moderator

    Thanks for that - I'm following along on my end as well.

    There may be a slight delay on this issue as we're prioritizing the recent security event, but we'll get on it as soon as we can.

    0
  • LeviathanX

    Thank you. We got a quick resolution already. It is indeed a background check, to see if an elevation option is available, executed by another script which is called by the default cpanel cron jobs.

    0
  • cPRex Jurassic Moderator

    I'm glad we were able to clear that up!

    0

Please sign in to leave a comment.