Internal Server Error after clean install

Hey,

I would like to install nextcloud 17, but after I press complete installation I get an Internal Server Error…

" Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the webserver log. "

I use CentOS 7 , httpd 2.4.6-90.el7.centos , mariadb 10.4.8-1.el7.centos and php74-php.

mariadb:

| nc_tdomeet | nextcloud | localhost |

GRANT ALL PRIVILEGES ON nextcloud.* TO ‘nc_tdomeet’@‘localhost’

nextcloud.log:

{“reqId”:“Xb9JCj@YqYBD@YuCkgR0fwAAAAs”,“level”:3,“time”:“2019-11-03T21:39:22+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“Undefined index: args at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JCj@YqYBD@YuCkgR0fwAAAAs”,“level”:3,“time”:“2019-11-03T21:39:22+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“array_merge(): Expected parameter 2 to be an array, null given at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JCj@YqYBD@YuCkgR0fwAAAAs”,“level”:3,“time”:“2019-11-03T21:39:22+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“Undefined index: args at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JCj@YqYBD@YuCkgR0fwAAAAs”,“level”:3,“time”:“2019-11-03T21:39:22+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“array_merge(): Expected parameter 2 to be an array, null given at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JCj@YqYBD@YuCkgR0fwAAAAs”,“level”:3,“time”:“2019-11-03T21:39:22+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“TypeError: Argument 1 passed to OC\Log\ExceptionSerializer::editTrace() must be of the type array, null given, called in /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php on line 106 at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#94”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36”,“version”:“17.0.0.9”}
{“reqId”:“Ry5uKbGvNvAvJl0x0cyN”,“level”:3,“time”:“2019-11-03T21:40:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:{“Exception”:“Exception”,“Message”:“Not installed”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud.tdomeet.de/lib/base.php",“line”:646,“function”:“checkInstalled”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/nextcloud.tdomeet.de/lib/base.php",“line”:1081,“function”:“init”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/nextcloud.tdomeet.de/cron.php",“line”:41,“args”:["/var/www/nextcloud.tdomeet.de/lib/base.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud.tdomeet.de/lib/base.php",“Line”:277,“CustomMessage”:"–"},“userAgent”:"–",“version”:“17.0.0.9”}
{“reqId”:“Xb9JS1J0mpYRqbtdVJDZlwAAAAU”,“level”:3,“time”:“2019-11-03T21:40:27+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“Undefined index: args at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JS1J0mpYRqbtdVJDZlwAAAAU”,“level”:3,“time”:“2019-11-03T21:40:27+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“array_merge(): Expected parameter 2 to be an array, null given at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JS1J0mpYRqbtdVJDZlwAAAAU”,“level”:3,“time”:“2019-11-03T21:40:27+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“Undefined index: args at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JS1J0mpYRqbtdVJDZlwAAAAU”,“level”:3,“time”:“2019-11-03T21:40:27+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“array_merge(): Expected parameter 2 to be an array, null given at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#95”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko”,“version”:“17.0.0.9”}
{“reqId”:“Xb9JS1J0mpYRqbtdVJDZlwAAAAU”,“level”:3,“time”:“2019-11-03T21:40:27+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php",“message”:“TypeError: Argument 1 passed to OC\Log\ExceptionSerializer::editTrace() must be of the type array, null given, called in /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php on line 106 at /var/www/nextcloud.tdomeet.de/lib/private/Log/ExceptionSerializer.php#94”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko”,“version”:“17.0.0.9”}

All permissions are set so 775 and apache:apache

Note: nextcloud works with the sqlite database but not with mysql…

Maybe someone can help me with that Problem

i just try my playbook with your setup (centos7/mariadb10.4/apache 2.4/php7.4).

i got nextcloud working. login works.

but there are constant errors in the logs.

[PHP] Error: Function ReflectionType::__toString() is deprecated at /var/www/nextcloud/lib/private/AppFramework/Utility/ControllerMethodReflector.php#80

GET /ocs/v2.php/apps/notifications/api/v2/notifications
from 87.135.186.78 by admin at 2019-11-03T22:25:19+00:100:

since php7.4 is not yet in the list of supported php version are you sure you want to continue?

grafik
https://docs.nextcloud.com/server/17/admin_manual/installation/system_requirements.html

if you want to try my playbook. you’ll find all needed settings in the invetory file.
mind the branch: git checkout nextcloud-reloaded

2 Likes

mhh okay. Thanks for testing. I try it with php7.3 :slight_smile:

Hello @Reiner_Nippes worked with php73 :slight_smile: thanks again