Server: Error - no app in context - OCP\Files\NotFoundException:

Created on 23 Oct 2016  Â·  7Comments  Â·  Source: nextcloud/server

Steps to reproduce

  1. Running system
    2.
    3.

    Expected behaviour

Tell us what should happen

Actual behaviour

The log is filled with the error message - Error

no app in context

OCP\Files\NotFoundException:

Server configuration

Operating system:
ubuntu
Web server:
apache
Database:
mariadb
PHP version:

Nextcloud version: (see Nextcloud admin page)
10.0.1 (updated per snap)
Updated from an older Nextcloud/ownCloud or fresh install:
updated from 10.0
Where did you install Nextcloud from:
nextcloud website
Signing status:


Signing status

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:


App list

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

The content of config/config.php:


Config report

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

<?php
$CONFIG = array (
  'passwordsalt' =>
  'secret' => 
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '10.7.50.19',
    2 => 'nextcloud',
    3 => 'nextcloud',
    4 => 
  ),
  'datadirectory' => '/var/ncdata',
  'overwrite.cli.url' => 
  'dbtype' => 'mysql',
  'version' => '9.1.0.16',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_ncadmin',
  'dbpassword' => 
  'logtimezone' => 'UTC',
  'installed' => true,
  'instanceid' => 'ocy9r9oj7fyg',
  'appstore.experimental.enabled' => 'true',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 
  'mail_domain' => 'gmail.com',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => 
  'mail_smtppassword' => 
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'maintenance' => false,
);



Error log shows following

OCP\Files\NotFoundException:
1. /var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php - line 437: OC\Share20\Share->getNode()
2. /var/www/nextcloud/lib/private/Share20/Manager.php - line 878: OC\Share20\DefaultShareProvider->move(Object(OC\Share20\Share), 'Intranet')
3. /var/www/nextcloud/apps/files_sharing/lib/SharedMount.php - line 120: OC\Share20\Manager->moveShare(Object(OC\Share20\Share), 'Intranet')
4. /var/www/nextcloud/apps/files_sharing/lib/SharedMount.php - line 102: OCA\Files_Sharing\SharedMount->updateFileTarget('/Klasse 2010 (2...', Object(OC\Share20\Share))
5. /var/www/nextcloud/apps/files_sharing/lib/SharedMount.php - line 73: OCA\Files_Sharing\SharedMount->verifyMountPoint(Object(OC\Share20\Share), Array)
6. /var/www/nextcloud/apps/files_sharing/lib/MountProvider.php - line 91: OCA\Files_Sharing\SharedMount->__construct('\OC\Files\Stora...', Array, Array, Object(OC\Files\Storage\StorageFactory))
7. /var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php - line 77: OCA\Files_Sharing\MountProvider->getMountsForUser(Object(OC\User\User), Object(OC\Files\Storage\StorageFactory))
8. [internal function] OC\Files\Config\MountProviderCollection->OC\Files\Config{closure}(Object(OCA\Files_Sharing\MountProvider))
9. /var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php - line 78: array_map(Object(Closure), Array)
10. /var/www/nextcloud/lib/private/Files/Filesystem.php - line 423: OC\Files\Config\MountProviderCollection->getMountsForUser(Object(OC\User\User))
11. /var/www/nextcloud/apps/files_sharing/lib/sharedstorage.php - line 94: OC\Files\Filesystem initMountPoints('Intranet')
12. /var/www/nextcloud/apps/files_sharing/lib/sharedstorage.php - line 413: OC\Files\Storage\Shared->init()
13. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 486: OC\Files\Storage\Shared->getWrapperStorage()
14. /var/www/nextcloud/lib/private/legacy/util.php - line 149: OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage('\OC\Files\Stora...')
15. /var/www/nextcloud/lib/private/Files/Storage/StorageFactory.php - line 101: OC_Util {closure}('/a.thoma/files/...', Object(OC\Files\Storage\Shared), Object(OCA\Files_Sharing\SharedMount))
16. /var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 146: OC\Files\Storage\StorageFactory->wrap(Object(OCA\Files_Sharing\SharedMount), Object(OC\Files\Storage\Shared))
17. /var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 170: OC\Files\Mount\MountPoint->createStorage()
18. /var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 121: OC\Files\Mount\MountPoint->getStorage()
19. /var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 88: OC\Files\Utils\Scanner->backgroundScan('')
20. /var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 112: OCA\Files\BackgroundJob\ScanFiles->runScanner(Object(OC\User\User))
21. /var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 53: OCA\Files\BackgroundJob\ScanFiles->run(NULL)
22. /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 54: OC\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
23. /var/www/nextcloud/cron.php - line 121: OC\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
24. {main}


