Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: OCP\Files\NotFoundException: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_6a00bfb3.publicKey existing mounts: #32194

Open
5 of 8 tasks
ghost opened this issue Apr 27, 2022 · 89 comments
Assignees
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap feature: encryption (server-side) needs review Needs review to determine if still applicable technical debt

Comments

@ghost
Copy link

ghost commented Apr 27, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Upgraded from 23.0.4 to NC 24.0.0 RC2

Steps to reproduce

NA

Expected behavior

NA

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.0.78",
            "cloud.kb.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.kb.com",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "24.0.0.10",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trashbin_retention_obligation": "auto",
        "versions_retention_obligation": "auto,1",
        "has_internet_connection": true,
        "cron_log": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "updater.release.channel": "beta",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "default_phone_region": "US",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "encryption.legacy_format_support": false,
        "app_install_overwrite": [
            "twofactor_admin",
            "ojsxc",
            "twofactor_totp"
        ],
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - admin_audit: 1.14.0
  - cloud_federation_api: 1.7.0
  - comments: 1.14.0
  - contactsinteraction: 1.5.0
  - dashboard: 7.4.0
  - dav: 1.22.0
  - encryption: 2.12.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_external: 1.16.1
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - firstrunwizard: 2.13.0
  - impersonate: 1.11.0
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - nextcloud_announcements: 1.13.0
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - officeonline: 1.1.3
  - password_policy: 1.14.0
  - photos: 1.6.0
  - privacy: 1.8.0
  - provisioning_api: 1.14.0
  - recommendations: 1.3.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - support: 1.7.0
  - survey_client: 1.12.0
  - systemtags: 1.14.0
  - text: 3.5.1
  - theming: 1.15.0
  - twofactor_admin: 3.2.0
  - twofactor_backupcodes: 1.13.0
  - twofactor_totp: 6.3.0-beta.1
  - updatenotification: 1.14.0
  - user_status: 1.4.0
  - viewer: 1.8.0
  - weather_status: 1.4.0
  - workflowengine: 2.6.0
Disabled:
  - circles: 23.0.0
  - user_ldap

Nextcloud Signing status

No response

Nextcloud Logs

