OCP\Files\NotFoundException immediately after login

Steps to reproduce
- Just login using the web login form (with an account that was created to OwnCloud 9 times before migration to Nextcloud and that was NOT in use since that time)
Expected behaviour
Show the start page with files listing
Actual behaviour
Internal server error message:
Interner Serverfehler
Der Server konnte die Anfrage nicht fertig stellen.
Sollte dies erneut auftreten, senden Sie bitte die nachfolgenden technischen Einzelheiten an Ihren Server-Administrator.
Weitere Details können im Server-Protokoll gefunden werden.
Technische Details
Entfernte Adresse: 192.168.x.x
Anfragekennung: t3ojNrAk0NH6G6b93cDX
Server configuration
Operating system: Ubuntu 18.04
Web server: Apache
Database: MariaDB/MySQL
PHP version: 7
Nextcloud version: 14.04
Updated from an older Nextcloud/ownCloud or fresh install: migrated from OwnCloud 10
Where did you install Nextcloud from: nextcloud sources
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
Enabled:
- accessibility: 1.0.1
- activity: 2.7.0
- admin_audit: 1.4.0
- admin_notifications: 1.0.2
- apporder: 0.5.0
- bruteforcesettings: 1.2.0
- calendar: 1.6.3
- cloud_federation_api: 0.0.1
- comments: 1.4.0
- contacts: 2.1.7
- data_request: 1.1.0
- dav: 1.6.0
- deck: 0.5.0
- federatedfilesharing: 1.4.0
- federation: 1.4.0
- files: 1.9.0
- files_accesscontrol: 1.4.0
- files_automatedtagging: 1.4.0
- files_external: 1.5.0
- files_pdfviewer: 1.3.2
- files_retention: 1.3.0
- files_sharing: 1.6.2
- files_texteditor: 2.6.0
- files_trashbin: 1.4.1
- files_versions: 1.7.1
- files_videoplayer: 1.3.0
- firstrunwizard: 2.3.0
- gallery: 18.1.0
- group_everyone: 0.1.0
- logreader: 2.0.0
- lookup_server_connector: 1.2.0
- nextcloud_announcements: 1.3.0
- notifications: 2.2.1
- oauth2: 1.2.1
- password_policy: 1.4.0
- polls: 0.8.3
- provisioning_api: 1.4.0
- quota_warning: 1.3.0
- ransomware_protection: 1.2.0
- serverinfo: 1.4.0
- sharebymail: 1.4.0
- spreed: 4.0.1
- support: 1.0.0
- survey_client: 1.2.0
- systemtags: 1.4.0
- terms_of_service: 1.0.3
- theming: 1.5.0
- twofactor_backupcodes: 1.3.1
- updatenotification: 1.4.1
- workflowengine: 1.4.0
Disabled:
- announcementcenter
- encryption
- external
- tasks
- twofactor_totp
- user_external
- user_ldap
Nextcloud configuration:
Config report
{
"system": {
"updatechecker": false,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"beiweb01.ad.kohelet-network.org",
"owncloud.beitelisrael.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"memcache.local": "\\OC\\Memcache\\APCu",
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"overwrite.cli.url": "https:\/\/owncloud.beitelisrael.de\/owncloud",
"dbtype": "mysql",
"version": "14.0.4.2",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"ldapIgnoreNamingRules": false,
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"mail_smtpsecure": "tls",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"loglevel": 3,
"maintenance": false,
"theme": "",
"htaccess.RewriteBase": "\/owncloud",
"singleuser": false
}
}
Are you using external storage, if yes which one: lno
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Chrome at several independent machines
Operating system:
Logs
Web server error log
Web server error log
87.182.72.69 - - [04/Dec/2018:09:05:18 +0100] "GET /owncloud/index.php/avatar/jf/42 HTTP/1.1" 201 1197 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15"
87.182.72.69 - - [04/Dec/2018:09:05:59 +0100] "GET /owncloud/index.php/avatar/jf/64 HTTP/1.1" 201 1317 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15"
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"t3ojNrAk0NH6G6b93cDX","level":3,"time":"2018-12-04T08:46:59+00:00","remoteAddr":"192.168.32.227","user":"jf","app":"index","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"\/var\/www\/owncloud\/apps\/files\/lib\/Controller\/ViewController.php","line":128,"function":"getStorageInfo","class":"OC_Helper","type":"::","args":["\/",false]},{"file":"\/var\/www\/owncloud\/apps\/files\/lib\/Controller\/ViewController.php","line":157,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":[]},{"file":"\/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["","",null,false]},{"file":"\/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"\/var\/www\/owncloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"\/var\/www\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"\/var\/www\/owncloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"\/var\/www\/owncloud\/lib\/base.php","line":987,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/files\/"]},{"file":"\/var\/www\/owncloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/owncloud\/lib\/private\/legacy\/helper.php","Line":544,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36","version":"14.0.4.2"}
Have the same problem, print missing files to html gives:
/appdata_oc1fiqtp1ukf/css/icons/icons-list.template /appdata_oc1fiqtp1ukf/css/icons/icons-vars.css /appdata_oc1fiqtp1ukf/css/icons/icons-vars.css
@ksc91u How did you "print missing files to html"?
@stone212 turn on debug in config/config.php, you will see exception stacktrace when login
print $this->path in file
nextcloud/lib/private/Files/Node/Node.php
around line 97
same error here after upgrade to 14.0.6
I've the sam error using:
- Nextxcloud Version: 15.0.2.0
- PHP Version: 7.2.13
- Art: mysql Version: 10.1.37
I get the following error in Desktop sync

If I show at my protokoll logs I got the following error
`
| Error | no app in context | OCP\Files\StorageNotAvailableException: File with id "10349" has not been found./data/nextcloud/apps/files_sharing/lib/SharedStorage.php - line 423:OC\Files\Storage\FailedStorage->acquireLock("", 1, OC\Lock\Memc ... {})/data/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 593:OCA\Files_Sharing\SharedStorage->acquireLock("", 1, OC\Lock\Memc ... {})/data/nextcloud/lib/private/Files/View.php - line 1923:OC\Files\Storage\Wrapper\Wrapper->acquireLock("", 1, OC\Lock\Memc ... {})/data/nextcloud/lib/private/Files/View.php - line 2033:OC\Files\View->lockPath("/mgm/files/ ... g", 1, false)/data/nextcloud/lib/private/Files/Node/Node.php - line 366:OC\Files\View->lockFile("/mgm/files/ ... g", 1)/data/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php - line 1119:OC\Files\Node\Node->lock(1)/data/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php - line 685:OCA\Files_Sharing\Controller\ShareAPIController->lock(OC\Files\Node\File {})/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 166:OCA\Files_Sharing\Controller\ShareAPIController->getShares("true", "false", "false", OC\Files\Node\File {}, "false")/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Sh ... {}, "getShares")/data/nextcloud/lib/private/AppFramework/App.php - line 118:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sh ... {}, "getShares")/data/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main("OCA\Files_ ... r", "getShares", OC\AppFramew ... {}, { _route: "o ... "})< |
|---|---|---|
| ` |
Is there a workaround to get the file who triggered the problem and fix it? Thx
Perhaps try running the maintenance:repair command from occ. If you don't have command-line access, it is possible to do that as a cron job if you're using shared hosting with something like cPanel.
I fixed it, it is a permission problem.
/nextcloud_data/appdata_oc1fiqtp1ukf/css/icons
in my nextcloud data folder, the folder permission was owned by root, after change it to www-data, those missing css files would be generated.
@ksc91u it's a different problem. "NotFoundException" is quite generic, but the TO's stack trace comes from somewhere else, not Node.
@JochenHWezel did the old account was over logged in before, or only created?
@musaa32 could you also provide the error message from the the log file? I doubt it is the same either.
Also @kpleines problem is different, already be the error message. It seems to be related to remote shares and might be fixed with the latest release → please update and check again.
As there is no feedback since a while I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.