Skip to content

Internal Server Error with Swift v3 #12893

@charliemaiors

Description

@charliemaiors

I've installed Nextcloud on a VM running CentOS (I've also tried using Ubuntu), after first installation I've added the Object Storage (for swift v3) configuration, restarted httpd (or apache2 on ubuntu), relogged in and got a 500 (see attachment below)

Steps to reproduce

  1. Install Nextcloud and basic configuration
  2. Add a Swift v3 Object Storage to Configuration
  3. Restart httpd (or apache2)

Expected behaviour

Work as after first configuration

Actual behaviour

After login got internal server error
image

Server configuration

Operating system:

Web server:

Database:
Mariadb 10.3
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
14.0.4
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:

Signing status:

fail

List of activated apps:

App list no app

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "owncloud.lab2.ovh"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "14.0.4.2",
        "overwrite.cli.url": "http:\/\/owncloud.lab2.ovh\/nextcloud",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpsecure": "tls",
        "mail_smtpport": "587",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "objectstore": {
            "class": "OC\\Files\\ObjectStore\\Swift",
            "arguments": {
                "autocreate": false,
                "user": {
                    "name": "admin",
                    "password": "password",
                    "domain": {
                        "name": "default"
                    }
                },
                "scope": {
                    "project": {
                        "name": "admin",
                        "domain": {
                            "name": "default"
                        }
                    }
                },
                "tenantName": "admin",
                "serviceName": "swift",
                "region": "RegionOne",
                "url": "http:\/\/url:5000\/v3",
                "bucket": "nextcloud"
            }
        },
        "maintenance": false
    }
}

Are you using external storage, if yes which one: swift v3

Are you using encryption: no

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

Client configuration

Browser: Chrome

Operating system: Archlinux

Logs

Web server error log

Web server error log
nothing

Nextcloud log (data/nextcloud.log)

Nextcloud log
{
    "app": "index",
    "level": 3,
    "message": {
        "Code": 0,
        "CustomMessage": "--",
        "Exception": "OCP\\Files\\NotFoundException",
        "File": "/var/www/html/nextcloud/lib/private/legacy/helper.php",
        "Line": 544,
        "Message": "",
        "Trace": [
            {
                "args": [
                    "/",
                    false
                ],
                "class": "OC_Helper",
                "file": "/var/www/html/nextcloud/apps/files/lib/Controller/ViewController.php",
                "function": "getStorageInfo",
                "line": 128,
                "type": "::"
            },
            {
                "args": [],
                "class": "OCA\\Files\\Controller\\ViewController",
                "file": "/var/www/html/nextcloud/apps/files/lib/Controller/ViewController.php",
                "function": "getStorageInfo",
                "line": 157,
                "type": "->"
            },
            {
                "args": [
                    "",
                    "",
                    null,
                    false
                ],
                "class": "OCA\\Files\\Controller\\ViewController",
                "file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "function": "index",
                "line": 166,
                "type": "->"
            },
            {
                "args": [
                    {
                        "__class__": "OCA\\Files\\Controller\\ViewController"
                    },
                    "index"
                ],
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
                "function": "executeController",
                "line": 99,
                "type": "->"
            },
            {
                "args": [
                    {
                        "__class__": "OCA\\Files\\Controller\\ViewController"
                    },
                    "index"
                ],
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "file": "/var/www/html/nextcloud/lib/private/AppFramework/App.php",
                "function": "dispatch",
                "line": 118,
                "type": "->"
            },
            {
                "args": [
                    "ViewController",
                    "index",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "_route": "files.view.index"
                    }
                ],
                "class": "OC\\AppFramework\\App",
                "file": "/var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
                "function": "main",
                "line": 47,
                "type": "::"
            },
            {
                "args": [
                    {
                        "_route": "files.view.index"
                    }
                ],
                "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
                "function": "__invoke",
                "type": "->"
            },
            {
                "args": [
                    {
                        "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
                    },
                    {
                        "_route": "files.view.index"
                    }
                ],
                "file": "/var/www/html/nextcloud/lib/private/Route/Router.php",
                "function": "call_user_func",
                "line": 297
            },
            {
                "args": [
                    "/apps/files/"
                ],
                "class": "OC\\Route\\Router",
                "file": "/var/www/html/nextcloud/lib/base.php",
                "function": "match",
                "line": 987,
                "type": "->"
            },
            {
                "args": [],
                "class": "OC",
                "file": "/var/www/html/nextcloud/index.php",
                "function": "handleRequest",
                "line": 42,
                "type": "::"
            }
        ]
    },
    "method": "GET",
    "remoteAddr": "xxxx",
    "reqId": "XAlTA3HdGsSnyRAaoRZH8AAAAAY",
    "time": "2018-12-06T16:49:07+00:00",
    "url": "/nextcloud/index.php/apps/files/",
    "user": "admin",
    "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36",
    "version": "14.0.4.2"
}

Browser log

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

500 on /nextcloud/index.php/apps/files

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions