Server error when sharing folder on NextCloud 20.0.2 (and now 20.0.9)

I get the error shown here when sharing a folder from Nextcloud 20.0.2 : https://snipboard.io/fksZVU.jpg
The log shows these 4 lines:

{“reqId”:“YG@RESr8UAoPvI2ut0Db9gAAAAE”,“level”:0,“time”:“2021-04-08T23:26:09+00:00”,“remoteAddr”:“omittedIP”,“user”:"–",“app”:“groupfolders”,“method”:“GET”,“url”:"/index.php/s/DCaGoB3CgcGg3Qk",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36”,“version”:“20.0.2.2”}
{“reqId”:“YG@RESr8UAoPvI2ut0Db9gAAAAE”,“level”:0,“time”:“2021-04-08T23:26:09+00:00”,“remoteAddr”:“omittedIP”,“user”:"–",“app”:“files_sharing”,“method”:“GET”,“url”:"/index.php/s/DCaGoB3CgcGg3Qk",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36”,“version”:“20.0.2.2”}
{“reqId”:“YG@RESr8UAoPvI2ut0Db9gAAAAE”,“level”:0,“time”:“2021-04-08T23:26:09+00:00”,“remoteAddr”:“omittedIP”,“user”:"–",“app”:“ransomware_protection”,“method”:“GET”,“url”:"/index.php/s/DCaGoB3CgcGg3Qk",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36”,“version”:“20.0.2.2”}
{“reqId”:“YG@RESr8UAoPvI2ut0Db9gAAAAE”,“level”:3,“time”:“2021-04-08T23:26:09+00:00”,“remoteAddr”:“omittedIP”,“user”:"–",“app”:“index”,“method”:“GET”,“url”:"/index.php/s/DCaGoB3CgcGg3Qk",“message”:{“Exception”:“Exception”,“Message”:“Call to a member function getFileInfo() on null”,“Code”:0,“Trace”:[{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/AppFramework/App.php",“line”:152,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files_Sharing\Controller\ShareController”},“showShare”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Route/Router.php",“line”:308,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Files_Sharing\Controller\ShareController”,“showShare”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“action”:null,“token”:“DCaGoB3CgcGg3Qk”,"_route":“files_sharing.Share.showShare”}]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/s/DCaGoB3CgcGg3Qk"]},{“file”:"/home/chris735/cloud2.omitteddomain.net/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/home/chris735/cloud2.omitteddomain.net/lib/private/AppFramework/Http/Dispatcher.php",“Line”:110,“Previous”:{“Exception”:“Error”,“Message”:“Call to a member function getFileInfo() on null”,“Code”:0,“Trace”:[{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Quota.php",“line”:73,“function”:“getFileInfo”,“class”:“OC\Files\Filesystem”,“type”:"::",“args”:["",“ext”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Quota.php",“line”:103,“function”:“getSize”,“class”:“OC\Files\Storage\Wrapper\Quota”,“type”:"->",“args”:[""]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Wrapper.php",“line”:333,“function”:“free_space”,“class”:“OC\Files\Storage\Wrapper\Quota”,“type”:"->",“args”:[“wizzy forum - public”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Wrapper.php",“line”:333,“function”:“free_space”,“class”:“OC\Files\Storage\Wrapper\Wrapper”,“type”:"->",“args”:[“wizzy forum - public”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Availability.php",“line”:345,“function”:“free_space”,“class”:“OC\Files\Storage\Wrapper\Wrapper”,“type”:"->",“args”:[“wizzy forum - public”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Wrapper.php",“line”:333,“function”:“free_space”,“class”:“OC\Files\Storage\Wrapper\Availability”,“type”:"->",“args”:[“wizzy forum - public”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Storage/Wrapper/Wrapper.php",“line”:333,“function”:“free_space”,“class”:“OC\Files\Storage\Wrapper\Wrapper”,“type”:"->",“args”:[“wizzy forum - public”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/apps/files_sharing/lib/Controller/ShareController.php",“line”:383,“function”:“free_space”,“class”:“OC\Files\Storage\Wrapper\Wrapper”,“type”:"->",“args”:[“wizzy forum - public”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/AppFramework/Http/Dispatcher.php",“line”:169,“function”:“showShare”,“class”:“OCA\Files_Sharing\Controller\ShareController”,“type”:"->",“args”:[""]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files_Sharing\Controller\ShareController”},“showShare”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/AppFramework/App.php",“line”:152,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Files_Sharing\Controller\ShareController”},“showShare”]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Route/Router.php",“line”:308,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Files_Sharing\Controller\ShareController”,“showShare”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“action”:null,“token”:“DCaGoB3CgcGg3Qk”,"_route":“files_sharing.Share.showShare”}]},{“file”:"/home/chris735/cloud2.omitteddomain.net/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/s/DCaGoB3CgcGg3Qk"]},{“file”:"/home/chris735/cloud2.omitteddomain.net/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/home/chris735/cloud2.omitteddomain.net/lib/private/Files/Filesystem.php",“Line”:864},“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36”,“version”:“20.0.2.2”}

please advise

1 Like

