• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue plesk repair fs shows error: ERROR:a bytes-like object is required, not 'str'

  • Thread starter Deleted member 259838
  • Start date
D

Deleted member 259838

Guest
Server operating system version
Debian 11.4
Plesk version and microupdate number
Obsidian 18.0.46
To day i tried to run in shell:
plesk repair fs -verbose
After whole i got a error message: ERROR:a bytes-like object is required, not 'str'
See
Code:
Checking Linux system files[2022-09-06 12:44:51.833] 60872:631724a3cb22b ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/fsmng' '--check-ac' '/var/log/plesk'] with exit code [1]

  There are incorrect permissions on some items: /var/log/plesk ..... [ERROR]
    - fsmng failed: Downloading file products.inf3: 0%
      Downloading file products.inf3: 100% was finished.
      Downloading file pool/PSA_18.0.46_9656/release.inf3: 0%
      Downloading file pool/PSA_18.0.46_9656/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.45_9299/release.inf3: 0%
      Downloading file pool/PSA_18.0.45_9299/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.44_9078/release.inf3: 0%
      Downloading file pool/PSA_18.0.44_9078/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.43_8703/release.inf3: 0%
      Downloading file pool/PSA_18.0.43_8703/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.42_8472/release.inf3: 0%
      Downloading file pool/PSA_18.0.42_8472/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.41_8197/release.inf3: 0%
      Downloading file pool/PSA_18.0.41_8197/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.40_8022/release.inf3: 0%
      Downloading file pool/PSA_18.0.40_8022/release.inf3: 100% was
      finished.
      Downloading file pool/PSA_18.0.39_7558/release.inf3: 0%
      Downloading file pool/PSA_18.0.39_7558/release.inf3: 100% was
      finished.
      Downloading file plesk.inf3: 0%
      Downloading file plesk.inf3: 100% was finished.
      Downloading file sitebuilder.inf3: 0%
      Downloading file sitebuilder.inf3: 100% was finished.
      Downloading file PHP81_17/release.inf3: 0%
      Downloading file PHP81_17/release.inf3: 100% was finished.
      Downloading file PHP80_17/release.inf3: 0%
      Downloading file PHP80_17/release.inf3: 100% was finished.
      Downloading file php80.inf3: 0%
      Downloading file php80.inf3: 100% was finished.
      Downloading file php72.inf3: 0%
      Downloading file php72.inf3: 100% was finished.
      Downloading file PHP74_17/release.inf3: 0%
      Downloading file PHP74_17/release.inf3: 100% was finished.
      Downloading file php74.inf3: 0%
      Downloading file php74.inf3: 100% was finished.
      Downloading file php73.inf3: 0%
      Downloading file php73.inf3: 100% was finished.
      Downloading file php71.inf3: 0%
      Downloading file php71.inf3: 100% was finished.
      Downloading file setemplates.inf3: 0%
      Downloading file setemplates.inf3: 100% was finished.
      Downloading file pp-sitebuilder.inf3: 0%
      Downloading file pp-sitebuilder.inf3: 100% was finished.
      Downloading file billing.inf3: 0%
      Downloading file billing.inf3: 100% was finished.
      Downloading file mysql.inf3: 0%
      Downloading file mysql.inf3: 100% was finished.
      Downloading file apache.inf3: 0%
      Downloading file apache.inf3: 100% was finished.
      Downloading file nginx.inf3: 0%
      Downloading file nginx.inf3: 100% was finished.
      Downloading file php70.inf3: 0%
      Downloading file php70.inf3: 100% was finished.
      Downloading file php56.inf3: 0%
      Downloading file php56.inf3: 100% was finished.
      Downloading file php55.inf3: 0%
      Downloading file php55.inf3: 100% was finished.
      Downloading file php54.inf3: 0%
      Downloading file php54.inf3: 100% was finished.
      Downloading file php53.inf3: 0%
      Downloading file php53.inf3: 100% was finished.
      Downloading file php52.inf3: 0%
      Downloading file php52.inf3: 100% was finished.
      Downloading file pmm.inf3: 0%
      Downloading file pmm.inf3: 100% was finished.
      Checking for installed packages...
      Downloading file
      pool/PSA_18.0.46_9656/plesk-18.0.46-deb11.0-x86_64.inf3: 0%
      Downloading file
      pool/PSA_18.0.46_9656/plesk-18.0.46-deb11.0-x86_64.inf3: 100%
      was finished.
      Downloading file PHP74_17/php74-deb11.0-x86_64.inf3: 0%
      Downloading file PHP74_17/php74-deb11.0-x86_64.inf3: 100% was
      finished.
      Downloading file PHP80_17/php80-deb11.0-x86_64.inf3: 0%
      Downloading file PHP80_17/php80-deb11.0-x86_64.inf3: 100% was
      finished.
      Downloading file PHP81_17/php81-deb11.0-x86_64.inf3: 0%
      Downloading file PHP81_17/php81-deb11.0-x86_64.inf3: 100% was
      finished.
      Downloading file
      SITEBUILDER_18.0.29/sitebuilder-18.0.29-deball-all.inf3: 0%
      Downloading file
      SITEBUILDER_18.0.29/sitebuilder-18.0.29-deball-all.inf3: 100%
      was finished.
      ERROR:a bytes-like object is required, not 'str'
  Do you want to repair incorrect permissions? [Y/n] y

Using

Plesk Obsidian 18.0.46 Update #1,

Plesk is not able to repair this?
How to fix?
 
The issue is caused by a bug PPPM-13691, which is scheduled to be fixed in future Plesk versions.

You can make sure that permissions appear to be fine - for example, the tool reported incorrect permissions for /var/log/plesk/panel.log:

Code:
# stat /var/log/plesk/panel.log
File: /var/log/plesk/panel.log
Size: 1200315    Blocks: 2360  IO Block: 4096  regular file
Device: ca01h/51713d  Inode: 179394  Links: 1
Access: (0640/-rw-r-----)  Uid: (  998/  psaadm)  Gid: (  0/  root)
Access: 2022-08-23 13:51:57.185087271 +0000
Modify: 2022-08-23 13:51:57.185087271 +0000
Change: 2022-08-23 13:51:57.185087271 +0000
Birth: -

So this error can be ignored.
 
@IgorG Thank you for your fast answer.
Ah, ok, a bug in plesk tool. Then i will wait and ignore the error.
 
Back
Top