• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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