Internal server error when try share folder

Hello,

I have a problem when I want to try to share a folder that was previously shared with me, when I try to click share folder on the share folder tab, an internal server error message appears and not overall when accessing nextcloud. When I check the logs on this server it is because the user who got the folder share no longer exists in nextcloud, here for the logs

{"reqId":"TIokWhEMRrAeJ2HzPAIz","level":3,"time":"2025-03-06T11:43:58+07:00","remoteAddr":"10.60.201.43","user":"62927","app":"files","method":"GET","url":"/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2Ftransferred+from+Bagit+Airlangga+on+2024-11-27+06-52-07%2FAIO%2FSECURITY&reshares=true","message":"Backends provided no user object for 1c854874-da3a-44dc-aeb0-bd01e1b991d7","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0","version":"23.0.12.2","data":{"app":"files"}}
{"reqId":"TIokWhEMRrAeJ2HzPAIz","level":3,"time":"2025-03-06T11:43:58+07:00","remoteAddr":"10.60.201.43","user":"62927","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2Ftransferred+from+Bagit+Airlangga+on+2024-11-27+06-52-07%2FAIO%2FSECURITY&reshares=true","message":"Backends provided no user object","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0","version":"23.0.12.2","exception":{"Exception":"OC\\User\\NoUserException","Message":"Backends provided no user object","Code":0,"Trace":[{"function":"getUserFolder","class":"OC\\Files\\Node\\Root","type":"->","args":["1c854874-da3a-44dc-aeb0-bd01e1b991d7"]},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":65,"function":"call_user_func_array","args":[[{"__class__":"OC\\Files\\Node\\Root"},"getUserFolder"],["1c854874-da3a-44dc-aeb0-bd01e1b991d7"]]},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyRoot.php","line":40,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["getUserFolder",["1c854874-da3a-44dc-aeb0-bd01e1b991d7"]]},{"file":"/var/www/nextcloud/lib/private/Share20/Share.php","line":185,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->","args":["1c854874-da3a-44dc-aeb0-bd01e1b991d7"]},{"file":"/var/www/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php","line":871,"function":"getNode","class":"OC\\Share20\\Share","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php","line":830,"function":"getFormattedShares","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":["62927",{"__class__":"OC\\Files\\Node\\Folder"},false,true,false,false]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"getShares","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":["false","true","false","/transferred from Bagit Airlangga on 2024-11-27 06-52-07/AIO/SECURITY","false"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareAPIController","getShares",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},["ocs.files_sharing.ShareAPI.getShares"]]},{"file":"/var/www/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/files_sharing/api/v1/shares"]},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":372,"CustomMessage":"--"}}

I hope any of you can help with this and it’s very helpful for me Thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.