Hi,
I’m running MODx 2.0.4-pl2 with Gallery 1.0.1 rc2. When I try to update to Gallery 1.0.2-rc1, the installation process is stuck:
Console running...
Attempting to install package with signature: gallery-1.0.2-rc1
Package found...now preparing to install.
Grabbing package workspace...
Workspace environment initiated, now installing package...
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnTVInputRenderList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnTVOutputRenderList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnTVOutputRenderPropertiesList )
Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnDocFormPrerender )
Attempting to preserve files at /mnt/web8/22/46/51852746/htdocs/modx_revo/assets/components/gallery into archive /mnt/web8/22/46/51852746/htdocs/modx_revo/core/packages/gallery-1.0.2-rc1/modCategory/4515ee1087609ed093d38dc273f158b6.0.preserved.zip
In the MODx error log, I see the following message:
[2010-12-27 09:33:11] (ERROR @ /mnt/web8/22/46/51852746/htdocs/modx_revo/core/xpdo/compression/xpdozip.class.php : 142) PHP warning: ZipArchive::extractTo() [<a href='ziparchive.extractto'>ziparchive.extractto</a>]: File exists
[2010-12-27 09:33:11] (ERROR @ /connectors/workspace/packages.php) Could not unpack package /mnt/web8/22/46/51852746/htdocs/modx_revo/core/packages/gallery-1.0.2-rc1.transport.zip to /mnt/web8/22/46/51852746/htdocs/modx_revo/core/packages/. SIG: gallery-1.0.2-rc1
Here’s the system information:
SunOS localhost 5.10 Generic_139556-08 i86pc
PHP Version 5.2.14
MySQL Support enabled
Client API version 5.0.91
PDO Driver for MySQL, client library version 5.0.91
Could you please help me with this problem?
Update
I found out that MODx creates the file
4515ee1087609ed093d38dc273f158b6.0.preserved.zip with a size of 20M, then it is stuck. The directory
assets/components/gallery contains 2149 files with a total size of 247M.
I copied my MODx installation to a test system running Ubuntu 10.10 and I was able to update Gallery without any problems. Could the problem be caused my some PHP settings? I also noticed on my Ubuntu system that MODx keeps the file
4515ee1087609ed093d38dc273f158b6.0.preserved.zip after the update. Since my Gallery content is quite large, I would like to know if there is a way to clean up the old versions of Gallery after the update has finished successfully?