by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free Trial

By clicking you consent to share your profile with the developer

#182 - 6514 Basic SecuritySuite 266.zip fails install at 17%

Closed Bug? created by bchabot 10 years ago

I am attempting to install 6514 Basic SecuritySuite 266.zip to a stock install of SugarCRM Community Edition Version 6.5.14 (Build 1055). I upload successfully and click the Install button and then accept the license. The next screen shows the progress at 17% but goes no further. Opening the "Display Log" link, I see the following error:

======BEGIN HERE===== Including: cache/upgrades/temp/Yoxkmv/scripts/pre_install.php (progress bar)17%

Display Log Failed to copy cache/upgrades/temp/Yoxkmv/install_dir/notupgradesafe/data/SugarBean.php to data/SugarBean.php =====END HERE=====

This also happened when installing the proper version for 6.5.13, also at 17%.

I had thought the new versions of Sugar and SecuritySuite would clear this up, but no such luck...

Any ideas what might cause this?

Thanks in advance.

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    10 years ago

    Hey bchabot, the error means that SugarCRM didn't have the proper permissions to copy over the existing SugarBean.php. The resolution will involve both altering file permissions and the Sugar config for default_permissions. It may require changing file ownership as well. I couldn't tell you what your environment will require for permissions as each environment is unique, but here are some links to get you on your way:

    http://forums.sugarcrm.com/f3/sugarcrm-permissions-50083/ http://support.sugarcrm.com/04_Find_Answers/02KB/02Administration/100Troubleshooting/Resolving_Issues_With_Sugar_File_Permissions

  2. bchabot member avatar

    bchabot

    10 years ago

    The install is on RedHat Linux 5 with WHM/cPanel. Permissions should be fine - Apache running SUPHP and the directory structure is owned by the user and chmod 0755. Really, I'm not sure why that wouldn't work. The files and directory are writable and properly owned and secured.

    I have not changed config.php and the default_permissions are:

    'default_permissions' => array ( 'dir_mode' => 493, 'file_mode' => 420, 'user' => '', 'group' => '', ),

    So I set the permissions by commandline as outlined at http://support.sugarcrm.com/04_Find_Answers/02KB/02Administration/100Install/Required_File_System_Permissions_on_Linux

    664 and 775: No joy. Same problem. 666 and 777: Still no luck.

    The decimal/octal numbers for permissions are making my head hurt. Can you throw me a clue as to what I should be looking for?

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      Here's another example of someone with a similar issue that may help: http://www.turnkeylinux.org/forum/support/20120919/sugarcrm-failed-copy-cacheupgradestemp-etc-etc

      Either cache/upgrades/temp/Yoxkmv/install_dir/notupgradesafe/data/SugarBean.php doesn't exist in your case (or whatever temp dir gets created each time) due to not enough permissions to create temp dir and/or unable to unzip due to zip lib issues OR /data isn't writable for the process user to copy the file over OR /data/SugarBean.php is set to readonly/insufficient permissions. These are my best guesses to what is going on in your case.

  3. bchabot member avatar

    bchabot

    10 years ago

    The suggestion on that link breaks Sugar completely.

    The tmp directory not only exists, but there are other files in it.

    Back to normal 755 perms:

    Including: cache/upgrades/temp/zrjLdD/scripts/pre_install.php 17%

    Display Log

    Failed to copy cache/upgrades/temp/zrjLdD/install_dir/notupgradesafe/data/SugarBean.php to data/SugarBean.php

    $ ls -la cache/upgrades/temp/zrjLdD/install_dir/notupgradesafe/data/ total 12 drwxr-xr-x 3 liztestw liztestw 4096 Jul 8 16:04 . drwxr-xr-x 6 liztestw liztestw 4096 Jul 8 16:04 .. drwxr-xr-x 2 liztestw liztestw 4096 Jul 8 16:04 Relationships $ ls -la data/SugarBean.php -rwxrwxrwx 1 liztestw liztestw 229611 Jun 20 23:01 data/SugarBean.php $

    unzip is installed by RPM: unzip-6.0-1.el6.x86_64

    Here is the issue: Zip needs to be COMPILED INTO the Apache/PHP system in EasyApache.

    I did that and it installed fine.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      10 years ago

      Great find! Hopefully this will help someone else out there who runs into the same issue.

  4. bchabot member avatar

    bchabot

    10 years ago

    Well, something didn't come out right in that last comment, but the end of it is the important part.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "Quite powerful, flexible and easy to use plugin. Works perfectly in SuiteCRM as well as in SugarCRM." - damien8105

    Read More Reviews