After upgrading php to 7.3.33 and owncloud to 10.9.1 cannot login any longer (Internal server error)

Steps to reproduce

  1. Login to main page results in an “Internal server error”.
  2. Login is not possible
  3. Using different web browsers does not change things

Expected behaviour

Login to the owncloud instance should be possible

Actual behaviour

Login is not possible.

**Interner Serverfehler
Der Server hat einen internen Fehler und konnte Ihre Anfrage nicht vervollständigen.

Bitte wende dich an den Serveradministrator, sollte dieser Fehler mehrfach auftreten und füge deiner Anfrage die unten stehenden technischen Details bei.

Weitere Details können im Serverprotokoll gefunden werden.**

Server configuration

Operating system: openSuse Linux

Web server: Apache/2.4.52 (Linux/SUSE)

Database: 10.5.9-MariaDB MariaDB

PHP version: 7.3.33

ownCloud version: 10.9.1.2

Updated from an older ownCloud or fresh install: Updated from 10.8.0

Where did you install ownCloud from: rpm package (openSUSE repository)

Signing status (ownCloud 9.0 and above):

Signing in is not possible

**The content of config/config.php:**

{
    "system": {
        "updatechecker": false,
        "trusted_domains": [
            "localhost",
            "localhost"
        ],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "\/public\/owncloud_data",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtype": "mysql",
        "version": "10.9.1.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Berlin",
        "installed": true,
        "instanceid": "ocladtdxrgqr",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "loglevel": 1,
        "theme": "",
        "maintenance": false,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpport": "587",
        "integrity.excluded.files": [
            ".htaccess"
        ],
        "redis": {
            "host": "127.0.0.1",
            "port": "6380"
        },
        "allow_user_to_change_mail_address": ""
    }
}


List of activated apps:

Enabled:

  • activity:
    • Version: 2.6.1
    • Path: /srv/www/htdocs/owncloud/apps/activity
  • comments:
    • Version: 0.3.0
    • Path: /srv/www/htdocs/owncloud/apps/comments
  • configreport:
    • Version: 0.2.0
    • Path: /srv/www/htdocs/owncloud/apps/configreport
  • dav:
    • Version: 0.7.0
    • Path: /srv/www/htdocs/owncloud/apps/dav
  • encryption:
    • Version: 1.5.1
    • Path: /srv/www/htdocs/owncloud/apps/encryption
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /srv/www/htdocs/owncloud/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /srv/www/htdocs/owncloud/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /srv/www/htdocs/owncloud/apps/files
  • files_external:
    • Version: 0.8.0
    • Path: /srv/www/htdocs/owncloud/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /srv/www/htdocs/owncloud/apps/files_mediaviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /srv/www/htdocs/owncloud/apps/files_sharing
  • files_trashbin:
    • Version: 0.9.1
    • Path: /srv/www/htdocs/owncloud/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /srv/www/htdocs/owncloud/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /srv/www/htdocs/owncloud/apps/firstrunwizard
  • market:
    • Version: 0.6.2
    • Path: /srv/www/htdocs/owncloud/apps/market
  • notifications:
    • Version: 0.5.4
    • Path: /srv/www/htdocs/owncloud/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /srv/www/htdocs/owncloud/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /srv/www/htdocs/owncloud/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /srv/www/htdocs/owncloud/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /srv/www/htdocs/owncloud/apps/updatenotification
      Disabled:
  • admin_audit:
    • Path: /srv/www/htdocs/owncloud/apps/admin_audit
  • announcementcenter:
    • Path: /srv/www/htdocs/owncloud/apps/announcementcenter
  • customgroups:
    • Path: /srv/www/htdocs/owncloud/apps/customgroups
  • enterprise_key:
    • Path: /srv/www/htdocs/owncloud/apps/enterprise_key
  • external:
    • Path: /srv/www/htdocs/owncloud/apps/external
  • files_antivirus:
    • Path: /srv/www/htdocs/owncloud/apps/files_antivirus
  • files_classifier:
    • Path: /srv/www/htdocs/owncloud/apps/files_classifier
  • files_external_dropbox:
    • Path: /srv/www/htdocs/owncloud/apps/files_external_dropbox
  • files_external_ftp:
    • Path: /srv/www/htdocs/owncloud/apps/files_external_ftp
  • files_ldap_home:
    • Path: /srv/www/htdocs/owncloud/apps/files_ldap_home
  • files_lifecycle:
    • Path: /srv/www/htdocs/owncloud/apps/files_lifecycle
  • files_pdfviewer:
    • Path: /srv/www/htdocs/owncloud/apps/files_pdfviewer
  • files_texteditor:
    • Path: /srv/www/htdocs/owncloud/apps/files_texteditor
  • firewall:
    • Path: /srv/www/htdocs/owncloud/apps/firewall
  • graphapi:
    • Path: /srv/www/htdocs/owncloud/apps/graphapi
  • guests:
    • Path: /srv/www/htdocs/owncloud/apps/guests
  • metrics:
    • Path: /srv/www/htdocs/owncloud/apps/metrics
  • oauth2:
    • Path: /srv/www/htdocs/owncloud/apps/oauth2
  • openidconnect:
    • Path: /srv/www/htdocs/owncloud/apps/openidconnect
  • password_policy:
    • Path: /srv/www/htdocs/owncloud/apps/password_policy
  • ransomware_protection:
    • Path: /srv/www/htdocs/owncloud/apps/ransomware_protection
  • sharepoint:
    • Path: /srv/www/htdocs/owncloud/apps/sharepoint
  • systemtags_management:
    • Path: /srv/www/htdocs/owncloud/apps/systemtags_management
  • theme-enterprise:
    • Path: /srv/www/htdocs/owncloud/apps/theme-enterprise
  • user_external:
    • Path: /srv/www/htdocs/owncloud/apps/user_external
  • user_ldap:
    • Path: /srv/www/htdocs/owncloud/apps/user_ldap
  • user_shibboleth:
    • Path: /srv/www/htdocs/owncloud/apps/user_shibboleth
  • web:
    • Path: /srv/www/htdocs/owncloud/apps/web
  • windows_network_drive:
    • Path: /srv/www/htdocs/owncloud/apps/windows_network_drive
  • wopi:
    • Path: /srv/www/htdocs/owncloud/apps/wopi
  • workflow:
    • Path: /srv/www/htdocs/owncloud/apps/workflow

Are you using external storage, if yes which one: no

Are you using encryption: yes

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Edge & Firefox & Iridium

Operating system: Windows 10 & Linux

Logs

Web server error log


[Wed Feb 09 19:32:34.629164 2022] [core:info] [pid 31456] [client 127.0.0.1:63584] AH00128: File does not exist: /srv/www/htdocs/owncloud/core/vendor/underscore/underscore-umd.js.map


ownCloud log (data/owncloud.log)

