How to clean temporary Plesk files on a Linux server

Follow

Comments

15 comments

  • Avatar
    Marco Marsala

    https://IPADDRESS:8443/repair is 404 not found on all my servers.

    0
    Comment actions Permalink
  • Avatar
    Marco Marsala (Edited )

    This will break Media Uploader (error: "missing temporary dir") in all Wordpress sites on the server using PHP FPM (FastCGI is ok), php.ini unaltered.

    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @Marco Marsala,

    Hi!

    1) Plesk repair kit presents only on Plesk Onyx 17.8. Additionally, please check if your OS uses systemd init system (https://docs.plesk.com/en-US/onyx/administrator-guide/plesk-administration/repair-kit.79310/).

    2) I can suppose that /tmp folder itself was accidentally removed. Please make sure that there is an asterisk in rm -rf /tmp/* when removing the content of /tmp

    0
    Comment actions Permalink
  • Avatar
    Marco Marsala

    I confirm /tmp was not removed. The issue happes with FPM and Wordpress 5.x only.

    0
    Comment actions Permalink
  • Avatar
    Anna Morozyuk

    @Marco Marsala, Hello there!

    I was trying reproducing this issue on a test environments and different WordPress versions, however, have not reproduced. This is a really interesting case, that has a number of variables within it. Thus, we would like for this case to reach Technical Support in order to investigate it deeper. Please create a request according to this article: How to submit request to Plesk Support

    0
    Comment actions Permalink
  • Avatar
    Marnette Federis

    Was there ever a solution for this? I desperately need to clear some space, but I don't want it to impact my Wordpress website. 

    0
    Comment actions Permalink
  • Avatar
    Julian Bonpland Mignaquy

    Hi @Marnette,

    Certain temporary files are not managed by Plesk but by the OS. For that matter, we recommend applying the solution in this article and I also recommend using the following extension https://www.plesk.com/extensions/diskspace-usage-viewer/.

    0
    Comment actions Permalink
  • Avatar
    Maghreb Services SARL

    As documented at the bottom of this article: https://docs.plesk.com/en-US/obsidian/advanced-administration-guide-linux/troubleshooting.68745/ 

    DEB-based systems have a PRODUCT_ROOT_D of /opt/psa not /usr/local/psa.

    Therefore, shouldn't the step 3 of the instructions for Removing tmp files via a command-line interface be changed to:

    rm -rf <PRODUCT_ROOT_D>/PMM/tmp/*
    rm -rf <PRODUCT_ROOT_D>/tmp/*
    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Maghreb Services SARL

    Thank you for the notice. The article will be reviewed.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Maghreb Services SARL

    The article was reviewed, for Debian/Ubuntu /usr/local/psa is a symlink to /opt/psa. So, the article is applicable for default installations.

    0
    Comment actions Permalink
  • Avatar
    Yorgos

    This way not working in centos 7 there is any other way? I have just 50B files size and plesk show 178GB

    1
    Comment actions Permalink
  • Avatar
    Francisco Roman Garcia Rodriguez

    Hi Yorgos,

    Which way isn't working? The one from CLI or the one from Plesk Repair?

    0
    Comment actions Permalink
  • Avatar
    Yorgos

    both the first one just clean up 14MB the other with ssh not working

    0
    Comment actions Permalink
  • Avatar
    Yorgos

    https://prnt.sc/zm2imm   my files are just 40GB and show 172GB why and how  i can clean up? Thanks

    0
    Comment actions Permalink
  • Avatar
    Francisco Roman Garcia Rodriguez

    Hi Yorgos,

    Have in mind that this article only cleans temporary files, those usually are leftovers from backups or temp files that normally doesn't consume more than few GB of size after some time of sever usage.

    After watching the screenshot you provided, what you see is the whole root of the filesystem which uses 172GB, I would suggest checking what is consuming the disk space by means of this other article: https://support.plesk.com/hc/en-us/articles/360011166353

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request