I couldn’t find recent similar reports. From the logs, it seems to be a getFileInfo() function that returns the wrong error. And it’s part of the Quota routines. So perhaps something wrong in caculating the quotas. Is this a local or an external (on other server) storage? Your quota is fully used?

Similar error appeared in the parts when some references in the database were missing (links to files that don’t exist any more etc.). Anything special to the folder that you want to share?

For a given release, there are upgrades that fix different issues. I’d try with the latest version of the NC 20.0.x branch first, not that you start debugging a problem that is already fixed: Changelog – Nextcloud

updated nextcloud and the apps to 20.0.9
quota is not maxxed out.
I do have this line in the config.php ‘quota_include_external_storage’ => true,
I do have quotas defined for group folders and for users.
I am using an external storage at wasabi.
Here is the new error lines from the log when logging in to the share link:

    {"reqId":"YHoMptRPXJBLUPTJQ-lMlQAAAUc","level":0,"time":"2021-04-16T22:16:06+00:00","remoteAddr":"omittedIP","user":"--","app":"groupfolders","method":"GET","url":"/index.php/s/8WoHiZXfSabZ4X2","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36 Edg/89.0.774.77","version":"20.0.9.1"}
{"reqId":"YHoMptRPXJBLUPTJQ-lMlQAAAUc","level":0,"time":"2021-04-16T22:16:06+00:00","remoteAddr":"omittedIP","user":"--","app":"files_sharing","method":"GET","url":"/index.php/s/8WoHiZXfSabZ4X2","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36 Edg/89.0.774.77","version":"20.0.9.1"}
{"reqId":"YHoMptRPXJBLUPTJQ-lMlQAAAUc","level":3,"time":"2021-04-16T22:16:06+00:00","remoteAddr":"omittedIP","user":"--","app":"index","method":"GET","url":"/index.php/s/8WoHiZXfSabZ4X2","message":{"Exception":"Exception","Message":"Call to a member function getFileInfo() on null","Code":0,"Trace":[{"file":"/home/chris735/omittedURL/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/home/chris735/omittedURL/lib/private/Route/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"token":"8WoHiZXfSabZ4X2","_route":"files_sharing.Share.showShare"}]},{"file":"/home/chris735/omittedURL/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/8WoHiZXfSabZ4X2"]},{"file":"/home/chris735/omittedURL/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/chris735/omittedURL/lib/private/AppFramework/Http/Dispatcher.php","Line":110,"Previous":{"Exception":"Error","Message":"Call to a member function getFileInfo() on null","Code":0,"Trace":[{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Quota.php","line":73,"function":"getFileInfo","class":"OC\\Files\\Filesystem","type":"::","args":["","ext"]},{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Quota.php","line":103,"function":"getSize","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->","args":[""]},{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Wrapper.php","line":333,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Quota","type":"->","args":["libertyman uploads"]},{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Wrapper.php","line":333,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["libertyman uploads"]},{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Availability.php","line":345,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["libertyman uploads"]},{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Wrapper.php","line":333,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":["libertyman uploads"]},{"file":"/home/chris735/omittedURL/lib/private/Files/Storage/Wrapper/Wrapper.php","line":333,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["libertyman uploads"]},{"file":"/home/chris735/omittedURL/apps/files_sharing/lib/Controller/ShareController.php","line":383,"function":"free_space","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["libertyman uploads"]},{"file":"/home/chris735/omittedURL/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"showShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->","args":[""]},{"file":"/home/chris735/omittedURL/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/home/chris735/omittedURL/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/home/chris735/omittedURL/lib/private/Route/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"token":"8WoHiZXfSabZ4X2","_route":"files_sharing.Share.showShare"}]},{"file":"/home/chris735/omittedURL/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/8WoHiZXfSabZ4X2"]},{"file":"/home/chris735/omittedURL/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/chris735/omittedURL/lib/private/Files/Filesystem.php","Line":864},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36 Edg/89.0.774.77","version":"20.0.9.1"}

I found one post with similar messages:

I’d try to focus where the error originally comes from, is it the quota itself, quota of this specific external storage, quota and sharing, or just quota+sharing+on your specific external storage. Is your external storage providing quota information?

quotas report correctly.
now that i have upgraded nextcloud, new users cannot upload (even tiny) files via sync client, gives a “not enough space error”. check and download work fine via sync client.

ok, after the upgrade - new users could not upload via sync client nor by webUI, getting an ‘insufficient space’ error.
i changed this config.php line ‘quota_include_external_storage’ => true, to false.
after that change, my correctly reported quotas go to zero, but now the new user can upload.
also share links and such work.
even though the quota used reported correctly when the line was set to true, having it set to true now interferes (post update) with something in my apache nextcloud with wasabi as primary storage installation.

So it’s quota on external storage. Is there a problem on the Nextcloud implementation or is there a problem on the storage side?
Checkout other topics and the bug tracker, perhaps you find related problems.
There are reports regarding quota and external storage:

This also affect 21.0.1. Turning off quota_include_external_storage fixed the folder sharing error for me as well.

occ config:system:set quota_include_external_storage --value=false --type=boolean

This was also preventing Collabora Online plugin from working correctly (could not reopen any document).