deck icon indicating copy to clipboard operation
deck copied to clipboard

Error message related to Deck: OCA\Deck\NoPermissionException: Must be logged in get the attachment folder

Open 4tler opened this issue 3 years ago • 2 comments

Steps to reproduce

i cant reproduce this issue

Expected behaviour

no error messages in log

Actual behaviour

I am currently getting several error messages per day with the same error message Since the update to NC 22, I have regularly received 2 error messages which, however, may be related. I couldn't find any effects in the daily use of the cloud except that the log file fills up.

grafik

Server configuration detail

Operating system: Linux 5.4.140-1-pve #1 SMP PVE 5.4.140-1 (Wed, 08 Sep 2021 16:21:59 +0200) x86_64

Webserver: nginx/1.21.3 (fpm-fcgi)

Database: mysql 10.5.12

PHP version:

7.4.24 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Phar, Zend OPcache

Nextcloud version: 22.2.0 - 22.2.0.2

Updated from an older Nextcloud/ownCloud or fresh install: 21.0.4

Where did you install Nextcloud from: installation in Proxmox SE Container

Signing status

Array ( )

List of activated apps
Enabled:
 - accessibility: 1.8.0
 - activity: 2.15.0
 - admin_audit: 1.12.0
 - apporder: 0.13.0
 - breezedark: 22.0.2
 - bruteforcesettings: 2.2.0
 - calendar: 2.3.4
 - cloud_federation_api: 1.5.0
 - comments: 1.12.0
 - contactsinteraction: 1.3.0
 - dashboard: 7.2.0
 - dav: 1.19.0
 - deck: 1.5.3
 - encryption: 2.10.0
 - federatedfilesharing: 1.12.0
 - federation: 1.12.0
 - files: 1.17.0
 - files_accesscontrol: 1.12.0
 - files_automatedtagging: 1.12.0
 - files_pdfviewer: 2.3.0
 - files_rightclick: 1.1.0
 - files_sharing: 1.14.0
 - files_trackdownloads: 1.11.0
 - files_trashbin: 1.12.0
 - files_versions: 1.15.0
 - files_videoplayer: 1.11.0
 - flow_notifications: 1.2.0
 - forms: 2.3.0
 - issuetemplate: 0.7.0
 - logreader: 2.7.0
 - lookup_server_connector: 1.10.0
 - nextcloud_announcements: 1.11.0
 - notifications: 2.10.1
 - oauth2: 1.10.0
 - password_policy: 1.12.0
 - photos: 1.4.0
 - privacy: 1.6.0
 - provisioning_api: 1.12.0
 - recommendations: 1.1.0
 - serverinfo: 1.12.0
 - settings: 1.4.0
 - sharebymail: 1.12.0
 - spreed: 12.1.2
 - support: 1.5.0
 - systemtags: 1.12.0
 - tasks: 0.14.2
 - text: 3.3.0
 - theming: 1.13.0
 - twofactor_backupcodes: 1.11.0
 - twofactor_totp: 6.1.0
 - updatenotification: 1.12.0
 - user_status: 1.2.0
 - viewer: 1.6.0
 - weather_status: 1.2.0
 - workflowengine: 2.4.0
Disabled:
 - circles
 - files_external
 - firstrunwizard
 - integration_whiteboard
 - survey_client
 - user_ldap

Configuration (config/config.php)
{
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
         "***REMOVED SENSITIVE VALUE***",
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "22.2.0.2",
    "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "activity_expire_days": 14,
    "auth.bruteforce.protection.enabled": true,
    "blacklisted_files": [
        ".htaccess",
        "Thumbs.db",
        "thumbs.db"
    ],
    "cron_log": true,
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\Movie",
        "OC\\Preview\\PDF",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown"
    ],
    "filesystem_check_changes": 0,
    "filelocking.enabled": "true",
    "htaccess.RewriteBase": "\/",
    "integrity.check.disabled": false,
    "knowledgebaseenabled": false,
    "logfile": "\/var\/nc_data\/nextcloud.log",
    "loglevel": 2,
    "logtimezone": "Europe\/Berlin",
    "log_rotate_size": 104857600,
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "overwriteprotocol": "https",
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "tls",
    "mail_sendmailmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "preview_max_x": 1024,
    "preview_max_y": 768,
    "preview_max_scale_factor": 1,
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "quota_include_external_storage": false,
    "share_folder": "\/",
    "skeletondirectory": "",
    "theme": "",
    "trashbin_retention_obligation": "auto, 7",
    "updater.release.channel": "stable",
    "twofactor_enforced": "true",
    "twofactor_enforced_groups": [],
    "twofactor_enforced_excluded_groups": [],
    "app_install_overwrite": [
        "issuetemplate"
    ],
    "encryption.legacy_format_support": false,
    "encryption.key_storage_migrated": false,
    "auto_logout": false,
    "remember_login_cookie_lifetime": 1296000,
    "session_lifetime": 86400,
    "default_phone_region": "DE"
}

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

