Installation internal error

Steps to reproduce

  1. Upload via FTP
  2. Enter Mysql information
  3. Internal error

Expected behaviour

it should work. I´m searching since two days for a answer all around google but couldn´t find anything

Actual behaviour

Internal error

config

<?php
$CONFIG = array (
'instanceid' => 'oc3fzp59kkjn',
'passwordsalt' => 'MIf1QSRUr68bkQVQachGZcHN1e/hLe',
'secret' => 'iE1YJQo+NgFEv0zhkPN8uwPoqm5xAT7XUzG4rltP8nMLcFDe',
'trusted_domains' => 
array (
0 => 'cloud.weiss-dbs.de',
),
'datadirectory' => '/html/v2/data',
'overwrite.cli.url' => 'https://cloud.weiss-dbs.de',
'dbtype' => 'mysql',
'version' => '10.4.1.3',
'dbname' => '***',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '***',
'dbpassword' => '***',
'logtimezone' => 'UTC',
'apps_paths' => 
array (
0 => 
array (
'path' => '/var/www/web73/html/v2/apps',
'url' => '/apps',
  'writable' => false,
),
1 => 
array (
  'path' => '/var/www/web73/html/v2/apps-external',
  'url' => '/apps-external',
  'writable' => true,
),
),
'installed' => true,
);

… data/owncloud.log

{“reqId”:“ONGuD29VPF7jpIDryUrf”,“level”:3,“time”:“2020-07-30T07:39:17+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/login?redirect_url=%252Findex.php%252Fapps%252Ffiles%252F",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“cSKF3PevGNMcfnskP9GM”,“level”:3,“time”:“2020-07-30T07:41:10+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“cSKF3PevGNMcfnskP9GM”,“level”:3,“time”:“2020-07-30T07:41:10+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“Undefined index: dbconnectionstring at /var/www/web73/html/v2/lib/private/Setup/AbstractDatabase.php#82”}
{“reqId”:“CBjYY9BdthYVRqzUbTGe”,“level”:3,“time”:“2020-07-30T07:42:31+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“CBjYY9BdthYVRqzUbTGe”,“level”:3,“time”:“2020-07-30T07:42:31+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“Undefined index: dbconnectionstring at /var/www/web73/html/v2/lib/private/Setup/AbstractDatabase.php#82”}
{“reqId”:“2xfPZ1IA9cvLvepv1wra”,“level”:3,“time”:“2020-07-30T07:44:32+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“2xfPZ1IA9cvLvepv1wra”,“level”:3,“time”:“2020-07-30T07:44:32+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“Undefined index: dbconnectionstring at /var/www/web73/html/v2/lib/private/Setup/AbstractDatabase.php#82”}
{“reqId”:“2xfPZ1IA9cvLvepv1wra”,“level”:3,“time”:“2020-07-30T07:44:32+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“mysql.setup”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“Specific user creation failed: An exception occurred while executing ‘SELECT user FROM mysql.user WHERE user=?’ with params [“oc_NWITT”]:\n\nSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user ‘web73’@‘localhost’ for table ‘user’”}
{“reqId”:“nOsyH9Gszz2cRvSaHXK8”,“level”:3,“time”:“2020-07-30T07:44:44+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“nOsyH9Gszz2cRvSaHXK8”,“level”:3,“time”:“2020-07-30T07:44:44+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“Undefined index: dbconnectionstring at /var/www/web73/html/v2/lib/private/Setup/AbstractDatabase.php#82”}
{“reqId”:“tdPf9QG5KE8OJC5Pbu04”,“level”:3,“time”:“2020-07-30T07:45:11+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“tdPf9QG5KE8OJC5Pbu04”,“level”:3,“time”:“2020-07-30T07:45:11+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“POST”,“url”:"/index.php/index.php",“message”:“Undefined index: dbconnectionstring at /var/www/web73/html/v2/lib/private/Setup/AbstractDatabase.php#82”}
{“reqId”:“cjgyiCiIToMxIVdZcxzZ”,“level”:3,“time”:“2020-07-30T07:45:14+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“DAMOzBvbuQgb9RA1H88o”,“level”:3,“time”:“2020-07-30T07:45:14+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/login?redirect_url=%252Findex.php%252Fapps%252Ffiles%252F",“message”:“session_name(): Cannot change session name when session is active at /var/www/web73/html/v2/lib/private/Session/Internal.php#46”}
{“reqId”:“DAMOzBvbuQgb9RA1H88o”,“level”:3,“time”:“2020-07-30T07:45:14+00:00”,“remoteAddr”:“31.25.153.205”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/index.php/login?redirect_url=%252Findex.php%252Fapps%252Ffiles%252F",“message”:“Exception: {“Exception”:“OCP\\Session\\Exceptions\\SessionNotAvailableException”,“Message”:“Session has been closed - no further changes to the session are allowed”,“Code”:0,“Trace”:”#0 \/var\/www\/web73\/html\/v2\/lib\/private\/Session\/Memory.php(52): OC\\Session\\Memory->validateSession()\n#1 \/var\/www\/web73\/html\/v2\/lib\/private\/Security\/CSRF\/TokenStorage\/SessionStorage.php(63): OC\\Session\\Memory->set(‘requesttoken’, ‘vzAINRlh\/BjK67p…’)\n#2 \/var\/www\/web73\/html\/v2\/lib\/private\/Security\/CSRF\/CsrfTokenManager.php(57): OC\\Security\\CSRF\\TokenStorage\\SessionStorage->setToken(‘vzAINRlh\/BjK67p…’)\n#3 \/var\/www\/web73\/html\/v2\/lib\/public\/Util.php(511): OC\\Security\\CSRF\\CsrfTokenManager->getToken(*** sensitive parameters replaced ***)\n#4 \/var\/www\/web73\/html\/v2\/lib\/private\/AppFramework\/Middleware\/Security\/SecurityMiddleware.php(141): OCP\\Util::callRegister()\n#5 \/var\/www\/web73\/html\/v2\/lib\/private\/AppFramework\/Middleware\/MiddlewareDispatcher.php(88): OC\\AppFramework\\Middleware\\Security\\SecurityMiddleware->beforeController(Object(OC\\Core\\Controller\\LoginController), ‘showLoginForm’)\n#6 \/var\/www\/web73\/html\/v2\/lib\/private\/AppFramework\/Http\/Dispatcher.php(83): OC\\AppFramework\\Middleware\\MiddlewareDispatcher->beforeController(Object(OC\\Core\\Controller\\LoginController), ‘showLoginForm’)\n#7 \/var\/www\/web73\/html\/v2\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Core\\Controller\\LoginController), ‘showLoginForm’)\n#8 \/var\/www\/web73\/html\/v2\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main(‘LoginController’, ‘showLoginForm’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#9 \/var\/www\/web73\/html\/v2\/lib\/private\/Route\/Router.php(342): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#10 \/var\/www\/web73\/html\/v2\/lib\/base.php(916): OC\\Route\\Router->match(’\/login’)\n#11 \/var\/www\/web73\/html\/v2\/index.php(54): OC::handleRequest()\n#12 {main}",“File”:"\/var\/www\/web73\/html\/v2\/lib\/private\/Session\/Memory.php",“Line”:120}"}

This looks like a shared hosting platform to me, unfortunately it can be quite difficult to get it to support ownCloud.
I see some issues regarding session storage in the exception, and I noticed the following in the response headers:

Set-Cookie: PHPSESSID=5cdb537ed7ca12645364930a1d0875c6; path=/
Set-Cookie: PHPSESSID=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
Set-Cookie: oc_sessionPassphrase=<very long random string>; path=/; secure; Http

While usually there is only one line like so:

Set-Cookie: oc_sessionPassphrase=<very long random string>; path=/; secure; Http

This is most likely some setting in the hosting platform, so I would recommend getting in touch with the support team of your hoster.

1 Like