Server: AppPathNotFoundException: Could not find path for spreed

Created on 2 Mar 2019  路  15Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Not exactly sure why or how it appears, I just see/find this error in my nextcloud.log No errors in nginx.log or PHP log or visible issues with installation.

Expected behaviour

Error doesn't appear

Actual behaviour

Error | index | OCP\App\AppPathNotFoundException:聽Could not find path for spreed

Server configuration

Ubuntu 18.04
Nginx
Mysql/MariaDB
PHP-FPM 7.02

Nextcloud 15.0.4

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh Install

Where did you install Nextcloud from:
Nextcloud Website (zip package)

Signing status:


Signing status

No errors have been found.

List of activated apps:


App list


Enabled:
  - accessibility: 1.1.0
  - activity: 2.8.2
  - cloud_federation_api: 0.1.0
  - comments: 1.5.0
  - dav: 1.8.1
  - federatedfilesharing: 1.5.0
  - federation: 1.5.0
  - files: 1.10.0
  - files_automatedtagging: 1.5.0
  - files_pdfviewer: 1.4.0
  - files_retention: 1.4.0
  - files_rightclick: 0.11.0
  - files_sharing: 1.7.0
  - files_texteditor: 2.7.0
  - files_trashbin: 1.5.0
  - files_versions: 1.8.0
  - files_videoplayer: 1.4.0
  - firstrunwizard: 2.4.0
  - gallery: 18.2.0
  - jsloader: 1.0.2
  - logreader: 2.0.0
  - lookup_server_connector: 1.3.0
  - nextcloud_announcements: 1.4.0
  - notifications: 2.3.0
  - oauth2: 1.3.0
  - password_policy: 1.5.0
  - previewgenerator: 2.0.0
  - provisioning_api: 1.5.0
  - registration: 0.4.5
  - serverinfo: 1.5.0
  - sharebymail: 1.5.0
  - support: 1.0.0
  - survey_client: 1.3.0
  - systemtags: 1.5.0
  - theming: 1.6.0
  - twofactor_backupcodes: 1.4.1
  - unsplash: 1.1.3
  - updatenotification: 1.5.0
  - workflowengine: 1.5.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - user_ldap

Nextcloud configuration:


Config report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.4.0",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "simpleSignUpLink.shown": false,
        "customclient_desktop": "",
        "customclient_android": "",
        "customclient_ios": "",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": ***REMOVED SENSITIVE VALUE***
        },
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Movie",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\OpenDocument"
        ]
    }
}

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

Are you using encryption: No

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

Client configuration

Browser:
Chrome

Operating system:
Windows 10

Nextcloud log (data/nextcloud.log)


Nextcloud log

OCP\App\AppPathNotFoundException: Could not find path for spreed
/home/dataonair.com/core/Controller/SvgController.php - line 99:

OC\App\AppManager->getAppPath("spreed")

/home/dataonair.com/lib/private/AppFramework/Http/Dispatcher.php - line 166:

OC\Core\Controller\SvgController->getSvgFromApp("spreed", "app-dark", "000")

/home/dataonair.com/lib/private/AppFramework/Http/Dispatcher.php - line 99:

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "getSvgFromApp")

/home/dataonair.com/lib/private/AppFramework/App.php - line 118:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "getSvgFromApp")

/home/dataonair.com/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main("OC\\Core\\C ... r", "getSvgFromApp", OC\AppFramew ... {}, { app: "spre ... "})

<<closure>>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ app: "spre ... "})

/home/dataonair.com/lib/private/Route/Router.php - line 297:

call_user_func(OC\AppFramew ... {}, { app: "spre ... "})

/home/dataonair.com/lib/base.php - line 987:

OC\Route\Router->match("/svg/spreed/app-dark")

/home/dataonair.com/index.php - line 42:

OC::handleRequest()

0. Needs triage bug needs info stale

Most helpful comment

Solved:
The Chrome Browser Extension Dark Reader has an effect on that. I have reproduced it 5 times.
But later I see it again. Upps, I played around with another Browser.

All 15 comments

@danxuliu @nickvergessen :)

@shubhank008 have you tried removing the app and installing it again?

Same error and detail message except two line numbers.
I'm using nextcloud 16.0.0 docker.
I've never installed an app named spreed.

@soulawaker nextcloud talk is called spreed :)
Could you do a list of the files in the apps directory?

@skjnldsv Also, talk was not installed. I paste a list in /var/www/html/apps. Is it correct place that you meant?

