Failed code integrity check after update

System details

Nextcloud version : 27.1.4
Operating system and version: Ubuntu 22.04.03 LTS
Apache or nginx version : Apache /2.4.51
PHP version : PHP 8.1.2-1ubuntu2.14

The Issue:

I recently updated my instance to 27.1.4. Since then I get the following warning in the admin panel:

Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation :arrow_upper_right:. (List of invalid files…)

I will paste the list below

In an attempt to fix this I have attempted to add all the missing files and replace the ones with a wrong signature by re-downloading them and replacing my entire /[location of nextcloud, in my case var/www/nextcloud]/lib/ folder as follows:

$ cd /tmp
$ wget  https://download.nextcloud.com/server/releases/nextcloud-27.1.4.zip
$ unzip nextcloud-27.1.4.zip
$ cp -rf nextcloud/lib/ /var/www/nextcloud/lib/
$ systemctl restart apache2.service

This did not change the list of files which have not passed the integrity check.
After checking I noticed that all files that were listed as missing (that I checked) were not contained in the downloaded nextcloud version either. For example:
$ ls -A /tmp/nextcloud/lib/private/Activity ActivitySettingsAdapter.php Event.php EventMerger.php Manager.php
so it clearly does not contain the following missing files:

- lib/Activity/Listener.php
- lib/Activity/Provider/Base.php
-Activity/Provider/Call.php
-Activity/Provider/Invitation.php
-Activity/Setting.php

How do I fix this/where could I get the needed files?

Further information:

Is this the first time you've seen this error? :

Yes

Steps to replicate it:

  1. go to overview in the Admin panel
  2. look at the warnings displayed.
  3. replace the …/nextcloud/lib folder with a newly downloaded one
  4. restart the web service
  5. check if issue persists

Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation :arrow_upper_right:. (List of invalid files…)

