I'm having a strange problem with plesk and I can't seem to find an answer anywhere on the official support, so I hope somebody here can shed some light.
I'm simply trying to run a script via cron using the 'scheduled tasks' in the user control panel. The command is set to: php /var/www/full/path/to/script and it works on the command line.
The error message I get when it runs via cron (now that I upgraded to plesk 11) is:
user with id=xxxxx and name=xxxxxxxx not found in chrooted passwd file system error: No such file or directory
Obviously, xxxxxx is the real ID and name. The user is listed in the /etc/passwd file and looks no different to any other.
I have another domain that does a similar thing, runs a cron job hourly using the same command (but to a different script). That script runs fine, they are on the same hosting settings etc and should function identically.
Has anyone an idea what to try to do to 'fix' the user?
So I found this by looking around on the server: /usr/local.psa/admin/sbin/crontabmng
If I do crontabmng get on the user with the working crontab, I see at the top of the file it says SHELL=/bin/sh - wheras on the user that isn't working I see SHELL=/usr/local/psa/bin/chrootsh
It seems that even though these two users should be identical (I guess they may have been set up in different versions of plesk as upgrades have happened however they have, as far as I know, been set up using an identical process) - one of them has a chrooted shell and the other does not.
Now I just need to find out how to change that setting.....