We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Cant access Cron after running a command
Cant access Cron after running a command
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
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
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 {} \;
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
anyone who know how to solve this issue?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Cant access Cron after running a command
How have you deleted the cron?
Try to rebuild the user.
Try to rebuild the user.
Re: Cant access Cron after running a command
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.
Then I removed the improper bits from the vesta cron data file for this user.
I also had to edit the vesta user conf and set the number of cronjobs to the correct number.
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.
Code: Select all
/usr/local/vesta/data/users/myuser/cron.conf
Code: Select all
/usr/local/vesta/data/users/myuser/user.conf