Can't login in browser since 10.5 upgrade but owncloud app (Windows, MacOS, Android) work fine

Internet searches on the error I am seeing in syslog have yielded nothing. It fails on getting path info

Steps to reproduce

  1. Try to login via the web interface

Expected behaviour

I should be able to login

Actual behaviour

Getting ‘Internal Server Error’

Server configuration

Operating system:
Ubuntu Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-118-generic x86_64)
Web server:
Apache 2

PHP version:
PHP 7.2.24-0ubuntu0.18.04.7
ownCloud version: (see ownCloud admin page)
Updated from an older ownCloud or fresh install:
Where did you install ownCloud from: Release

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
paste the results into and puth the link here.
"system": {
    "updatechecker": false,
    "instanceid": "ocskpeoape18",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [ -- external ips removed 
    "datadirectory": "\/var\/www\/owncloud\/data",
    "overwrite.cli.url": "",
    "dbtype": "mysql",
    "version": "",
    "logtimezone": "UTC",
    "installed": true,
    "maintenance": false,
    "dbname": "owncloud",
    "dbhost": "",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "theme": "",
    "loglevel": 1,
    "htaccess.RewriteBase": "\/owncloud",
    "log_type": "syslog"

sudo -u www-data php occ app:list
  - activity: 2.5.4
  - configreport: 0.2.0
  - dav: 0.6.0
  - federatedfilesharing: 0.5.0
  - federation: 0.1.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_mediaviewer: 1.0.3
  - files_pdfviewer: 0.11.2
  - files_sharing: 0.13.0
  - files_texteditor: 2.3.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - market: 0.6.0
  - notifications: 0.5.2
  - richdocuments: 2.4.1
  - systemtags: 0.3.0
  - templateeditor: 0.4.0
  - updatenotification: 0.2.1
  - comments
  - encryption
  - external
  - firstrunwizard
  - gallery
  - onlyoffice
  - provisioning_api
  - user_external

Are you using external storage, if yes which one: local/smb/sftp/…
Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';

Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration


Operating system:


Web server error log

[--][index][GET][/login] Exception: {"Exception":"Exception","Message":"The requested uri(\/login) cannot be processed by the script '\/owncloud\/index.php')","Code":0,"Trace":"#0 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Request.php(689): OC\\AppFramework\\Http\\Request->getRawPathInfo()\n#1 \/var\/www\/owncloud\/lib\/base.php(860): OC\\AppFramework\\Http\\Request->getPathInfo()\n#2 \/var\/www\/owncloud\/index.php(54): OC::handleRequest()\n#3 {main}","File":"\/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Request.php","Line":661}

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Could you please provide more details about how you did the upgrade ?
Also could you please provide the ownCloud logs+webserver logs ?
"The internal server error"should be somewhere there


1 Like

This was how I fixed my issue and I was also getting a “500 internal server error”, but there was some other good info in the webserver logs, session not available exceptions.

But this solution I found online but I don’t remember who to attribute it to but I saved it for later reference. See below as it was a directory permissions issue. We were running Centos7 and nginx for a server.

Owncloud php-fpm broken. “500 internal server error”
I found the issue and wanted to post in case someone else runs into
this. After looking up the error in the log file
“SessionNotAvailableException” it lead me to wrong permissions on the
php sessions folder. When php was updated it reset the permissions on
the session folder which in CentOS 7 is located at:
/var/lib/php/session. By default the permission was root:apache so I
changed it root:nginx. This solved the issue and owncloud is back in

1 Like


Thanks for reading,

I did the upgrade using apt-get upgrade which fetched the package from the owncloud directory.

In terms of logs, owncloud is configured to use syslog. I have had a log apache logs but neither of
-rw-r----- 1 root adm 255 Dec 14 00:05 error.log
-rw-r----- 1 root adm 196609 Dec 14 22:24 other_vhosts_access.log

show any content when the error occurs.

it seems it’s resolved. I’ve made this change is config.php as
‘htaccess.RewriteBase’ => ‘/’,

and then ran
sudo -u www-data php ./occ maintenance:update:htaccess

still couldn’t login using

but it gave me the idea of trying
which works.

I would have expected the change to htaccess.RewriteBase to allow login from https://ip.adress/login

Thanks for any further clue


To allow login from https://ip.adress/login you need to make sure that your apache2 config file for owncloud is also pointing to https://ip.adress/login, and in your config.php you have that address as trusted address:

Part of config.php file, as you can see i use a few different domains and they all work.

‘trusted_domains’ =>
array (
0 => ‘’,
1 => ‘’,
2 => ‘’,
3 => ‘’,
4 => ‘cloud’,
5 => ‘’,

an the apache config file ( mine is called : owncloud.conf locates in etc/apahce2/sites-enabled) looks like this:

Alias /owncloud “/var/www/owncloud/”

<Directory /var/www/owncloud/>
Options +FollowSymlinks
AllowOverride All

Dav off

SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud

ServerAdmin DocumentRoot /var/www/owncloud/

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.+)\.xx\.info$
RewriteRule ^(.*)$$1 [R=302,L]

ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common

Normal HTTPS config for default site

<VirtualHost *:443>
SSLEngine On
SSLCACertificatePath /etc/apache2/ssl/MasterCerts/
SSLCACertificateFile /etc/apache2/ssl/MasterCerts/
SSLCertificateFile /etc/apache2/ssl/MasterCerts/287692268.crt
SSLCertificateKeyFile /etc/apache2/ssl/MasterCerts/server.key

Header always set Strict-Transport-Security “max-age=15552000; includeSubDomains”

DocumentRoot /var/www/owncloud/

 ErrorLog ${APACHE_LOG_DIR}/
 CustomLog ${APACHE_LOG_DIR}/ combined

Hence I can run it with both urls or

hope this helps

Thanks a lot for all this, very helpful.