Jump to content

Automated Database Backups not working


technicalguy

Recommended Posts

We have started to have an issue with the Automated Database Backups with our WHMCS. It doesn't work.

 

I have gone to Setup > Other > Database Backups and put in our Email address for the Daily Email Backups, and hit Save Changes.

 

We never get any email with a backup. I've checked the Activity log, and the Cron job is running as normal with no problems. All automated emails and invoices are getting sent as normal.But there isn't even a mention of creating or sending a database backup, as if it's not even trying to do the backup.

 

I also tried a romote FTP location instead of just an email, same issue. Nothing gets uploaded. WHMCS doesn't even try to conect to the FTP location at all, and again nothing in the Activity log about creating or sending a backup.

 

I can manually create the backup with no errors or problems, and it's size is 2.8MB, so I don't think it's the size.

 

Without any kind of error message or anything this is really hard to troubleshoot. It's just doing... nothing.

 

Any help?

Link to comment
Share on other sites

Yes there are plenty of "Cron Job: Done" messages. Like I mentioned in my thread, all of the crons are running and completing fine. With no errors.

 

The problem is not that the cron jobs are failing. It's that the cron log has no mention of creating, completing, or sending any kind of database backup.

 

So even though I have the database backups setup, it's not even trying to do them.

Link to comment
Share on other sites

try removing the address, saving and then re-enter your address again.

 

also, check the tblconfiguration database table to see if the setting is in the database.

 

I've tried removing, saving, re-adding, saving both the email and ftp details with no fix.

 

I took a look at the tblconfiguration table and the email and ftp detials are filled out properly there, and they update instantly if I remove and add them back in WHMCS.

Link to comment
Share on other sites

in the Activity Log, after the cron runs are you seeing a "Cron Completed" entries?

 

after the cron has run and done its tasks, you should get a "Cron Completed" entry and THEN it will attempt to backup the database...

 

c2021b56dcdd40e491d69dc62dde8a59.png

 

I suppose a hook could prevent it from running, and 2.8M doesn't seem like it would cause an issue - might be worth having Support take a look - if only to rule out it being a WHMCS issue, rather than a server/php setting.

Link to comment
Share on other sites

in the Activity Log, after the cron runs are you seeing a "Cron Completed" entries?

 

after the cron has run and done its tasks, you should get a "Cron Completed" entry and THEN it will attempt to backup the database...

 

c2021b56dcdd40e491d69dc62dde8a59.png

 

I suppose a hook could prevent it from running, and 2.8M doesn't seem like it would cause an issue - might be worth having Support take a look - if only to rule out it being a WHMCS issue, rather than a server/php setting.

 

I'm definitely seeing the "Cron Complete" lines.

 

I have made a workaround for the issue by creating another cron job to run with the "do_backups" flag. Running that cron job works and creates the backup perfectly.

 

So obviously it can work, but for some reason the general cron job is skipping the backup part.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated