Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cron sessionclean errors: find: `/proc/xxxxx/fd': No such file or directory

After PHP upgrade I started to get the following cron errors several times a day:

find: `/proc/xxxxx/fd': No such file or directory

It comes from PHP sessionclean cron job:

[ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean

Any ideas?

like image 218
Dima L. Avatar asked Nov 01 '15 13:11

Dima L.


2 Answers

There now is a Debian bug reported (and fixed) about this.

It mentions about a release to stable:

In the next security upload, e.g. roughly two weeks after 5.6.23 is released, unless something else critical shows up.

5.6.23 is out, so I expect it within the next two weeks.

The fix there is to add

if [ -d "/proc/$pid/fd" ]; then

before the

find "/proc/$pid/fd"

command.

like image 67
Herman van Rink Avatar answered Nov 07 '22 06:11

Herman van Rink


You can ignore those errors, the sessionclean search for session attached to a no longer existing pid.

[ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean 2>/dev/null

You should look inside your session directory to check that they are correctly cleaned because such message might be symptomatic of a too long processing.

like image 37
Adam Avatar answered Nov 07 '22 06:11

Adam