Are you using encryption: 1

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

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0

Operating system: Linux 5.4.140-1-pve x86_64

Logs

Web server error log
Insert your web server log here 
Nextcloud log
{"reqId":"Pu963mLKBi81Cm2qmbx8","level":3,"time":"2021-10-04T07:25:01+02:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"Must be logged in get the attachment folder","userAgent":"--","version":"22.2.0.2","exception":{"Exception":"OCA\\Deck\\NoPermissionException","Message":"Must be logged in get the attachment folder","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/deck/lib/Sharing/Listener.php","line":105,"function":"getAttachmentFolder","class":"OCA\\Deck\\Service\\ConfigService","type":"->"},{"file":"/var/www/nextcloud/apps/deck/lib/Sharing/Listener.php","line":62,"function":"overwriteMountPoint","class":"OCA\\Deck\\Sharing\\Listener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"listenVerifyMountPointEvent","class":"OCA\\Deck\\Sharing\\Listener","type":"::"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php","line":98,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php","line":79,"function":"verifyMountPoint","class":"OCA\\Files_Sharing\\SharedMount","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/MountProvider.php","line":113,"function":"__construct","class":"OCA\\Files_Sharing\\SharedMount","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":118,"function":"getMountsForUser","class":"OCA\\Files_Sharing\\MountProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":429,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":354,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":325,"function":"init","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":101,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":84,"function":"setupFS","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":646,"function":"OCA\\Files_Trashbin\\BackgroundJob\\{closure}","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php","line":89,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":127,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/deck/lib/Service/ConfigService.php","Line":173,"CustomMessage":"--"},"id":"615a97cad73b8"}
Browser log

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

a) The javascript console log
b) The network log
c) ...

4tler avatar Oct 04 '21 06:10 4tler

Problem still present. Also with version 23.0.2 and deck 1.6.0. Message still appears several times a day.

4tler avatar Mar 12 '22 14:03 4tler

I'm also getting the same errors daily in my logs:

