http 500 error -do-release-upgrade - droplet now down

July 31, 2016 703 views
Deployment Configuration Management LAMP Stack

Hello,

I recently ran the command do-release-upgrade and upgraded my droplet. After the upgrade lost access to my website. Its displaying a HTTP 500 error message. Anyone any ideas on how I can repair this? I am running LAMP on the server (incase you need to know)

Cheers,
Jamie.

3 Answers

p.s should of mentioned, this was the first time I have ever done this. I should of took a back up. Lesson Learnt!

Oh no!

Can you post the errors that you see in apache? By default it is in /var/www/apache2/error.log file.

  • Replied below :)

    • It seems like you have an error with Braintree. It appears to be missing the class "Braintree_Exception". Check the file /var/www/html/vendor/braintreelib/Braintree.php:20

As I said the website was working before, it was only after I ran the update! Here is the log

[Sun Jul 31 06:25:04.162894 2016] [mpm_prefork:notice] [pid 2193] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations

[Sun Jul 31 06:25:04.162994 2016] [core:notice] [pid 2193] AH00094: Command line: '/usr/sbin/apache2'

[Sun Jul 31 07:12:53.744468 2016] [:error] [pid 7952] [client 64.16.214.100:43280] PHP Fatal error: Uncaught Error: Class 'Braintree_Exception' not found in /var/www/html/vendor/braintreelib/Braintree.php:20\nStack trace:\n#0 /var/www/html/vendor/braintreelib/Braintree.php(25): requireDependencies()\n#1 /var/www/html/frontend/web/index.php(16): require('/var/www/html/v...')\n#2 {main}\n thrown in /var/www/html/vendor/braintreelib/Braintree.php on line 20

[Sun Jul 31 07:46:36.073382 2016] [:error] [pid 7954] [client 91.196.50.33:39648] PHP Fatal error: Uncaught Error: Class 'Braintree_Exception' not found in /var/www/html/vendor/braintreelib/Braintree.php:20\nStack trace:\n#0 /var/www/html/vendor/braintreelib/Braintree.php(25): requireDependencies()\n#1 /var/www/html/frontend/web/index.php(16): require('/var/www/html/v...')\n#2 {main}\n thrown in /var/www/html/vendor/braintreelib/Braintree.php on line 20

  • An Ubuntu upgrade shouldn't touch /var/www/html. It's possible that the Braintree library's structure is not compatible with the updated version of PHP. Have you tried running composer update to update all libraries to their latest versions? If that still doesn't work, can you post your PHP version? php -v

Have another answer? Share your knowledge.