Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Cant access Cron after running a command

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
magzen
Posts: 47
Joined: Sat Sep 05, 2015 6:16 pm

Cant access Cron after running a command
  • Quote

Post by magzen » Fri Dec 09, 2016 9:00 pm

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
Top

magzen
Posts: 47
Joined: Sat Sep 05, 2015 6:16 pm

Re: Cant access Cron after running a command
  • Quote

Post by magzen » Sun Dec 11, 2016 3:35 am

anyone who know how to solve this issue?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Cant access Cron after running a command
  • Quote

Post by tjebbeke » Mon Dec 19, 2016 10:58 am

How have you deleted the cron?
Try to rebuild the user.
Top

sparkalow
Posts: 1
Joined: Sat Mar 10, 2018 5:38 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Cant access Cron after running a command
  • Quote

Post by sparkalow » Sat Mar 10, 2018 5:46 pm

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
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password