[files_sharing] Error: OCA\Deck\NoPermissionException: Must be logged in get the attachment folder at <<closure>>

 0. /var/www/html/custom_apps/deck/lib/Sharing/Listener.php line 105
    OCA\Deck\Service\ConfigService->getAttachmentFolder()
 1. /var/www/html/custom_apps/deck/lib/Sharing/Listener.php line 62
    OCA\Deck\Sharing\Listener->overwriteMountPoint(OCP\Share\Events\VerifyMountPointEvent {})
 2. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OCA\Deck\Sharing\Listener::listenVerifyMountPointEvent(OCP\Share\Events\VerifyMountPointEvent {}, "OCP\\Share\\Eve ... t", Symfony\Componen ... {})
 3. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {},Closure {}], "OCP\\Share\\Eve ... t", OCP\Share\Events\VerifyMountPointEvent {})
 4. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCP\Share\Events\VerifyMountPointEvent {}, "OCP\\Share\\Eve ... t")
 5. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 100
    OC\EventDispatcher\EventDispatcher->dispatch("OCP\\Share\\Eve ... t", OCP\Share\Events\VerifyMountPointEvent {})
 6. /var/www/html/apps/files_sharing/lib/SharedMount.php line 116
    OC\EventDispatcher\EventDispatcher->dispatchTyped(OCP\Share\Events\VerifyMountPointEvent {})
 7. /var/www/html/apps/files_sharing/lib/SharedMount.php line 89
    OCA\Files_Sharing\SharedMount->verifyMountPoint(OC\Share20\Share {}, [OCA\Files_Shari ... "], OC\Cache\CappedMemoryCache {})
 8. /var/www/html/apps/files_sharing/lib/MountProvider.php line 146
    OCA\Files_Sharing\SharedMount->__construct("\\OCA\\Files_Sharing\\SharedStorage", [OCA\Files_Shari ... "], ["user1 ... e], OC\Files\Storage\StorageFactory {}, OC\Files\View {}, OC\Cache\CappedMemoryCache {}, OC\EventDispatcher\EventDispatcher {}, "*** sensitive parameters replaced ***", OC\Memcache\APCu {})
 9. /var/www/html/lib/private/Files/Config/MountProviderCollection.php line 134
    OCA\Files_Sharing\MountProvider->getMountsForUser("*** sensitive parameters replaced ***", OC\Files\Storage\StorageFactory {})
10. /var/www/html/lib/private/Files/SetupManager.php line 213
    OC\Files\Config\MountProviderCollection->addMountForUser("*** sensitive parameters replaced ***", OC\Files\Mount\Manager {}, Closure {})
11. /var/www/html/lib/private/Files/SetupManager.php line 302
    OC\Files\SetupManager->OC\Files\{closure}("*** sensitive parameters replaced ***")
12. /var/www/html/lib/private/Files/SetupManager.php line 214
    OC\Files\SetupManager->setupForUserWith("*** sensitive parameters replaced ***", Closure {})
13. /var/www/html/lib/private/legacy/OC_Util.php line 111
    OC\Files\SetupManager->setupForUser("*** sensitive parameters replaced ***")
14. /var/www/html/apps/files_versions/lib/BackgroundJob/ExpireVersions.php line 86
    OC_Util::setupFS("user1")
15. /var/www/html/apps/files_versions/lib/BackgroundJob/ExpireVersions.php line 72
    OCA\Files_Versions\BackgroundJob\ExpireVersions->setupFS("user1")
16. /var/www/html/lib/private/User/Manager.php line 656
    OCA\Files_Versions\BackgroundJob\ExpireVersions->OCA\Files_Versions\BackgroundJob\{closure}("*** sensitive parameters replaced ***")
17. /var/www/html/apps/files_versions/lib/BackgroundJob/ExpireVersions.php line 76
    OC\User\Manager->callForSeenUsers(Closure {})
18. /var/www/html/lib/private/BackgroundJob/Job.php line 54
    OCA\Files_Versions\BackgroundJob\ExpireVersions->run(null)
19. /var/www/html/lib/private/BackgroundJob/TimedJob.php line 60
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
20. /var/www/html/cron.php line 151
    OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

at 2022-08-16T14:47:06+00:00

and

[files_sharing] Fatal: Error while trying to create shared mount

at 2022-08-16T14:47:06+00:00

I'm using a standard Linode Nextcloud installation, and the errors are always related to one specific user.

PHP INFORMATION Version: 8.0.21 Memory limit: 512 MB Max execution time: 3600 Upload max size: 10 GB Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, bz2, posix, readline, Reflection, session, SimpleXML, standard, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, apcu, bcmath, Phar, exif, gd, gmp, imagick, imap, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, smbclient, sodium, zip, libsmbclient, Zend OPcache

DATABASE Type: pgsql Version: PostgreSQL 14.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit Size: 49.1 MB

Operating System: Linux 5.15.0-46-generic x86_64 CPU: AMD EPYC 7501 32-Core Processor (2 cores) Memory: 3.83 GB

Nextcloud version: 24.0.3

judicandus avatar Aug 17 '22 10:08 judicandus

No update for this issue .. ? Same error for me since I'm upgraded on Nextcloud 24.0.7 ..

Simthem avatar Nov 07 '22 13:11 Simthem

Updates? Also having the same issue

oliveiraigorm avatar Nov 23 '22 13:11 oliveiraigorm

I'm getting the same error when i try to open a card of a group shared board. I'm not the owner of this board:

Nextcloud Hub 3 (25.0.4) IOS App Version 0.15

githubnobr avatar Feb 26 '23 08:02 githubnobr

Can you maybe share a full copy of the log trace?

The error mentioned above should be fixed with the latest releases as part of https://github.com/nextcloud/deck/pull/3952

juliusknorr avatar Feb 27 '23 12:02 juliusknorr

Im not shure if I'm right here. The error happens in the iOS App not in the browser?

Log trace:

{"reqId":"53GjjA5kugRAT08SlIiZ","level":3,"time":"2023-02-26T17:06:45+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"Must be logged in get the attachment folder","userAgent":"--","version":"25.0.4.1","exception":{"Exception":"OCA\Deck\NoPermissionException","Message":"Must be logged in get the attachment folder","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/deck/lib/Sharing/Listener.php","line":104,"function":"getAttachmentFolder","class":"OCA\Deck\Service\ConfigService","type":"->"},{"file":"/var/www/nextcloud/apps/deck/lib/Sharing/Listener.php","line":61,"function":"overwriteMountPoint","class":"OCA\Deck\Sharing\Listener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"listenVerifyMountPointEvent","class":"OCA\Deck\Sharing\Listener","type":"::"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\Component\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\Component\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php","line":117,"function":"dispatchTyped","class":"OC\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php","line":89,"function":"verifyMountPoint","class":"OCA\Files_Sharing\SharedMount","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/MountProvider.php","line":148,"function":"__construct","class":"OCA\Files_Sharing\SharedMount","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":134,"function":"getMountsForUser","class":"OCA\Files_Sharing\MountProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":226,"function":"addMountForUser","class":"OC\Files\Config\MountProviderCollection","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":318,"function":"OC\Files\{closure}","class":"OC\Files\SetupManager","type":"->","args":["*** sensitive parameters replaced "]},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":227,"function":"setupForUserWith","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":111,"function":"setupForUser","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Utils/Scanner.php","line":113,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Utils/Scanner.php","line":155,"function":"getMounts","class":"OC\Files\Utils\Scanner","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php","line":76,"function":"backgroundScan","class":"OC\Files\Utils\Scanner","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php","line":113,"function":"runScanner","class":"OCA\Files\BackgroundJob\ScanFiles","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\Files\BackgroundJob\ScanFiles","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\BackgroundJob\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/deck/lib/Service/ConfigService.php","Line":208,"CustomMessage":"--"},"id":"63fcea6fe5d5b"}{"reqId":"53GjjA5kugRAT08SlIiZ","level":3,"time":"2023-02-26T17:06:45+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"Must be logged in get the attachment folder","userAgent":"--","version":"25.0.4.1","exception":{"Exception":"OCA\Deck\NoPermissionException","Message":"Must be logged in get the attachment folder","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/deck/lib/Sharing/Listener.php","line":104,"function":"getAttachmentFolder","class":"OCA\Deck\Service\ConfigService","type":"->"},{"file":"/var/www/nextcloud/apps/deck/lib/Sharing/Listener.php","line":61,"function":"overwriteMountPoint","class":"OCA\Deck\Sharing\Listener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"listenVerifyMountPointEvent","class":"OCA\Deck\Sharing\Listener","type":"::"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\Component\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\Component\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php","line":117,"function":"dispatchTyped","class":"OC\EventDispatcher\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/SharedMount.php","line":89,"function":"verifyMountPoint","class":"OCA\Files_Sharing\SharedMount","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/MountProvider.php","line":148,"function":"__construct","class":"OCA\Files_Sharing\SharedMount","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":134,"function":"getMountsForUser","class":"OCA\Files_Sharing\MountProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":226,"function":"addMountForUser","class":"OC\Files\Config\MountProviderCollection","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":318,"function":"OC\Files\{closure}","class":"OC\Files\SetupManager","type":"->","args":[" sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":227,"function":"setupForUserWith","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":111,"function":"setupForUser","class":"OC\Files\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Utils/Scanner.php","line":113,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Utils/Scanner.php","line":155,"function":"getMounts","class":"OC\Files\Utils\Scanner","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php","line":76,"function":"backgroundScan","class":"OC\Files\Utils\Scanner","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php","line":113,"function":"runScanner","class":"OCA\Files\BackgroundJob\ScanFiles","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\Files\BackgroundJob\ScanFiles","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\BackgroundJob\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/deck/lib/Service/ConfigService.php","Line":208,"CustomMessage":"--"},"id":"63fcea6fe5d5b"}

{"reqId":"53GjjA5kugRAT08SlIiZ","level":4,"time":"2023-02-26T17:06:45+00:00","remoteAddr":"","user":"--","app":"files_sharing","method":"","url":"--","message":"Error while trying to create shared mount","userAgent":"--","version":"25.0.4.1","data":{"app":"files_sharing"},"id":"63fcea6fe5b66"}

githubnobr avatar Feb 27 '23 17:02 githubnobr

Thanks, fix is in https://github.com/nextcloud/deck/pull/4487

Testing is very welcome.

juliusknorr avatar Feb 27 '23 21:02 juliusknorr

Hi Dev, We have still the problem

[files_sharing] Error: OCA\Deck\NoPermissionException: Must be logged in get the attachment folder at <>

  1. /var/www/html/nextcloud/apps/deck/lib/Sharing/Listener.php line 104 OCA\Deck\Service\ConfigService->getAttachmentFolder()
  2. /var/www/html/nextcloud/apps/deck/lib/Sharing/Listener.php line 61 OCA\Deck\Sharing\Listener->overwriteMountPoint()
  3. /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251 OCA\Deck\Sharing\Listener::listenVerifyMountPointEvent()
  4. /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73 Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
  5. /var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 88 Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
  6. /var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 100 OC\EventDispatcher\EventDispatcher->dispatch()
  7. /var/www/html/nextcloud/apps/files_sharing/lib/SharedMount.php line 117 OC\EventDispatcher\EventDispatcher->dispatchTyped()
  8. /var/www/html/nextcloud/apps/files_sharing/lib/SharedMount.php line 89 OCA\Files_Sharing\SharedMount->verifyMountPoint()
  9. /var/www/html/nextcloud/apps/files_sharing/lib/MountProvider.php line 148 OCA\Files_Sharing\SharedMount->__construct()
  10. /var/www/html/nextcloud/lib/private/Files/Config/MountProviderCollection.php line 134 OCA\Files_Sharing\MountProvider->getMountsForUser()
  11. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 226 OC\Files\Config\MountProviderCollection->addMountForUser()
  12. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 318 OC\Files\SetupManager->OC\Files{closure}("*** sensitive parameters replaced ***")
  13. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 227 OC\Files\SetupManager->setupForUserWith()
  14. /var/www/html/nextcloud/lib/private/Files/SetupManager.php line 487 OC\Files\SetupManager->setupForUser()
  15. /var/www/html/nextcloud/lib/private/Files/Mount/Manager.php line 215 OC\Files\SetupManager->setupForProvider()
  16. /var/www/html/nextcloud/lib/private/Files/Node/Root.php line 448 OC\Files\Mount\Manager->getMountsByMountProvider()
  17. /var/www/html/nextcloud/lib/private/Files/Node/LazyUserFolder.php line 67 OC\Files\Node\Root->getByIdInPath()
  18. /var/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php line 148 OC\Files\Node\LazyUserFolder->getById()
  19. /var/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php line 534 OCA\Files_Sharing\SharedStorage->init()
  20. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 497 OCA\Files_Sharing\SharedStorage->getWrapperStorage()
  21. /var/www/html/nextcloud/apps/files_sharing/lib/SharedStorage.php line 203 OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage()
  22. /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 497 OCA\Files_Sharing\SharedStorage->instanceOfStorage()
  23. /var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php line 163 OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage()
  24. /var/www/html/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 76 OC\Files\Utils\Scanner->backgroundScan()
  25. /var/www/html/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 113 OCA\Files\BackgroundJob\ScanFiles->runScanner()
  26. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 78 OCA\Files\BackgroundJob\ScanFiles->run()
  27. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 103 OCP\BackgroundJob\Job->start()
  28. /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php line 93 OCP\BackgroundJob\TimedJob->start()
  29. /var/www/html/nextcloud/cron.php line 152 OCP\BackgroundJob\TimedJob->execute()

at 2023-03-16T02:24:14+00:00

fransyk avatar Mar 16 '23 08:03 fransyk

Backports for stable releases are prepared in

https://github.com/nextcloud/deck/pull/4540 https://github.com/nextcloud/deck/pull/4541

juliusknorr avatar Mar 17 '23 14:03 juliusknorr

was getting this issue when myself and a few of my workers where using deck for android. we couldn't sync and if we uninstalled and reinstalled mobile DECK this would show up in the error log.

my solution was (and i hope i am right) uninstall firefox nightly android and install normal firefox ver 111. tried to emulate this on three other phones and this was the fix for all of them.

Gobytego avatar Mar 21 '23 20:03 Gobytego