Some files have not passed the integrity check. Related to CADViewer

[details=“Support intro”]

Errors reported on the ‘Admin Settings’ page after removing CADViewer.

The message at the target of the link in the errror message reads:

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- cadviewer
	- EXCEPTION
		- Exception
		- App not found

Raw output
==========
Array
(
    [cadviewer] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => Exception
                    [message] => App not found
                )

        )

)

I’ve read the documentation but it has no mention of anything that helps with ‘app not found’

Nextcloud version 25.0.3
Operating system and version Ubuntu 22.04
NGinx
PHP version 8.1

Steps to replicate it:

  1. Go to ‘Apps’ page
  2. install CADViewer
  3. Regret installing CADViewer and remove it

Contents of config.php:

<?php
$CONFIG = array (
  'instanceid' => '***************',
  'passwordsalt' => '***************',
  'secret' => '***************',
  'trusted_domains' => 
  array (
    0 => '***************',
  ),
  'default_phone_region' => 'AU',
  'music.lastfm_api_key' => '03c1***************d3a0b59',
  'datadirectory' => '/var/www/***************data',
  'dbtype' => 'pgsql',
  'version' => '25.0.3.2',
  'overwrite.cli.url' => 'https://***************/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '***************,
  'dbpassword' => '***************',
  'filesystem_check_changes' => 1,
  'installed' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'maintenance' => false,
  'mail_from_address' => '***************',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '***************',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => '***************',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '***************',
  'mail_smtppassword' => '***************',
  'app_install_overwrite' => 
  array (
    0 => 'documentserver_community',
    1 => 'flowupload',
    2 => 'keeporsweep',
    3 => 'files_texteditor',
    4 => 'carnet',
    5 => 'drawio',
    6 => 'files_markdown',
    7 => 'files_mindmap',
    8 => 'news',
    9 => 'cms_pico',
    10 => 'duplicatefinder',
    11 => 'socialsharing_diaspora',
    12 => 'socialsharing_email',
    13 => 'unsplash',
    14 => 'ransomware_protection',
    15 => 'flow_notifications',
    16 => 'workflow_media_converter',
    17 => 'workflow_script',
    18 => 'epubreader',
    19 => 'extract',
    20 => 'googledocsredirect',
    21 => 'backup',
    22 => 'files_reader',
  ),
  'has_rebuilt_cache' => true,
  'updater.release.channel' => 'stable',
  'theme' => '',
  'loglevel' => 0,
);


[no app in context] Info: Deprecated event type for OCP\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\Component\EventDispatcher\GenericEvent is used


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[PHP] Error: Error: file_get_contents(/var/www/nextcloud/apps/cadviewer/appinfo/signature.json): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError()
 1. /var/www/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php line 44
    file_get_contents()
 2. /var/www/nextcloud/lib/private/IntegrityCheck/Checker.php line 330
    OC\IntegrityCheck\Helpers\FileAccessHelper->file_get_contents()
 3. /var/www/nextcloud/lib/private/IntegrityCheck/Checker.php line 521
    OC\IntegrityCheck\Checker->verify()
 4. /var/www/nextcloud/core/Command/Integrity/CheckApp.php line 68
    OC\IntegrityCheck\Checker->verifyAppSignature()
 5. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php line 255
    OC\Core\Command\Integrity\CheckApp->execute()
 6. /var/www/nextcloud/core/Command/Base.php line 177
    Symfony\Component\Console\Command\Command->run()
 7. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 1009
    OC\Core\Command\Base->run()
 8. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 273
    Symfony\Component\Console\Application->doRunCommand()
 9. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 149
    Symfony\Component\Console\Application->doRun()
10. /var/www/nextcloud/lib/private/Console/Application.php line 213
    Symfony\Component\Console\Application->run()
11. /var/www/nextcloud/console.php line 100
    OC\Console\Application->run()
12. /var/www/nextcloud/occ line 11
    require_once("/var/www/nextcloud/console.php")

at 2023-02-05T00:50:57+00:00


and:

[no app in context] Error: OCP\AppFramework\QueryException: Could not resolve OCA\Cadviewer\AppInfo\ViewerListener! Class "OCA\Cadviewer\AppInfo\ViewerListener" does not exist at <<closure>>

 0. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 133
    OC\AppFramework\Utility\SimpleContainer->resolve()
 1. /var/www/nextcloud/lib/private/ServerContainer.php line 161
    OC\AppFramework\Utility\SimpleContainer->query()
 2. /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 71
    OC\ServerContainer->query()
 3. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
    OC\EventDispatcher\ServiceEventListener->__invoke()
 4. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
    Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
 5. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 88
    Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
 6. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 100
    OC\EventDispatcher\EventDispatcher->dispatch()
 7. /var/www/nextcloud/apps/files/lib/Controller/ViewController.php line 304
    OC\EventDispatcher\EventDispatcher->dispatchTyped()
 8. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Files\Controller\ViewController->index()
 9. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
10. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
11. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
12. /var/www/nextcloud/lib/base.php line 1047
    OC\Route\Router->match()
13. /var/www/nextcloud/index.php line 36
    OC::handleRequest()


Just disable and remove the app, then install and enable again. Done. All settings, documents and whatsnot, are saved and preserved in the database.

Thanks for your reply. Unfortunately, it didn’t quite work.

I re-installed and enabled CADViewer but no change was made to the error message. Disabled and removed cADViewer, still no change to the message. I even restarted the whole setup inbetween the steps, still no joy.
I think I might be looking for a way to surgically remove whatever has been left orphaned and causes the error. I just don’t know where to find it or what might happen if I do.