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

/etc/cron.hourly/plesk-php-cleanuper: line 8: 1075 Terminated & named auto stops

psingh

Basic Pleskian
I recently updated my Plesk version to:

I get an automated email every hour about following error:

/etc/cron.hourly/plesk-php-cleanuper: line 8: 1075 Terminated find /var/lib/php/session -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib64/plesk-9.0/maxlifetime) ! -execdir fuser -s {} \; -delete 2> /dev/null

When i check , content of " /etc/cron.hourly/plesk-php-cleanuper " is below:

#!/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
[ -x /usr/lib64/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && find /var/lib/php/session -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib64/plesk-9.0/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete


Secondly, 1 very strange thing i have noticed is named is automatically stops and
/var/log/message doesn't show any clue about it. It is giving me hard time, so i wrote a shell script to check if named is not running. This will also start named if not running.

Any one else has come to this kind of error. Please do let me know if there is a solution or patch for this .

Thank you,
PS.
 
Make sure that you have correct permission here:

# stat /var/lib/php/session
File: `/var/lib/php/session'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 1bh/27d Inode: 38612028 Links: 2
Access: (1733/drwx-wx-wt) Uid: ( 0/ root) Gid: ( 0/ root)
 
Hi IgorG,

Thanks for your reply.

stat /var/lib/php/session/ show following :

File: `/var/lib/php/session/'
Size: 301268992 Blocks: 589000 IO Block: 4096 directory
Device: 1ch/28d Inode: 25660938 Links: 2
Access: (1733/drwx-wx-wt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-07-12 16:40:34.000000000 -0400
Modify: 2014-10-30 15:45:02.000000000 -0400
Change: 2014-10-30 15:45:02.000000000 -0400

Can you please suggest a remedy?
Secondly,
# du -h /var/lib/php/session/
doesn't get executed, and i have to terminate.

# ls /var/lib/php/session/
also doesn't show up.

Can you please help,
thank you,
Singh
 
Hi IgorG,

It [http://kb.odin.com/en/119500] didn't work . [was terminated]

# [ -x /usr/lib64/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && find /var/lib/php/session -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib64/plesk-9.0/maxlifetime) -delete

was automatically terminated.

Any other clue. Please advice.



thank you,
SINGH
 
Last edited:
What do you mean "was automatically terminated"? Any output?
 
When i run this command " [ -x /usr/lib64/plesk-9.0/maxlifetime ] && [ -d /var/lib/php/session ] && find /var/lib/php/session -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib64/plesk-9.0/maxlifetime) -delete "

Command is automatically terminated after some time.
I figured out that there are sess_** files that has been since the server was setup.

I did a dump of result location for "ls /var/lib/php/session >> resultDumpTest"
and when i count lines, i could see " wc -l resultDumpTest" i see below result.
4890423 resultDumpTest

since number of files are very large, when we run simple commands like ,
du
ll
command is terminated. I also figured out that i could list or delete files if i run it i.e.:
if i run to make is small selection i.e:
ls sess_taa*
this get executed with results

if i run :
ls sess_ta*
this gets terminated and doesn't get executed. It could probably because of memory issue ( I am guessing).

In order to progress i am doing a step by step process: "rm -rvf sess_naa" replacing "rm -rvf sess_maa" in below connected command, one at a time and trying to flush. Because, memory is not able to handle " 4890423 " files at a time i guess. I am not sure, this is my wild guess.

rm -rvf sess_naa*; rm -rvf sess_ndi*; rm -rvf sess_nhf*; rm -rvf sess_nlc*; rm -rvf sess_nok*; rm -rvf sess_nsh*; rm -rvf sess_nwe*; rm -rvf sess_nab*; rm -rvf sess_ndj*; rm -rvf sess_nhg*; rm -rvf sess_nld*; rm -rvf sess_npa*; rm -rvf sess_nsi*; rm -rvf sess_nwf*; rm -rvf sess_nac*; rm -rvf sess_ndk*; rm -rvf sess_nhh*; rm -rvf sess_nle*; rm -rvf sess_npb*; rm -rvf sess_nsj*; rm -rvf sess_nwg*; rm -rvf sess_nad*; rm -rvf sess_nea*; rm -rvf sess_nhi*; rm -rvf sess_nlf*; rm -rvf sess_npc*; rm -rvf sess_nsk*; rm -rvf sess_nwh*; rm -rvf sess_nae*; rm -rvf sess_neb*; rm -rvf sess_nhj*; rm -rvf sess_nlg*; rm -rvf sess_npd*; rm -rvf sess_nta*; rm -rvf sess_nwi*; rm -rvf sess_naf*; rm -rvf sess_nec*; rm -rvf sess_nhk*; rm -rvf sess_nlh*; rm -rvf sess_npe*; rm -rvf sess_ntb*; rm -rvf sess_nwj*; rm -rvf sess_nag*; rm -rvf sess_ned*; rm -rvf sess_nia*; rm -rvf sess_nli*; rm -rvf sess_npf*; rm -rvf sess_ntc*; rm -rvf sess_nwk*; rm -rvf sess_nah*; rm -rvf sess_nee*; rm -rvf sess_nib*; rm -rvf sess_nlj*; rm -rvf sess_npg*; rm -rvf sess_ntd*; rm -rvf sess_nxa*; rm -rvf sess_nai*; rm -rvf sess_nef*; rm -rvf sess_nic*; rm -rvf sess_nlk*; rm -rvf sess_nph*; rm -rvf sess_nte*; rm -rvf sess_nxb*; rm -rvf sess_naj*; rm -rvf sess_neg*; rm -rvf sess_nid*; rm -rvf sess_nma*; rm -rvf sess_npi*; rm -rvf sess_ntf*; rm -rvf sess_nxc*; rm -rvf sess_nak*; rm -rvf sess_neh*; rm -rvf sess_nie*; rm -rvf sess_nmb*; rm -rvf sess_npj*; rm -rvf sess_ntg*; rm -rvf sess_nxd*; rm -rvf sess_nba*; rm -rvf sess_nei*; rm -rvf sess_nif*; rm -rvf sess_nmc*; rm -rvf sess_npk*; rm -rvf sess_nth*; rm -rvf sess_nxe*; rm -rvf sess_nbb*; rm -rvf sess_nej*; rm -rvf sess_nig*; rm -rvf sess_nmd*; rm -rvf sess_nqa*; rm -rvf sess_nti*; rm -rvf sess_nxf*; rm -rvf sess_nbc*; rm -rvf sess_nek*; rm -rvf sess_nih*; rm -rvf sess_nme*; rm -rvf sess_nqb*; rm -rvf sess_ntj*; rm -rvf sess_nxg*; rm -rvf sess_nbd*; rm -rvf sess_nfa*; rm -rvf sess_nii*; rm -rvf sess_nmf*; rm -rvf sess_nqc*; rm -rvf sess_ntk*; rm -rvf sess_nxh*; rm -rvf sess_nbe*; rm -rvf sess_nfb*; rm -rvf sess_nij*; rm -rvf sess_nmg*; rm -rvf sess_nqd*; rm -rvf sess_nua*; rm -rvf sess_nxi*; rm -rvf sess_nbf*; rm -rvf sess_nfc*; rm -rvf sess_nik*; rm -rvf sess_nmh*; rm -rvf sess_nqe*; rm -rvf sess_nub*; rm -rvf sess_nxj*; rm -rvf sess_nbg*; rm -rvf sess_nfd*; rm -rvf sess_nja*; rm -rvf sess_nmi*; rm -rvf sess_nqf*; rm -rvf sess_nuc*; rm -rvf sess_nxk*; rm -rvf sess_nbh*; rm -rvf sess_nfe*; rm -rvf sess_njb*; rm -rvf sess_nmj*; rm -rvf sess_nqg*; rm -rvf sess_nud*; rm -rvf sess_nya*; rm -rvf sess_nbi*; rm -rvf sess_nff*; rm -rvf sess_njc*; rm -rvf sess_nmk*; rm -rvf sess_nqh*; rm -rvf sess_nue*; rm -rvf sess_nyb*; rm -rvf sess_nbj*; rm -rvf sess_nfg*; rm -rvf sess_njd*; rm -rvf sess_nna*; rm -rvf sess_nqi*; rm -rvf sess_nuf*; rm -rvf sess_nyc*; rm -rvf sess_nbk*; rm -rvf sess_nfh*; rm -rvf sess_nje*; rm -rvf sess_nnb*; rm -rvf sess_nqj*; rm -rvf sess_nug*; rm -rvf sess_nyd*; rm -rvf sess_nca*; rm -rvf sess_nfi*; rm -rvf sess_njf*; rm -rvf sess_nnc*; rm -rvf sess_nqk*; rm -rvf sess_nuh*; rm -rvf sess_nye*; rm -rvf sess_ncb*; rm -rvf sess_nfj*; rm -rvf sess_njg*; rm -rvf sess_nnd*; rm -rvf sess_nra*; rm -rvf sess_nui*; rm -rvf sess_nyf*; rm -rvf sess_ncc*; rm -rvf sess_nfk*; rm -rvf sess_njh*; rm -rvf sess_nne*; rm -rvf sess_nrb*; rm -rvf sess_nuj*; rm -rvf sess_nyg*; rm -rvf sess_ncd*; rm -rvf sess_nga*; rm -rvf sess_nji*; rm -rvf sess_nnf*; rm -rvf sess_nrc*; rm -rvf sess_nuk*; rm -rvf sess_nyh*; rm -rvf sess_nce*; rm -rvf sess_ngb*; rm -rvf sess_njj*; rm -rvf sess_nng*; rm -rvf sess_nrd*; rm -rvf sess_nva*; rm -rvf sess_nyi*; rm -rvf sess_ncf*; rm -rvf sess_ngc*; rm -rvf sess_njk*; rm -rvf sess_nnh*; rm -rvf sess_nre*; rm -rvf sess_nvb*; rm -rvf sess_nyj*; rm -rvf sess_ncg*; rm -rvf sess_ngd*; rm -rvf sess_nka*; rm -rvf sess_nni*;

Do you have any suggestion ?

thanks
 
Try to use perl for removing all these files:

# cd /var/lib/php/session
# perl -e 'for(<*>){((stat)[9]<(unlink))}'
 
I am having the same issue, did you solve it? I used the Perl last recommendation and it did not work.

Please help!
 
Back
Top