List of invalid files:

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
=======
- spreed
	- INVALID_HASH
		- l10n/sk.json
		- l10n/sl.js
		- l10n/sl.json
		- l10n/sq.js
		- l10n/sq.json
		- l10n/sr.js
		- l10n/sr.json
		- l10n/sv.js
		- l10n/sv.json
		- l10n/th.js
		- l10n/th.json
		- l10n/tr.js
		- l10n/tr.json
		- l10n/uk.js
		- l10n/uk.json
		- l10n/vi.js
		- l10n/vi.json
		- l10n/zh_CN.js
		- l10n/zh_CN.json
		- l10n/zh_HK.js
		- l10n/zh_HK.json
		- l10n/zh_TW.js
		- l10n/zh_TW.json
		- webpack.common.config.js
	- FILE_MISSING
		- lib/Activity/Listener.php
		- lib/Activity/Provider/Base.php
		- lib/Activity/Provider/Call.php
		- lib/Activity/Provider/Invitation.php
		- lib/Activity/Setting.php
		- lib/AppInfo/Application.php
		- lib/BackgroundJob/CheckHostedSignalingServer.php
		- lib/BackgroundJob/CheckMatterbridges.php
		- lib/BackgroundJob/CheckReferenceIdColumn.php
		- lib/BackgroundJob/ExpireChatMessages.php
		- lib/BackgroundJob/ExpireSignalingMessage.php
		- lib/BackgroundJob/RemoveEmptyRooms.php
		- lib/BackgroundJob/ResetAssignedSignalingServer.php
		- lib/BackgroundJob/RetryJob.php
		- lib/Capabilities.php
		- lib/Chat/AutoComplete/SearchPlugin.php
		- lib/Chat/AutoComplete/Sorter.php
		- lib/Chat/Changelog/Listener.php
		- lib/Chat/Changelog/Manager.php
		- lib/Chat/ChatManager.php
		- lib/Chat/Command/Executor.php
		- lib/Chat/Command/Listener.php
		- lib/Chat/Command/ShellExecutor.php
		- lib/Chat/CommentsManager.php
		- lib/Chat/MessageParser.php
		- lib/Chat/Notifier.php
		- lib/Chat/Parser/Changelog.php
		- lib/Chat/Parser/Command.php
		- lib/Chat/Parser/Listener.php
		- lib/Chat/Parser/ReactionParser.php
		- lib/Chat/Parser/SystemMessage.php
		- lib/Chat/Parser/UserMention.php
		- lib/Chat/ReactionManager.php
		- lib/Chat/SystemMessage/Listener.php
		- lib/Collaboration/Collaborators/Listener.php
		- lib/Collaboration/Collaborators/RoomPlugin.php
		- lib/Collaboration/Reference/ReferenceInvalidationListener.php
		- lib/Collaboration/Reference/TalkReferenceProvider.php
		- lib/Collaboration/Resources/ConversationProvider.php
		- lib/Collaboration/Resources/Listener.php
		- lib/Command/Command/Add.php
		- lib/Command/Command/AddSamples.php
		- lib/Command/Command/Delete.php
		- lib/Command/Command/ListCommand.php
		- lib/Command/Command/TRenderCommand.php
		- lib/Command/Command/Update.php
		- lib/Command/Developer/UpdateDocs.php
		- lib/Command/Monitor/Calls.php
		- lib/Command/Monitor/HasActiveCalls.php
		- lib/Command/Monitor/Room.php
		- lib/Command/Room/Add.php
		- lib/Command/Room/Create.php
		- lib/Command/Room/Delete.php
		- lib/Command/Room/Demote.php
		- lib/Command/Room/Promote.php
		- lib/Command/Room/Remove.php
		- lib/Command/Room/TRoomCommand.php
		- lib/Command/Room/Update.php
		- lib/Command/Signaling/Add.php
		- lib/Command/Signaling/Delete.php
		- lib/Command/Signaling/ListCommand.php
		- lib/Command/Stun/Add.php
		- lib/Command/Stun/Delete.php
		- lib/Command/Stun/ListCommand.php
		- lib/Command/Turn/Add.php
		- lib/Command/Turn/Delete.php
		- lib/Command/Turn/ListCommand.php
		- lib/Command/User/Remove.php
		- lib/Command/User/TransferOwnership.php
		- lib/Config.php
		- lib/ContactsMenu/Providers/CallProvider.php
		- lib/Controller/AEnvironmentAwareController.php
		- lib/Controller/AvatarController.php
		- lib/Controller/BreakoutRoomController.php
		- lib/Controller/CallController.php
		- lib/Controller/ChatController.php
		- lib/Controller/CommandController.php
		- lib/Controller/FederationController.php
		- lib/Controller/FilesIntegrationController.php
		- lib/Controller/GuestController.php
		- lib/Controller/HostedSignalingServerController.php
		- lib/Controller/MatterbridgeController.php
		- lib/Controller/MatterbridgeSettingsController.php
		- lib/Controller/PageController.php
		- lib/Controller/PollController.php
		- lib/Controller/PublicShareAuthController.php
		- lib/Controller/ReactionController.php
		- lib/Controller/RecordingController.php
		- lib/Controller/RoomController.php
		- lib/Controller/SettingsController.php
		- lib/Controller/SignalingController.php
		- lib/Controller/TempAvatarController.php
		- lib/Dashboard/TalkWidget.php
		- lib/DataObjects/AccountId.php
		- lib/DataObjects/RegisterAccountData.php
		- lib/Deck/DeckPluginLoader.php
		- lib/Events/AddEmailEvent.php
		- lib/Events/AddParticipantsEvent.php
		- lib/Events/AlreadySharedEvent.php
		- lib/Events/AttendeesAddedEvent.php
		- lib/Events/AttendeesEvent.php
		- lib/Events/AttendeesRemovedEvent.php
		- lib/Events/ChatEvent.php
		- lib/Events/ChatMessageEvent.php
		- lib/Events/ChatParticipantEvent.php
		- lib/Events/CommandEvent.php
		- lib/Events/CreateRoomTokenEvent.php
		- lib/Events/DuplicatedParticipantEvent.php
		- lib/Events/EndCallForEveryoneEvent.php
		- lib/Events/GetTurnServersEvent.php
		- lib/Events/JoinRoomGuestEvent.php
		- lib/Events/JoinRoomUserEvent.php
		- lib/Events/ModifyEveryoneEvent.php
		- lib/Events/ModifyLobbyEvent.php
		- lib/Events/ModifyParticipantEvent.php
		- lib/Events/ModifyRoomEvent.php
		- lib/Events/ParticipantEvent.php
		- lib/Events/RemoveParticipantEvent.php
		- lib/Events/RemoveUserEvent.php
		- lib/Events/RoomEvent.php
		- lib/Events/SendCallNotificationEvent.php
		- lib/Events/SignalingEvent.php
		- lib/Events/SignalingRoomPropertiesEvent.php
		- lib/Events/SilentModifyParticipantEvent.php
		- lib/Events/UserEvent.php
		- lib/Events/VerifyRoomPasswordEvent.php
		- lib/Exceptions/CannotReachRemoteException.php
		- lib/Exceptions/ForbiddenException.php
		- lib/Exceptions/HostedSignalingServerAPIException.php
		- lib/Exceptions/HostedSignalingServerInputException.php
		- lib/Exceptions/ImpossibleToKillException.php
		- lib/Exceptions/InvalidPasswordException.php
		- lib/Exceptions/ParticipantNotFoundException.php
		- lib/Exceptions/PermissionsException.php
		- lib/Exceptions/ReactionAlreadyExistsException.php
		- lib/Exceptions/ReactionNotSupportedException.php
		- lib/Exceptions/ReactionOutOfContextException.php
		- lib/Exceptions/RecordingNotFoundException.php
		- lib/Exceptions/RoomHasNoModeratorException.php
		- lib/Exceptions/RoomNotFoundException.php
		- lib/Exceptions/UnauthorizedException.php
		- lib/Exceptions/WrongPermissionsException.php
		- lib/Federation/CloudFederationProviderTalk.php
		- lib/Federation/FederationManager.php
		- lib/Federation/Notifications.php
		- lib/Files/Listener.php
		- lib/Files/TemplateLoader.php
		- lib/Files/Util.php
		- lib/Flow/Operation.php
		- lib/Flow/RegisterOperationsListener.php
		- lib/GuestManager.php
		- lib/Listener/AMembershipListener.php
		- lib/Listener/BeforeUserLoggedOutListener.php
		- lib/Listener/CSPListener.php
		- lib/Listener/CircleDeletedListener.php
		- lib/Listener/CircleMembershipListener.php
		- lib/Listener/DisplayNameListener.php
		- lib/Listener/FeaturePolicyListener.php
		- lib/Listener/GroupDeletedListener.php
		- lib/Listener/GroupMembershipListener.php
		- lib/Listener/RestrictStartingCalls.php
		- lib/Listener/UserDeletedListener.php
		- lib/Manager.php
		- lib/Maps/MapsPluginLoader.php
		- lib/MatterbridgeManager.php
		- lib/Middleware/CanUseTalkMiddleware.php
		- lib/Middleware/Exceptions/CanNotUseTalkException.php
		- lib/Middleware/Exceptions/LobbyException.php
		- lib/Middleware/Exceptions/NotAModeratorException.php
		- lib/Middleware/Exceptions/ReadOnlyException.php
		- lib/Middleware/InjectionMiddleware.php
		- lib/Migration/CacheUserDisplayNames.php
		- lib/Migration/ClearResourceAccessCache.php
		- lib/Migration/CreateHelpCommand.php
		- lib/Migration/FixNamespaceInDatabaseTables.php
		- lib/Migration/Version10000Date20200819121721.php
		- lib/Migration/Version10000Date20201012144235.php
		- lib/Migration/Version10000Date20201015134000.php
		- lib/Migration/Version10000Date20201015143852.php
		- lib/Migration/Version10000Date20201015150000.php
		- lib/Migration/Version11000Date20200922161218.php
		- lib/Migration/Version11000Date20201011082810.php
		- lib/Migration/Version11000Date20201201102528.php
		- lib/Migration/Version11000Date20201204110210.php
		- lib/Migration/Version11000Date20201209142525.php
		- lib/Migration/Version11000Date20201209142526.php
		- lib/Migration/Version11001Date20210211111527.php
		- lib/Migration/Version11001Date20210212105406.php
		- lib/Migration/Version12000Date20210217134030.php
		- lib/Migration/Version12000Date20210401124139.php
		- lib/Migration/Version12000Date20210528100404.php
		- lib/Migration/Version13000Date20210625232111.php
		- lib/Migration/Version13000Date20210901164235.php
		- lib/Migration/Version13000Date20210921142733.php
		- lib/Migration/Version13000Date20211007192733.php
		- lib/Migration/Version14000Date20211203132513.php
		- lib/Migration/Version14000Date20220217115327.php
		- lib/Migration/Version14000Date20220328153054.php
		- lib/Migration/Version14000Date20220330141647.php
		- lib/Migration/Version15000Date20220427183026.php
		- lib/Migration/Version15000Date20220503121308.php
		- lib/Migration/Version15000Date20220506005058.php
		- lib/Migration/Version16000Date20221110151714.php
		- lib/Migration/Version16000Date20221116163301.php
		- lib/Migration/Version16000Date20221208013745.php
		- lib/Migration/Version2000Date20170707093535.php
		- lib/Migration/Version2000Date20171026140256.php
		- lib/Migration/Version2000Date20171026140257.php
		- lib/Migration/Version2001Date20170707115443.php
		- lib/Migration/Version2001Date20170913104501.php
		- lib/Migration/Version2001Date20170921145301.php
		- lib/Migration/Version2001Date20170929092606.php
		- lib/Migration/Version2001Date20171009132424.php
		- lib/Migration/Version2001Date20171026134605.php
		- lib/Migration/Version2001Date20171026141336.php
		- lib/Migration/Version2001Date20171031102049.php
		- lib/Migration/Version2001Date20180103144447.php
		- lib/Migration/Version2001Date20180103150836.php
		- lib/Migration/Version3002Date20180319104030.php
		- lib/Migration/Version3003Date20180707222130.php
		- lib/Migration/Version3003Date20180718112436.php
		- lib/Migration/Version3003Date20180718133519.php
		- lib/Migration/Version3003Date20180720162342.php
		- lib/Migration/Version3003Date20180722152733.php
		- lib/Migration/Version3003Date20180722152849.php
		- lib/Migration/Version3003Date20180730080327.php
		- lib/Migration/Version4099Date20181001123058.php
		- lib/Migration/Version5099Date20190121102337.php
		- lib/Migration/Version5099Date20190319134820.php
		- lib/Migration/Version6099Date20190627172429.php
		- lib/Migration/Version7000Date20190717141457.php
		- lib/Migration/Version7000Date20190724121136.php
		- lib/Migration/Version7000Date20190724121137.php
		- lib/Migration/Version8000Date20200331144101.php
		- lib/Migration/Version8000Date20200402124456.php
		- lib/Migration/Version8000Date20200407073807.php
		- lib/Migration/Version8000Date20200407115318.php
		- lib/Model/Attachment.php
		- lib/Model/AttachmentMapper.php
		- lib/Model/Attendee.php
		- lib/Model/AttendeeMapper.php
		- lib/Model/BreakoutRoom.php
		- lib/Model/Command.php
		- lib/Model/CommandMapper.php
		- lib/Model/Invitation.php
		- lib/Model/InvitationMapper.php
		- lib/Model/Message.php
		- lib/Model/Poll.php
		- lib/Model/PollMapper.php
		- lib/Model/SelectHelper.php
		- lib/Model/Session.php
		- lib/Model/SessionMapper.php
		- lib/Model/Vote.php
		- lib/Model/VoteMapper.php
		- lib/Notification/Listener.php
		- lib/Notification/Notifier.php
		- lib/OCP/Conversation.php
		- lib/OCP/TalkBackend.php
		- lib/Participant.php
		- lib/Profile/TalkAction.php
		- lib/PublicShare/TemplateLoader.php
		- lib/PublicShareAuth/Listener.php
		- lib/PublicShareAuth/TemplateLoader.php
		- lib/Recording/BackendNotifier.php
		- lib/Room.php
		- lib/Search/ConversationSearch.php
		- lib/Search/CurrentMessageSearch.php
		- lib/Search/MessageSearch.php
		- lib/Search/UnifiedSearchCSSLoader.php
		- lib/Service/AttachmentService.php
		- lib/Service/AvatarService.php
		- lib/Service/BreakoutRoomService.php
		- lib/Service/CommandService.php
		- lib/Service/HostedSignalingServerService.php
		- lib/Service/MembershipService.php
		- lib/Service/ParticipantService.php
		- lib/Service/PollService.php
		- lib/Service/RecordingService.php
		- lib/Service/RoomFormatter.php
		- lib/Service/RoomService.php
		- lib/Service/SIPBridgeService.php
		- lib/Service/SessionService.php
		- lib/Settings/Admin/AdminSettings.php
		- lib/Settings/Admin/Section.php
		- lib/Settings/Personal.php
		- lib/Share/Helper/DeletedShareAPIController.php
		- lib/Share/Helper/ShareAPIController.php
		- lib/Share/Listener.php
		- lib/Share/RoomShareProvider.php
		- lib/Signaling/BackendNotifier.php
		- lib/Signaling/Listener.php
		- lib/Signaling/Manager.php
		- lib/Signaling/Messages.php
		- lib/Status/Listener.php
		- lib/TInitialState.php
		- lib/TalkSession.php
		- lib/Vendor/Firebase/JWT/BeforeValidException.php
		- lib/Vendor/Firebase/JWT/CachedKeySet.php
		- lib/Vendor/Firebase/JWT/ExpiredException.php
		- lib/Vendor/Firebase/JWT/JWK.php
		- lib/Vendor/Firebase/JWT/JWT.php
		- lib/Vendor/Firebase/JWT/Key.php
		- lib/Vendor/Firebase/JWT/SignatureInvalidException.php
		- lib/Webinary.php
		- sample-commands/calc.sh
		- sample-commands/hackernews.php
		- sample-commands/wikipedia.php
		- templates/authenticate.php
		- templates/index.php
		- templates/recording.php
		- templates/settings/admin-settings.php
		- templates/settings/personal/clients.php
		- vendor/autoload.php
		- vendor/composer/ClassLoader.php
		- vendor/composer/InstalledVersions.php
		- vendor/composer/LICENSE
		- vendor/composer/autoload_classmap.php
		- vendor/composer/autoload_namespaces.php
		- vendor/composer/autoload_psr4.php
		- vendor/composer/autoload_real.php
		- vendor/composer/autoload_static.php
		- vendor/composer/installed.json
		- vendor/composer/installed.php
		- vendor/composer/platform_check.php

