Internal error after login

Steps to reproduce

1.call url http://www.mcgastronomie.com/cloud
2.enter username and password (does’nt matter if it’s existing) and press submit
3.

Expected behaviour

If a correct username password combination was entered: show owncloud dashboard
if a invalid username/password combination was entered: show error message anf go back

Actual behaviour

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error appears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Technical details
Remote Address: xxx.xxx.xxx.xxx
Request ID: djP4rVYXIJlo9CJx2ECe

Server configuration

Ubuntu 18.04.2 LTS

Web server:
httpd-2.4.395.7.25

Database:
mysql 5.7.25

PHP version:
php-7.2.10

ownCloud version: (see ownCloud admin page)
Array
(
[installed] => 1
[maintenance] =>
[needsDbUpgrade] =>
[version] => 10.1.1.1
[versionstring] => 10.1.1
[edition] => Community
[productname] => ownCloud
)

Updated from an older ownCloud or fresh install:
configuration file taken from owncloud versikon 10.0.10

Where did you install ownCloud from:
owncloud download site, file owncloud-10.1.1.tar.bz2

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:
{
“system”: {
“instanceid”: “ocxspfmgzw6i”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“213.95.167.20”,
mcgastronomie.com”,
www.mcgastronomie.com
],
“datadirectory”: “/d2/MCgastroCloud”,
“overwrite.cli.url”: “https://www.mcgastronomie.com/cloud”,
“dbtype”: “mysql”,
“version”: “10.1.1.1”,
“dbname”: “mcgastronomie”,
“dbhost”: “127.0.0.1”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “CET”,
“loglevel”: 0,
“installed”: true,
“logdateformat”: “d.m.Y H:i:s”,
“csrf.disabled”: true,
“theme”: “”,
“maintenance”: false,
“htaccess.RewriteBase”: “/cloud”
}
}

List of activated apps:

> If you have access to your command line run e.g.:
> Enabled:
>   - calendar: 1.6.2
>   - comments: 0.3.0
>   - configreport: 0.1.2
>   - contacts: 1.5.5
>   - dav: 0.4.0
>   - federatedfilesharing: 0.3.1
>   - federation: 0.1.0
>   - files: 1.5.2
>   - files_external: 0.7.1
>   - files_sharing: 0.11.0
>   - files_trashbin: 0.9.1
>   - files_versions: 1.3.0
>   - files_videoplayer: 0.9.9
>   - firstrunwizard: 1.1.1
>   - market: 0.3.0
>   - notifications: 0.4.1
>   - provisioning_api: 0.5.0
>   - systemtags: 0.3.0
>   - updatenotification: 0.2.1
>   - wallpaper: 0.1
> Disabled:
>   - encryption
>   - external
>   - user_external


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

**Are you using encryption:** yes/no
no

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


### Client configuration
Chrome as well as firefox

**Operating system:**
Linux Ubuntu 16.04.5 LTS

### Logs
#### Web server error log
> 84.39.70.219 - - [23/Apr/2019:12:54:11 +0200] "GET /cloud/core/img/loading-small.gif HTTP/1.1" 200 1124 "https://www.mcgastronomie.com/cloud/core/css/icons.css?v=095f40f71f1bb623ce7c1491a181891d" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:11 +0200] "POST /cloud/index.php/login HTTP/1.1" 500 9696 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/vendor/select2/select2.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 19223 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/apps.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 15461 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/global.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 954 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/tooltip.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 2329 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/share.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 5003 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/jquery.ocdialog.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 2987 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/styles.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 22022 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/multiselect.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 2473 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/mobile.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 3075 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/vendor/jquery-ui/themes/base/jquery-ui.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 32269 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/jquery-ui-fixes.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 3630 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/apps/files_versions/css/versions.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 1261 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/apps/files_videoplayer/css/style.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 7452 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/apps/firstrunwizard/css/colorbox.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 2214 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/apps/wallpaper/css/login.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 133 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/apps/firstrunwizard/css/firstrunwizard.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 743 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/inputs.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 9331 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/header.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 8015 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/icons.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 9183 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/fonts.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 728 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:12 +0200] "GET /cloud/core/css/fixes.css?v=095f40f71f1bb623ce7c1491a181891d HTTP/1.1" 200 357 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
> 84.39.70.219 - - [23/Apr/2019:12:54:13 +0200] "GET /cloud/core/img/favicon.ico HTTP/1.1" 200 4958 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"


