• 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.

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