Auto Backup-Error on Page

Hello,
On both of our sites www.carolinaparent.com and www.charlotte parent.com, we have the auto backup plugin installed. We are getting an error on our pages and it is affecting the code on page, ex. Menu is gone. Here is the error we get:

Warning: scandir(): Directory name cannot be empty in D:\Inetpub\carolinaparent\cmsAdmin\plugins\autoBackup\autoBackup.php on line 63 Warning: Invalid argument supplied for foreach() in D:\Inetpub\carolinaparent\cmsAdmin\plugins\autoBackup\autoBackup.php on line 66

You can view his error as well by going to the domains above. We are talking to the web host but they are not much help. When I look at auto backups, it says there are none available and they were there earlier.

Thanks!
April

Re: [apdance9] Auto Backup-Error on Page

By Jason - November 19, 2010

Hi April,

I took a look at both of your domains and was unable to see the error. If you're still experiencing this problem, please fill out a [url http://www.interactivetools.com/support/]2nd Level Support Request[/url] and we can take a closer look into this issue for you.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Auto Backup-Error on Page

Jason,

I figured out the error and it was happening because the web host changed the directory name of the auto backup. So, I had to deactivate the plugin to fix the issue. Here is what our web host told us:

[font "Tahoma"]Our server admin was able to determine that it was the carolinaparent and charlotteparent.

We have determined that the site carolinaparent and charlotteparent are responsible for high CPU usage on one of our shared servers. This site is using up to 100% of the available CPU and causing all sites on that server to resolve slowly or not at all. This also caused fastcgi errors and timeouts for other customers.

In order to protect the performance of the server, we have disabled the below directories by renaming them.

D:\Inetpub\carolinaparent\cmsAdmin\data\backups_disabled_by_newtek

D:\Inetpub\charlotteparent\cmsAdmin\data\backups_disabled_by_newtek

We found that these backup files were being written to and the filesystem was hitting them fairly hard causing the usage issues.

"D:\Inetpub\charlotteparent\cmsAdmin\data\backups\forum.charlotteparent.com-v2.04-daily-Thu.sql.php","14146"
"D:\Inetpub\charlotteparent\cmsAdmin\data\backups\forum.charlotteparent.com-v2.04-hourly-17.sql.php","8456"

This also shows why the issue was occurring at only a specific time each day. During the backups. There were over 14,146 file access hits on one file alone in 6 minutes. Both sites were hitting the same type of files exactly the same way. Please be aware that we do make daily backups of databases and website files that we can pull from if necessary.



My question is this:

What can we do to reactivate the auto backup plugin and not cause this issue again? The auto-backups have been extremely large and are using up a lot of our disk space as well.

Thanks!

April

Re: [Jason] Auto Backup-Error on Page

Jason,

Thanks so much...I will adjust these settings and this should help us. The other thing is that when I looked at the files that the system is creating...so of them are not correct in conjunction with our domain and wondering if these are correct or if this is causing a problem. It seems like we have so many backups that seem to be incorrect/do not apply (see screenshot for list of all backups the system has created within our site). Examples: digicity.org, dkqximjkfoofkjmixqkd.charlotteparent.com, drexel.edu, evergreensuk.com, etc. Is this correct?



Thanks!

April
Attachments:

backup-screenshot.jpg 1485K

Re: [apdance9] Auto Backup-Error on Page

By Jason - November 19, 2010

Hi April,

Some of those look like they've been created when people access a subdomain (ie http://info.charlotteparent.com/). A good way to avoid this is to set a prefrix in the plugin. If you go to autoBackup.php you'll see this line:
$GLOBALS['AUTOBACKUP_DEFAULT_PREFIX'] = ''; // Backup file prefix, leave blank to use current domain name

This variable allows you to set your own file prefix. If you don't set one, it will use the current domain being used. Try this:
$GLOBALS['AUTOBACKUP_DEFAULT_PREFIX'] = 'charlotteparent.com'; // Backup file prefix, leave blank to use current domain name

This will ensure they are all named the same and that they will be removed properly. What I would do is delete any backup files that look old or just not correct. Then you can see easily if the changes you are making are making a difference.

Give that a try and let me know if you run into any issues.

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/