#### ownCloud log (data/owncloud.log)
> {"reqId":"srBamPhpepBEJjLPBqDb","level":0,"time":"23.04.2019 11:54:12","remoteAddr":"84.39.70.219","user":"--","app":"OC\\User\\Session::login","method":"POST","url":"\/cloud\/index.php\/login","message":"regenerating session id for uid null, password empty"}
> {"reqId":"srBamPhpepBEJjLPBqDb","level":0,"time":"23.04.2019 11:54:12","remoteAddr":"84.39.70.219","user":"--","app":"OC\\Authentication\\Token\\DefaultTokenProvider::getToken","method":"POST","url":"\/cloud\/index.php\/login","message":"token 0f6bc3407bbe928dc2b77f89caea2b8d2d780b80851cfb3cc8374c9dabe2361346cfef78ea9cf32152eb386d74f2a78fb94062ea542bebdad104ec03959a53ed does not exist"}
> {"reqId":"srBamPhpepBEJjLPBqDb","level":0,"time":"23.04.2019 11:54:12","remoteAddr":"84.39.70.219","user":"--","app":"OC\\User\\Session::validateToken","method":"POST","url":"\/cloud\/index.php\/login","message":"token 0f6bc3407bbe928dc2b77f89caea2b8d2d780b80851cfb3cc8374c9dabe2361346cfef78ea9cf32152eb386d74f2a78fb94062ea542bebdad104ec03959a53ed, not found"}
> {"reqId":"srBamPhpepBEJjLPBqDb","level":2,"time":"23.04.2019 11:54:12","remoteAddr":"84.39.70.219","user":"--","app":"core","method":"POST","url":"\/cloud\/index.php\/login","message":"Login failed: '' (Remote IP: '84.39.70.219')"}
> {"reqId":"srBamPhpepBEJjLPBqDb","level":3,"time":"23.04.2019 11:54:12","remoteAddr":"84.39.70.219","user":"--","app":"index","method":"POST","url":"\/cloud\/index.php\/login","message":"Exception: {\"Exception\":\"InvalidArgumentException\",\"Message\":\"$email cannot be empty\",\"Code\":0,\"Trace\":\"#0 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/core\\\/Controller\\\/LoginController.php(205): OC\\\\User\\\\Manager->getByEmail(NULL)\\n#1 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OC\\\\Core\\\\Controller\\\\LoginController->tryLogin(*** sensitive parameters replaced ***)\\n#2 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OC\\\\Core\\\\Controller\\\\LoginController), 'tryLogin')\\n#3 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OC\\\\Core\\\\Controller\\\\LoginController), 'tryLogin')\\n#4 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('LoginController', 'tryLogin', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#5 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/private\\\/Route\\\/Router.php(342): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#6 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/base.php(909): OC\\\\Route\\\\Router->match('\\\/login')\\n#7 \\\/d2\\\/httpd\\\/web\\\/cloud\\\/index.php(54): OC::handleRequest()\\n#8 {main}\",\"File\":\"\\\/d2\\\/httpd\\\/web\\\/cloud\\\/lib\\\/private\\\/User\\\/Manager.php\",\"Line\":467}"}


#### Browser log

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

a) The javascript console log

Uncaught ReferenceError: oc_appconfig is not defined
at shareconfigmodel.js?v=095f40f71f1bb623ce7c1491a181891d:24
at shareconfigmodel.js?v=095f40f71f1bb623ce7c1491a181891d:99
js.js?v=095f40f71f1bb623ce7c1491a181891d:198 Uncaught TypeError: Cannot read property ‘substring’ of undefined
at Object.filePath (js.js?v=095f40f71f1bb623ce7c1491a181891d:198)
at viewer.js?v=095f40f71f1bb623ce7c1491a181891d:4

b) The network log
you don’t want me to integrate 3MB of network log…

Hey,

this issue looks similar to the one discussed in:

The requested part is usually sufficient. :wink: