Upgrade Problem

Sugarcrm upgrade from Version 6.5.13 (Build 1041) using SuiteCRM-Upgrade-6.5.x-to-7.0.2

Permissions set up as per before upgrade:
http://suitecrm.com/forum/bug-tracker/662-php-errors-warnings-and-deprecated-notices-on-new-install

[b]sudo chmod -R 755

sudo chmod -R 775 cache custom modules themes data upload config_override.php[/b]

System and preflight checks pass.

Files copy fine.

The layouts merge successfully.

After this the upgrade summary takes some time and I get the following errors (proj_new_projects is our custom module, error_reporting is on - if off would result in a blank page):

[i]Notice: Undefined index: proj_new_projects in /usr/local/apache2/virtualhosts/suitecrm/include/SubPanel/SubPanelDefinitions.php on line 495

Notice: Undefined index: in /usr/local/apache2/virtualhosts/suitecrm/include/SubPanel/SubPanelDefinitions.php on line 499

Warning: include_once(/usr/local/apache2/virtualhosts/suitecrm): failed to open stream: Permission denied in

/usr/local/apache2/virtualhosts/suitecrm/include/SubPanel/SubPanelDefinitions.php on line 499

Warning: include_once(): Failed opening ‘’ for inclusion

(include_path=’/usr/local/apache2/virtualhosts/suitecrm:/usr/local/apache2/virtualhosts/suitecrm/include/…:.:/usr/local/lib/php’) in

/usr/local/apache2/virtualhosts/suitecrm/include/SubPanel/SubPanelDefinitions.php on line 499

Fatal error: Class name must be a valid object or a string in /usr/local/apache2/virtualhosts/suitecrm/include/SubPanel/SubPanelDefinitions.php on line 500[/i]

Our custom module isn’t available, but if I refresh this page with the errors, I get the ‘upgrade is complete’ confirmation and our module is available.

Hi there,

Did you set the owner of the directory? Your errors appear to be related to permissions(Permission denied/failed opening).

sudo chown -R www-data:www-data .

sudo chmod -R 755 .

sudo chmod -R 775 cache custom modules themes data upload config_override.php

Thanks,

Will.

Hi,

Sorry I didn’t mention that part - the apache user runs apache.

Here is the script I used to set permissions:

chown -R apache:apache suitecrm/
find suitecrm/ -exec chmod 755 ‘{}’ ;
find suitecrm/cache/ -exec chmod 775 ‘{}’ ;
find suitecrm/custom/ -exec chmod 775 ‘{}’ ;
find suitecrm/modules/ -exec chmod 775 ‘{}’ ;
find suitecrm/themes/ -exec chmod 775 ‘{}’ ;
find suitecrm/data/ -exec chmod 775 ‘{}’ ;
find suitecrm/include/ -exec chmod 775 ‘{}’ ;
find suitecrm/upload/ -exec chmod 775 ‘{}’ ;
chmod 775 suitecrm/config_override.php

Thanks

Hi there,

Have you tried performing a Quick Repair & Rebuild in Admin -> Repair? It’s unusual that you are experiencing permissions issues after setting the correct permissions.

Thanks,

Will.

I haven’t tried that, but I will start again from scratch (one of the great things about sugar - very easy to restore).

I should add that the script did seem to work and the permissions seem correct.

I attach an ll output.

Thanks again

Just to be sure, do I need to change the umask of the machine or does the upgrade handle the permissions?

With regard to the permissions problem, I noticed that the script was trying to include the sugar directory rather than a file. I presume because the module ‘proj_new_project’ was undefined at that point it didn’t append the file name to the path. I guess you would get some sort of error if you tried to include a directory instead of a file, not sure if it would be a permission error though.

When I refreshed the page, at that point the module had been defined and the installation worked.

I restored sugar to it’s former state (files and db). set the permissions again. Ran a repair and rebuild (which completed successfully), then proceeded to upgrade and the same errors popped up.