HTTP Error 500 after upgrade to owncloud 9.1

Following this thread -> https://central.owncloud.org/t/upgrading-from-9-to-9-1-using-occ-command-gives-exception-error/2232/3

After the upgrade i am unable to use owncloud due to HTTP Error 500

Any help is appreciated

Steps to reproduce
This happened after an update

Expected behaviour
Owncloud should start normally after an update

Actual behaviour
HTTP Error 500

Server configuration
Operating system: Linux centos 2.6.32-642.1.1.el6.x86_64 #1 SMP Tue May 31 21:57:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Web server: Apache version 2.2.15
Database: MySQL version 5.5.37
PHP version: PHP 5.4.27
ownCloud version (see ownCloud admin page): 9.1
Updated from an older ownCloud or fresh install: Updated from 8.x
ownCloud log (data/owncloud.log, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808):

Special configuration : external storage, external authentication

is missing here. Without logfiles its not possible to help

@RealRancor logfile seems truncated and is filled with message like these:

{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"PHP","message":"str_repeat(): Second argument has to be greater than or equal to 0 at \/var\/www\/html\/owncloud\/3rdparty\/symfony\/console\/Helper\/ProgressBar.php#572","level":3,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}
{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"user_ldap","message":"initializing paged search for Filter objectClass=* base Array\n(\n [0] => cn=*****,ou=****,ou=**** unit,ou=users,ou=corporate,dc=*******,dc=****\n)\n attr Array\n(\n [0] => primaryGroupID\n)\n limit 500 offset 0","level":0,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}
{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}
{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"user_ldap","message":"initializing paged search for Filter objectClass=* base Array\n(\n [0] => dc=*******,dc=*****\n)\n attr Array\n(\n [0] => objectsid\n)\n limit 500 offset 0","level":0,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}
{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}
{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"user_ldap","message":"initializing paged search for Filter (&(&(|(objectclass=group)))(objectsid=S-1-5-21-1993632213-335689477-1777090905-513)) base Array\n(\n [0] => OU=*****,OU=Other,OU=User Groups,OU=*****,DC=******,DC=****\n)\n attr Array\n(\n [0] => dn\n)\n limit 1 offset 0","level":0,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}
{"reqId":"FrrYiwSJUOBWeldXX5rZ","remoteAddr":"","app":"user_ldap","message":"Ready for a paged search","level":0,"time":"2016-09-08T10:09:54+00:00","method":"--","url":"--","user":"--"}

Total log file is over 500Mb in size and is quite difficult to upload... :frowning:

Apache error_log revealed the solution to my problem...

[Thu Sep 08 16:49:04 2016] [error] [client 10.1.5.200] PHP Warning: fopen(/var/www/html/owncloud/config/config.php): failed to open stream: Permission denied in /var/www/html/owncloud/lib/private/Config.php on line 187
[Thu Sep 08 16:49:04 2016] [error] [client 10.1.5.200] PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/html/owncloud/lib/private/Config.php on line 197
[Thu Sep 08 16:49:04 2016] [error] [client 10.1.5.200] PHP Fatal error: Call to a member function getLogger() on a non-object in /var/www/html/owncloud/index.php on line 51

config.php wasn't writable anymore, so i changed the permissions and problem solved! Thanks...