Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th August 2008, 05:48
DrJohn DrJohn is offline
Member
 
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
Default ISPConfig backup : corrupted zip file

Using ISPConfig 2.2.23, Ubuntu server 8.04, all functions well, EXCEPT, running Tools, Backup, Download chosen, and selecting one or all sites in the Admin panel plus the default Web Data, User Data, and MySQL Database, after about a minute wait I get only 211 bytes in the resulting zip and the zip cannot be opened: "The compessed (zipped) file is invalid or corrupted." The target PC is Windows XP Pro or Ubuntu 8.04 desktop (same result on both) thru Firefox 3.0.1.

Choosing instead Management, BackupData, Download, I get a zip file with what appears to be a valid MySQLDump .SQL backup of the configuration database.

So, any ideas on what might be wrong with the web backups?

Thanks,

D.J.
Reply With Quote
Sponsored Links
  #2  
Old 13th August 2008, 11:10
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,751
Thanks: 840
Thanked 5,601 Times in 4,412 Posts
Default

I guess that the size of the site is too big for the browser based backup function. Either you activate the automatic daily backup which is run on the shell in the config.inc.php file or you run a custom backup script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 14th August 2008, 07:40
Doug G Doug G is offline
HowtoForge Supporter
 
Join Date: Apr 2008
Posts: 71
Thanks: 0
Thanked 8 Times in 6 Posts
Default

Take a look at the 211-byte zip file with a text editor, it probably is complaining about insufficient php memory allocation. I had to increase the max memory in php.ini on my testing server.
__________________
=====
Doug G
=====
Reply With Quote
  #4  
Old 3rd September 2008, 05:52
DrJohn DrJohn is offline
Member
 
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
Default

That's absolutely correct, Doug: the zip is html with this content:

Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 363653928 bytes) in /home/admispconfig/ispconfig/web/tools/tools/backup/backup.php on line 157
php.ini has a 128M memory limit (as you can see).

I already run a cron-based backup script for one of the sites, but now with quite a few more sites now it makes more sense (I think) to use the built-in capability, so I've enabled it in config.inc.php, see here: http://howtoforge.org/forums/showthread.php?t=12063. Now we'll see how it works tonight.

-- DJ
Reply With Quote
  #5  
Old 3rd September 2008, 11:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,751
Thanks: 840
Thanked 5,601 Times in 4,412 Posts
Default

You should set the memory limit to a higher value in /root/ispconfig/php/php.ini and then restart ispconfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 4th September 2008, 03:47
DrJohn DrJohn is offline
Member
 
Join Date: Aug 2007
Location: Portland, OR, USA
Posts: 66
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Thanks Til,

I doubled the mem limit to 256M. The automated backup ran fine overnight.

Another question: does the automated backup not also perform the equivalent function of Management, ISPConfig Database, Backup data?

If so, where is this information stored by the automated backup? If not, how to automate this too?

Thanks,

DJ
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Manager > zip I/O error: File too large Djamu Installation/Configuration 3 3rd June 2008 14:32
add web site serr57 Installation/Configuration 18 13th April 2008 12:40
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 20:37
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
Install ISPConfig On FC2 amss Installation/Configuration 5 4th March 2007 21:49


All times are GMT +2. The time now is 20:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.