External storage open sharing, then the whole system error when i upload many files into this external storage

hi, i open the sharing of external storage(minio) yesterday.when i upload many files, the nextcloud occures these errors. i need share external storage without system error, how do i do?

[/details]

Nextcloud version (eg, 20.0.5): 27.1.3(docker)
Operating system and version (eg, Ubuntu 20.04): centos 7
Apache or nginx version (eg, Apache 2.4.25): 2.22.1

The issue you are facing:

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

Steps to replicate it:

  1. settings
  2. external storage → choose minio → setting
  3. open share
  4. choose external dir (minio)
  5. upload many files(jpg,jpeg.etc image)

Steps how i fixed it:

  1. settings
  2. external storage → choose minio → setting
  3. close share

The output of your Nextcloud log in Admin > Logging:

[no app in context] 错误: OC\AppFramework\Utility\QueryNotFoundException: Could not resolve externalMountProvider! Class "externalMountProvider" does not exist at <<closure>>

 0. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 142
    OC\AppFramework\Utility\SimpleContainer->resolve("externalMountProvider")
 1. /var/www/html/lib/private/ServerContainer.php line 171
    OC\AppFramework\Utility\SimpleContainer->query("externalMountProvider", true)
 2. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 469
    OC\ServerContainer->query("externalMountProvider", true)
 3. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 65
    OC\AppFramework\DependencyInjection\DIContainer->query("externalMountProvider")
 4. /var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php line 56
    OC\AppFramework\Utility\SimpleContainer->get("externalMountProvider")
 5. <<closure>>
    OC\AppFramework\Bootstrap\FunctionInjector->OC\AppFramework\Bootstrap\{closure}("*** sensitive parameters replaced ***")
 6. /var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php line 45
    array_map(["Closure"], [["ReflectionPar ... "])
 7. /var/www/html/lib/private/AppFramework/Bootstrap/BootContext.php line 50
    OC\AppFramework\Bootstrap\FunctionInjector->injectFn([["OCA\\Files_Sh ... "])
 8. /var/www/html/apps/files_sharing/lib/AppInfo/Application.php line 121
    OC\AppFramework\Bootstrap\BootContext->injectFn([["OCA\\Files_Sh ... "])
 9. /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php line 200
    OCA\Files_Sharing\AppInfo\Application->boot(["OC\\AppFramewo ... "])
10. /var/www/html/lib/private/App/AppManager.php line 437
    OC\AppFramework\Bootstrap\Coordinator->bootApp("files_sharing")
11. /var/www/html/lib/private/App/AppManager.php line 216
    OC\App\AppManager->loadApp("files_sharing")
12. /var/www/html/lib/private/legacy/OC_App.php line 126
    OC\App\AppManager->loadApps(["filesystem"])
13. /var/www/html/lib/private/Files/SetupManager.php line 116
    OC_App::loadApps(["filesystem"])
14. /var/www/html/lib/private/Files/SetupManager.php line 344
    OC\Files\SetupManager->setupBuiltinWrappers()
15. /var/www/html/lib/private/Files/SetupManager.php line 384
    OC\Files\SetupManager->setupRoot()
16. /var/www/html/lib/private/Files/Mount/Manager.php line 95
    OC\Files\SetupManager->setupForPath("/appdata_oce9vmkdz9ez/js/core")
17. /var/www/html/lib/private/Files/View.php line 1370
    OC\Files\Mount\Manager->find("/appdata_oce9vmkdz9ez/js/core")
18. /var/www/html/lib/private/Files/Node/Root.php line 202
    OC\Files\View->getFileInfo("/appdata_oce9vmkdz9ez/js/core", false)
19. <<closure>>
    OC\Files\Node\Root->get("/appdata_oce9vmkdz9ez/js/core")
20. /var/www/html/lib/private/Files/Node/LazyFolder.php line 74
    call_user_func_array([["OC\\Files\\Node\\Root"],"get"], ["appdata_oce9vmkdz9ez/js/core"])
21. /var/www/html/lib/private/Files/Node/LazyFolder.php line 151
    OC\Files\Node\LazyFolder->__call("get", ["appdata_oce9vmkdz9ez/js/core"])
22. /var/www/html/lib/private/Files/AppData/AppData.php line 132
    OC\Files\Node\LazyFolder->get("appdata_oce9vmkdz9ez/js/core")
23. /var/www/html/lib/private/Template/JSCombiner.php line 87
    OC\Files\AppData\AppData->getFolder("core")
24. /var/www/html/lib/private/Template/JSResourceLocator.php line 145
    OC\Template\JSCombiner->process("/var/www/html", "core/js/merged-template-prepend.json", "core")
25. /var/www/html/lib/private/Template/JSResourceLocator.php line 75
    OC\Template\JSResourceLocator->cacheAndAppendCombineJsonIfExist("/var/www/html", "core/js/merged-template-prepend.json")
26. /var/www/html/lib/private/Template/ResourceLocator.php line 73
    OC\Template\JSResourceLocator->doFind("core/js/merged-template-prepend")
27. /var/www/html/lib/private/TemplateLayout.php line 377
    OC\Template\ResourceLocator->find(["core/js/common ... "])
28. /var/www/html/lib/private/TemplateLayout.php line 222
    OC\TemplateLayout::findJavascriptFiles(["core/js/common ... "])
29. /var/www/html/lib/private/legacy/OC_Template.php line 182
    OC\TemplateLayout->__construct("error", "")
30. /var/www/html/lib/private/Template/Base.php line 132
    OC_Template->fetchPage()
31. /var/www/html/lib/private/legacy/OC_Template.php line 331
    OC\Template\Base->printPage()
32. /var/www/html/index.php line 74
    OC_Template::printExceptionErrorPage(["Doctrine\\DBAL\\Exception"], 500)

GET /apps/files/?dir=/154-minio-%E9%87%87%E9%9B%86&fileid=59579
from 125.122.61.234 at 2023-11-15T02:11:03+00:00

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

/var/www/html/config

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

no error

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.

{
    "reqId": "vVNRpvuQfAIYw0t5idGC",
    "level": 3,
    "time": "2023-11-15T02:11:03+00:00",
    "remoteAddr": "125.122.61.234",
    "user": "--",
    "app": "no app in context",
    "method": "GET",
    "url": "/apps/files/?dir=/154-minio-%E9%87%87%E9%9B%86&fileid=59579",
    "message": "Could not boot files_sharing: Could not resolve externalMountProvider! Class \"externalMountProvider\" does not exist",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "version": "27.1.3.2",
    "exception": {
        "Exception": "OC\\AppFramework\\Utility\\QueryNotFoundException",
        "Message": "Could not resolve externalMountProvider! Class \"externalMountProvider\" does not exist",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",
                "line": 142,
                "function": "resolve",
                "class": "OC\\AppFramework\\Utility\\SimpleContainer",
                "type": "->",
                "args": [
                    "externalMountProvider"
                ]
            },
            {
                "file": "/var/www/html/lib/private/ServerContainer.php",
                "line": 171,
                "function": "query",
                "class": "OC\\AppFramework\\Utility\\SimpleContainer",
                "type": "->",
                "args": [
                    "externalMountProvider",
                    true
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php",
                "line": 469,
                "function": "query",
                "class": "OC\\ServerContainer",
                "type": "->",
                "args": [
                    "externalMountProvider",
                    true
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",
                "line": 65,
                "function": "query",
                "class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
                "type": "->",
                "args": [
                    "externalMountProvider"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php",
                "line": 56,
                "function": "get",
                "class": "OC\\AppFramework\\Utility\\SimpleContainer",
                "type": "->",
                "args": [
                    "externalMountProvider"
                ]
            },
            {
                "function": "OC\\AppFramework\\Bootstrap\\{closure}",
                "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Bootstrap/FunctionInjector.php",
                "line": 45,
                "function": "array_map",
                "args": [
                    [
                        "Closure"
                    ],
                    [
                        [
                            "ReflectionParameter",
                            "mountProviderCollection"
                        ],
                        [
                            "ReflectionParameter",
                            "mountProvider"
                        ],
                        "*** sensitive parameters replaced ***"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Bootstrap/BootContext.php",
                "line": 50,
                "function": "injectFn",
                "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector",
                "type": "->",
                "args": [
                    [
                        [
                            "OCA\\Files_Sharing\\AppInfo\\Application"
                        ],
                        "registerMountProviders"
                    ]
                ]
            },
            {
                "file": "/var/www/html/apps/files_sharing/lib/AppInfo/Application.php",
                "line": 121,
                "function": "injectFn",
                "class": "OC\\AppFramework\\Bootstrap\\BootContext",
                "type": "->",
                "args": [
                    [
                        [
                            "OCA\\Files_Sharing\\AppInfo\\Application"
                        ],
                        "registerMountProviders"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php",
                "line": 200,
                "function": "boot",
                "class": "OCA\\Files_Sharing\\AppInfo\\Application",
                "type": "->",
                "args": [
                    [
                        "OC\\AppFramework\\Bootstrap\\BootContext"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/App/AppManager.php",
                "line": 437,
                "function": "bootApp",
                "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
                "type": "->",
                "args": [
                    "files_sharing"
                ]
            },
            {
                "file": "/var/www/html/lib/private/App/AppManager.php",
                "line": 216,
                "function": "loadApp",
                "class": "OC\\App\\AppManager",
                "type": "->",
                "args": [
                    "files_sharing"
                ]
            },
            {
                "file": "/var/www/html/lib/private/legacy/OC_App.php",
                "line": 126,
                "function": "loadApps",
                "class": "OC\\App\\AppManager",
                "type": "->",
                "args": [
                    [
                        "filesystem"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/SetupManager.php",
                "line": 116,
                "function": "loadApps",
                "class": "OC_App",
                "type": "::",
                "args": [
                    [
                        "filesystem"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/SetupManager.php",
                "line": 344,
                "function": "setupBuiltinWrappers",
                "class": "OC\\Files\\SetupManager",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/html/lib/private/Files/SetupManager.php",
                "line": 384,
                "function": "setupRoot",
                "class": "OC\\Files\\SetupManager",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/html/lib/private/Files/Mount/Manager.php",
                "line": 95,
                "function": "setupForPath",
                "class": "OC\\Files\\SetupManager",
                "type": "->",
                "args": [
                    "/appdata_oce9vmkdz9ez/js/core"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/View.php",
                "line": 1370,
                "function": "find",
                "class": "OC\\Files\\Mount\\Manager",
                "type": "->",
                "args": [
                    "/appdata_oce9vmkdz9ez/js/core"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/Node/Root.php",
                "line": 202,
                "function": "getFileInfo",
                "class": "OC\\Files\\View",
                "type": "->",
                "args": [
                    "/appdata_oce9vmkdz9ez/js/core",
                    false
                ]
            },
            {
                "function": "get",
                "class": "OC\\Files\\Node\\Root",
                "type": "->",
                "args": [
                    "/appdata_oce9vmkdz9ez/js/core"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/Node/LazyFolder.php",
                "line": 74,
                "function": "call_user_func_array",
                "args": [
                    [
                        [
                            "OC\\Files\\Node\\Root"
                        ],
                        "get"
                    ],
                    [
                        "appdata_oce9vmkdz9ez/js/core"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/Node/LazyFolder.php",
                "line": 151,
                "function": "__call",
                "class": "OC\\Files\\Node\\LazyFolder",
                "type": "->",
                "args": [
                    "get",
                    [
                        "appdata_oce9vmkdz9ez/js/core"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/Files/AppData/AppData.php",
                "line": 132,
                "function": "get",
                "class": "OC\\Files\\Node\\LazyFolder",
                "type": "->",
                "args": [
                    "appdata_oce9vmkdz9ez/js/core"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Template/JSCombiner.php",
                "line": 87,
                "function": "getFolder",
                "class": "OC\\Files\\AppData\\AppData",
                "type": "->",
                "args": [
                    "core"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Template/JSResourceLocator.php",
                "line": 145,
                "function": "process",
                "class": "OC\\Template\\JSCombiner",
                "type": "->",
                "args": [
                    "/var/www/html",
                    "core/js/merged-template-prepend.json",
                    "core"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Template/JSResourceLocator.php",
                "line": 75,
                "function": "cacheAndAppendCombineJsonIfExist",
                "class": "OC\\Template\\JSResourceLocator",
                "type": "->",
                "args": [
                    "/var/www/html",
                    "core/js/merged-template-prepend.json"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Template/ResourceLocator.php",
                "line": 73,
                "function": "doFind",
                "class": "OC\\Template\\JSResourceLocator",
                "type": "->",
                "args": [
                    "core/js/merged-template-prepend"
                ]
            },
            {
                "file": "/var/www/html/lib/private/TemplateLayout.php",
                "line": 377,
                "function": "find",
                "class": "OC\\Template\\ResourceLocator",
                "type": "->",
                "args": [
                    [
                        "core/js/common",
                        "core/js/main",
                        "core/l10n/zh_CN",
                        "core/js/files_fileinfo",
                        "core/js/files_client",
                        "And 1 more entries, set log level to debug to see all entries"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/TemplateLayout.php",
                "line": 222,
                "function": "findJavascriptFiles",
                "class": "OC\\TemplateLayout",
                "type": "::",
                "args": [
                    [
                        "core/js/common",
                        "core/js/main",
                        "core/l10n/zh_CN",
                        "core/js/files_fileinfo",
                        "core/js/files_client",
                        "And 1 more entries, set log level to debug to see all entries"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/private/legacy/OC_Template.php",
                "line": 182,
                "function": "__construct",
                "class": "OC\\TemplateLayout",
                "type": "->",
                "args": [
                    "error",
                    ""
                ]
            },
            {
                "file": "/var/www/html/lib/private/Template/Base.php",
                "line": 132,
                "function": "fetchPage",
                "class": "OC_Template",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/html/lib/private/legacy/OC_Template.php",
                "line": 331,
                "function": "printPage",
                "class": "OC\\Template\\Base",
                "type": "->",
                "args": []
            },
            {
                "file": "/var/www/html/index.php",
                "line": 74,
                "function": "printExceptionErrorPage",
                "class": "OC_Template",
                "type": "::",
                "args": [
                    [
                        "Doctrine\\DBAL\\Exception"
                    ],
                    500
                ]
            }
        ],
        "File": "/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php",
        "Line": 131,
        "message": "Could not boot files_sharing: Could not resolve externalMountProvider! Class \"externalMountProvider\" does not exist",
        "exception": {},
        "CustomMessage": "Could not boot files_sharing: Could not resolve externalMountProvider! Class \"externalMountProvider\" does not exist"
    }
}