Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

  1. #1
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Hi all,

    I just upgraded my system from 4.2.0.d to 4.2.1 to 4.5.0.b. This appears to have broken the Upgrade Wizard, which now fails on step 2 (the Pre-flight Check) with the message:

    PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file ''

    There is nothing special about my system. I accepted to overwrite all files during the upgrade process. I did this twice and it failed both times. I have backups of everything, so all is not lost, but it would be great to hear from someone else who ran into this and found a fix.

    Any thoughts?

    David
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Could you zip the upgradeWizard.log file in the SugarCRM root directory and post it here?
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Hi Ryuhei,

    Thanks in advance for taking a look. I went through the upgrade log and the sugarcrm log, but didn't see anything that obviously indicated a problem. One possibility is something related to the number of upgrades we have done to this particular installation. More than 30 upgrades, counting patches and language packs from version 3.5. The Upgrade Wizard takes 3-5 minutes to open because of this long list of upgrades.

    Attached is the upgrade log.

    Cheers.

    David
    Attached Files Attached Files
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  4. #4
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Do you see SugarSuite-Upgrade-4.2.1-to-4.5.0b.zip in cache/upload?
    Is a temp directory created under cache/upload/upgrades/temp and extracted files are there?
    Is SugarSuite-Upgrade-4.2.1-to-4.5.0b.zip in cache/upload/upgrades/patch?
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  5. #5
    dtokeefe's Avatar
    dtokeefe is offline Sugar Community Member
    Join Date
    Mar 2005
    Location
    Sao Paulo, Brasil
    Posts
    671

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Hi Ryuhei,

    I fixed the problem, but do not know why. It does seem that having so many upgrades in the upgrade history and cache was the problem. Maybe the Pre-flight script exceeded allowed memory.

    Here is the complete story:

    1. Starting from 4.2.0.d with only a few custom fields and no source code modifications
    2. Used Upgrade Wizard to install Sugar Upgrade 4.2.0 - 4.2.1.
    3. Used Upgrade Wizard to install Sugar Upgrade 4.2.1 - 4.5.0.a
    4. Tried to use Upgrade Wizard to install Sugar Patch 4.5.0.b but got PCLZIP_ERR.
    5. Deleted all the entries in the table upgrade_history.
    6. Removed all the folders and files in cache/upload/upgrades/patch EXCEPT those related to SugarSuite-Upgrade-4.2.1-to-4.5.0a
    7. Removed all the sub-folders and files in cache/upload related to upgrades and patches EXCEPT again those related to SugarSuite-Upgrade-4.2.1-to-4.5.0a
    8. Similarly cleaned up the sub-folders and files in cache/upload/upgrades
    9. Tried again to install the 4.5.0.b Patch. No problems. And the Upgrade Wizard now loads much, much faster.

    This all seemed to work perfectly. Can you think of anything I might have broken by taking these steps?

    Cheers.

    David

    P.S. To all readers, MAKE and TEST backups of your database and files before doing any of the above. You should have your backup system up and running before your might need it.
    David O'Keefe
    Lampada Global Services
    SugarCRM Gold Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    Skype: dtokeefe
    Email: equipe@lampadaglobal.com
    www.lampadaglobal.com

    Lampada Global delivers enterprise software and offshore programming services to customers around the world.

  6. #6
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    I'm glad you proceed your upgrade.
    A workaround has just been posted by Sugar Team, which seems to address another issue.
    http://www.sugarcrm.com/forums/showthread.php?t=16815
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  7. #7
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Just for your information.
    I could duplicate this issue when consecutive upgrades are done from 4.2.1 to 4.5.0a or 4.5.0b to 4.5.0c. This may be because extractMnifest() in the older (4.2.1) upgrade process is called.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  8. #8
    sutfra is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    14

    Unhappy Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    The problem still exists. When I try to upload the latest patch (4.5.0f), I get the following error message:

    Please specify a file and try again!
    Error: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file ''
    The advice in the wiki (http://www.sugarcrm.com/wiki/index.p...wizard_to_fail) doesn't help (and anyway, what does "resarting your browser windows" really means; this must be some IE thing, but doesn't make any sense with Firefox).

    I also tried the advice in this thred: clear the upgrade table, delete all the upgrades and patches on the server, but the problem still persists. Do you have any idea what is at work here?

    Thanks in advance

    Francois Suter

  9. #9
    ashley is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    14

    Question Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    Hi,

    Has anyone found a fix for this issue? I've been trying to upgrade from 4.5.0h to 4.5.1 and I get this error message after trying to upload the .zip file. I tried restarting my browser and clearing the cache. I also tried removing anything from /cache/uploads/upgrades and I tried truncating the history table in the database, non of which have helped.

    Here are the last few lines on my log file:

    Tue, 20 Feb 2007 16:31:47 -0700 [UpgradeWizard] - No permissions errors found!
    Tue, 20 Feb 2007 16:31:47 -0700 [UpgradeWizard] - Finished database permissions check.
    Tue, 20 Feb 2007 16:31:50 -0700 [UpgradeWizard] - At upload.php
    Tue, 20 Feb 2007 16:31:50 -0700 [UpgradeWizard] - finding new files for upgrade
    Tue, 20 Feb 2007 16:31:52 -0700 [UpgradeWizard] - At upload.php
    Tue, 20 Feb 2007 16:31:52 -0700 [UpgradeWizard] - running upload
    Tue, 20 Feb 2007 16:31:52 -0700 [UpgradeWizard] - ERROR: no file uploaded!
    Tue, 20 Feb 2007 16:31:56 -0700 [UpgradeWizard] - At upload.php
    Tue, 20 Feb 2007 16:31:56 -0700 [UpgradeWizard] - finding new files for upgrade
    Tue, 20 Feb 2007 16:32:06 -0700 [UpgradeWizard] - At upload.php
    Tue, 20 Feb 2007 16:32:06 -0700 [UpgradeWizard] - running upload
    Tue, 20 Feb 2007 16:32:06 -0700 [UpgradeWizard] - ERROR: no file uploaded!

    There is indeed a zip file to upload and I verified that Winzip can open it just fine. Where do I go from here? Thanks!

    ~Ashley

  10. #10
    ashley is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    14

    Default Re: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file

    I also increased the max_file_upload size in php.ini to 20MB, but for some reason Sugar will not see this change and I still get the red error message about having to increase this amount from 6MB. I also set the upload size in Sugar and timeouts options in php.ini to handle large files. After I restarted the Apache server, nothing changed though and I still receive this error message. Please help. Thanks you very much!

    ~Ashley

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •