The git repository is removed from the CyberPanel, however, I am still receiving emails from the cron-jobs, unfortunately, I am unable to find where those cron jobs are located.
$ ls /var/spool/cron/crontabs/
# the result will be: root someuser1234 otheruser2345
$ nano /var/spool/cron/crontabs/someuser1234
$ nano /var/spool/cron/crontabs/otheruser2345
# remove all the cronjobs you do not need
$ service crond restart || sudo service cron restart
The issue is that I tried creating a github repository and attach it to Cyberpanel, I have then removed it, however, I am still receiving emails from a cron job that the repository is not found. I am unable to find that cron, I want to remove it so I don`t receive emails anymore. However Like I said, I do not have crontabs directory as you can see in the picture above.7
I do not see anything connected to git in any way. There are just the regular CyberPanel cron jobs and this is how suppose to be because I have not created any additional ones on my server, however, there is cron because I receive email every day that there is no git repository.
Yes, it should, however, the cron for the issue aforementioned is nowhere to be found in this file as I already mentioned in my first post starting this article. So this is rather a glitch of some sort than something else I was just hoping that someone is aware of it and can advise accordingly.
You are using centos 7 which by itself has diverse number of bugs running cyberpanel on that are really a challenge to figure out or fix. This bug sounds like its more so related to centos rather than cyberpanel.
I highly recommend AlamaLinux 8.4 if you are so into RHEL based distros or that is your expertise.
However the best choice is ubuntu 20.04 barely any bugs when using cyberp and the best so far for cyberpanel.
Hello @tanchev,
just goto /home/cyberpanel/git and list files
cd /home/cyberpanel/git ls
And youâll get all the domain/website here that have enabled git. These are the sites currently receiving git emails
If you remove any of these sites from that directory, it will stop sending commit emails via cron. for example if you see example.com inside /home/cyberpanel/git removing it will stop sending email for example.com
for website in os.listdir(IncScheduler.gitFolder):
finalText = ''
web = Websites.objects.get(domain=website)
message = '[%s Cron] Checking if %s has any pending commits on %s.' % (
type, website, time.strftime("%m.%d.%Y_%H-%M-%S"))
finalText = '%s\n' % (message)
GitLogs(owner=web, type='INFO', message=message).save()
Unfortunately, even if you donât have any git or remove git from the panel, the site will still be in that directory; in fact, simply clicking on the init git button inside the manage git option will create this folder even if you donât proceed further, and this will start sending emails, which is very bad for shared hosting because many of our users donât understand this feature and, to explore, they click on it and start receiving annoying emails. This problem should be solved soon.