Unzip Error

fetflex

Joined: 2007-08-24
Posts: 17
Posted: Thu, 2012-04-12 12:03

when i try to upload an Zip file:

Memory used: 12242848, total: 256M

Error (ERROR_PLATFORM_FAILURE)in modules/archiveupload/classes/ArchiveExtractToolkit.class at line 63 (GalleryCoreApi::error)
in modules/core/ItemAdd.inc at line 421 (ArchiveExtractToolkit::performOperation)
in modules/core/ItemAdd.inc at line 309 (ItemAddController::_extractAndAddFiles)
in modules/core/ItemAdd.inc at line 166 (ItemAddController::postprocessItems)
in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
in modules/core/classes/GalleryTemplateAdapter.class at line 1089
in /var/lib/gallery2/g2data/smarty/templates_c/%%626616196/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 67 (GalleryTemplateAdapter::trailer)
in lib/smarty/Smarty.class.php at line 1255
in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
in main.php at line 506 (GalleryTemplate::display)
in main.php at line 104
in main.php at line 88

Info:

Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.6-13ubuntu3.6 apache2handler
Webserver = Apache/2.2.20 (Ubuntu)
Database = mysqli 5.1.58-1ubuntu1, lock.system=flock
Toolkits = Thumbnail, Exif, ArchiveUpload, LinkItemToolkit, jpegtran, ImageMagick, NetPBM, Ffmpeg
Acceleration = none/0, full/86400
Operating system = Linux SRV-G2 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 2012 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Rows in GalleryAccessMap table = 278
Rows in GalleryAccessSubscriberMap table = 16797
Rows in GalleryUser table = 30
Rows in GalleryItem table = 16789
Rows in GalleryAlbumItem table = 362
Rows in GalleryCacheMap table = 24

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-04-12 12:12

did you configure a valid zip binary in Gallery Admin -> Import -> Archive
on *nix usually /usr/bin/unzip or /usr/local/bin/unzip

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
fetflex

Joined: 2007-08-24
Posts: 17
Posted: Thu, 2012-04-12 12:17

thanks for the input.

Yea i have: /usr/bin/unzip

And ran the test:

unzip binary test results
Binary Name Pass/Fail
unzip
Passed

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-04-12 12:27

was this a very large zip?
have you tried smaller archives to see if it works at all?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
fetflex

Joined: 2007-08-24
Posts: 17
Posted: Thu, 2012-04-12 13:03

Your right, it works with a smaller zip. Tried with the first, 250 MB error. Then 22 MB that works.

Does that mean that i am not able to upload large ZIP files?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-04-12 13:20

It takes alot of memory to unzip/process a large file like that.
You could try upping your memory_limit

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
fetflex

Joined: 2007-08-24
Posts: 17
Posted: Thu, 2012-04-12 13:55

tried upping the memory limit to 1024MB. Still the same:

Memory used: 12243476, total: 1024M

Error (ERROR_PLATFORM_FAILURE)in modules/archiveupload/classes/ArchiveExtractToolkit.class at line 63 (GalleryCoreApi::error)
in modules/core/ItemAdd.inc at line 421 (ArchiveExtractToolkit::performOperation)
in modules/core/ItemAdd.inc at line 309 (ItemAddController::_extractAndAddFiles)
in modules/core/ItemAdd.inc at line 166 (ItemAddController::postprocessItems)
in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
in modules/core/classes/GalleryTemplateAdapter.class at line 1089
in /var/lib/gallery2/g2data/smarty/templates_c/%%626616196/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 67 (GalleryTemplateAdapter::trailer)
in lib/smarty/Smarty.class.php at line 1255
in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
in main.php at line 506 (GalleryTemplate::display)
in main.php at line 104
in main.php at line 88

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2012-04-12 18:18
fetflex wrote:
Does that mean that i am not able to upload large ZIP files?

Seems clear to me.

Setting your memory limit to 1GB is only useful if there is actually 1GB of memory available to use - Looks like your server is falling down at 12,243,476 bytes (11.7MB)

--
dakanji.com