Plesk cronjobs not listing, also cannot add a new cronjob from plesk admin panel

Today was a terrible day for me 🙁 . I have encountered a new error on my plesk panel admin after plesk update, when I tried to access cronjobs via plesk admin panel, I am getting blank page for cronjob view section for any users, but I can view this cronjobs from backend, then I tried to add a new cronjob via plesk, I was getting following error

 

ERROR: PleskFatalException
Crontab->export() failed: crontabmng failed:
crontabmng syntax:
get <username>
to show crontab of <username>
set <username> <filename>
to set crontab of <username> from <filename>
allow <username>
to allow crontab of <username>
deny <username>
to deny crontab of <username>
remove <username>
to remove crontab of <username>
rename <username> <newusername>
to rename crontab of <username> to <newusername>
System error: crontab execution error

0: /usr/local/psa/admin/plib/ui_common/CrontabTaskPropertiesUIPointer.php:89
    CrontabTaskPropertiesUIPointer->accessItem(string ‘POST’, NULL null)
1: /usr/local/psa/admin/plib/UIPointer.php:519
    UIPointer->access(string ‘POST’)
2: /usr/local/psa/admin/htdocs/plesk.php:19

given below was the error when I checked plesk admin log

must be privileged to use -u
System error: crontab execution error
[Fri Apr 13 03:45:15 2012] [error] PHP Warning:  Releasing semaphore 1 in request cleanup in Unknown on line 0
[Fri Apr 13 03:45:15 2012] [error] PHP Warning:  Releasing semaphore 51 in request cleanup in Unknown on line 0
[Fri Apr 13 03:48:11 2012] [error] PHP Notice:  Only variable references should be returned by reference in /usr/local/psa/admin/plib/class.Crontab.php on line 423
must be privileged to use -u
System error: crontab execution error
[Fri Apr 13 03:50:09 2012] [error] PHP Warning:  Releasing semaphore 1 in request cleanup in Unknown on line 0
[Fri Apr 13 03:50:09 2012] [error] PHP Warning:  Releasing semaphore 51 in request cleanup in Unknown on line 0
must be privileged to use -u
System error: crontab execution error
[Fri Apr 13 03:59:40 2012] [error] PHP Warning:  Releasing semaphore 1 in request cleanup in Unknown on line 0
[Fri Apr 13 03:59:40 2012] [error] PHP Warning:  Releasing semaphore 51 in request cleanup in Unknown on line 0

I have googled this error, but unfortunately I couldn’t get any fix for this, but my client was contacting me every now and then to fix this, so no other way, need to find a solution for it :). So I decided to spent my whole day for fixing this. After a long time I doubted  that the error might be a permission issue of some binaries, so I have just compared with plesk cronjob binary with my other plesk servers and I could see that there was a different permission set on /usr/local/psa/admin/bin/crontabmng but the file is symlinked to plesk admin wrapper /usr/local/psa/admin/sbin/wrapper so I can’t change the wrapper binary because this will affect plesk performance so I moved the symlink  /usr/local/psa/admin/bin/crontabmng to /usr/local/psa/admin/bin/crontabmng-bak and copied the /usr/local/psa/admin/sbin/wrapper to /usr/local/psa/admin/bin/crontabmng and changed the permission.

chown root:psaadm /usr/local/psa/admin/bin/crontabmng

chmod 4777 /usr/local/psa/admin/bin/crontabmng

then I navigate to crontab section in plesk and I can see all cronjobs are listed, also I am able to add a new  cronjob 🙂 after that I felt very proud of myself.

 

Plesk cronjobs not listing, also cannot add a new cronjob from plesk admin panel

Leave a Reply

Your email address will not be published. Required fields are marked *

Fork me on GitHub