Page 1 of 1

Cant access Cron after running a command

Posted: Fri Dec 09, 2016 9:00 pm
by magzen
Hello

After running a command for deleting cache files my server froze and started generating lines from that command into cron

following is the line i used

Code: Select all

find /home/admin/web/domain.com/public_html/journal-cache/* -type f -mmin +180 -exec rm {} \;
http://forum.vestacp.com/viewtopic.php? ... 188#p42188

i used WinSCP to go in and delete the Cron Job i created which had generated thousands of lines (2.5mb), doing it through putty would take to long /var/spool/cron/admin

but still after deleting the Cron Job and restarting the server i wasnt able to enter Cron in Vesta (it loads forever and gives 502 gateway time out) and it showed 9 Cron Jobs instead of 8 which it should have changed to after i deleted the job from the file

everything else seems to be running fine except for entering that tab, what can i do to solve this issue?

Thanks

Re: Cant access Cron after running a command

Posted: Sun Dec 11, 2016 3:35 am
by magzen
anyone who know how to solve this issue?

Re: Cant access Cron after running a command

Posted: Mon Dec 19, 2016 10:58 am
by tjebbeke
How have you deleted the cron?
Try to rebuild the user.

Re: Cant access Cron after running a command

Posted: Sat Mar 10, 2018 5:46 pm
by sparkalow
Same issue for me. Ubuntu 16.04 Vesta 0.9.8 - Seems to be related to using cron command with 'find'.

A cron job with find command seems to output the results of the cron command as the cron job entry and also in the vesta conf/data files.

I was able to remove the faulty cron job for this user via command line.

Code: Select all

crontab -u mysuer -e edit.
Then I removed the improper bits from the vesta cron data file for this user.

Code: Select all

/usr/local/vesta/data/users/myuser/cron.conf
I also had to edit the vesta user conf and set the number of cronjobs to the correct number.

Code: Select all

/usr/local/vesta/data/users/myuser/user.conf