Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading via the UI on live host fails with 'slim application error' #2337

Closed
chiebert opened this issue Apr 20, 2017 · 5 comments
Closed

Comments

@chiebert
Copy link
Contributor

I have yet to be able to upgrade our hosted instance of ChurchCRM, since starting with 2.4.4. Most recent attempt was from 2.5.2 to 2.7.0. Each time, the Upgrade Process proceeds as expected from 'make and retrieve backup', through 'retrieve upgrade files':

upgrade_churchcrm_-_before_do_upgrade

but fails immediately on Apply update with a not-particularly-helpful dialog:

upgrade_churchcrm_-_on_do_upgrade

In every case, I have to manually upgrade by unzipping the new version into a fresh directory, move Config.php (and any images or custom files), and fixing permissions.

The hosted instance is set up as a subdomain (e.g., churchcrm.mydomain.tld), with the code in a directory (e.g., churchcrm, permissions = 755) within my public_html folder. Some potentially relevant settings from Config.php:

@DawoudIO
Copy link
Contributor

is this still an issue

@DawoudIO
Copy link
Contributor

might be the same issue as #1797

@chiebert
Copy link
Contributor Author

I can't see how it would be a timeout issue like #1797 seems to imply. The error dialog is almost instantaneous. Also, I don't know if it's an issue after 2.6.3 - I downgraded back when 2.7.0 broke the family dashboard ( #2336 ). But it's certainly there on 2.6.3 (just tried the auto upgrade now, to 2.7.2).

@chiebert
Copy link
Contributor Author

chiebert commented May 4, 2017

Sadly, this is still an issue, at least when trying to upgrade from 2.7.3 to 2.7.5. Exact same sequence of events, and screenshot above still applies.

@crossan007 crossan007 modified the milestone: Backlog Jul 14, 2017
@chiebert
Copy link
Contributor Author

Updates: Now that the logging location issue has been fixed (before a recent update, I wasn't seeing any logs in /logs), I've been able to see the php error log, and on the most recent failure, I've got some useful data. The ZipArchive class isn't found. Now that I know that, I was able to reconfigure my shared hosting's PHP module list and include the zip module. That's fixed it for me. Woohoo!

For future info, here's the log trace that helped me.

[28-Jul-2017 10:39:50 America/Vancouver] Slim Application Error:
Type: Error
Message: Class 'ZipArchive' not found
File: /home/myuser/public_html/churchcrm/ChurchCRM/Service/SystemService.php
Line: 456
Trace: #0 /home/myuser/public_html/churchcrm/api/routes/systemupgrade.php(13): ChurchCRM\Service\SystemService->doUpgrade('/home/myuser/...', '76ec9871f96fdf9...')
#1 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#2 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#3 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/Route.php(325): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#5 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/Route.php(297): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/App.php(443): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(116): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/App.php(337): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /home/myuser/public_html/churchcrm/vendor/slim/slim/Slim/App.php(298): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 /home/myuser/public_html/churchcrm/api/index.php(61): Slim\App->run()
#11 {main}
View in rendered output by enabling the "displayErrorDetails" setting.

@ghost ghost removed the bug label Jul 28, 2017
@crossan007 crossan007 modified the milestones: Backlog, 2.8.10 Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants