Not working after installation: The server encountered an internal error and was unable to complete your request

Steps to reproduce

  1. Install from console or
  2. install from web

Expected behaviour

Need working owncloud server

Actual behaviour

Error on the web interface:

Internal Server Error

The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times and include the technical details below in your report.

More details can be found in the server log.

Technical details

  • Remote Address: 192.168.1.19
  • Request ID: xS7riW5IO0keMQwrltKi

Server configuration

Operating system: Centos 8.4:

Web server: Nginx 1.21

Database: MySQL 8

PHP version: 7.4.6

ownCloud version: 10.8 (see ownCloud admin page)

Updated from an older ownCloud or fresh install: New installation

Where did you install ownCloud from: https://download.owncloud.org/community/owncloud-10.8.0.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.

>>>>Not possible to login<<<<<<
{"reqId":"xS7riW5IO0keMQwrltKi","level":3,"time":"2021-11-13T17:55:31+00:00","remoteAddr":"192.168.1.19","user":"--","app":"index","method":"GET","url":"\/","message":"Exception: {\"Exception\":\"OCP\\\\Session\\\\Exceptions\\\\SessionNotAvailableException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Session\\\/CryptoSessionData.php(161): OC\\\\Session\\\\Internal->getId()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/User\\\/Session.php(764): OC\\\\Session\\\\CryptoSessionData->getId()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(457): OC\\\\User\\\\Session->invalidateSessionToken()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(592): OC::initSession()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(1070): OC::init()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(53): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Session\\\/Internal.php\",\"Line\":130}"}

The content of config/config.php:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "\/var\/www\/html\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbtype": "mysql",
        "version": "10.8.0.4",
        "dbname": "owncloud_db",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/owncloud\/apps-external",
                "url": "\/apps-external",
                "writable": true
            }
        ],
        "installed": true,
        "instanceid": "oc91wg6sipya"
    }
}

List of activated apps:

Enabled:
  - comments:
    - Version: 0.3.0
    - Path: /var/www/html/owncloud/apps/comments
  - configreport:
    - Version: 0.2.0
    - Path: /var/www/html/owncloud/apps/configreport
  - dav:
    - Version: 0.6.0
    - Path: /var/www/html/owncloud/apps/dav
  - federatedfilesharing:
    - Version: 0.5.0
    - Path: /var/www/html/owncloud/apps/federatedfilesharing
  - federation:
    - Version: 0.1.0
    - Path: /var/www/html/owncloud/apps/federation
  - files:
    - Version: 1.5.2
    - Path: /var/www/html/owncloud/apps/files
  - files_external:
    - Version: 0.8.0
    - Path: /var/www/html/owncloud/apps/files_external
  - files_mediaviewer:
    - Version: 1.0.4
    - Path: /var/www/html/owncloud/apps/files_mediaviewer
  - files_sharing:
    - Version: 0.14.0
    - Path: /var/www/html/owncloud/apps/files_sharing
  - files_trashbin:
    - Version: 0.9.1
    - Path: /var/www/html/owncloud/apps/files_trashbin
  - files_versions:
    - Version: 1.3.0
    - Path: /var/www/html/owncloud/apps/files_versions
  - firstrunwizard:
    - Version: 1.2.0
    - Path: /var/www/html/owncloud/apps/firstrunwizard
  - market:
    - Version: 0.6.1
    - Path: /var/www/html/owncloud/apps/market
  - notifications:
    - Version: 0.5.4
    - Path: /var/www/html/owncloud/apps/notifications
  - provisioning_api:
    - Version: 0.5.0
    - Path: /var/www/html/owncloud/apps/provisioning_api
  - systemtags:
    - Version: 0.3.0
    - Path: /var/www/html/owncloud/apps/systemtags
  - updatenotification:
    - Version: 0.2.1
    - Path: /var/www/html/owncloud/apps/updatenotification
Disabled:
  - encryption:
    - Path: /var/www/html/owncloud/apps/encryption
  - external:
    - Path: /var/www/html/owncloud/apps/external
  - user_external:
    - Path: /var/www/html/owncloud/apps/user_external

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

Are you using encryption: I using https ptotocol yes/no

Client configuration

Browser: Chrome 95

Operating system: Windows 10

Logs

Web server error log

no erorr messages

ownCloud log (data/owncloud.log)

{"reqId":"xS7riW5IO0keMQwrltKi","level":3,"time":"2021-11-13T17:55:31+00:00","remoteAddr":"192.168.1.19","user":"--","app":"index","method":"GET","url":"\/","message":"Exception: {\"Exception\":\"OCP\\\\Session\\\\Exceptions\\\\SessionNotAvailableException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Session\\\/CryptoSessionData.php(161): OC\\\\Session\\\\Internal->getId()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/User\\\/Session.php(764): OC\\\\Session\\\\CryptoSessionData->getId()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(457): OC\\\\User\\\\Session->invalidateSessionToken()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(592): OC::initSession()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(1070): OC::init()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(53): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#6 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Session\\\/Internal.php\",\"Line\":130}"}

Browser log

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


a) The javascript console log
b) The network log 
GET https://owncloud.home.local/ 500 (Internal Server Error)
jquery-migrate.min.js?v=aca3755dd82ad5f849eb71dd47a0a961:2 JQMIGRATE: Migrate is installed, version 1.4.0
c) ...

Hi Gib_adm,

this is most likely due to wrong permissions to the PHP sessions directory. When I searched this forum for Search results for 'SessionNotAvailableException' - ownCloud Central I found this result:

Is this helpful for you?

1 Like

Yes, it works! Thank you very much!

1 Like

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