Plesk Repair tool fails to fix File System error: bytes-like object is required, not 'str'

Symptoms

  • File System check fails under Tools & Settings > Diagnose & Repair page with the error below:

    The operation failed with the following error: {"id":1,"cmd":"plesk repair fs -n","type":"progress","message":"Checking Linux system files","level":0} {"id":2,"cmd":"plesk repair fs -n","type":"error","message":"There are incorrect permissions on some items: /var/log/plesk","level":1} {"id":3,"cmd":"plesk repair fs -n","type":"error","message":"There are incorrect permissions on some items: /opt/psa/PMM/tmp","level":1} {"id":4,"cmd":"plesk repair fs -n","type":"error","message":"There are incorrect permissions on some items: /opt/psa/PMM/rsessions","level":1} {"id":5,"cmd":"plesk repair fs -n","type":"error","message":"There are incorrect permissions on some items: /var/log/plesk/PMM","level":1}

  • Trying to repair File System inconsistencies at Tools & Settings > Diagnose & Repair fails with the next error:

    0 issue(s) fixed. 0 issue(s) detected

  • The following error is displayed when trying to fix permission and ownership issues with plesk repair fs tool:

    # plesk repair fs -y
    ...
    ERROR:a bytes-like object is required, not 'str'

Cause

Product issue:

  • #PPPM-13691 "On Debian-based servers, the fsmng command line utility no longer fails when run."
    Fixed in:

Did you find this article useful?