File Sharing not working after migration from OwnCloud (9.4) to Nextcloud (10.0)

Hello,

after migration from OwnCloud (9.4) to Nextcloud (10.0) I can not access next cloud anymore, if files sharing is enabled.

nextcloud.log
{“reqId”:“V@jYrVUNmfwAAB8yZOoAAAAY”,“remoteAddr”:“91.65.110.181”,“app”:“index”,“message”:“Exception: {“Exception”:“InvalidArgumentException”,“Message”:”",“Code”:0,“Trace”:"#0 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Share20\/DefaultShareProvider.php(758): OC\\Share20\\Share->setSharedBy(NULL)\n#1 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Share20\/DefaultShareProvider.php(675): OC\\Share20\\DefaultShareProvider->createShare(Array)\n#2 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Share20\/Manager.php(957): OC\\Share20\\DefaultShareProvider->getSharedWith(‘UserXXX’, 1, NULL, -1, 0)\n#3 \/www\/htdocs\/w934x71z\/nextcloud\/apps\/files_sharing\/lib\/MountProvider.php(72): OC\\Share20\\Manager->getSharedWith(‘UserXXX’, 1, NULL, -1)\n#4 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Files\/Config\/MountProviderCollection.php(77): OCA\\Files_Sharing\\MountProvider->getMountsForUser(Object(OC\\User\\User), Object(OC\\Files\\Storage\\StorageFactory))\n#5 [internal function]: OC\\Files\\Config\\MountProviderCollection->OC\\Files\\Config\\{closure}(Object(OCA\\Files_Sharing\\MountProvider))\n#6 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Files\/Config\/MountProviderCollection.php(78): array_map(Object(Closure), Array)\n#7 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Files\/Filesystem.php(423): OC\\Files\\Config\\MountProviderCollection->getMountsForUser(Object(OC\\User\\User))\n#8 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Files\/Filesystem.php(371): OC\\Files\\Filesystem::initMountPoints(‘UserXXX’)\n#9 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/legacy\/util.php(227): OC\\Files\\Filesystem::init(‘UserXXX’, ‘\/UserXXX\/files’)\n#10 \/www\/htdocs\/w934x71z\/nextcloud\/lib\/base.php(966): OC_Util::setupFS()\n#11 \/www\/htdocs\/w934x71z\/nextcloud\/index.php(48): OC::handleRequest()\n#12 {main}",“File”:"\/www\/htdocs\/w934x71z\/nextcloud\/lib\/private\/Share20\/Share.php",“Line”:288}",“level”:3,“time”:“September 26, 2016 10:13:33”,“method”:“GET”,“url”:"/index.php/apps/files/?dir=/&fileid=7415",“user”:“UserXXX”}

Does anyone have a solution for this error?

Thx

Do you mean the file-sharing app? Once it is enabled, you get this error?

Can you check on the webinterface on your admin page, if the code-integrity test failed (should also show you a warning on login)?

I have exactly the same problem

{
“reqId”: “LKvaC+Kz7nso1/gavP/N”,
“remoteAddr”: “46.126.208.79”,
“app”: “index”,
“message”: “Exception: {“Exception”:“InvalidArgumentException”,“Message”:”",“Code”:0,“Trace”:"#0 \/var\/www\/nextcloud\/lib\/private\/Share20\/DefaultShareProvider.php(758): OC\\Share20\\Share->setSharedBy(NULL)\n#1 \/var\/www\/nextcloud\/lib\/private\/Share20\/DefaultShareProvider.php(622): OC\\Share20\\DefaultShareProvider->createShare(Array)\n#2 \/var\/www\/nextcloud\/lib\/private\/Share20\/Manager.php(957): OC\\Share20\\DefaultShareProvider->getSharedWith(‘evernichon’, 0, NULL, -1, 0)\n#3 \/var\/www\/nextcloud\/apps\/files_sharing\/lib\/MountProvider.php(71): OC\\Share20\\Manager->getSharedWith(‘evernichon’, 0, NULL, -1)\n#4 \/var\/www\/nextcloud\/lib\/private\/Files\/Config\/MountProviderCollection.php(77): OCA\\Files_Sharing\\MountProvider->getMountsForUser(Object(OC\\User\\User), Object(OC\\Files\\Storage\\StorageFactory))\n#5 [internal function]: OC\\Files\\Config\\MountProviderCollection->OC\\Files\\Config\\{closure}(Object(OCA\\Files_Sharing\\MountProvider))\n#6 \/var\/www\/nextcloud\/lib\/private\/Files\/Config\/MountProviderCollection.php(78): array_map(Object(Closure), Array)\n#7 \/var\/www\/nextcloud\/lib\/private\/Files\/Filesystem.php(426): OC\\Files\\Config\\MountProviderCollection->getMountsForUser(Object(OC\\User\\User))\n#8 \/var\/www\/nextcloud\/lib\/private\/Files\/Filesystem.php(374): OC\\Files\\Filesystem::initMountPoints(‘evernichon’)\n#9 \/var\/www\/nextcloud\/lib\/private\/legacy\/util.php(227): OC\\Files\\Filesystem::init(‘evernichon’, ‘\/evernichon\/fil…’)\n#10 \/var\/www\/nextcloud\/lib\/base.php(997): OC_Util::setupFS()\n#11 \/var\/www\/nextcloud\/index.php(48): OC::handleRequest()\n#12 {main}",“File”:"\/var\/www\/nextcloud\/lib\/private\/Share20\/Share.php",“Line”:288}",
“level”: 3,
“time”: “2018-12-11T15:12:36+00:00”,
“method”: “GET”,
“url”: “/index.php/apps/files/”,
“user”: “evernichon”,
“version”: “9.1.6.1”
}

If I enable files_sharing

Erreur interne du serveur

Le serveur est incapable d’exécuter votre requête.

Si cela se reproduit, veuillez envoyer les détails techniques ci-dessous à l’administrateur du serveur.

Le fichier journal du serveur peut fournir plus de renseignements.

Renseignements techniques

  • Adresse distante : XXXX
  • ID de la demande : uuj6DM4EInJQRsnMSTh7

I found this topic related to the problem:

but they haven’t seen issues since NC 11. So if it still exists, please open a new bug report on the bug tracker.

On newer setups, there is also a command to clean invalid shares (in case this is creating your problems):

 sharing
  sharing:cleanup-remote-storages     Cleanup shared storage entries that have no matching entry in the shares_external table