Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrity error after upgrading 27.1.5 to 28.0.0 #2129

Closed
mdartmann opened this issue Dec 21, 2023 · 2 comments
Closed

Integrity error after upgrading 27.1.5 to 28.0.0 #2129

mdartmann opened this issue Dec 21, 2023 · 2 comments
Labels
needs info Additional info needed to triage question upstream

Comments

@mdartmann
Copy link

After upgrading Nextcloud from 27.1.5 to 28.0.0, the integrity check fails.

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
=======
- core
	- INVALID_HASH
		- core/js/mimetypelist.js

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/js/mimetypelist.js] => Array
                        (
                            [expected] => 550ab566d30693bfa24ec4b15d9df87731ae8a3be8f79dabf94757e5b8b20eec6e4b678f17af1718297f2872f6b04519eeb024d1dff11947f29da431c7f11201
                            [current] => 24e6faa4a1361e51ff70027024f41c4b37fdb5f6f347ceb095450ddbde2d0a6b6dd1403be92a912d2889064a9736a9bed89d7dc62470035fc1299d4b977c5f46
                        )

                )

        )

)

Compose file:

version: '3.9'

networks:
  default:
    driver: bridge
    ipam:
      config:
        - subnet: 172.128.0.0/16

services:
  app:
    image: nextcloud:28.0.0-fpm-alpine
    restart: always
    volumes:
      - ./nextcloud:/var/www/html
      - ./php-config:/usr/local/etc
    depends_on:
      - redis
    networks:
      default:
        ipv4_address: 172.128.0.5

  redis:
    image: redis:alpine
    restart: always
    networks:
      default:
        ipv4_address: 172.128.0.2
    volumes:
      - ./redis-data:/data

  web:
    image: nginx:latest
    restart: always
    ports:
      - "127.0.0.1:8101:80"
    volumes:
      - ./nextcloud:/var/www/html:ro
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - app
    networks:
        default:
          ipv4_address: 172.128.0.7

  cron:
    image: nextcloud:28.0.0-fpm-alpine
    restart: always
    volumes:
      - ./nextcloud:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - redis
    networks:
      default:
        ipv4_address: 172.128.0.4

  nextcloud_exporter:
    restart: always
    image: xperimental/nextcloud-exporter:latest
    ports:
      - 127.0.0.1:9205:9205
    env_file:
      - exporter.env
    depends_on:
      - app

occ config:list --system:

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.dartmann.net",
            "office.dartmann.net"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "28.0.0.11",
        "overwrite.cli.url": "https:\/\/cloud.dartmann.net",
        "overwritehost": "cloud.dartmann.net",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "AT",
        "maintenance": false,
        "loglevel": 2,
        "theme": "",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        }
    }
}
@joshtrichards
Copy link
Member

joshtrichards commented Dec 22, 2023

This isn't a Docker image matter. It's either an upstream server matter or an app that registers mime stuff inappropriately.

However, can you provide the output of the following (from inside your app container)?

diff /usr/src/nextcloud/core/js/mimetypelist.js /var/www/html/core/js/mimetypelist.js

That will likely provide a clue was to what app is triggering this [which also might help others searching here].

You can also manually overwrite your environment's mimetypelist.js with the distributed one with the following command (inside the app container - or equivalent):

cp -av /usr/src/nextcloud/core/js/mimetypelist.js /var/www/core/js/

Then trigger an integrity recheck.

@joshtrichards joshtrichards added upstream question needs info Additional info needed to triage labels Dec 22, 2023
@mdartmann
Copy link
Author

The upgrade to 28.0.1 fixed the issue, since I can't reproduce it anymore I'll go ahead and close this issue now. Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Additional info needed to triage question upstream
Projects
None yet
Development

No branches or pull requests

2 participants