Question

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

Posted July 31, 2016 2.3k views
LAMP StackConfiguration ManagementDeployment

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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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.

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

Submit an Answer