Error while trying to create shared mount

Nextcloud version (eg, 18.0.2): 20.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 10
Apache or nginx version (eg, Apache 2.4.25): Ngnix
PHP version (eg, 7.1): 7.7

The issue you are facing:

I get the following error in the log file when this user browses his files and shares:

{"reqId":"eGFLnCfDxnQQzISauwKo","level":3,"time":"2021-01-13T22:41:27+00:00","remoteAddr":"2a02:908:f69:4f23:68f0:ebf6:cc7b:e4ec","user":"35252ea0-5d0e-1039-824b-59d8d784c54f","app":"files_sharing","method":"GET","url":"/apps/files/","message":{"Exception":"InvalidArgumentException","Message":"Invalid recipient","Code":0,"Trace":[{"file":"/var/www//html/nextcloud/apps/files_sharing/lib/SharedMount.php","line":137,"function":"moveShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/var/www//html/nextcloud/apps/files_sharing/lib/SharedMount.php","line":119,"function":"updateFileTarget","class":"OCA\\Files_Sharing\\SharedMount","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www//html/nextcloud/apps/files_sharing/lib/SharedMount.php","line":80,"function":"verifyMountPoint","class":"OCA\\Files_Sharing\\SharedMount","type":"->"},{"file":"/var/www//html/nextcloud/apps/files_sharing/lib/MountProvider.php","line":111,"function":"__construct","class":"OCA\\Files_Sharing\\SharedMount","type":"->"},{"file":"/var/www//html/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":119,"function":"getMountsForUser","class":"OCA\\Files_Sharing\\MountProvider","type":"->"},{"file":"/var/www//html/nextcloud/lib/private/Files/Filesystem.php","line":452,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->"},{"file":"/var/www//html/nextcloud/lib/private/Files/Filesystem.php","line":377,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www//html/nextcloud/lib/private/legacy/OC_Util.php","line":322,"function":"init","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www//html/nextcloud/lib/base.php","line":1007,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www//html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www//html/nextcloud/lib/private/Share20/Manager.php","Line":1223,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux; Android 8.0.0; SM-G935F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":"20.0.4.0","id":"5fff7717be63a"}
{"reqId":"thRMf0Qao8H0pZ4EAsTg","level":3,"time":"2021-01-13T22:55:07+00:00","remoteAddr":"2a01:c23:6867:7c00:b555:c62e:533c:e524","user":"35cb14b4-5d0e-1039-825b-59d8d784c54f","app":"files_sharing","method":"POST","url":"/apps/text/session/sync","message":{"Exception":"InvalidArgumentException","Message":"Invalid recipient","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/files_sharing/lib/SharedMount.php","line":137,"function":"moveShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/var/www/html/nextcloud/apps/files_sharing/lib/SharedMount.php","line":119,"function":"updateFileTarget","class":"OCA\\Files_Sharing\\SharedMount","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/apps/files_sharing/lib/SharedMount.php","line":80,"function":"verifyMountPoint","class":"OCA\\Files_Sharing\\SharedMount","type":"->"},{"file":"/var/www/html/nextcloud/apps/files_sharing/lib/MountProvider.php","line":111,"function":"__construct","class":"OCA\\Files_Sharing\\SharedMount","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":119,"function":"getMountsForUser","class":"OCA\\Files_Sharing\\MountProvider","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Filesystem.php","line":452,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Filesystem.php","line":377,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Util.php","line":322,"function":"init","class":"OC\\Files\\Filesystem","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1007,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www/html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/lib/private/Share20/Manager.php","Line":1223,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36","version":"20.0.4.0"}

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

Browsing the files works fine for the user, but what’s wrong here?

Thx,

Klaus