HELP!!!! HELP !!!! Upgrade from 7.8.2 to 7.8.3 FAILED

I ran the upgrade wizard and all went well until the last step! Now the CRM will not produce a page I get a 500 error. I restarted HTTPD, My Sqy appears to be running. The error log shows :
Fri, 28 Apr 2017 08:50:35 -0400 [UpgradeWizard] - *** ERROR: Schema change script [/var/www/html/CRM/cache/upgrades/temp/8NzmjH/scripts/65x_to__mysql.sql] could not be found!
Fri, 28 Apr 2017 08:50:35 -0400 [UpgradeWizard] - Rebuilding JS Langauages
Fri, 28 Apr 2017 08:50:35 -0400 [UpgradeWizard] - Rebuilding Dashlets
Fri, 28 Apr 2017 08:50:36 -0400 [UpgradeWizard] - At updateVersions()… updating config table and sugar_version.php.
Fri, 28 Apr 2017 08:50:36 -0400 [UpgradeWizard] - *** ERROR: no sugar_version.php file location found! - cannot complete upgrade…
Fri, 28 Apr 2017 08:50:36 -0400 [UpgradeWizard] - rebuild grouping js files…
Fri, 28 Apr 2017 08:50:36 -0400 [UpgradeWizard] - unlink: cache/include/javascript/sugar_grp1.js
Fri, 28 Apr 2017 08:50:36 -0400 [UpgradeWizard] - cwd: /var/www/html/CRM
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - Performing UWrebuild()…
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - UWrebuild() done.
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - post_install() done.
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - check if current_db_version in $_SESSION equals target_db_version in $_SESSION
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - finished check to see if current_db_version in $_SESSION equals target_db_version in $_SESSION
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - running deleteChance() function
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - running deleteCache() function
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - call addNewSystemTabsFromUpgrade(upload://upgrades/patch/SuiteCRM-Upgrade-7.8.x-to-7.8.3-restore)
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - check to see if new modules exist
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - new modules to add are array (
Then the array is output

Then:
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - module tabs updated
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - finished addNewSystemTabsFromUpgrade
Fri, 28 Apr 2017 08:51:29 -0400 [UpgradeWizard] - Registering upgrade with UpgradeHistory
Fri, 28 Apr 2017 08:51:30 -0400 [UpgradeWizard] - Resetting error_reporting() to system level.
Fri, 28 Apr 2017 08:51:30 -0400 [UpgradeWizard] - Rebuilding style js file: cache/themes/SuiteP/js/style-min.js
Fri, 28 Apr 2017 08:51:30 -0400 [UpgradeWizard] - Rebuilding language cache

That is the end of the file.

What can I do to get this working?

The httpd log shows:
PHP Parse error: syntax error, unexpected ‘[’ in /var/www/html/CRM/include/utils.php on line 425

When I look at that line it appears to be OK

$runningUser = posix_getpwuid(posix_geteuid())[‘name’];

Ok Worked throught updating php from 5.3 to 5.6 got s php.ini session error, got that fixed. Now I get the install script when I access the CRM index. I don’t want to lose my info, how can I abort this.

7.8.3 doesn’t seem to go well with PHP 5.3. The issue has been located and can be fixed by applying this change:

https://github.com/salesagility/SuiteCRM/pull/3387/files

(that’s the line you mentioned in your post!)

This fix will be in the next version, whatever it’s called (7.8.3.1? 7.8.4?).

Now, it seems meanwhile other problems have arisen in your install. Please check your permissions. If you post here the results of

ls -al /var/www/html

that might help a bit, I can see if I spot something suspicious.

You do have backups from before the upgrade attempt, right?

here you go:
root@localhost ~]# ls -al /var/www/html
total 24
drwxrwxr-x. 4 asterisk asterisk 4096 Apr 28 09:54 .
drwxr-xr-x. 7 root root 4096 Mar 30 16:34 …
drwxrwxr-x 18 asterisk asterisk 4096 Apr 28 09:11 CRM
lrwxrwxrwx 1 asterisk asterisk 36 Mar 30 15:59 cxpanel -> /var/www/html/admin/modules/cxpanel/
-rwxr-xr-x 1 root root 19 Apr 28 09:53 phpinfo.php
drwxrwxr-x 9 asterisk asterisk 4096 Mar 30 16:32 phpMyAdmin
-rw-rw-r–. 1 asterisk asterisk 361 Mar 30 15:57 robots.txt
lrwxrwxrwx. 1 asterisk asterisk 38 Mar 30 14:40 ucp -> /var/www/html/admin/modules/ucp/htdocs
lrwxrwxrwx 1 asterisk asterisk 47 Mar 30 16:08 wcb.php -> /var/www/html/admin/modules/webcallback/wcb.php
[root@localhost ~]#

I do not have a backup but the system was only in use for a few days. We still have almost all the info we had imported from other sources tho.

Sorry, I assumed your SuiteCRM install was at /var/www/html but it seems I should have asked instead for

ls -al /var/www/html/CRM

Do you know what user your web server runs under? Is it “asterisk”?

Have you configured your cron “Scheduler jobs”?

No worries. The webserver is running under asterisk. The system originally was setup as a Freepbx system. I removed Asterisk and the Freepbx files. I did not setup the cronjob scheduler. Here’s the result of the updated command:

-bash: drwxrwxr-x: command not found
[root@localhost ~]# [root@localhost ~]#
-bash: [root@localhost: command not found
[root@localhost ~]# clear
[root@localhost ~]# ls -al /var/www/html/CRM
total 1952
drwxrwxr-x 18 asterisk asterisk 4096 Apr 28 09:11 .
drwxrwxr-x. 4 asterisk asterisk 4096 Apr 28 09:54 …
drwxrwxr-x 15 asterisk asterisk 4096 Apr 27 13:46 cache
-rw-rw-r-- 1 asterisk asterisk 3590 Mar 30 16:26 campaign_tracker.php
-rw-rw-r-- 1 asterisk asterisk 953 Apr 27 13:45 config_override.php
-rw-rw-r-- 1 asterisk asterisk 5052 Apr 28 08:50 cron.php
-rw-rw-r-- 1 asterisk asterisk 2446 Mar 30 16:26 crossdomain.xml
drwxrwxr-x 10 asterisk asterisk 4096 Apr 28 08:50 custom
drwxrwxr-x 3 asterisk asterisk 4096 Mar 30 16:39 data
-rw-rw-r-- 1 asterisk asterisk 2388 Mar 30 16:26 dictionary.php
-rw-rw-r-- 1 asterisk asterisk 12403 Mar 30 16:26 download.php
-rw-rw-r-- 1 asterisk asterisk 2392 Mar 30 16:26 emailmandelivery.php
-rw-rw-r-- 1 asterisk asterisk 4912 Mar 30 16:26 export.php
-rw-rw-r-- 1 asterisk asterisk 967627 Mar 30 16:26 files.md5
-rw-rw-r-- 1 asterisk asterisk 2811 Mar 30 16:26 HandleAjaxCall.php
-rw-rw-r-- 1 asterisk asterisk 1408 Apr 28 08:41 .htaccess
-rw-rw-r-- 1 asterisk asterisk 2371 Mar 30 16:26 ical_server.php
drwxrwxr-x 56 asterisk asterisk 4096 Mar 30 16:41 include
-rw-rw-r-- 1 asterisk asterisk 2374 Mar 30 16:26 index.php
drwxrwxr-x 6 asterisk asterisk 4096 Mar 30 16:48 install
-rw-rw-r-- 1 asterisk asterisk 19261 Apr 28 11:21 install.log
-rw-rw-r-- 1 asterisk asterisk 30016 Mar 30 16:26 install.php
-rw-rw-r-- 1 asterisk asterisk 13373 Mar 30 16:26 json_server.php
drwxrwxr-x 3 asterisk asterisk 4096 Mar 30 16:41 jssource
-rw-rw-r-- 1 asterisk asterisk 34539 Mar 30 16:26 LICENSE.txt
-rw-rw-r-- 1 asterisk asterisk 2313 Mar 30 16:26 log_file_restricted.html
-rw-rw-r-- 1 asterisk asterisk 2376 Mar 30 16:26 maintenance.php
drwxrwxr-x 2 asterisk asterisk 4096 Mar 30 16:41 metadata
drwxrwxr-x 3 asterisk asterisk 4096 Mar 30 16:41 ModuleInstall
drwxrwxr-x 112 asterisk asterisk 4096 Mar 30 16:43 modules
-rw-rw-r-- 1 asterisk asterisk 2890 Mar 30 16:26 pdf.php
drwxrws— 2 asterisk asterisk 4096 Apr 27 13:33 public
-rw-rw-r-- 1 asterisk asterisk 2655 Apr 28 08:50 README.md
-rw-rw-r-- 1 asterisk asterisk 73 Mar 30 16:26 robots.txt
-rw-rw-r-- 1 asterisk asterisk 3588 Mar 30 16:26 run_job.php
drwxrwxr-x 11 asterisk asterisk 4096 Mar 30 16:43 service
drwxrwxr-x 2 asterisk asterisk 4096 Mar 30 16:43 soap
-rw-rw-r-- 1 asterisk asterisk 4091 Mar 30 16:26 soap.php
-rw-rw-r-- 1 asterisk asterisk 123656 Mar 30 16:48 sugarcrm.log
-rw-rw-r-- 1 asterisk asterisk 5327 Mar 30 16:26 SugarSecurity.php
-rw-rw-r-- 1 asterisk asterisk 154 Mar 30 16:26 sugar_version.json
-rw-rw-r-- 1 asterisk asterisk 2263 Mar 30 16:26 sugar_version.php
-rw-rw-r-- 1 asterisk asterisk 18250 Apr 28 08:51 suitecrm.log
-rw-rw-r-- 1 asterisk asterisk 168 Apr 28 08:50 suitecrm_version.php
-rw-rw-r-- 1 asterisk asterisk 957 Mar 30 16:26 testinstall.php
drwxrwxr-x 6 asterisk asterisk 4096 Mar 30 16:43 themes
-rw-rw-r-- 1 asterisk asterisk 5843 Mar 30 16:26 TreeData.php
-rwxr-xr-x 1 asterisk asterisk 555766 Apr 28 08:51 upgradeWizard.log
drwxrwxr-x 5 asterisk asterisk 4096 Apr 28 08:50 upload
-rw-rw-r-- 1 asterisk asterisk 2707 Mar 30 16:26 vcal_server.php
-rw-rw-r-- 1 asterisk asterisk 2980 Mar 30 16:26 vCard.php
drwxrwxr-x 2 asterisk asterisk 4096 Mar 30 16:43 XTemplate
drwxrwxr-x 8 asterisk asterisk 4096 Mar 30 16:44 Zend
[root@localhost ~]#

It’s strange, you don’t have execute permissions on some PHP scripts (namely index.php).

Can you try resetting your permissions by running these two commands from within /var/www/html/CRM/:


sudo chown -R asterisk:asterisk .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php 

Notice some of those commands end with a space followed by a dot.

Then please tell me the output of this command:

umask

Finally, try accessing your system again to see if it’s recovered…

umask results in 0022

When I try to go to the site I still get the install page :frowning:

The umask is pretty normal, I wonder how your permissions were degraded…

I’m a bit lost for ideas on how to help you further…

It sounds more like an Apache configuration problem than a SuiteCRM problem. Maybe you need to tweak some .htaccess but I’m no good helping with that.

Maybe some weird caching is going on. Maybe try

touch index.php

to update the timestamp of the file and see if you can access

www.yoursite.com/index.php

and hit CTRL-F5 on your browser to force refresh.

If that doesn’t work, unless somebody else has suggestions, I’d look for Apache logs and configuration problems.

Still doing the same I will check the httpd logs. Thank you for all your help!