External Storage Wiindows file server

Nextcloud version (eg, 29.0.5): 30.0.0
Operating system and version (eg, Ubuntu 24.04): Linux 6.8.0-45-generic x86_64
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 8.3): 8.3.6

The issue you are facing:
I have a Windows Server 2019 file server with shares on it. I added external storage and used SMB/CIFS and entered the global credentials. I added a user to one of the shares. When you sign in as the user they can see the external storage, browse it, see the files, but when you try to download a file the server logs an error No App in Context and won’t download. Also not able to edit in nextcloud.

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

  1. Add external storage
  2. Sign in as user to access external storage
  3. Attempt to download file

The output of your Nextcloud log in Admin > Logging:

 RuntimeException image not found: image:apps/whiteboard.svg webroot:/nextcloud serverroot:/var/www/html/nextcloud

    /var/www/html/nextcloud/apps/firstrunwizard/lib/Notification/Notifier.phpLine 205

    OC\URLGenerator->imagePath()

    /var/www/html/nextcloud/apps/firstrunwizard/lib/Notification/Notifier.phpLine 105

    OCA\FirstRunWizard\Notification\Notifier->setAppHintDetails()

    /var/www/html/nextcloud/lib/private/Notification/Manager.phpLine 337

    OCA\FirstRunWizard\Notification\Notifier->prepare()

    /var/www/html/nextcloud/apps/notifications/lib/Controller/EndpointController.phpLine 103

    OC\Notification\Manager->prepare()

    /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.phpLine 208

    OCA\Notifications\Controller\EndpointController->listNotifications()

    /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.phpLine 114

    OC\AppFramework\Http\Dispatcher->executeController()

    /var/www/html/nextcloud/lib/private/AppFramework/App.phpLine 161

    OC\AppFramework\Http\Dispatcher->dispatch()

    /var/www/html/nextcloud/lib/private/Route/Router.phpLine 302

    OC\AppFramework\App::main()

    /var/www/html/nextcloud/ocs/v1.phpLine 43

    OC\Route\Router->match()

    /var/www/html/nextcloud/ocs/v2.phpLine 7

    undefinedundefinedrequire_once(
      "/var/www/html/nextcloud/ocs/v1.php"
    )

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Can you post the error that is generated when you attempt the download? (The stack trace you posted appears to be unrelated).

And what happens in the front-end? What does the user experience? Is there an error there?

For completeness, it would also be helpful if you posted your config (occ config:list system).

When the end user tries to Edit with Nextcloud office you just get the Loading Filename with the circle above it. It never loads. Tried with xls and doc files. PDF just opens a blank screen.
When they try to download the following errors are generated


error no app in context Runtime Exception image not found image:apps/whiteboard.svg
That error is generated multiple times (four times)
There is also Error webdav ServiceUnavailable Could not open file

In Chrome when you try to download, under downloads you see Site wasn’t available, Firefox never shows the download.

Formatted Entry

[webdav] Error: Could not open file
GET /nextcloud/remote.php/dav/files/JTBrown/Daane%20X%20Drive/Almond/RPAES97.doc
from 10.2.2.1 by JTBrown at Oct 9, 2024, 8:22:52 AM

Raw Entry

{“reqId”:“NlIYyWsi0v6dz85cZyZ5”,“level”:3,“time”:“2024-10-09T15:22:52+00:00”,“remoteAddr”:“10.2.2.1”,“user”:“JTBrown”,“app”:“webdav”,“method”:“GET”,“url”:“/nextcloud/remote.php/dav/files/JTBrown/Daane%20X%20Drive/Almond/RPAES97.doc”,“message”:“Could not open file”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0”,“version”:“30.0.0.14”,“exception”:{“Exception”:“Sabre\DAV\Exception\ServiceUnavailable”,“Message”:“Could not open file”,“Code”:0,“Trace”:[{“file”:“/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php”,“line”:85,“function”:“get”,“class”:“OCA\DAV\Connector\Sabre\File”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpGet”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:253,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/dav/lib/Server.php”,“line”:370,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:19,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/html/nextcloud/remote.php”,“line”:146,“args”:[“/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php”,“Line”:463,“message”:“Could not open file”,“exception”:,“CustomMessage”:“Could not open file”},“id”:“67069fdd0ccc2”}

output of occ config:list system

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "10.2.2.249",
            "nextcloud.uckare.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.0.14",
        "overwrite.cli.url": "http:\/\/localhost\/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,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpsecure": "tls",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "onlyoffice",
            "richdocumentscode"
        ]
    }
}