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

/var/lib/php/session Cannot Delete Files

Status
Not open for further replies.

speego

New Pleskian
Running:
CPU GenuineIntel, Intel(R) Xeon(R)CPU L5630 @ 2.13GHz
Version Parallels Plesk Panel v11.0.9_build110120608.16 os_CentOS 6
OS CentOS 6.4 (Final)

Stats:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vzfs 9000000 8689178 310822 97% /
none 262144 94 262050 1% /dev

Issue:
- Inodes at 97%
- I am getting this error on email every hour:
-------------------

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

/etc/cron.hourly/plesk-php-cleanuper: line 8: 3497 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
-------------------


This explain the issue, but I tried this solution without success:

http://kb.parallels.com/119500
-----------------------
It is getting Terminated, I am assuming Memory:

[root@ip-xx-xx-xx-xx ~]# [ -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
Terminated
[root@ip-xx-xx-xx-xx ~]#
----------------------


I tried this also, no success:

# cd /var/lib/php/session
# perl -e 'for(<*>){((stat)[9]<(unlink))}'


At this point not sure what else to do please help, thanks!
 
Most probably it is caused by lack of VPS resources. Check failcounters in output of

# cat /proc/user_beancounters

and try to increase value of resource with failcounters.
 
Thank you Igor, but i was able to fix it last night before your post i found this:

First:
#cd /var/lib/php/session
Then:
#ls -f | xargs -d "\n" rm

***Took some hours to run.

This lowered from 97% to 4% and now Cron is not sending errors as before.

The funny thing is thet Godaddy VPS team told me twice to reprovision the server, thank God i found that, reprovision was out of my options. hope this will help someone else. Thanks!
 
Status
Not open for further replies.
Back
Top