`{“reqId”:“YgP72fy1zLqi3PafHXUerAAAAAc”,“level”:3,“time”:“2022-02-09T18:37:29+01:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/owncloud/index.php",“message”:“session_name(): Cannot change session name when session is active at /srv/www/htdocs/owncloud/lib/private/Session/Internal.php#46”}
{“reqId”:“YgP72fy1zLqi3PafHXUerQAAAAc”,“level”:3,“time”:“2022-02-09T18:37:29+01:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/owncloud/index.php/login",“message”:“session_name(): Cannot change session name when session is active at /srv/www/htdocs/owncloud/lib/private/Session/Internal.php#46”}
{“reqId”:“YgP72fy1zLqi3PafHXUerQAAAAc”,“level”:3,“time”:“2022-02-09T18:37:29+01:00”,“remoteAddr”:“127.0.0.1”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/owncloud/index.php/login",“message”:“Exception: {“Exception”:“OCP\\Session\\Exceptions\\SessionNotAvailableException”,“Message”:“Session has been closed - no further changes to the session are allowed”,“Code”:0,“Trace”:”#0 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Session\/Memory.php(52): OC\\Session\\Memory->validateSession()\n#1 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Security\/CSRF\/TokenStorage\/SessionStorage.php(63): OC\\Session\\Memory->set(‘requesttoken’, ‘S1QSQ1Wvwug+PFP…’)\n#2 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Security\/CSRF\/CsrfTokenManager.php(59): OC\\Security\\CSRF\\TokenStorage\\SessionStorage->setToken(‘S1QSQ1Wvwug+PFP…’)\n#3 \/srv\/www\/htdocs\/owncloud\/lib\/public\/Util.php(522): OC\\Security\\CSRF\\CsrfTokenManager->getToken(*** sensitive parameters replaced ***)\n#4 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Middleware\/Security\/SecurityMiddleware.php(144): OCP\\Util::callRegister()\n#5 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Middleware\/MiddlewareDispatcher.php(88): OC\\AppFramework\\Middleware\\Security\\SecurityMiddleware->beforeController(Object(OC\\Core\\Controller\\LoginController), ‘showLoginForm’)\n#6 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(86): OC\\AppFramework\\Middleware\\MiddlewareDispatcher->beforeController(Object(OC\\Core\\Controller\\LoginController), ‘showLoginForm’)\n#7 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OC\\Core\\Controller\\LoginController), ‘showLoginForm’)\n#8 \/srv\/www\/htdocs\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main(‘LoginController’, ‘showLoginForm’, Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#9 \/srv\/www\/htdocs\/owncloud\/lib\/private\/Route\/Router.php(344): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke(Array)\n#10 \/srv\/www\/htdocs\/owncloud\/lib\/base.php(927): OC\\Route\\Router->match(’\/login’)\n#11 \/srv\/www\/htdocs\/owncloud\/index.php(54): OC::handleRequest()\n#12 {main}",“File”:"\/srv\/www\/htdocs\/owncloud\/lib\/private\/Session\/Memory.php",“Line”:120}"}``


#### Browser log

GET index.php/login 500 (Internal Server Error)
jquery-migrate.min.js?v=821b54ae0f373a0da9f939fc068b77fb:2 JQMIGRATE: Migrate is installed, version 1.4.0
shareconfigmodel.js?v=821b54ae0f373a0da9f939fc068b77fb:24

   Uncaught ReferenceError: oc_appconfig is not defined
at shareconfigmodel.js?v=821b54ae0f373a0da9f939fc068b77fb:24:33
at shareconfigmodel.js?v=821b54ae0f373a0da9f939fc068b77fb:212:3

(anonym) @ shareconfigmodel.js?v=821b54ae0f373a0da9f939fc068b77fb:24
(anonym) @ shareconfigmodel.js?v=821b54ae0f373a0da9f939fc068b77fb:212
files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1

   Uncaught TypeError: Cannot read properties of undefined (reading 'enabledPreviewProviders')
at Object.473 (files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1:115)
at r (files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1:1585)
at files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1:1823
at files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1:2536

473 @ files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1
r @ files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1
(anonym) @ files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1
(anonym) @ files_mediaviewer_init.js?v=821b54ae0f373a0da9f939fc068b77fb:1
Fehler beim Laden der Quell Zuordnung durch devtools: Der Inhalt für …/owncloud/core/vendor/underscore/underscore-umd.js.map konnte nicht geladen werden: HTTP Fehler: Statuscode 404,net::ERR_HTTP_RESPONSE_CODE_FAILURE

This topic can be closed:

I further investigated and found out that sth. NEEDS to be wrong with php session/s.
So I replaced my apache php.ini with the default php.ini and the error went away.
By replacing I was able to login and now everything goes smoothly.

Difference between modified and default php.ini below

< session.auto_start = 0

session.auto_start = 1
1421c1421
< session.cookie_samesite =


session.cookie_samesite = “None”

Martin.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.