Запланированные задания, не работающие с CageFS и Plesk
Форум
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and Plesk
  1. sch
  2. Wednesday, 04 February 2015
  3.  Subscribe via email
When i set up a scheduled task in plesk, i get this error when the job is running:
execl: couldn't exec `/usr/local/psa/bin/chrootsh'
execl: No such file or directory
 
The site is enabled in CageFS. If I disable CageFS for the site, it works.
 
Is it because the file /usr/local/psa/bin/chrootsh is missing in the skeleton?
 
I have created /etc/cagefs/conf.d/pleskcron.cfg
[pleskcron]
comment=Pleskcron
paths=/usr/local/psa/bin/chrootsh
 
And after that i ran /usr/sbin/cagefsctl --force-update
 
That did change something, because now the error is:
setreuid() to root failed
system error: Operation not permitted
 
What is the correct way to get Scheduled Tasks to work with Plesk with CageFS?
Rate this post:
  1. 04.02.2015 10:02:39
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
I believe you have to implement it over proxyexec technology, more here: http://docs.cloudlinux.com/executing_by_proxy.html

I worry this single binary will not be enough, however let start from here.
  1. 04.02.2015 14:02:58
  2. # 2
sch Accepted Answer
Posts: 2
Joined: 23.01.2015
0
Votes
Undo
Adding CHROOTSH=/usr/local/psa/bin/chrootsh to /etc/cagefs/proxy.commands changes the error to:
unable to determine user name, will use first found by uid=10002
 
Im not sure if I should add a fixed user, because it would be a different user everytime the cronjob runs, right?
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.