Hello,
I am an ownCloud user since a while (this project is really awesome!), and I decided recently to close my old Debian 8/ownCloud 9 VM to create a new CentOS 8 one with fresh install of latest ownCloud.
Unfortunately after submitting the information at the initial ownCloud setup page, I will end up into the internal server error template page…
I also configured SELinux permissions to make sure it’s not causing trouble, tried both nginx and apache servers, without luck. The database gets correctly populated. Webserver log is not talkative.
I tried to provide as much information as possible below. Don’t hesitate to ask anything further if needed. Oh and don’t mind about the 4443 port and www2 directory, it was just set like this because apache and nginx are sitting together inside the VM (I still can “move” owncloud to nginx instance if needed).
Thanks in advance for your help and advices!
Have a great day.
FabZ
Steps to reproduce
- Make a fresh installation of ownCloud
- Open the webpage and fill the form to complete the initial setup
Expected behaviour
Should display the ownCloud main page
Actual behaviour
Displays the ownCloud “internal server error” page
Server configuration
Operating system: CentOS 8
Web server: tried both nginx 1.14.1 and apache 2.4.37
Database: PostgreSQL 14
PHP version: 7.4.26
ownCloud version: (see ownCloud admin page) 10.8.0
Updated from an older ownCloud or fresh install: fresh install
Where did you install ownCloud from: official repository / yum install owncloud-complete-files
Signing status (ownCloud 9.0 and above):
The content of config/config.php:
{
“system”: {
“updatechecker”: false,
“instanceid”: “oca7zmvvnved”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“myhomeserver:4443”
],
“datadirectory”: “/var/www2/owncloud/data”,
“overwrite.cli.url”: “myhomeserver:4443/owncloud”,
“dbtype”: “pgsql”,
“version”: “10.8.0.4”,
“dbname”: “ownclouddb”,
“dbhost”: “localhost:5432”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “UTC”,
“apps_paths”: [
{
“path”: “/var/www2/owncloud/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www2/owncloud/apps-external”,
“url”: “/apps-external”,
“writable”: true
}
],
“installed”: true,
“maintenance”: false
}
}
List of activated apps:
Enabled:
- activity:
- Version: 2.6.1
- Path: /var/www2/owncloud/apps/activity
- comments:
- Version: 0.3.0
- Path: /var/www2/owncloud/apps/comments
- configreport:
- Version: 0.2.0
- Path: /var/www2/owncloud/apps/configreport
- dav:
- Version: 0.6.0
- Path: /var/www2/owncloud/apps/dav
- federatedfilesharing:
- Version: 0.5.0
- Path: /var/www2/owncloud/apps/federatedfilesharing
- federation:
- Version: 0.1.0
- Path: /var/www2/owncloud/apps/federation
- files:
- Version: 1.5.2
- Path: /var/www2/owncloud/apps/files
- files_external:
- Version: 0.8.0
- Path: /var/www2/owncloud/apps/files_external
- files_mediaviewer:
- Version: 1.0.4
- Path: /var/www2/owncloud/apps/files_mediaviewer
- files_pdfviewer:
- Version: 0.12.2
- Path: /var/www2/owncloud/apps/files_pdfviewer
- files_sharing:
- Version: 0.14.0
- Path: /var/www2/owncloud/apps/files_sharing
- files_texteditor:
- Version: 2.3.1
- Path: /var/www2/owncloud/apps/files_texteditor
- files_trashbin:
- Version: 0.9.1
- Path: /var/www2/owncloud/apps/files_trashbin
- files_versions:
- Version: 1.3.0
- Path: /var/www2/owncloud/apps/files_versions
- firstrunwizard:
- Version: 1.2.0
- Path: /var/www2/owncloud/apps/firstrunwizard
- market:
- Version: 0.6.1
- Path: /var/www2/owncloud/apps/market
- notifications:
- Version: 0.5.4
- Path: /var/www2/owncloud/apps/notifications
- provisioning_api:
- Version: 0.5.0
- Path: /var/www2/owncloud/apps/provisioning_api
- systemtags:
- Version: 0.3.0
- Path: /var/www2/owncloud/apps/systemtags
- templateeditor:
- Version: 0.4.0
- Path: /var/www2/owncloud/apps/templateeditor
- updatenotification:
- Version: 0.2.1
- Path: /var/www2/owncloud/apps/updatenotification
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Brave 1.32.115 (Chromium 96.0.4664.93) x64
Operating system: Windows 11
Logs
Web server error log
[Sat Dec 11 09:08:38.019725 2021] [mpm_event:notice] [pid 131549:tid 139999418489152] AH00489: Apache/2.4.37 (centos) OpenSSL/1.1.1k configured – resuming normal operations
[Sat Dec 11 09:08:38.019753 2021] [core:notice] [pid 131549:tid 139999418489152] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
ownCloud log (data/owncloud.log)
{“reqId”:“YbRpvO2Ebh6PxfGyPgvESQAAAMo”,“level”:3,“time”:“2021-12-11T09:05:00+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/owncloud/index.php",“message”:“Undefined index: dbconnectionstring at /var/www2/owncloud/lib/private/Setup/AbstractDatabase.php#82”}
{“reqId”:“YbRpzO2Ebh6PxfGyPgvESgAAAMs”,“level”:3,“time”:“2021-12-11T09:05:16+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files/",“message”:“Exception: {“Exception”:“OCP\\Session\\Exceptions\\SessionNotAvailableException”,“Message”:”",“Code”:0,“Trace”:"#0 \/var\/www2\/owncloud\/lib\/private\/Session\/CryptoSessionData.php(161): OC\\Session\\Internal->getId()\n#1 \/var\/www2\/owncloud\/lib\/private\/User\/Session.php(764): OC\\Session\\CryptoSessionData->getId()\n#2 \/var\/www2\/owncloud\/lib\/base.php(457): OC\\User\\Session->invalidateSessionToken()\n#3 \/var\/www2\/owncloud\/lib\/base.php(592): OC::initSession()\n#4 \/var\/www2\/owncloud\/lib\/base.php(1070): OC::init()\n#5 \/var\/www2\/owncloud\/index.php(53): require_once(’\/var\/www2\/owncl…’)\n#6 {main}",“File”:"\/var\/www2\/owncloud\/lib\/private\/Session\/Internal.php",“Line”:130}"}
{“reqId”:“YbRqDu2Ebh6PxfGyPgvESwAAAM0”,“level”:3,“time”:“2021-12-11T09:06:22+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files/",“message”:“Exception: {“Exception”:“OCP\\Session\\Exceptions\\SessionNotAvailableException”,“Message”:”",“Code”:0,“Trace”:"#0 \/var\/www2\/owncloud\/lib\/private\/Session\/CryptoSessionData.php(161): OC\\Session\\Internal->getId()\n#1 \/var\/www2\/owncloud\/lib\/private\/User\/Session.php(764): OC\\Session\\CryptoSessionData->getId()\n#2 \/var\/www2\/owncloud\/lib\/base.php(457): OC\\User\\Session->invalidateSessionToken()\n#3 \/var\/www2\/owncloud\/lib\/base.php(592): OC::initSession()\n#4 \/var\/www2\/owncloud\/lib\/base.php(1070): OC::init()\n#5 \/var\/www2\/owncloud\/index.php(53): require_once(’\/var\/www2\/owncl…’)\n#6 {main}",“File”:"\/var\/www2\/owncloud\/lib\/private\/Session\/Internal.php",“Line”:130}"}
{“reqId”:“ELa929ee9TskWDSlnIDt”,“level”:3,“time”:“2021-12-11T09:08:05+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“Undefined index: SERVER_SOFTWARE at /var/www2/owncloud/apps/configreport/lib/ReportDataCollector.php#260”}
{“reqId”:“ELa929ee9TskWDSlnIDt”,“level”:3,“time”:“2021-12-11T09:08:05+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“Undefined index: HTTP_HOST at /var/www2/owncloud/apps/configreport/lib/ReportDataCollector.php#261”}
{“reqId”:“vfXEFKYdo7KLcIiSolsd”,“level”:3,“time”:“2021-12-11T09:09:11+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“Undefined index: SERVER_SOFTWARE at /var/www2/owncloud/apps/configreport/lib/ReportDataCollector.php#260”}
{“reqId”:“vfXEFKYdo7KLcIiSolsd”,“level”:3,“time”:“2021-12-11T09:09:11+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“Undefined index: HTTP_HOST at /var/www2/owncloud/apps/configreport/lib/ReportDataCollector.php#261”}
{“reqId”:“YbRrGqZvNW@uRjbI0gvpSgAAAJM”,“level”:3,“time”:“2021-12-11T09:10:50+00:00”,“remoteAddr”:“myip”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/apps/files/",“message”:“Exception: {“Exception”:“OCP\\Session\\Exceptions\\SessionNotAvailableException”,“Message”:”",“Code”:0,“Trace”:"#0 \/var\/www2\/owncloud\/lib\/private\/Session\/CryptoSessionData.php(161): OC\\Session\\Internal->getId()\n#1 \/var\/www2\/owncloud\/lib\/private\/User\/Session.php(764): OC\\Session\\CryptoSessionData->getId()\n#2 \/var\/www2\/owncloud\/lib\/base.php(457): OC\\User\\Session->invalidateSessionToken()\n#3 \/var\/www2\/owncloud\/lib\/base.php(592): OC::initSession()\n#4 \/var\/www2\/owncloud\/lib\/base.php(1070): OC::init()\n#5 \/var\/www2\/owncloud\/index.php(53): require_once(’\/var\/www2\/owncl…’)\n#6 {main}",“File”:"\/var\/www2\/owncloud\/lib\/private\/Session\/Internal.php",“Line”:130}"}
Browser log
a) Console log:
index.php:1 GET myhomeserver:4443/owncloud/index.php 500 (Internal Server Error)
jquery-migrate.min.j…d3a8d2d77c0b6bcc4:2 JQMIGRATE: Migrate is installed, version 1.4.0
b) Response log:
Request URL: myhomeserver:4443/owncloud/index.php
Request Method: GET
Status Code: 500 Internal Server Error
Remote Address: myip:4443
Referrer Policy: strict-origin-when-cross-origin
Connection: close
Content-Type: text/html; charset=UTF-8
Date: Sat, 11 Dec 2021 10:08:15 GMT
Server: Apache/2.4.37 (centos) OpenSSL/1.1.1k
Set-Cookie: oca7zmvvnved=6cejr0mnr38mlh3k1prlgaitsd; path=/owncloud; secure; HttpOnly; SameSite=Strict
Set-Cookie: oca7zmvvnved=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/owncloud
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Transfer-Encoding: chunked
X-Powered-By: PHP/7.4.26
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Cache-Control: no-cache
Connection: keep-alive