Raw output
==========
Array
(
    [spreed] => Array
        (
            [INVALID_HASH] => Array
                (
                    [l10n/sk.json] => Array
                        (
                            [expected] => 95d6d3e9051889a5cc7603d4f714729976fa4e5b8cb7274edc6120dbf9807528e29140e004c1bebcf340a63412b5a3f41155f10f116aed60cdc643ca731f9539
                            [current] => 6398e13d0b9867563f343a3423abc48c944fdaf862a8b5ae086b0b238c2798c67019312650de409b0dc692db57276007bc2d899d04f60cf8d4fc6527039b49e8
                        )
       *[... (similar entries for other files with wrong signature, removed because of char limit)]*

                )

            [FILE_MISSING] => Array
                (
                    [lib/Activity/Listener.php] => Array
                        (
                            [expected] => 66c8cc61d23b98eba0624c3f9bce1c26642cb741a3aa4b0740cb50dcb291de599a96a4c08dfa42e0688480f8dc5d00c5724af94356eb5a4385fc5c8af990a974
                            [current] => 
                        )

                   *[... (similar entries for other missing files, removed because of char limit)]*
                )

        )

)

config.php

location: /var/www/nextcloud/config/config.php

<?php
$CONFIG = array (
  'instanceid' => '[REMOVED IN POST]',
  'passwordsalt' => '[REMOVED IN POST]',
  'secret' => '[REMOVED IN POST]',
  'trusted_domains' => 
  array (
    0 => '[REMOVED IN POST].TLD',
    1 => '192.[REMOVED IN POST]',
  ),
  'trusted_proxies' =>
  array (
  0 => '192.[REMOVED IN POST]',
  ),
  'datadirectory' => '/mnt/Data',
  'default_phone_region' => '[REMOVED IN POST]',
  'default_locale' => '[REMOVED IN POST]',
  'dbtype' => 'mysql',
  'version' => '27.1.4.1',
  'overwrite.cli.url' => '[REMOVED IN POST]',
  'dbname' => '[REMOVED IN POST]',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '[REMOVED IN POST]',
  'dbpassword' => '[REMOVED IN POST]',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'updater.secret' => '[REMOVED IN POST]',
);

That is a mistake.

The warning has nothing to do with the files inside of the nextcloud/lib folder. It is about the libfolder inside of:

[/quote]

spreed is the app_id of “Talk” app, so it is the talk app, that is corrupted.

You find the lib folder in question in:

nextcloud/apps/spreed/lib

The app seems to be registrated as installed but as good as completely damaged or not in sinch with the expected version.

Try simply to (completely) remove and reinstall it. Than you should run

occ  integrity:check-app spreed

to get rid of the error message.

Much luck,
ernolf

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