Invalid PHP Hashes!

Nextcloud version: nextcloud-23.0.2-1 =
Operating system and version: archlinux ARM
Apache or nginx version: nginx
PHP version php-8.1.4-1

The issue you are facing:

When running sudo -u http /usr/share/webapps/nextcloud/occ integrity:check-core, I get:

- INVALID_HASH:
    - 3rdparty/pimple/pimple/src/Pimple/Container.php:
      - expected: xxx
      - current: yyy
    - 3rdparty/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php:
      - expected: xxx
      - current: yyy
    - 3rdparty/pimple/pimple/src/Pimple/ServiceIterator.php:
      - expected: xxx
      - current: yyy
    - 3rdparty/pimple/pimple/src/Pimple/ServiceProviderInterface.php:
      - expected: xxx
      - current: yyy
    - core/Command/Broadcast/Test.php:
      - expected: xxx
      - current: yyy
    - lib/private/Accounts/Account.php:
      - expected: xxx
      - current: yyy
    - lib/private/Accounts/AccountProperty.php:
      - expected: xxx
      - current: yyy
    - lib/private/Accounts/AccountPropertyCollection.php:
      - expected: xxx
      - current: yyy
    - lib/private/AppFramework/Http/Request.php:
      - expected: xxx
      - current: yyy
    - lib/private/AppFramework/Utility/SimpleContainer.php:
      - expected: xxx
      - current: yyy
    - lib/private/Authentication/Token/DefaultToken.php:
      - expected: xxx
      - current: yyy
    - lib/private/Authentication/Token/PublicKeyToken.php:
      - expected: xxx
      - current: yyy
    - lib/private/Cache/CappedMemoryCache.php:
      - expected: xxx
      - current: yyy
    - lib/private/Contacts/ContactsMenu/Actions/LinkAction.php:
      - expected: xxx
      - current: yyy
    - lib/private/EventDispatcher/GenericEventWrapper.php:
      - expected: xxx
      - current: yyy
    - lib/private/Files/Cache/CacheEntry.php:
      - expected: xxx
      - current: yyy
    - lib/private/Files/FileInfo.php:
      - expected: xxx
      - current: yyy
    - lib/private/FullTextSearch/Model/IndexDocument.php:
      - expected: xxx
      - current: yyy
    - lib/private/FullTextSearch/Model/SearchRequestSimpleQuery.php:
      - expected: xxx
      - current: yyy
    - lib/private/L10N/L10NString.php:
      - expected: xxx
      - current: yyy
    - lib/private/Memcache/Cache.php:
      - expected: xxx
      - current: yyy
    - lib/private/Session/CryptoSessionData.php:
      - expected: xxx
      - current: yyy
    - lib/private/Session/Session.php:
      - expected: xxx
      - current: yyy
    - lib/private/Updater/ChangesCheck.php:
      - expected: xxx
      - current: yyy
    - lib/private/Updater/VersionCheck.php:
      - expected: xxx
      - current: yyy
    - lib/public/AppFramework/Services/InitialStateProvider.php:
      - expected: xxx
      - current: yyy
    - lib/public/Dashboard/Model/WidgetSetting.php:
      - expected: xxx
      - current: yyy
    - lib/public/Dashboard/Model/WidgetSetup.php:
      - expected: xxx
      - current: yyy
    - lib/public/Dashboard/Model/WidgetTemplate.php:
      - expected: xxx
      - current: yyy
    - lib/public/DirectEditing/ATemplate.php:
      - expected: xxx
      - current: yyy
    - lib/public/EventDispatcher/GenericEvent.php:
      - expected: xxx
      - current: yyy
    - lib/public/Files/Template/Template.php:
      - expected: xxx
      - current: yyy
    - lib/public/Files/Template/TemplateFileCreator.php:
      - expected: xxx
      - current: yyy
    - lib/public/LDAP/ILDAPProvider.php:
      - expected: xxx
      - current: yyy
    - lib/versioncheck.php:
      - expected: xxx
      - current: yyy

Further, when I go to path-to-nextcloud.com, my dashboard won’t load. This all started after I tried to use rsync to make a copy of my data directory for backup purposes.

Is this the first time you’ve seen this error?: Yes

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?phpr
$CONFIG = array (
  'datadirectory' => '/external',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'blahblahblah',
  'secret' => 'blahblahblah2',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.1.12',
    2 => 'path-to-nextcloud.com',
  ),
  'dbtype' => 'mysql',
  'version' => '23.0.2.1',
  'overwrite.cli.url' => 'http://localhost/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'my_username',
  'dbpassword' => '1234',
  'instanceid' => 'ocxfeo6539s3',
  'installed' => true,
  'maintenance' => false,
  'default_phone_region' => 'US',
  'theme' => '',
  'loglevel' => 2,
);

Do you have this problem from start? Or after an update?

How did you install it, some package from your distribution?

This is a new issue. I tried to do a backup of the files by rsyncing to an external drive. While i was doing this maintenance, i might have updated, I can’t recall. I definitely updated again once the issue appeared.

Installed on ArchARM using pacman.

What you shouldn’t do is mixing the update routine of your package manager and the internal Nextcloud updater.
Like this it looks like code of a different version has been placed.

1 Like

Turns out this is a known bug:
https://bugs.archlinux.org/task/73452