[BUG] Plesk fails to restart services: control script doesn't exist or isn't executable

Follow

Comments

10 comments

  • Avatar
    Abraham Joseph

    Hi, 

    How to find the details of this bug - #PPPM-7414? I  mean, latest updates?

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Alexandr Tumanov

    @Abraham, bugfixes are listed in Plesk ChangeLog: https://docs.plesk.com/release-notes/onyx/change-log/ 

    This bug is not fixed yet.

    0
    Comment actions Permalink
  • Avatar
    Ansgar Smith

    @Alexandr,  Any updates on this issue? It's causing outages with new Plesk installations, though the temprorary fix works good for us. Would be good if it's fixed permanently

    Thank!

    0
    Comment actions Permalink
  • Avatar
    Anzhelika Khapaknysh (Edited )

    Hi @Ansgar Smith,

    In general, this bug is a systemd one - all OSes with systemd are affected.
    Links on the discussions are in the Cause section.

    The bug PPPM-7414 is created in order to track this issue in general.
    As the root cause is on the systemd side, Plesk cannot offer a permanent solution, but we created this workaround so our customers won't suffer from systemd bug.

    I recommend following this article, as we'll update it as soon as systemd bug is fixed.
    The Cause section has been modified in order not to confuse anymore.

    0
    Comment actions Permalink
  • Avatar
    Websavers Inc

    I like that the updated version of the cleanup_systemd_sessions script actually checks to ensure the session has not been active in the last 30 minutes, but shouldn't it be starting with a list of supposedly abandoned sessions like the previous version of it did? When I run that script, it kills my active SSHd session... clearly that was not abandoned and it also definitely was active in the last 30 minutes. Here's a modified version which merges the old and the new script by ensuring we're only terminating *abandoned* sessions which have not spawned processes in the past 30 minutes (rather than terminating all sessions which have not spawned processes in the past 30 minutes):

    #!/bin/sh
    # Removes leaked session scopes (PPPM-7414) # 

    # Close only sessions which did not spawn processes for 30 minutes
    LASTTASK=30

    systemctl list-units --state=abandoned --no-legend | tr -s ' ' | cut -d' ' -f 6,9 \
    | while read -r session username; do \
    user=$(id -u $username)
    tasklist="/sys/fs/cgroup/systemd/user.slice/user-${user}.slice/session-${session}.scope/tasks"
    if [ ! -s "$tasklist" ]; then
    if find "$tasklist" -type f -mmin +${LASTTASK} >/dev/null; then
    echo "Closing leaked session ${session} of user ${user}"
    loginctl terminate-session "$session" >&2
    fi
    fi
    done
    0
    Comment actions Permalink
  • Avatar
    Maxim Krasikov

    Hello @Websavers Inc !

    Thank you for paying our attention to it and providing the modified script.

    The article has been updated.

    0
    Comment actions Permalink
  • Avatar
    Websavers Inc

    Maxim Krasikov This bug is tagged for Onyx, and not Obsidian; should it be tagged as applicable to Obsidian as well? I don't see PPPM-7414 listed in the Obsidian changelog.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Websavers Inc

    Thank you for notice, I'll correct the tagging.

    PPPM-7414 is yet to be resolved.

    0
    Comment actions Permalink
  • Avatar
    Websavers Inc

    Another quick update here. The referenced articles here may need updating. Here's why:

    • The systemd github issue indicates that this isn't their problem (it's labled 'not-our-bug' and is closed) as the issue is in the dbus package, not systemd (the problems the bug creates can be managed with systemd, but aren't caused by it).
    • The Redhat bug tracker claims that this was fixed in dbus version dbus 1.10.24 back in Aug 2019 and I can confirm that our fully updated CentOS 7 servers are running this version, with the current system package for dbus being: dbus-1.10.24-13.el7_6.x86_64

    Therefore either this bug is fixed (which I don't believe it is), or there's something *else* other than the referenced bug reports that is still causing this issue. Since I'm not seeing any additional users posting on either of those bug reports indicating they're still having a problem after updating dbus, that would lead me to believe that perhaps it might even be Plesk-specific packages that are still causing this problem.

    I guess the question then is: what's really going on here? If it's not fixed with the CentOS dbus package update, then you guys might need to look further into this.

    0
    Comment actions Permalink
  • Avatar
    Francisco Garcia

    Hi Websavers Inc,

    These 3 articles referenced here aren't created by us, they are what we could find regarding the same issue experienced.

    If after updating dbus and systemd packages you're still experiencing the same issue, it could mean one of those 2 things:

         1- Or the bug is not yet fixed, because there's some other package involved (or maybe the kernel)

         2- Or there's another different bug that has the same symptoms.

    In any of the 2 possibilities, I would encourage you to open a support request so that we can investigate exactly why it still fails.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request