/var/www/html/apps # ls -l
total 160
drwxr-xr-x   10 www-data root          4096 May  6 10:49 accessibility
drwxr-xr-x   10 www-data root          4096 May  6 10:49 activity
drwxr-xr-x    5 www-data root          4096 Jan 14 14:24 admin_audit
drwxr-xr-x    4 www-data root          4096 May  6 10:49 cloud_federation_api
drwxr-xr-x    8 www-data root          4096 May  6 10:49 comments
drwxr-xr-x   10 www-data root          4096 Jan 14 14:24 dav
drwxr-xr-x   10 www-data root          4096 Jan 14 14:24 encryption
drwxr-xr-x   10 www-data root          4096 Jan 14 14:24 federatedfilesharing
drwxr-xr-x   10 www-data root          4096 Jan 14 14:24 federation
drwxr-xr-x   11 www-data root          4096 May  6 10:49 files
drwxr-xr-x   11 www-data root          4096 May  6 10:49 files_external
drwxr-xr-x    9 www-data root          4096 Jan 14 14:24 files_pdfviewer
drwxr-xr-x    7 www-data root          4096 May  6 10:49 files_rightclick
drwxr-xr-x   10 www-data root          4096 May  6 10:49 files_sharing
drwxr-xr-x    9 www-data root          4096 May  6 10:49 files_texteditor
drwxr-xr-x    9 www-data root          4096 May  6 10:49 files_trashbin
drwxr-xr-x    8 www-data root          4096 May  6 10:49 files_versions
drwxr-xr-x    6 www-data root          4096 May  6 10:49 files_videoplayer
drwxr-xr-x    9 www-data root          4096 May  6 10:49 firstrunwizard
drwxr-xr-x   12 www-data root          4096 May  6 10:49 gallery
drwxr-xr-x   12 www-data root          4096 May  6 10:49 logreader
drwxr-xr-x    5 www-data root          4096 Jan 14 14:24 lookup_server_connector
drwxr-xr-x    8 www-data root          4096 May  6 10:49 nextcloud_announcements
drwxr-xr-x    9 www-data root          4096 May  6 10:49 notifications
drwxr-xr-x    8 www-data root          4096 May  6 10:49 oauth2
drwxr-xr-x   10 www-data root          4096 May  6 10:49 password_policy
drwxr-xr-x    9 www-data root          4096 May  6 10:49 privacy
drwxr-xr-x    6 www-data root          4096 Jan 14 14:24 provisioning_api
drwxr-xr-x    6 www-data root          4096 May  6 10:49 recommendations
drwxr-xr-x    9 www-data root          4096 May  6 10:49 serverinfo
drwxr-xr-x   10 www-data root          4096 Jan 14 14:24 sharebymail
drwxr-xr-x   10 www-data root          4096 Jan 14 14:24 support
drwxr-xr-x    9 www-data root          4096 May  6 10:49 survey_client
drwxr-xr-x   10 www-data root          4096 May  6 10:49 systemtags
drwxr-xr-x    9 www-data root          4096 Jan 14 14:24 theming
drwxr-xr-x    9 www-data root          4096 Jan 14 14:24 twofactor_backupcodes
drwxr-xr-x    9 www-data root          4096 May  6 10:49 updatenotification
drwxr-xr-x   12 www-data root          4096 Jan 14 14:24 user_ldap
drwxr-xr-x    6 www-data root          4096 May  6 10:49 viewer
drwxr-xr-x    8 www-data root          4096 Jan 14 14:24 workflowengine

COud you post the full log entry?
The one you copied is truncated :)

@skjnldsv I pasted a recent entry. I'm using a latest nextcloud docker version.

/var/www/html/data # tail -1 nextcloud.log
{
    "reqId": "<req id>",
    "level": 3,
    "time": "2019-07-10T02:39:26+00:00",
    "remoteAddr": "<remote address>",
    "user": "<user name>",
    "app": "index",
    "method": "GET",
    "url": "/svg/spreed/app-dark?color=fff&v=1",
    "message": {
        "Exception": "OCP\\App\\AppPathNotFoundException",
        "Message": "Could not find path for spreed",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/core/Controller/SvgController.php",
                "line": 99,
                "function": "getAppPath",
                "class": "OC\\App\\AppManager",
                "type": "->",
                "args": [
                    "spreed"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 166,
                "function": "getSvgFromApp",
                "class": "OC\\Core\\Controller\\SvgController",
                "type": "->",
                "args": [
                    "spreed",
                    "app-dark",
                    "fff"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 99,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\SvgController"
                    },
                    "getSvgFromApp"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 126,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\SvgController"
                    },
                    "getSvgFromApp"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php",
                "line": 47,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OC\\Core\\Controller\\SvgController",
                    "getSvgFromApp",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "app": "spreed",
                        "fileName": "app-dark",
                        "_route": "core.Svg.getSvgFromApp"
                    }
                ]
            },
            {
                "function": "__invoke",
                "class": "OC\\AppFramework\\Routing\\RouteActionHandler",
                "type": "->",
                "args": [
                    {
                        "app": "spreed",
                        "fileName": "app-dark",
                        "_route": "core.Svg.getSvgFromApp"
                    }
                ]
            },
            {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 297,
                "function": "call_user_func",
                "args": [
                    {
                        "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
                    },
                    {
                        "app": "spreed",
                        "fileName": "app-dark",
                        "_route": "core.Svg.getSvgFromApp"
                    }
                ]
            },
            {
                "file": "/var/www/html/lib/base.php",
                "line": 975,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/svg/spreed/app-dark"
                ]
            },
            {
                "file": "/var/www/html/index.php",
                "line": 42,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/var/www/html/lib/private/App/AppManager.php",
        "Line": 316,
        "CustomMessage": "--"
    },
    "userAgent": "<user agent>",
    "version": "16.0.3.0"
}

Hum, someone is requesting this icon but you do not have it installed.
When does this error happens? On which page does it trigger? :)

It seems that all page movements trigger them.

Same Issue on my Instance. At first directly after I had installed the Notes App. If I recognize an event that triggers this, I will come back.

Solved:
The Chrome Browser Extension Dark Reader has an effect on that. I have reproduced it 5 times.
But later I see it again. Upps, I played around with another Browser.

@Buntstich Wow, you are right. Thanks for sharing! The Dark Reader plugin has been causing this. I've disabled it on my nextcloud only and enabled Accessiblity => Dark theme(Beta).

Accessibility should be driven by OS like Mojave. I think shortly soon we don't need Browser extensions and also not the dark theme. Might be important for the Accessibility App development.

Addition: Dark Reader on Firefox has the same effect.

Let's close then I guess?

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings