Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 19 2013 @ 04:22 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Database Backup Too Big?
   
winnerdk
 01/25/11 04:50PM (Read 740 times)  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
I'm having a problem with the DB Backups utility in the Admin section.

I just finished my upgrade from GL 1.6.1 to GL 1.7.1sr1 today.

When I first went into the DB Backups section it looked "normal" and there were no backup files listed.

So, I created a new backup...

And now, when I go back into that section of the website I get this...

2 - filesize() [function.filesize]: stat failed for /home/panamax/backups/geeklog_db_backup_2011_01_25_13_51_33.sql @ /home/panamax/public_html/admin/database.php line 125

My database is relatively large - more than a couple of gigabytes. I think there might be a problem somewhere in the way the data is being called or displayed?

And suggestions would be greatly appreciated. Thanks.

Don Winner
www.panama-guide.com
Faithful Geeklog User Since 2004


 
Profile Email Website
 Quote
Dirk
 01/25/11 05:00PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
If you're getting in the critical range (2 GB or even 4), there's the risk that something somewhere is running into a 32-bit barrier ...

How big is the backup exactly and which operating system is your site running on?

In any case, this is worthy of a bug report - please submit one. Even if things fail, we should catch this gracefully.

bye, Dirk

 
Profile Email Website
 Quote
winnerdk
 01/25/11 05:09PM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Yes, I think that's the problem, a backup larger than 2 GB.

How big is it exactly? I don't know, because it's not properly displaying.

Where should the file be in the directory tree?

Don

 
Profile Email Website
 Quote
winnerdk
 01/25/11 05:12PM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Never mind, I found it (hiding in the "Backups" directory - go figure...)

The file size is 4,280,157,958

Don


 
Profile Email Website
 Quote
1000ideen
 01/25/11 06:37PM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
Maybe you want to try http://www.mysqldumper.net/ for large backups?

 
Profile Email Website
 Quote
winnerdk
 01/25/11 06:42PM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Well, I could, I guess. But I think I would rather see Geeklog capable of handling anything I can throw at it, after six years of growing pains, no?

Don


 
Profile Email Website
 Quote
1000ideen
 01/25/11 06:49PM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
I use mysqldumper to save automatically and FTP the file to another server for security. It is worth a look.

 
Profile Email Website
 Quote
Dirk
 01/26/11 06:15AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Sounds like the backup is created just fine. The problem only occurs when the list of backups is about to be displayed.

bye, Dirk

 
Profile Email Website
 Quote
winnerdk
 01/26/11 08:35AM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Quote by: Dirk

Sounds like the backup is created just fine. The problem only occurs when the list of backups is about to be displayed.

bye, Dirk



That's exactly right. The backup file seems to be there just fine, and the problem occurs when the system is trying to regenerate the screen for the DB Backups section of Admin. When I go there now, after that DB Backup file was created, I get the error message. Before the backup file was created the screen formatted correctly. If you want I could try to go in and manually delete the backup file that was created, and I bet the DB Backups Admin screen will format and display correctly.

Don

 
Profile Email Website
 Quote
winnerdk
 01/26/11 08:37AM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Quote by: 1000ideen

I use mysqldumper to save automatically and FTP the file to another server for security. It is worth a look.



I downloaded, installed, and configured mysql dumper to try it out. Everything seemed to be working property with no problems. When I tried to create a backup of the database, it crashed. Well, it took about ten minutes to think about it, then it crashed.

Don

 
Profile Email Website
 Quote
Dirk
 01/26/11 08:40AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Quote by: winnerdk

If you want I could try to go in and manually delete the backup file that was created, and I bet the DB Backups Admin screen will format and display correctly.


Don't bother. I think it's pretty clear what's happening. Now we would only need a bug report to remind us to look into it (nudge nudge, wink wink, ...)

bye, Dirk

 
Profile Email Website
 Quote
winnerdk
 01/26/11 08:42AM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Quote by: Dirk

Quote by: winnerdk

If you want I could try to go in and manually delete the backup file that was created, and I bet the DB Backups Admin screen will format and display correctly.


Don't bother. I think it's pretty clear what's happening. Now we would only need a bug report to remind us to look into it (nudge nudge, wink wink, ...)

bye, Dirk



OK, but since I have not filed a "bug report" before, how do I do that - if it's not here and through you?

Don

 
Profile Email Website
 Quote
Laugh
 01/26/11 08:44AM  
AAAAA
Admin

Status: offline


Registered: 09/27/05
Posts: 874
That is a huge database file. Do you happen to be running the GUS plugin? If so I would empty the log tables as they can make a database grow very large, very quickly.

Tom

 
Profile Email Website
 Quote
winnerdk
 01/26/11 09:00AM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Don't bother. I think it's pretty clear what's happening. Now we would only need a bug report to remind us to look into it (nudge nudge, wink wink, ...)

bye, Dirk
[/p]


OK, done. I filed my first bug report - IN number 0001257.

Don

 
Profile Email Website
 Quote
winnerdk
 01/26/11 09:02AM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Quote by: Laugh

That is a huge database file. Do you happen to be running the GUS plugin? If so I would empty the log tables as they can make a database grow very large, very quickly.

Tom



I was running GUS, but it has caused way too many problems on my system that what it's worth, so I've disabled it. As part of this upgrade I'm going to root around in the directories and burn out all evidence of GUS because it has caused me a whole lot of problems and headaches.

Don

 
Profile Email Website
 Quote
winnerdk
 01/26/11 09:20AM  
+++++
Full Member

Status: offline


Registered: 04/24/05
Posts: 325
Quote by: Laugh

That is a huge database file. Do you happen to be running the GUS plugin? If so I would empty the log tables as they can make a database grow very large, very quickly.

Tom



Guess what? That was exactly the problem. I went into phpMyAdmin from there I first emptied and then deleted (dropped) all of the tables related to GUS in the database. Even though I had disabled the plugin a long time ago, all of the weight and data was still sitting there.

I then went into the Plugins section of Admin and confirmed that GUS was still installed, but not enabled. I used the Plugins Admin section to delete the plugin.

Even though I had done that, all of the GUS files were still in the /plugins directory, so I deleted them manually, as well as any other evidence of GUS that I could find, anywhere.

Then, I went in and deleted the existing 4 GB + backup that I had tried to make before (large because of the old GUS data), which caused the system to crash.

With that done, I went back into the DB Backup section of Admin (which came up fine because I had deleted the 4 GB + backup file that contained all of the old GUS data) and then I created a new backup.

It worked perfectly, no problems. Total size = 91,534,249 Bytes.

So, problem resolved. The answer was to shoot GUS in the head.

However, that "bug" created by the really large DB file is still there, for what it's worth.

Thanks again for the help.

Don

 
Profile Email Website
 Quote
Content generated in: 2.49 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content