Insert your config.php content here
(Without the database password, passwordsalt and secret)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)


LDAP config

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log


Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)


Nextcloud log

Insert your Nextcloud log here

Browser log


Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

bug sharing

Most helpful comment

I'm seeing something very similar after the upgrade to 12.0.3

All 7 comments

error log shows following

OCP\Files\NotFoundException:

  1. /var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php - line 437: OC\Share20\Share->getNode()
  2. /var/www/nextcloud/lib/private/Share20/Manager.php - line 878: OC\Share20\DefaultShareProvider->move(Object(OC\Share20\Share), 'Intranet')
  3. /var/www/nextcloud/apps/files_sharing/lib/SharedMount.php - line 120: OC\Share20\Manager->moveShare(Object(OC\Share20\Share), 'Intranet')
  4. /var/www/nextcloud/apps/files_sharing/lib/SharedMount.php - line 102: OCA\Files_Sharing\SharedMount->updateFileTarget('/Klasse 2010 (2...', Object(OC\Share20\Share))
  5. /var/www/nextcloud/apps/files_sharing/lib/SharedMount.php - line 73: OCA\Files_Sharing\SharedMount->verifyMountPoint(Object(OC\Share20\Share), Array)
  6. /var/www/nextcloud/apps/files_sharing/lib/MountProvider.php - line 91: OCA\Files_Sharing\SharedMount->__construct('\OC\Files\Stora...', Array, Array, Object(OC\Files\Storage\StorageFactory))
  7. /var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php - line 77: OCA\Files_Sharing\MountProvider->getMountsForUser(Object(OC\User\User), Object(OC\Files\Storage\StorageFactory))
  8. [internal function] OC\Files\Config\MountProviderCollection->OC\Files\Config{closure}(Object(OCA\Files_Sharing\MountProvider))
  9. /var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php - line 78: array_map(Object(Closure), Array)
  10. /var/www/nextcloud/lib/private/Files/Filesystem.php - line 423: OC\Files\Config\MountProviderCollection->getMountsForUser(Object(OC\User\User))
  11. /var/www/nextcloud/apps/files_sharing/lib/sharedstorage.php - line 94: OC\Files\Filesystem initMountPoints('Intranet')
  12. /var/www/nextcloud/apps/files_sharing/lib/sharedstorage.php - line 413: OC\Files\Storage\Shared->init()
  13. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 486: OC\Files\Storage\Shared->getWrapperStorage()
  14. /var/www/nextcloud/lib/private/legacy/util.php - line 149: OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage('\OC\Files\Stora...')
  15. /var/www/nextcloud/lib/private/Files/Storage/StorageFactory.php - line 101: OC_Util {closure}('/a.thoma/files/...', Object(OC\Files\Storage\Shared), Object(OCA\Files_Sharing\SharedMount))
  16. /var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 146: OC\Files\Storage\StorageFactory->wrap(Object(OCA\Files_Sharing\SharedMount), Object(OC\Files\Storage\Shared))
  17. /var/www/nextcloud/lib/private/Files/Mount/MountPoint.php - line 170: OC\Files\Mount\MountPoint->createStorage()
  18. /var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 121: OC\Files\Mount\MountPoint->getStorage()
  19. /var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 88: OC\Files\Utils\Scanner->backgroundScan('')
  20. /var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 112: OCA\Files\BackgroundJob\ScanFiles->runScanner(Object(OC\User\User))
  21. /var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 53: OCA\Files\BackgroundJob\ScanFiles->run(NULL)
  22. /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 54: OC\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
  23. /var/www/nextcloud/cron.php - line 121: OC\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
  24. {main}

@rullzer

Same issue with nextcloud 10.0.1 upgraded from owncloud 9.0

Any hint how to debug/solve the problem?

Nope, I have not had any feedback and am still waiting for a response. My system is running but the log file is getting bigger and bigger.

At some point we need a resolution

Von: enboig [mailto:[email protected]]
Gesendet: Freitag, 11. November 2016 08:59
An: nextcloud/server
Cc: Wolf Dieter Herf; Author
Betreff: Re: [nextcloud/server] Error - no app in context - OCP\Files\NotFoundException: (#1862)

Same issue with nextcloud 10.0.1 upgraded from owncloud 9.0

Any hint how to debug/solve the problem?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/server/issues/1862#issuecomment-259902055, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVwmIiguMOiCwAd8dpDI1XI8AY5mCBjOks5q9CBUgaJpZM4KeFmn.

As far as I can tell this is fixed in NC11.
I'll try to see if I can find a quick fix for NC10

Fixed wiht #2091

I'm seeing something very similar after the upgrade to 12.0.3

Was this page helpful?
0 / 5 - 0 ratings