{"reqId":"5bP3UR0qZ6clLufUEcpl","level":3,"time":"2022-04-27T17:13:00+00:00","remoteAddr":"1.1.1.1","user":"admin","app":"no app in context","method":"GET","url":"/apps/files/","message":"App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_6a00bfb3.publicKey existing mounts: ","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36","version":"24.0.0.10","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_6a00bfb3.publicKey existing mounts: ","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":320,"function":"find","class":"OC\\Files\\Mount\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1162,"function":"resolvePath","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":552,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":269,"function":"file_exists","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":229,"function":"getKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":121,"function":"getKeyWithUid","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":614,"function":"getSystemUserKey","class":"OC\\Encryption\\Keys\\Storage","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/KeyManager.php","line":170,"function":"getPublicShareKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/Users/Setup.php","line":62,"function":"validateShareKey","class":"OCA\\Encryption\\KeyManager","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/lib/AppInfo/Application.php","line":55,"function":"setupSystem","class":"OCA\\Encryption\\Users\\Setup","type":"->"},{"file":"/var/www/nextcloud/apps/encryption/appinfo/app.php","line":37,"function":"setUp","class":"OCA\\Encryption\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":305,"args":["/var/www/nextcloud/apps/encryption/appinfo/app.php"],"function":"require_once"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":186,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":140,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":325,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":370,"function":"setupRoot","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Mount/Manager.php","line":95,"function":"setupForPath","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1386,"function":"find","class":"OC\\Files\\Mount\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":205,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":72,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":149,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":141,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/apps/officeonline/lib/WOPI/DiscoveryManager.php","line":58,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->"},{"function":"__construct","class":"OCA\\Officeonline\\WOPI\\DiscoveryManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":437,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":89,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":437,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":89,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":437,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":89,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":437,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/apps/officeonline/lib/AppInfo/Application.php","line":142,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/nextcloud/apps/officeonline/appinfo/app.php","line":63,"function":"updateCSP","class":"OCA\\Officeonline\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":305,"args":["/var/www/nextcloud/apps/officeonline/appinfo/app.php"],"function":"require_once"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":186,"function":"requireAppFile","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":140,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/AppInfo/Application.php","line":177,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":190,"function":"boot","class":"OCA\\DAV\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":207,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":140,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1003,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Mount/Manager.php","Line":118,"CustomMessage":"App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_6a00bfb3.publicKey existing mounts: "},"id":"62697b89bdf0e"}

Additional info

No response

@ghost ghost added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 27, 2022
@susobaco
Copy link

susobaco commented Jul 6, 2022

Same problem in nextcloud 24.0.2 on debian buyselle.

@BMiZEL

This comment was marked as duplicate.

@vvoitiuk
Copy link

Confirmed on Ubuntu 20.04 + nextcloud snap version 24.0.1

@zanonz
Copy link

zanonz commented Jul 15, 2022

Confirmed TrueNas Scale official App 24.0.2_1.6.5 also having same issue.

@BMiZEL
Copy link

BMiZEL commented Jul 19, 2022

After updating to 24.0.3 it looks like the problem is solved... Debian 11 Bullseye

@ghost
Copy link
Author

ghost commented Jul 19, 2022

Can anyone else confirm this before I close out this issue ?

@zanonz
Copy link

zanonz commented Jul 19, 2022

Can anyone else confirm this before I close out this issue ?

Once docker patch is released I will update

@Compr0mzd
Copy link

Compr0mzd commented Jul 19, 2022

After updating to last version I still have the same issue
Version 24.0.3
no app in context | OCP\Files\NotFoundException: No mount for path /keys/.oc_key_storage existing mounts:
I changed the folder that contains the keys the same way as in the documentation to test it out.

@nunesgh
Copy link

nunesgh commented Jul 19, 2022

Same issue here.
Nextcloud version: 24.0.3
PHP version: 7.4.30
MariaDB version: 10.5.15

@nunesgh
Copy link

nunesgh commented Jul 20, 2022

Logs for some additional and possibly related errors:

[PHP] Error: Error: Trying to access array offset on value of type bool at /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php#441 at <<closure>>

 0. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 441
    OC\Log\ErrorHandler::onError()
 1. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_antivirus/lib/AvirWrapper.php line 75
    OC\Files\Storage\Wrapper\Encryption->fopen()
 2. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 301
    OCA\Files_Antivirus\AvirWrapper->fopen()
 3. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php line 236
    OC\Files\Storage\Wrapper\Wrapper->fopen()
 4. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php line 317
    OCA\FilesAccessControl\StorageWrapper->fopen()
 5. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 817
    OCA\RansomwareProtection\StorageWrapper->fopen()
 6. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php line 656
    OC\Files\Storage\Wrapper\Encryption->copyBetweenStorage()
 7. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 595
    OC\Files\Storage\Wrapper\Encryption->moveFromStorage()
 8. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 595
    OC\Files\Storage\Wrapper\Wrapper->moveFromStorage()
 9. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_trashbin/lib/Storage.php line 239
    OC\Files\Storage\Wrapper\Wrapper->moveFromStorage()
10. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php line 311
    OCA\Files_Trashbin\Storage->moveFromStorage()
11. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php line 593
    OCA\FilesAccessControl\StorageWrapper->moveFromStorage()
12. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_trashbin/lib/Trashbin.php line 323
    OCA\RansomwareProtection\StorageWrapper->moveFromStorage()
13. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php line 107
    OCA\Files_Trashbin\Trashbin::move2trash()
14. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_trashbin/lib/Trash/TrashManager.php line 102
    OCA\Files_Trashbin\Trash\LegacyTrashBackend->moveToTrash()
15. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_trashbin/lib/Storage.php line 202
    OCA\Files_Trashbin\Trash\TrashManager->moveToTrash()
16. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_trashbin/lib/Storage.php line 102
    OCA\Files_Trashbin\Storage->doDelete()
17. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php line 195
    OCA\Files_Trashbin\Storage->unlink()
18. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php line 263
    OCA\FilesAccessControl\StorageWrapper->unlink()
19. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/View.php line 1177
    OCA\RansomwareProtection\StorageWrapper->unlink()
20. /***REMOVED SENSITIVE VALUE***/nextcloud/lib/private/Files/View.php line 733
    OC\Files\View->basicOperation()
21. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 523
    OC\Files\View->unlink()
22. /***REMOVED SENSITIVE VALUE***/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 179
    OCA\DAV\Connector\Sabre\File->delete()
23. /***REMOVED SENSITIVE VALUE***/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 281
    Sabre\DAV\Tree->delete()
24. /***REMOVED SENSITIVE VALUE***/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpDelete()
25. /***REMOVED SENSITIVE VALUE***/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
26. /***REMOVED SENSITIVE VALUE***/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
27. /***REMOVED SENSITIVE VALUE***/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
28. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/dav/lib/Server.php line 352
    Sabre\DAV\Server->exec()
29. /***REMOVED SENSITIVE VALUE***/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
30. /***REMOVED SENSITIVE VALUE***/nextcloud/remote.php line 166
    require_once("/***REMOVED SENSITIVE VALUE***/nextcl ... p")

DELETE /remote.php/dav/***REMOVED SENSITIVE VALUE***
from ***REMOVED SENSITIVE VALUE*** by ***REMOVED SENSITIVE VALUE*** at 2022-07-19T19:17:43-03:00
[no app in context] Error: Could not find mount point, can't keep encryption keys

DELETE /remote.php/dav/***REMOVED SENSITIVE VALUE***
from ***REMOVED SENSITIVE VALUE*** by ***REMOVED SENSITIVE VALUE*** at 2022-07-19T19:17:43-03:00

@cenap
Copy link

cenap commented Jul 20, 2022

No! Problem is not solved. I still receive the error with version 24.0.3,

@BMiZEL
Copy link

BMiZEL commented Jul 20, 2022

what PHP version is everyone using? I'm on 8.1 and it worked.

@Compr0mzd
Copy link

what PHP version is everyone using? I'm on 8.1 and it worked.

8.0 as recommended in Nextcloud Doc

@nunesgh
Copy link

nunesgh commented Jul 21, 2022

I can confirm the files are being deleted from the external storage, even though the errors I have reported on #32194 (comment) are still being logged.

@archnemeziz
Copy link

Confirmed having the same issue on the latest versions:
NC 24.0.3.2
PHP 8.1.2
MariaDB 10.6.7
Ubuntu 22.04

Error logs were triggered when trying to delete a guest user. NC also gave an error that the user could not be deleted, although after refreshing the page the user was indeed deleted.

@Sawaya-ui
Copy link

Same issue here.
Nextcloud version: 24.0.4
PHP version: 8.1.x
MariaDB version: 10.5.15-MariaDB-0+deb11u1 Debian 11

@Compr0mzd

This comment was marked as off-topic.

@rererecursive
Copy link

We just experienced this when upgrading from 22 -> 23 -> 24.0.4.

@PVince81
Copy link
Member

PVince81 commented Sep 1, 2022

not sure if directly related, please try reverting #32690 and see if it solves the issue

@max-nextcloud
Copy link
Contributor

max-nextcloud commented Sep 8, 2022

I just had a look at logs from a nextcloud instance that reported this.

Backtrace of the error message

Here's a full trace as that usually makes investigating the issue far easier:

full trace
{{
  "reqId": "...",
  "level": 3,
  "time": "2022-06-21T20:17:25+00:00",
  "remoteAddr": "1.2.3.4",
  "user": "--",
  "app": "no app in context",
  "method": "GET",
  "url": "/boaform/admin/formLogin",
  "message": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_75aa93fb.publicKey existing mounts: ",
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0",
  "version": "24.0.2.1",
  "exception": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_75aa93fb.publicKey existing mounts: ",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/Files/Filesystem.php",
        "line": 320,
        "function": "find",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1162,
        "function": "resolvePath",
        "class": "OC\\Files\\Filesystem",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 552,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 269,
        "function": "file_exists",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 229,
        "function": "getKey",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 121,
        "function": "getKeyWithUid",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
        "line": 614,
        "function": "getSystemUserKey",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
        "line": 170,
        "function": "getPublicShareKey",
        "class": "OCA\\Encryption\\KeyManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/Users/Setup.php",
        "line": 62,
        "function": "validateShareKey",
        "class": "OCA\\Encryption\\KeyManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/AppInfo/Application.php",
        "line": 55,
        "function": "setupSystem",
        "class": "OCA\\Encryption\\Users\\Setup",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/appinfo/app.php",
        "line": 37,
        "function": "setUp",
        "class": "OCA\\Encryption\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 305,
        "args": [
          "/var/www/nextcloud/apps/encryption/appinfo/app.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 186,
        "function": "requireAppFile",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 140,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 325,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 370,
        "function": "setupRoot",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Mount/Manager.php",
        "line": 95,
        "function": "setupForPath",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1386,
        "function": "find",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/Root.php",
        "line": 205,
        "function": "getFileInfo",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "function": "get",
        "class": "OC\\Files\\Node\\Root",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 72,
        "function": "call_user_func_array"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 149,
        "function": "__call",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/AppData/AppData.php",
        "line": 141,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSCombiner.php",
        "line": 88,
        "function": "getFolder",
        "class": "OC\\Files\\AppData\\AppData",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSResourceLocator.php",
        "line": 123,
        "function": "process",
        "class": "OC\\Template\\JSCombiner",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSResourceLocator.php",
        "line": 76,
        "function": "cacheAndAppendCombineJsonIfExist",
        "class": "OC\\Template\\JSResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/ResourceLocator.php",
        "line": 78,
        "function": "doFind",
        "class": "OC\\Template\\JSResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/TemplateLayout.php",
        "line": 377,
        "function": "find",
        "class": "OC\\Template\\ResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/TemplateLayout.php",
        "line": 205,
        "function": "findJavascriptFiles",
        "class": "OC\\TemplateLayout",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_Template.php",
        "line": 185,
        "function": "__construct",
        "class": "OC\\TemplateLayout",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/Base.php",
        "line": 132,
        "function": "fetchPage",
        "class": "OC_Template",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 802,
        "function": "printPage",
        "class": "OC\\Template\\Base",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1104,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 34,
        "args": [
          "/var/www/nextcloud/lib/base.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Files/Mount/Manager.php",
    "Line": 118,
    "CustomMessage": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_75aa93fb.publicKey existing mounts: "
  }
}

  "reqId": "YQ91qHHCsuhfKe4TCIxG",
  "level": 3,
  "time": "2022-06-21T20:17:25+00:00",
  "remoteAddr": "104.217.249.182",
  "user": "--",
  "app": "no app in context",
  "method": "GET",
  "url": "/boaform/admin/formLogin",
  "message": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_75aa93fb.publicKey existing mounts: ",
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0",
  "version": "24.0.2.1",
  "exception": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_75aa93fb.publicKey existing mounts: ",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/Files/Filesystem.php",
        "line": 320,
        "function": "find",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1162,
        "function": "resolvePath",
        "class": "OC\\Files\\Filesystem",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 552,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 269,
        "function": "file_exists",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 229,
        "function": "getKey",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 121,
        "function": "getKeyWithUid",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
        "line": 614,
        "function": "getSystemUserKey",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
        "line": 170,
        "function": "getPublicShareKey",
        "class": "OCA\\Encryption\\KeyManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/Users/Setup.php",
        "line": 62,
        "function": "validateShareKey",
        "class": "OCA\\Encryption\\KeyManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/AppInfo/Application.php",
        "line": 55,
        "function": "setupSystem",
        "class": "OCA\\Encryption\\Users\\Setup",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/appinfo/app.php",
        "line": 37,
        "function": "setUp",
        "class": "OCA\\Encryption\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 305,
        "args": [
          "/var/www/nextcloud/apps/encryption/appinfo/app.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 186,
        "function": "requireAppFile",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 140,
        "function": "loadApp",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 325,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 370,
        "function": "setupRoot",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Mount/Manager.php",
        "line": 95,
        "function": "setupForPath",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1386,
        "function": "find",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/Root.php",
        "line": 205,
        "function": "getFileInfo",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "function": "get",
        "class": "OC\\Files\\Node\\Root",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 72,
        "function": "call_user_func_array"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 149,
        "function": "__call",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/AppData/AppData.php",
        "line": 141,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSCombiner.php",
        "line": 88,
        "function": "getFolder",
        "class": "OC\\Files\\AppData\\AppData",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSResourceLocator.php",
        "line": 123,
        "function": "process",
        "class": "OC\\Template\\JSCombiner",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSResourceLocator.php",
        "line": 76,
        "function": "cacheAndAppendCombineJsonIfExist",
        "class": "OC\\Template\\JSResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/ResourceLocator.php",
        "line": 78,
        "function": "doFind",
        "class": "OC\\Template\\JSResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/TemplateLayout.php",
        "line": 377,
        "function": "find",
        "class": "OC\\Template\\ResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/TemplateLayout.php",
        "line": 205,
        "function": "findJavascriptFiles",
        "class": "OC\\TemplateLayout",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_Template.php",
        "line": 185,
        "function": "__construct",
        "class": "OC\\TemplateLayout",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/Base.php",
        "line": 132,
        "function": "fetchPage",
        "class": "OC_Template",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 802,
        "function": "printPage",
        "class": "OC\\Template\\Base",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1104,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 34,
        "args": [
          "/var/www/nextcloud/lib/base.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Files/Mount/Manager.php",
    "Line": 118,
    "CustomMessage": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_75aa93fb.publicKey existing mounts: "
  }
}

URLs that trigger this

I also analyzed the urls that would trigger this error. Many of them seemed like they were triggered by scans for vulnerabilities:

sample of urls
    17 "/db/phpMyAdmin3/index.php?lang=en"
     17 "/db/phpmyadmin4/index.php?lang=en"
     17 "/db/phpMyAdmin-4/index.php?lang=en"
     17 "/db/phpmyadmin5/index.php?lang=en"
     17 "/db/phpMyAdmin-5/index.php?lang=en"
     17 "/db/phpmyadmin/index.php?lang=en"
     17 "/db/phpMyAdmin/index.php?lang=en"
     17 "/db/webadmin/index.php?lang=en"
     17 "/db/webdb/index.php?lang=en"
     17 "/db/websql/index.php?lang=en"
      3 "/debug.cgi"
      1 "/debug/default/view"
      1 "/debug/default/view.html"
      5 "/debug/default/view?panel=config"
      2 "/default.aspx"
      1 "/default.cfm"
      1 "/default.cgi"
      1 "/default.jhtml"
      1 "/default.jsp"
      2 "/default.php"
      1 "/default.shtml"
...

command used
rg "publicKey existing mounts:" nextcloud.log | jq '.url' | sort | uniq -c

@max-nextcloud
Copy link
Contributor

The file that is mentioned in the error message does exist in the case i am investigating. Looks like it's a matter of load order / mount point initialization.

@max-nextcloud
Copy link
Contributor

All errors have exactly the same message and no user and no app in context. So looks like it's always looking for the same file and only happens pre-auth.

@max-nextcloud
Copy link
Contributor

@max-nextcloud
Copy link
Contributor

I've continued to investigate this. So far it looks like the requests that triggered the error were mostly without authentication. On the same instance I am seeing a lot of 403 responses on clients that try to sync. I wonder if the two are related. Anyone else observing syncing problems with clients?

@max-nextcloud
Copy link
Contributor

max-nextcloud commented Oct 20, 2022

I think this is happening in a codepath that is only triggered when using the encryption app with masterkey disabled. If you run into this issue - please check wether you are using encryption app and have masterkey disabled.

I'll see if i can reproduce it in that setting.

update: Could still not reproduce it. Most likely this is related to the partial file system setup that was introduced in NC24. This seems to cause some none deterministic caching issues.

@samisedI
Copy link

samisedI commented Oct 20, 2022

@max-nextcloud I am currently experiencing this problem, and confirm that I am using the encryption application with the master key disabled.

@badtimberwolf
Copy link

badtimberwolf commented Nov 12, 2022

I am currently having this issue. I actually started a new server to use while I work the issue on my original, and somehow ended up with the same exact problem on the new one, that was freshly installed from AIO image. Various 403, the same errors when trying to move or delete files.

I do not have masterkey disabled. Everything is default and stock right out of the box from the AIO, with some apps installed, and some test files uploaded.

I may set up another AIO server and test it without any apps, then install the apps one by one and see there is an app, or combination of apps, that is causing the issue.

I am also having "no token submitted" with login failures stating "could not verify token".

Update:
I disabled E2E encryption on the new AIO server, and it seems to allow deletion of files now. I am still getting other strange errors such as
Error: Object of class OC\User\User could not be converted to string

Disabling E2E seems to have unlocked the files on both the new and old server. I do need E2E for our purposes, so I have to find a solution to this asap.

[no app in context] Error: OCP\Files\NotFoundException: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_XXXXXXXX.publicKey existing mounts: at <>

  1. /var/www/html/lib/private/Files/Filesystem.php line 320
    OC\Files\Mount\Manager->find("/files_encrypti ... y")
  2. /var/www/html/lib/private/Files/View.php line 1172
    OC\Files\Filesystem::resolvePath("/files_encrypti ... y")
  3. /var/www/html/lib/private/Files/View.php line 552
    OC\Files\View->basicOperation("file_exists", "/files_encrypti ... y")
  4. /var/www/html/lib/private/Encryption/Keys/Storage.php line 269
    OC\Files\View->file_exists("/files_encrypti ... y")
  5. /var/www/html/lib/private/Encryption/Keys/Storage.php line 229
    OC\Encryption\Keys\Storage->getKey("/files_encrypti ... y")
  6. /var/www/html/lib/private/Encryption/Keys/Storage.php line 121
    OC\Encryption\Keys\Storage->getKeyWithUid("/files_encrypti ... y", null)
  7. /var/www/html/apps/encryption/lib/KeyManager.php line 614
    OC\Encryption\Keys\Storage->getSystemUserKey("pubShare_8a9d2b58.publicKey", "OC_DEFAULT_MODULE")
  8. /var/www/html/apps/encryption/lib/KeyManager.php line 170
    OCA\Encryption\KeyManager->getPublicShareKey()
  9. /var/www/html/apps/encryption/lib/Users/Setup.php line 62
    OCA\Encryption\KeyManager->validateShareKey()
  10. /var/www/html/apps/encryption/lib/AppInfo/Application.php line 55
    OCA\Encryption\Users\Setup->setupSystem()
  11. /var/www/html/apps/encryption/appinfo/app.php line 37
    OCA\Encryption\AppInfo\Application->setUp(OC\Encryption\Manager {})
  12. /var/www/html/lib/private/legacy/OC_App.php line 305
    require_once("/var/www/html/a ... p")
  13. /var/www/html/lib/private/legacy/OC_App.php line 186
    OC_App::requireAppFile(OCA\Encryption\AppInfo\Application {})
  14. /var/www/html/lib/private/legacy/OC_App.php line 140
    OC_App::loadApp("encryption")
  15. /var/www/html/lib/private/Files/SetupManager.php line 131
    OC_App::loadApps(["filesystem"])
  16. /var/www/html/lib/private/Files/SetupManager.php line 339
    OC\Files\SetupManager->setupBuiltinWrappers()
  17. /var/www/html/lib/private/Files/SetupManager.php line 379
    OC\Files\SetupManager->setupRoot()
  18. /var/www/html/lib/private/Files/Mount/Manager.php line 95
    OC\Files\SetupManager->setupForPath("/appdata_ocymas48buvm/wopi/wopi")
  19. /var/www/html/lib/private/Files/View.php line 1396
    OC\Files\Mount\Manager->find("/appdata_ocymas48buvm/wopi/wopi")
  20. /var/www/html/lib/private/Files/Node/Root.php line 205
    OC\Files\View->getFileInfo("/appdata_ocymas48buvm/wopi/wopi")
  21. <>
    OC\Files\Node\Root->get("/appdata_ocymas48buvm/wopi/wopi")
  22. /var/www/html/lib/private/Files/Node/LazyFolder.php line 72
    call_user_func_array([OC\Files\Node\Root {},"get"], ["appdata_ocymas48buvm/wopi/wopi"])
  23. /var/www/html/lib/private/Files/Node/LazyFolder.php line 149
    OC\Files\Node\LazyFolder->__call("get", ["appdata_ocymas48buvm/wopi/wopi"])
  24. /var/www/html/lib/private/Files/AppData/AppData.php line 141
    OC\Files\Node\LazyFolder->get("appdata_ocymas48buvm/wopi/wopi")
  25. /var/www/html/custom_apps/wopi/lib/WOPI/DiscoveryManager.php line 58
    OC\Files\AppData\AppData->getFolder("wopi")
  26. <>
    OCA\Wopi\WOPI\DiscoveryManager->__construct(OC\Http\Client\ClientService {}, OC\Files\AppData\AppData {}, OC\AllConfig {}, OC\L10N\LazyL10N {}, OC\AppFramework\Utility\TimeFactory {})
  27. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 108
    ReflectionClass->newInstanceArgs([OC\Http\Client\ ... }])
  28. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass ... "})
  29. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\Wopi\WOPI\DiscoveryManager")
  30. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\Utility\SimpleContainer->query("OCA\Wopi\WOPI\DiscoveryManager")
  31. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 437
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\Wopi\WOPI\DiscoveryManager")
  32. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 89
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\Wopi\WOPI\DiscoveryManager", true)
  33. <>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}("*** sensitive parameters replaced ***")
  34. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 108
    array_map(Closure {}, ["*** sensitive ... }])
  35. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass ... "})
  36. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\Wopi\WOPI\Parser")
  37. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\Utility\SimpleContainer->query("OCA\Wopi\WOPI\Parser")
  38. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 437
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\Wopi\WOPI\Parser")
  39. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 89
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\Wopi\WOPI\Parser", true)
  40. <>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}("*** sensitive parameters replaced ***")
  41. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 108
    array_map(Closure {}, [ReflectionParam ... "])
  42. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass ... "})
  43. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\Wopi\TokenManager")
  44. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\Utility\SimpleContainer->query("OCA\Wopi\TokenManager")
  45. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 437
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\Wopi\TokenManager")
  46. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 89
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\Wopi\TokenManager", true)
  47. <>
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}("*** sensitive parameters replaced ***")
  48. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 108
    array_map(Closure {}, [ReflectionParam ... "])
  49. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 116
    OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionClass ... "})
  50. /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve("OCA\Wopi\Service\FederationService")
  51. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\Utility\SimpleContainer->query("OCA\Wopi\Service\FederationService")
  52. /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php line 437
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\Wopi\Service\FederationService")
  53. /var/www/html/custom_apps/wopi/lib/AppInfo/Application.php line 115
    OC\AppFramework\DependencyInjection\DIContainer->query("OCA\Wopi\Service\FederationService")
  54. /var/www/html/custom_apps/wopi/appinfo/app.php line 66
    OCA\Wopi\AppInfo\Application->updateCSP("*** sensitive parameters replaced ***")
  55. /var/www/html/lib/private/legacy/OC_App.php line 305
    require_once("/var/www/html/c ... p")
  56. /var/www/html/lib/private/legacy/OC_App.php line 186
    OC_App::requireAppFile(OCA\Wopi\AppInfo\Application {})
  57. /var/www/html/lib/private/legacy/OC_App.php line 140
    OC_App::loadApp("wopi")
  58. /var/www/html/apps/dav/lib/AppInfo/Application.php line 177
    OC_App::loadApps(["dav"])
  59. /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php line 190
    OCA\DAV\AppInfo\Application->boot(OC\AppFramework\Bootstrap\BootContext {})
  60. /var/www/html/lib/private/legacy/OC_App.php line 207
    OC\AppFramework\Bootstrap\Coordinator->bootApp("dav")
  61. /var/www/html/lib/private/legacy/OC_App.php line 140
    OC_App::loadApp("dav")
  62. /var/www/html/lib/base.php line 1010
    OC_App::loadApps()
  63. /var/www/html/index.php line 36
    OC::handleRequest()

POST /apps/files/api/v1/showgridview
from XXX.XXX.XXX.XXX by timberwolf at 2022-11-12T11:41:27+00:00


[webdav] Fatal: OCA\DAV\Connector\Sabre\Exception\Forbidden: Client "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0" is not allowed to access end-to-end encrypted content at <>

  1. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\EndToEndEncryption\Connector\Sabre\LockPlugin->checkLock(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
  2. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 456
    Sabre\DAV\Server->emit("beforeMethod:DELETE", [Sabre\HTTP\Requ ... }])
  3. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
  4. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  5. /var/www/html/apps/dav/lib/Server.php line 358
    Sabre\DAV\Server->exec()
  6. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
  7. /var/www/html/remote.php line 170
    require_once("/var/www/html/a ... p")

DELETE /remote.php/dav/files/tim/Photos/Vineyard.jpg
from XXX.XXX.XXX.XXX by timberwolf at 2022-11-12T11:38:16+00:00


Accessibility
1.10.0

Activity
2.16.0

Appointments
1.14.0

AppOrder
0.15.0

Approval
1.0.10

Auditing / Logging
1.14.0

Brute-force settings
2.4.0

Calendar
3.5.2

Circles
24.0.1

Client Push
0.5.0

Collabora Online - Built-in CODE Server
22.5.802

Collaborative tags
1.14.0

Comments
1.14.0

Contacts
4.2.2

Contacts Interaction
1.5.0

Dashboard
7.4.0

Deck
1.7.2

Default encryption module
2.12.0

Deleted files
1.14.0

End-to-End Encryption
1.10.0

Extract
1.3.5

Federation
1.14.0

File access control
1.14.1

File sharing
1.16.2

Files automated tagging
1.14.0

First run wizard
2.13.0

Forms
2.5.1

Impersonate
1.11.0

Log Reader
2.9.0

Monitoring
1.14.0

Nextcloud All In One
0.2.0

Nextcloud announcements
1.13.0

Nextcloud Office
6.3.1

Notifications
2.12.1

ONLYOFFICE
7.5.8

Password policy
1.14.0

Passwords
2022.11.21

PDF viewer
2.5.0

Photos
1.6.0

Privacy
1.8.0

Quota warning
1.15.0

Recommendations
1.3.0

Right click
1.3.0

Share by mail
1.14.0

Support
1.7.0

Suspicious Login
4.2.1

Talk
14.0.6

Tasks
0.14.5

Terms of service
1.10.2

Text
3.5.1

Theming
1.15.0

Two-Factor TOTP Provider
6.4.1

Two-Factor WebAuthn
0.3.3

Usage survey
1.12.0

User status
1.4.0

Versions
1.17.0

Video player
1.13.0

Weather status
1.4.0

Wopi
3.5.11

@icewind1991
Copy link
Member

Please try #39044 and see if it helps

@steffengr
Copy link

Please try #39044 and see if it helps

I'm not entirely sure how to test this patch in my setup. I'm using this snap https://github.com/nextcloud-snap/nextcloud-snap and assume I'd have to somehow build it with the patch but I have no experience in doing so. Can't find a way to patch the code in the running snap.

@tgoeg
Copy link

tgoeg commented Sep 26, 2023

Until now, this was only a minor nuisance with some errors here and there.
Updated to 25.0.12 today on the test system. Flawless.
Did the same to the live system. Bam!

Updating apps
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
{
   "app" : "no app in context",
   "exception" : {
      "Code" : 0,
      "CustomMessage" : "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_cafebabe.publicKey existing mounts: ",
      "Exception" : "OCP\\Files\\NotFoundException",
      "File" : "/var/www/mynextcloud.domain/lib/private/Files/Mount/Manager.php",
      "Line" : 118,
      "Message" : "No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_cafebabe.publicKey existing mounts: ",
      "Trace" : [
         {
            "class" : "OC\\Files\\Mount\\Manager",
            "file" : "/var/www/mynextcloud.domain/lib/private/Files/Filesystem.php",
            "function" : "find",
            "line" : 320,
            "type" : "->"
         },
         {
            "class" : "OC\\Files\\Filesystem",
            "file" : "/var/www/mynextcloud.domain/lib/private/Files/View.php",
            "function" : "resolvePath",
            "line" : 1184,
            "type" : "::"
         },
         {
            "class" : "OC\\Files\\View",
            "file" : "/var/www/mynextcloud.domain/lib/private/Files/View.php",
            "function" : "basicOperation",
            "line" : 557,
            "type" : "->"
         },
         {
            "class" : "OC\\Files\\View",
            "file" : "/var/www/mynextcloud.domain/lib/private/Encryption/Keys/Storage.php",
            "function" : "file_exists",
            "line" : 269,
            "type" : "->"
         },
         {
            "class" : "OC\\Encryption\\Keys\\Storage",
            "file" : "/var/www/mynextcloud.domain/lib/private/Encryption/Keys/Storage.php",
            "function" : "getKey",
            "line" : 229,
            "type" : "->"
         },
         {
            "class" : "OC\\Encryption\\Keys\\Storage",
            "file" : "/var/www/mynextcloud.domain/lib/private/Encryption/Keys/Storage.php",
            "function" : "getKeyWithUid",
            "line" : 121,
            "type" : "->"
         },
         {
            "class" : "OC\\Encryption\\Keys\\Storage",
            "file" : "/var/www/mynextcloud.domain/apps/encryption/lib/KeyManager.php",
            "function" : "getSystemUserKey",
            "line" : 614,
            "type" : "->"
         },
         {
            "class" : "OCA\\Encryption\\KeyManager",
            "file" : "/var/www/mynextcloud.domain/apps/encryption/lib/KeyManager.php",
            "function" : "getPublicShareKey",
            "line" : 170,
            "type" : "->"
         },
         {
            "class" : "OCA\\Encryption\\KeyManager",
            "file" : "/var/www/mynextcloud.domain/apps/encryption/lib/Users/Setup.php",
            "function" : "validateShareKey",
            "line" : 62,
            "type" : "->"
         },
         {
            "class" : "OCA\\Encryption\\Users\\Setup",
            "file" : "/var/www/mynextcloud.domain/apps/encryption/lib/AppInfo/Application.php",
            "function" : "setupSystem",
            "line" : 55,
            "type" : "->"
         },
         {
            "class" : "OCA\\Encryption\\AppInfo\\Application",
            "file" : "/var/www/mynextcloud.domain/apps/encryption/appinfo/app.php",
            "function" : "setUp",
            "line" : 37,
            "type" : "->"
         },
         {
            "args" : [
               "/var/www/mynextcloud.domain/apps/encryption/appinfo/app.php"
            ],
            "file" : "/var/www/mynextcloud.domain/lib/private/legacy/OC_App.php",
            "function" : "require_once",
            "line" : 306
         },
         {
            "class" : "OC_App",
            "file" : "/var/www/mynextcloud.domain/lib/private/legacy/OC_App.php",
            "function" : "requireAppFile",
            "line" : 187,
            "type" : "::"
         },
         {
            "class" : "OC_App",
            "file" : "/var/www/mynextcloud.domain/lib/private/legacy/OC_App.php",
            "function" : "loadApp",
            "line" : 141,
            "type" : "::"
         },
         {
            "class" : "OC_App",
            "file" : "/var/www/mynextcloud.domain/lib/private/Files/SetupManager.php",
            "function" : "loadApps",
            "line" : 132,
            "type" : "::"
         },
         {
            "class" : "OC\\Files\\SetupManager",
            "file" : "/var/www/mynextcloud.domain/lib/private/Files/SetupManager.php",
            "function" : "setupBuiltinWrappers",
            "line" : 340,
            "type" : "->"
         },
         {
            "class" : "OC\\Files\\SetupManager",
            "file" : "/var/www/mynextcloud.domain/lib/private/Files/SetupManager.php",
            "function" : "setupRoot",
            "line" : 380,
            "type" : "->"
         },

Glad I am following this issue since months. It's never fun to have a production instance die during updates.
This commit
1eb3293
(part of the referenced #39044, had to act fast so changed the most obvious and easiest stuff first) definitely made the occ upgrade run through successfully.

Can all the guys here (@steffengr, @martini-69, @Pazu, @mr-field, @barrelful, @bcutter, @punkyard, @doc75, @xf0e, @AndyXheli, @Zaxooy, @delorean44, @nunesgh, @BMiZEL) that see this problem please try to patch and report back whether it fixes it so we can move forward and get this released?
The referenced issue/PR won't apply against NC25.x, use this one here:
39044-NC25.0.12.patch.txt
cd /nextcloud/root/dir && patch -p1 < <(curl -L https://github.com/nextcloud/server/files/12728126/39044-NC25.0.12.patch.txt)
People on higher versions (NC26+ or probably only NC27+?) can just cd /nextcloud/root/dir && patch -p1 < <(curl -L https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/39044.patch) directly.

Don't know where snap installs stuff, but find / -name console.php should give you a clue.

If you're on some docker setup, get a shell into the container first, probably like this docker exec -it yourcontainername bash.
I am not a user nor friend of docker, so sorry if that's not correct and I can't help anymore than this.

Thanks for the fix, @icewind1991!

@Zaxooy
Copy link

Zaxooy commented Sep 28, 2023

Thanks for mentioning me, tgoeg!

I'm on 27.1.1 and manually applied the changes. Will come back in some days to report if it changed anything.

There was just one thing that made me wonder: I don't have the folder /apps/files_sharing/tests/ so I couldn't edit the file /apps/files_sharing/tests/External/ManagerTest.php

But since that folder and the files are also not included in the official release, those changes probabaly are not neccessary?

@mr-field
Copy link

I've also applied the patch to my 27.1.1 instance and will report back. I've rebased the PR on the v27.1.1 tag just to be safe, but the diff doesn't really change: 39044_from_27.1.1.txt

@Zaxooy I'm pretty sure ManagerTest.php is just an automated test, it would be run before merging a change to check if the change would break something. It's not actually part of the finished app

@mr-field
Copy link

mr-field commented Oct 2, 2023

After testing the patch for around 3 days, I can safely say it gets rid of the "No mount for path" error in my setup. Before applying the patch the error would be logged around once per hour; after applying it the error messages disappeared completely. Everything else seemed to keep working fine, so I don't think it introduces any regressions.

@Zaxooy
Copy link

Zaxooy commented Oct 3, 2023

After testing it for 5 days I am happy to confirm: The bug seems to be gone. Thank you very much for the hard work!

@Pazu
Copy link

Pazu commented Oct 4, 2023

Please try #39044 and see if it helps

Before I try this, what advice do you have, if any, regarding implementing this patch on a production system for testing?

Also, did it make any actual sense that this error message would be shown when 1) the publicKey file definitely existed, and 2) there were no external filesystem mounts at all, just the default, main one? No external storage or partitions whatsoever?

@tgoeg
Copy link

tgoeg commented Oct 4, 2023

My production system was completely broken without this, so I had no choice but to patch it in production. Given the other feedback here, I wouldn't hesitate too much and go for it. The patch basically makes NC do everything as it did before, but in a different order (i.e. sets up mounts earlier). And adds some error handling/better error messages.

The error message is misleading. The mounts are simply not setup, i.e. files cannot be seen by NC in the moment it tries to access them. The error you see is the first access that fails. Nothing to do with the publicKey or external filesystems whatsoever. I don't have any, either.

@Pazu
Copy link

Pazu commented Oct 8, 2023

In my case, the impact is cosmetic, at least to date; it just clutters up the log (as does #37921), so I'll hold off presuming #39044 actually gets the review it needs and gets merged to release.

@cgomm
Copy link

cgomm commented Oct 23, 2023

Hey there,
I already patched my nextcloud instance to v27.1.2 (the current last release afaik), the errors is still occuring and I dont know what to.

Short information:

  • nextcloud v27.1.2
  • ubuntu 22.04 within an LXC container on my proxmox machine
  • data folder is on another harddrive via hard mnt within linux

I already tried everything within this post but without any success.

{
  "reqId": "xxx",
  "level": 3,
  "time": "2023-10-23T16:22:08+00:00",
  "remoteAddr": "10.0.0.4",
  "user": "--",
  "app": "no app in context",
  "method": "GET",
  "url": "/v2/barcode/manifests/develop-904d7c6",
  "message": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_XXXXXX.publicKey existing mounts: ",
  "userAgent": "containerd/1.7.2",
  "version": "27.1.2.1",
  "exception": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_XXXXXX.publicKey existing mounts: ",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/Files/Filesystem.php",
        "line": 306,
        "function": "find",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1145,
        "function": "resolvePath",
        "class": "OC\\Files\\Filesystem",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 528,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 268,
        "function": "file_exists",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 228,
        "function": "getKey",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php",
        "line": 120,
        "function": "getKeyWithUid",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
        "line": 624,
        "function": "getSystemUserKey",
        "class": "OC\\Encryption\\Keys\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/KeyManager.php",
        "line": 169,
        "function": "getPublicShareKey",
        "class": "OCA\\Encryption\\KeyManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/Users/Setup.php",
        "line": 62,
        "function": "validateShareKey",
        "class": "OCA\\Encryption\\KeyManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/lib/AppInfo/Application.php",
        "line": 55,
        "function": "setupSystem",
        "class": "OCA\\Encryption\\Users\\Setup",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/encryption/appinfo/app.php",
        "line": 37,
        "function": "setUp",
        "class": "OCA\\Encryption\\AppInfo\\Application",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 525,
        "args": ["/var/www/nextcloud/apps/encryption/appinfo/app.php"],
        "function": "require_once"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 416,
        "function": "requireAppFile",
        "class": "OC\\App\\AppManager",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/App/AppManager.php",
        "line": 216,
        "function": "loadApp",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_App.php",
        "line": 126,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 116,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 344,
        "function": "setupBuiltinWrappers",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/SetupManager.php",
        "line": 384,
        "function": "setupRoot",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Mount/Manager.php",
        "line": 95,
        "function": "setupForPath",
        "class": "OC\\Files\\SetupManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/View.php",
        "line": 1370,
        "function": "find",
        "class": "OC\\Files\\Mount\\Manager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/Root.php",
        "line": 202,
        "function": "getFileInfo",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      { "function": "get", "class": "OC\\Files\\Node\\Root", "type": "->" },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 74,
        "function": "call_user_func_array"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 151,
        "function": "__call",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Files/AppData/AppData.php",
        "line": 132,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSCombiner.php",
        "line": 87,
        "function": "getFolder",
        "class": "OC\\Files\\AppData\\AppData",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSResourceLocator.php",
        "line": 145,
        "function": "process",
        "class": "OC\\Template\\JSCombiner",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/JSResourceLocator.php",
        "line": 75,
        "function": "cacheAndAppendCombineJsonIfExist",
        "class": "OC\\Template\\JSResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/ResourceLocator.php",
        "line": 73,
        "function": "doFind",
        "class": "OC\\Template\\JSResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/TemplateLayout.php",
        "line": 377,
        "function": "find",
        "class": "OC\\Template\\ResourceLocator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/TemplateLayout.php",
        "line": 222,
        "function": "findJavascriptFiles",
        "class": "OC\\TemplateLayout",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/private/legacy/OC_Template.php",
        "line": 182,
        "function": "__construct",
        "class": "OC\\TemplateLayout",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Template/Base.php",
        "line": 132,
        "function": "fetchPage",
        "class": "OC_Template",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 845,
        "function": "printPage",
        "class": "OC\\Template\\Base",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1196,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 34,
        "args": ["/var/www/nextcloud/lib/base.php"],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/lib/private/Files/Mount/Manager.php",
    "Line": 118,
    "message": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_XXXXXX.publicKey existing mounts: ",
    "exception": {},
    "CustomMessage": "App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_XXXXXX.publicKey existing mounts: "
  }
}

@martini-69
Copy link

Hi Cgom,
did you patch before or after updating to newest nc?
Update overwrites the patch, so you have to patch again...

LG
Martin

@cgomm
Copy link

cgomm commented Oct 23, 2023

Hi Cgom, did you patch before or after updating to newest nc? Update overwrites the patch, so you have to patch again...

LG Martin

Hi Martin,
I didn't see any Patch for v27.1.2. The only one I found rely on v27.1.1 or isn't there any problem to use this patch?

Thank you!

@cgomm
Copy link

cgomm commented Oct 23, 2023

@martini-69 I applied the patch manually, I will observe the results from now on!


Update:
I got rid of the failure before but now I will recieve this error:
Exception: No mounts even after explicitly setting up the root mounts

@martini-69
Copy link

I meant the patch in this thread from icewind. Have a look at the 3 files mentioned above: https://github.com/nextcloud/server/files/12728126/39044-NC25.0.12.patch.txt. After updating nc you have to patch again because a nc update overwrites this files.

@cgomm
Copy link

cgomm commented Oct 23, 2023

Yeah I foudn and applied the changes to my installation, but without any success to make my upload work again without a 500 Internal server error and the message: Exception: No mounts even after explicitly setting up the root mounts

@mr-field
Copy link

Hi, that error could indicate a more serious problem with your setup than the one we were facing. In our case Nextcloud was just doing things in the wrong order, but it sounds like it genuinely can't find/mount your storage.

You mentioned that your upload is broken, does it mean that you can see and download all your files but can't upload anything? Or are there some files which you can't even see in the web view?

@cgomm
Copy link

cgomm commented Oct 23, 2023

Thanks for your response.
I don't know how to explain it correctly.

I can upload files to my cloud, but if I delete some or try to move some files around I got a wierd behaviour that these already uploaded files are not movable and these results within this message Exception: No mounts even after explicitly setting up the root mounts, which was before this message: App encryption threw an error during app.php load: No mount for path /files_encryption/OC_DEFAULT_MODULE/pubShare_XXXXXX.publicKey existing mounts: .

Further information:
I am running the NC on a Ubuntu LXC container (22.04) with the newest NC release v27.1.2. The data path is on linux mounted 4TB harddrive.

@martini-69
Copy link

@tgoeg: Tried the patch with NC 27.1.2 and errors have gone for me too! Big Thanks to you and Icewind

@bcutter
Copy link

bcutter commented Oct 24, 2023

So can we then finally have this (now confirmed working) patch shipped in a stable?

@Pazu
Copy link

Pazu commented Oct 25, 2023

So can we then finally have this (now confirmed working) patch shipped in a stable?

It appears their plan is to apply it to 27 and also backport it to 26, though it's also still waiting for some code review. We'll all just have to be patient.

@skjnldsv skjnldsv removed this from the Nextcloud 25.0.13 milestone Oct 27, 2023
@nunesgh
Copy link

nunesgh commented Nov 29, 2023

Same issue here.
Nextcloud version: 24.0.3
PHP version: 7.4.30
MariaDB version: 10.5.15
#32194 (comment)

The error persists here. I am now running:

  • Nextcloud Hub 6 (27.1.4)
  • PHP 8.2.7
  • MariaDB 10.11.4

@Pazu
Copy link

Pazu commented Nov 30, 2023

It won't be fixed in 27/Hub 6 until pull request 41090 is merged, so be patient. At present it's targeted for 27.1.5, but that can change.

It is rather inexplicable to me, however, that blizzz appears to be having so much trouble getting anyone to review the commit. Requests for review seem to sit for weeks or months without the requisite attention, like what you'd expect for a project on minimal life support. Perhaps that's what Nextcloud is, at this point.

@barrelful
Copy link

I meant the patch in this thread from icewind. Have a look at the 3 files mentioned above: https://github.com/nextcloud/server/files/12728126/39044-NC25.0.12.patch.txt. After updating nc you have to patch again because a nc update overwrites this files.

could you please give me some instruction on how do I apply this patch?

@joshtrichards
Copy link
Member

#39044 was merged, backported, and released in:

  • v28.0.0
  • v27.1.5
  • v26.0.10

@joshtrichards joshtrichards added the needs review Needs review to determine if still applicable label Sep 6, 2024
@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
@joshtrichards joshtrichards reopened this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap feature: encryption (server-side) needs review Needs review to determine if still applicable technical debt
Projects
None yet
Development

No branches or pull requests