[Owncloud] This page isn't working. www.yourdomain.com is currently unable to handle this request. HTTP ERROR 500

Expected behaviour

Owncloud login page must show and can login

Actual behaviour

This page isn’t working. www.mydomain.com can’t currently handle this request.
HTTP ERROR 500

Server configuration

Operating system: CentOs 7

Web server:
Apache httpd

Database:
MariaDB

PHP version:
7.2.34

ownCloud version:
10.0.8

Error Log (httpd):
[Sun Jul 11 21:02:03.217999 2021] [lbmethod_heartbeat:notice] [pid 2532] AH02282: No slotmem from mod_heartmonitor
[Sun Jul 11 21:02:03.238022 2021] [mpm_prefork:notice] [pid 2532] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34 configured – resuming normal operations
[Sun Jul 11 21:02:03.238074 2021] [core:notice] [pid 2532] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Sun Jul 11 21:03:42.789167 2021] [mpm_prefork:notice] [pid 2532] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jul 11 21:03:43.861412 2021] [suexec:notice] [pid 2561] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jul 11 21:03:43.893927 2021] [lbmethod_heartbeat:notice] [pid 2561] AH02282: No slotmem from mod_heartmonitor
[Sun Jul 11 21:03:43.914669 2021] [mpm_prefork:notice] [pid 2561] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34 configured – resuming normal operations
[Sun Jul 11 21:03:43.914713 2021] [core:notice] [pid 2561] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

What have I done?
When I go the error first time, I tried to update the PHP version 7.3 and it said Owncloud X is not compatible with php 7.3. So I reinstalled the php version 7.2.34 and got that kind of issue. Help me

You tried to install an outdated version, go with the current 10.7 from Download Server Packages - ownCloud and php 7.3 or even 7.4

2 Likes

Thank you I will try

Hi, after I upgraded to the Owncloud 10.7 and PHP 7.4.19, I still got the HTTP Error 599.

Here is the error log for httpd:
[Wed Jul 14 12:16:26.478075 2021] [mpm_prefork:notice] [pid 2561] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Jul 14 12:16:28.024619 2021] [suexec:notice] [pid 10574] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jul 14 12:16:28.059275 2021] [lbmethod_heartbeat:notice] [pid 10574] AH02282: No slotmem from mod_heartmonitor
[Wed Jul 14 12:16:28.090896 2021] [mpm_prefork:notice] [pid 10574] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.19 configured – resuming normal operations
[Wed Jul 14 12:16:28.090950 2021] [core:notice] [pid 10574] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

Please provide your owncloud.log as it was requested in the issue template. HTTP 5xx errors are application errors, so they would not show up in the webserver log.

Look for strings like ‘Exception’, most probably this shows the issue.

1 Like

Thank you for your response. This is my owncloud log.

{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install script”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install repair steps”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:1,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Attempting to install shipped app: files_mediaviewer”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install script”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install repair steps”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:1,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Attempting to install shipped app: files_pdfviewer”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install script”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install repair steps”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:1,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Attempting to install shipped app: files_texteditor”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install script”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install repair steps”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:1,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Attempting to install shipped app: templateeditor”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install script”}
{“reqId”:“8ZdM50yI9Wcby6zdvJ72”,“level”:0,“time”:“2021-07-14T05:45:42+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“Running app install repair steps”}

I am sorry for wrong providing log information. Please check that is include “Exception”

{“reqId”:“YOQR5ZFOO1Be9lEF96t8tQAAAAM”,“level”:3,“time”:“2021-07-06T08:18:45+00:00”,“remoteAddr”:“8.25.96.69”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/index.php",“message”:“Exception: {“Exception”:“Error”,“Message”:“Call to undefined function OC\\App\\simplexml_load_file()”,“Code”:0,“Trace”:”#0 \/var\/www\/html\/owncloud\/lib\/private\/legacy\/app.php(650): OC\\App\\InfoParser->parse(’\/var\/www\/html\/o…’)\n#1 \/var\/www\/html\/owncloud\/lib\/private\/legacy\/app.php(623): OC_App::getAppInfo(’\/var\/www\/html\/o…’, true)\n#2 \/var\/www\/html\/owncloud\/lib\/private\/App\/AppManager.php(618): OC_App::getAppVersionByPath(’\/var\/www\/html\/o…’)\n#3 \/var\/www\/html\/owncloud\/lib\/private\/App\/AppManager.php(567): OC\\App\\AppManager->getAppVersionByPath(’\/var\/www\/html\/o…’)\n#4 \/var\/www\/html\/owncloud\/lib\/private\/App\/AppManager.php(510): OC\\App\\AppManager->findAppInDirectories(‘files’)\n#5 \/var\/www\/html\/owncloud\/lib\/private\/legacy\/app.php(575): OC\\App\\AppManager->getAppPath(‘files’)\n#6 \/var\/www\/html\/owncloud\/lib\/private\/legacy\/app.php(117): OC_App::getAppPath(‘files’)\n#7 \/var\/www\/html\/owncloud\/lib\/base.php(579): OC_App::loadApps(Array)\n#8 \/var\/www\/html\/owncloud\/lib\/base.php(997): OC::init()\n#9 \/var\/www\/html\/owncloud\/index.php(54): require_once(’\/var\/www\/html\/o…’)\n#10 {main}",“File”:"\/var\/www\/html\/owncloud\/lib\/private\/App\/InfoParser.php",“Line”:41}"}

My best guess is, that you omit to install some required php modules.

1 Like

Thank you. The following are the PHP modules that installed on my server.

[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

Hi I am sorry for the busy. Can I get some suggestion for the issue? Thank you.

You did not provide any module versions so the list above is not helpful.

In general, when it comes to php:

  • Use the very same version for the apache module and the CLI version
  • You must install the php modules for the required version (e.g. php74-php-xml for php 7.4)

I’d recommend using php 7.4 from the epel repository. There are various guides on the web, such as How To Install PHP 7.4, 7.3 & 7.2 on CentOS 7 - TecAdmin how to get this repository working

2 Likes

Thank you for your reply. Now, I am using PHP 7.4 and installed all the modules. But the issue still persist. Have you found any trace in below owncloud.log?

This is an outdated log with your previous configuration. Please send recent Exceptions from when you tried logging in

BTW, how about using a current version, instead of fiddling with an outdated one?

1 Like

Sorry for infromation. The issue was not solved with current version.

“date”: “2021-07-16T03:38:02+00:00”,
“parentId”: null,
“id”: “0d2bd6794c3e5b1ba472f1a709def1bb60f0ff1a756076.33780691”,
“class”: “Exception”,
“message”: “Could not acquire a shared lock on the config file /var/www/html/owncloud/config/config.php”,
“stacktrace”: [
{
“file”: “/var/www/html/owncloud/lib/private/Config.php”,
“line”: 64,
“function”: “readData”,
“class”: “OC\Config”
},
{
“file”: “/var/www/html/owncloud/lib/base.php”,
“line”: 135,
“function”: “__construct”,
“class”: “OC\Config”
},
{
“file”: “/var/www/html/owncloud/lib/base.php”,
“line”: 523,
“function”: “initPaths”,
“class”: “OC”
},
{
“file”: “/var/www/html/owncloud/lib/base.php”,
“line”: 1058,
“function”: “init”,
“class”: “OC”
},
{
“file”: “/var/www/html/owncloud/index.php”,
“line”: 53,
“function”: “require_once”
}
]
}
{
“date”: “2021-07-16T03:38:02+00:00”,
“parentId”: null,
“id”: “0d2bd6794c3e5b1ba472f1a709def1bb60f0ff1a756500.09963608”,
“class”: “Error”,
“message”: “Call to a member function getLogger() on null”,
“stacktrace”: []
}
{
“date”: “2021-07-16T03:38:07+00:00”,
“parentId”: null,
“id”: “ababdc44617a29ee37e077a4480e649860f0ff1fcc1842.87697902”,
“class”: “Exception”,
“message”: “Could not acquire a shared lock on the config file /var/www/html/owncloud/config/config.php”,
“stacktrace”: [
{
“file”: “/var/www/html/owncloud/lib/private/Config.php”,
“line”: 64,
“function”: “readData”,
“class”: “OC\Config”
},
{
“file”: “/var/www/html/owncloud/lib/base.php”,
“line”: 135,
“function”: “__construct”,
“class”: “OC\Config”
},
{
“file”: “/var/www/html/owncloud/lib/base.php”,
“line”: 523,
“function”: “initPaths”,
“class”: “OC”
},
{
“file”: “/var/www/html/owncloud/lib/base.php”,
“line”: 1058,
“function”: “init”,
“class”: “OC”
},
{
“file”: “/var/www/html/owncloud/status.php”,
“line”: 34,
“function”: “require_once”
}
]

I think this may help to you. If anything you need, please let me know.
Thank you for your help. Appreciate it.

Well, this is a new one. Is the file config.php present and accessible?

1 Like

Yes Sir. The config.php is present in the respective directory. But the permission is rw-r----- and owned by “root”. Is it because of this?

This is my config file.

<?php $CONFIG = array ( 'instanceid' => 'ocn6yq5mjmgh', 'passwordsalt' => '1gZUXN8xhS77ElB6uG2KAhc+I9ZfJX', 'secret' => 'YMTpoiY+O4MXrT0ci7HzHneJ139Ghwy4BgMfp3IiDVFIgpqd', 'trusted_domains' => array ( 0 => 'server IP', 1 => 'www.example.com', ), 'datadirectory' => '/var/www/html/owncloud/data', 'overwrite.cli.url' => 'https://www.example.com', 'dbtype' => 'sqlite3', 'version' => '10.7.0.4', 'logtimezone' => 'UTC', 'installed' => true, 'loglevel' => 2, 'maintenance' => true, );

YES! It must be as all other files owned by user apache[1] and be writable.

[1] AFAIK, on CentOS the web-server runner is apache. But please verify this.

1 Like