NextCloud 16.0.1 - OCP\Files\NotFoundException:

Hi, I have just updated NC from 15.0.7 to 16.0.1 and after updating I am getting this error in Admin Logging, anyone have solution for this? @jospoortvliet & @Schmu

About Setup:

Nextcloud version: 16.0.1
Operating system and version: Ubuntu 16.04.6 LTS
Apache version: Apache 2.4.18
PHP version: 7.2.16

The output of my Nextcloud log in Admin > Logging :

[index] Error: OCP\Files\NotFoundException: /admin/files/Staff at <<closure>>

 0. /var/www/nextcloud/lib/private/Files/Node/Folder.php line 134
    OC\Files\Node\Root->get("/admin/files/Staff")
 1. /var/www/nextcloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php line 122
    OC\Files\Node\Folder->get("/Staff")
 2. <<closure>>
    OCA\Recommendations\Service\RecentlySharedFilesSource->OCA\Recommendations\Service\{closure}("*** sensitive parameters replaced ***")
 3. /var/www/nextcloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php line 127
    undefinedundefinedarray_map(Closure {}, [OC\Share20\Shar ... "])
 4. /var/www/nextcloud/apps/recommendations/lib/Service/RecommendationService.php line 91
    OCA\Recommendations\Service\RecentlySharedFilesSource->getMostRecentRecommendation(OC\User\User {}, 6)
 5. <<closure>>
    OCA\Recommendations\Service\RecommendationService->OCA\Recommendations\Service\{closure}("*** sensitive parameters replaced ***")
 6. /var/www/nextcloud/apps/recommendations/lib/Service/RecommendationService.php line 92
    undefinedundefinedarray_reduce([OCA\Recommendat ... "], Closure {}, [])
 7. /var/www/nextcloud/apps/recommendations/lib/Controller/RecommendationController.php line 63
    OCA\Recommendations\Service\RecommendationService->getRecommendations(OC\User\User {})
 8. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
    OCA\Recommendations\Controller\RecommendationController->index()
 9. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Recommendati ... {}, "index")
10. /var/www/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Recommendati ... {}, "index")
11. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Recommenda ... r", "index", OC\AppFramework\ ... {}, {_route: "recomm ... "})
12. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "recomm ... "})
13. /var/www/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "recomm ... "})
14. /var/www/nextcloud/lib/base.php line 975
    OC\Route\Router->match("/apps/recommend ... s")
15. /var/www/nextcloud/index.php line 42
    OC::handleRequest()

The output of my config.php file in /path/to/nextcloud:

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '/',
  'trusted_domains' =>
  array (
    0 => '192.168.0',
    1 => '',
    2 => '',
  ),
  'datadirectory' => '/var/www/nextcloud-data/',
  'overwrite.cli.url' => 'https://192.168.0/nextcloud',
  'Overwriteprotocol' => 'https',
  'htaccess.RewriteBase' => '/',
  'dbtype' => 'mysql',
  'version' => '16.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'mysql.utf8mb4' => true,
  'logtimezone' => '',
  'installed' => true,																	   
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => ----,
    'timeout' => 3,
  ),
  'maintenance' => false,
  'theme' => '',
  'debug' => false,
  'log_type' => 'file',
  'logfile' => '/var/www/nextcloud-data/nextcloud.log',
  'loglevel' => 2,
  'log_rotate_size' => false,
  'logdateformat' => 'F d, Y H:i:s',
  'mail_smtpmode' => 'sendmail',
  'mail_smtptimeout' => 30,
  'mail_from_address' => '',
  'mail_domain' => '',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'mail_smtpdebug' => 'true',
  'updater.release.channel' => 'stable',
  'appcodechecker' => false,
  'updater.secret' => '',
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
  ),
);

The output of my Apache/system log in /var/log/____:

[16/May/2019:06:25:31 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.0;$
 - -nick [16/May/2019:06:25:32 -0400] "PROPFIND /remote.php/dav/files/nick/ HTTP/1.1" 207 4799 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1$
 - -[16/May/2019:06:25:38 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:25:39 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:25:45 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:25:46 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10$
 - - [16/May/2019:06:25:46 -0400] "GET /apps/notifications/img/notifications.svg HTTP/1.1" 304 226 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; $
 - - [16/May/2019:06:25:47 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.0;$
 - - [16/May/2019:06:25:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1117 "https://nextcloud-forum-asia.or$
 - benny [16/May/2019:06:25:49 -0400] "PROPFIND /remote.php/webdav/HRD%20Programme HTTP/1.1" 207 1420 "-" "Mozilla/5.0 (Windows) mirall/2.2.4 $
 - - [16/May/2019:06:25:51 -0400] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2FFORUM-ASIA%20Documents%2FMission%20Documents%2F20$
 - - [16/May/2019:06:25:51 -0400] "GET /csrftoken HTTP/1.1" 200 1292 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Fire$
 - - [16/May/2019:06:25:52 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 996 "-" "Mozilla/5.0 (Windows NT 10.0; $
 - - [16/May/2019:06:25:52 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:25:53 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:25:53 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 996 "-" "Mozilla/5.0 (Windows NT 10.0$
 - - [16/May/2019:06:25:54 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 996 "-" "Mozilla/5.0 (Windows NT 10.0; $
 - - [16/May/2019:06:25:57 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:25:57 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.$
 - - [16/May/2019:06:26:01 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.0;$
 - - [16/May/2019:06:26:01 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1149 "-" "Mozilla/5.0 (Windows NT 10.0;$
 - nick [16/May/2019:06:26:01 -0400] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 1139 "-" "Mozilla/5.0 $

How to reproduce:
If I share some folder to group which I member of, Recommendations trying to open nonexistent path files/%%shared_folder_name%% according to data in oc_mounts table

sudo -u www-data php /var/www/nextcloud/occ app:disable recommendations

@Schmu Thank you so much, I will update you tomorrow and I hope this will solve the error.

Do you have any solution for this Error “jsresourceloader” Could not find resource core/vendor/marked/marked.min.js to load

1 Like

Better go directly to the github, even reclone the app with git to have the latest files !

version 0.4.0 is available through NC, but 0.5.0 through GIT !

Thank you so much, I am not getting that error anymore but now I am getting a new error :worried:

[webdav] Fatal: Sabre\DAV\Exception\BadRequest: expected filesize 408071 got 311296 at <<closure>>

0. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1130
   OCA\DAV\Connector\Sabre\File->put("*** sensitive parameter replaced ***")
1. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 513
   Sabre\DAV\Server->updateFile("*** sensitive parameters replaced ***")
2. <<closure>>
   Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
3. /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
   undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
4. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
   Sabre\Event\EventEmitter->emit("method:PUT", [Sabre\HTTP\Requ ... }])
5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
   Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
6. /var/www/nextcloud/apps/dav/lib/Server.php line 316
   Sabre\DAV\Server->exec()
7. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
   OCA\DAV\Server->exec()
8. /var/www/nextcloud/remote.php line 163
   undefinedundefinedrequire_once("/var/www/nextcl ... p")

PUT /remote.php/dav/files/nick/Temp%20Docs/FA01_Visayas_Security_Training_Hotel_Deposit_Draft.xlsx
from 101.108.131.176 by nick at 2019-05-31T17:57:19+07:00

Thank you, I will try that.