INTERNAL SERVER ERROR after occ upgrade

Steps to reproduce

  1. Hi I have installed Owncloud 10.7 Version in my new server and I have imported the database from my previous server after that I have done occ upgrade command it was worked perfectly but I don’t know why I am getting the error

Expected behaviour

It should open my owncloud login

Actual behaviour

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.

Server configuration

Operating system: Ubuntu 18.04

Web server: apache2

Database: MYSQL

**PHP version:**PHP 7.3

ownCloud version: 10.6

Updated from an older ownCloud or fresh install: Fresh Install and DB has been migrated from old one

Where did you install ownCloud from: Owncloud.com

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 

No errors have been found.


**The content of config/config.php:**
 {
    "system": {
        "instanceid": "ocwe9t5zga3k",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.12"
        ],
        "datadirectory": "\/var\/www\/html\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/192.168.1.12",
        "dbtype": "mysql",
        "version": "10.6.0.5",
        "dbname": "owncloud",
        "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
            }
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "installed": true,
        "theme": "",
        "loglevel": 2,
        "maintenance": false
    }
}


**List of activated apps:**

APP LIst:
Enabled:

  • activity: 2.6.0
  • announcementcenter: 1.2.1
  • comments: 0.3.0
  • configreport: 0.2.0
  • customgroups: 0.6.0
  • dav: 0.6.0
  • external: 1.4.0
  • federatedfilesharing: 0.5.0
  • federation: 0.1.0
  • files: 1.5.2
  • files_external: 0.7.1
  • files_external_ftp: 0.2.1
  • files_mediaviewer: 1.0.3
  • files_pdfviewer: 0.11.2
  • files_sharing: 0.14.0
  • files_texteditor: 2.3.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • firstrunwizard: 1.2.0
  • market: 0.6.0
  • notifications: 0.5.2
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • updatenotification: 0.2.1
  • user_external: 0.6.0
    Disabled:
  • admin_audit
  • encryption
  • enterprise_key
  • files_antivirus
  • files_classifier
  • files_external_dropbox
  • files_ldap_home
  • files_lifecycle
  • firewall
  • graphapi
  • guests
  • oauth2
  • openidconnect
  • password_policy
  • ransomware_protection
  • sharepoint
  • systemtags_management
  • templateeditor
  • theme-enterprise
  • user_ldap
  • user_shibboleth
  • windows_network_drive
  • wopi
  • workflow


### Logs
#### Web server error log

Insert your webserver log here

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.14.183
  • Request ID: CIVhSFXoW8FL4g6kIxtd
#### ownCloud log (data/owncloud.log)
{"reqId":"M8WQUFMvkUYVX6s47toA","level":3,"time":"2022-02-01T16:56:00+00:00","remoteAddr":"11.11.11.67","user":"owncloud","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(134): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(208): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, NULL)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(341): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(915): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":585}"}
{"reqId":"V8ld9r3xcjf1nJjmuDqi","level":3,"time":"2022-02-01T16:56:00+00:00","remoteAddr":"11.11.11.67","user":"owncloud","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(134): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(208): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, NULL)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(341): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(915): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":585}"}
{"reqId":"IjCLQYK3jo400C3W2yUG","level":3,"time":"2022-02-01T16:56:57+00:00","remoteAddr":"11.11.11.67","user":"owncloud","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(134): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(208): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, NULL)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(341): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(915): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":585}"}
{"reqId":"dZEtj5JZp1kByKIXJgCX","level":3,"time":"2022-02-01T16:56:57+00:00","remoteAddr":"11.11.11.67","user":"owncloud","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(134): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(208): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, NULL)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(341): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(915): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":585}"}
{"reqId":"yfEZItHEvVu9e8Q5GkAA","level":3,"time":"2022-02-01T16:56:58+00:00","remoteAddr":"11.11.11.67","user":"owncloud","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(134): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(208): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, NULL)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(341): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(915): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":585}"}
{"reqId":"rFtOwJ4mgzCtmOWt1yyK","level":3,"time":"2022-02-01T16:56:58+00:00","remoteAddr":"11.11.11.67","user":"owncloud","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(134): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files\\\/lib\\\/Controller\\\/ViewController.php(208): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(153): OCA\\\\Files\\\\Controller\\\\ViewController->index('', '', NULL, NULL)\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(85): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(341): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(915): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/helper.php\",\"Line\":585}"}

I’d never dare to combine a migration with an upgrade.

However, something is missing in your new instance. To locate the problem, I’d recommend disabling all the apps down to a minimal ownCloud.

1 Like

I have done disabling all the app list but still the same issue is going around

I took the liberty to enclose the log output in your post with ``` so it is more readable.

Perhaps the error message indicates that some storage can’t be found? I would recommend to double check the datadirectory is in the same spot as on the old server. Otherwise you’ll have to go through the following article:

1 Like

@eneubauer Let me try this and I will update to you.

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