Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd June 2008, 01:06
Djamu Djamu is offline
Member
 
Join Date: Sep 2007
Posts: 51
Thanks: 2
Thanked 12 Times in 7 Posts
Default Backup Manager > zip I/O error: File too large

Planning to move a webserver to new hardware I tried the site Backup manager -I usually backup with my own script.. if anybody's interested I'll post it -
1 small site went all right, the other didn't backup... until I found this thread > How do I enable automatic backup?
I set $go_info["server"]["do_automated_backups"] to 1 in /home/admispconfig/ispconfig/lib/config.inc.php
and ran
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php
as soon as the zip file becomes 2GB I get this error
Quote:
zip I/O error: File too large

zip error: Output file write failure (write error on zip file)
zip I/O error: File too largezip I/O error: File too large
-kind of weird as I'm having lots of zip / rar / tgz files much bigger then this-

any suggestions ?
__________________
Windows, the only virus you pay for

Last edited by Djamu; 2nd June 2008 at 01:08.
Reply With Quote
Sponsored Links
  #2  
Old 2nd June 2008, 07:43
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Well seems to be a problem with zip itself... checking the code, there is just a shellcall to zip.

So this error might be not about the ziparchive beeing to big, maybe the file trying to be compressed is too big?
May you check for any files in the web's dir with e.g. du -hs
Also don't forget about the logfiles in the web's dir...

Last edited by Ben; 2nd June 2008 at 07:48.
Reply With Quote
  #3  
Old 3rd June 2008, 09:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

I think the problem is that PHP on 32bit systems does not support files larger than 2GB.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 3rd June 2008, 13:32
Djamu Djamu is offline
Member
 
Join Date: Sep 2007
Posts: 51
Thanks: 2
Thanked 12 Times in 7 Posts
 
Default

Quote:
Originally Posted by falko View Post
I think the problem is that PHP on 32bit systems does not support files larger than 2GB.
Thanks Ben & Falko for your suggestions.

Currently I'm busy duplicating the setup -as it's a production server, so alas I can't delete any files there-

So far I tried replacing the zip binary in .../tools/zip/ ( v2.3 ) with the newer ( v2.32 ) to rule out any issues with that.

The largest file is a 239MB image, & deleting content until the projected archive is less then 2GB does create one ( albeit I still get a zip I/O error: File too large ).

Falko's reply made me thinking of a related route -although the issue might be 2fold, aside from the idea that I find it hard to believe that this system is a rarity > 32 bit with relatively large amount of content. I mean to say there should be still quite a few 32bit community webservers-

So aside from the 32bit PHP limit ( as it now creates an archive ) I believe the zip binary needs quite a lot of RAM as a buffer in order to compress files -there's now 1 239MB ( 1 error ) file with lots of small files, the old server only has 512MB RAM.

Just out of curiosity I'll duplicate the setup on a 32bit testbed with 2GB RAM, in order to try rule out some of my previous statements. ( kind of pointless actually as the new system is 64bit ).

I'll post my findings... but if it's indeed a ZIP buffer related issue why not use a normal TAR call -in ../shell/backup.php- which doesn't have those large memory requirements ( or for sake of those windoz fanboys the RAR / 7zip libraries )

__________________
Windows, the only virus you pay for

Last edited by Djamu; 3rd June 2008 at 13:38.
Reply With Quote
The Following User Says Thank You to Djamu For This Useful Post:
falko (4th June 2008)
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
very slow domain setting loading Hellbound General 8 2nd January 2008 22:17
backup failure.... gilas Installation/Configuration 19 30th October 2007 12:08
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07
Backup zip dot files. derfy General 1 5th September 2006 10:42
Traffic overview in ISP Manager > ISP Site > Statistics: Overall 0.00 tom Installation/Configuration 2 23rd April 2006 14:17


All times are GMT +2. The time now is 12:24.


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