• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

plesk-php-cleanuper No such file issue not fixed

aljam

New Pleskian
Have just upgraded Plesk on VPS to 12.5.30 and am now receiving these hourly notices...

/etc/cron.hourly/plesk-php-cleanuper:

[....]

find: 24: No such file or directory

Have read https://kb.plesk.com/en/128185 but the Update Components button is not active indicating all updates have been applied.

Is there a more recent solution to this?

Thanks.
 
Make sure that you have following content of this file:

# cat /etc/cron.hourly/plesk-php-cleanuper
#!/bin/sh

# This purges session files older than X, where X is defined in seconds
# as the largest value of session.gc_maxlifetime from all your php.ini
# files, or 24 minutes if not defined. See ${maxlifetime}

# Look for and purge old sessions every hour

pgrep -f ".*$0$" | grep -qv $$ && exit 0

renice 19 -p $$ >/dev/null 2>&1

[ -x /usr/lib/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && /usr/lib/plesk-9.0/php_session_cleaner /var/lib/php/session $(/usr/lib/plesk-9.0/maxlifetime)
 
Many thanks Igor. There was an extra word "find" on the last line like this:
[ -x /usr/lib/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && find /usr/lib/plesk-9.0/php_session_cleaner /var/lib/php/session $(/usr/lib/plesk-9.0/maxlifetime)

Have removed that and all seems good now.
 
Back
Top