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

[Bug]: Integrity check complains about nextcloud-init-sync.lock #48199

Closed
5 of 8 tasks
urbenlegend opened this issue Sep 19, 2024 · 9 comments
Closed
5 of 8 tasks

[Bug]: Integrity check complains about nextcloud-init-sync.lock #48199

urbenlegend opened this issue Sep 19, 2024 · 9 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug

Comments

@urbenlegend
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading to Nextcloud 30, the integrity check is now complaining about nextcloud-init-sync.lock, which I believe is related to the Docker container.

This did not happen with previous versions using the same container. I am using the "official" Docker located here: https://github.com/nextcloud/docker

Here's my docker-compose.yml:

services:
  db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    restart: always
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MARIADB_AUTO_UPGRADE=1
      - MARIADB_DISABLE_UPGRADE_BACKUP=1
    env_file:
      - db.env
    networks:
      - backend

  redis:
    image: redis:alpine
    restart: always
    networks:
      - backend

  nextcloud:
    image: nextcloud:apache
    restart: always
    volumes:
      - ./html:/var/www/html
    environment:
      - MYSQL_HOST=db
      - REDIS_HOST=redis
      - APACHE_BODY_LIMIT=0
      - OVERWRITEPROTOCOL=https
    env_file:
      - db.env
    depends_on:
      - db
      - redis
    networks:
      - nextcloud
      - backend

  cron:
    image: nextcloud:apache
    restart: always
    volumes:
      - ./html:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis
    networks:
      - backend

networks:
  backend:
  nextcloud:
    external: true

Steps to reproduce

  1. Use the "official" Nextcloud docker image here: https://github.com/nextcloud/docker
  2. Upgrade to Nextcloud 30.
  3. Go to https:///settings/admin/overview and notice the integrity check failure

Expected behavior

Nextcloud should not complain about nextcloud-init-sync.lock.

Nextcloud Server version

30

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "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
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "redacted.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.0.14",
        "overwrite.cli.url": "https:\/\/redacted.com",
        "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_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 3,
        "default_phone_region": "US",
        "theme": "",
        "app_install_overwrite": [
            "bruteforcesettings",
            "richdocumentscode"
        ],
        "overwriteprotocol": "https",
        "maintenance": false,
        "loglevel": 2
    }
}

List of activated Apps

Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - assistant: 2.0.4
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.0
  - circles: 30.0.0-dev
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.0
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.0
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - integration_openai: 3.1.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.0
  - richdocumentscode: 24.4.702
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.0.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - encryption: 2.18.0
  - files_external: 1.22.0
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0

Nextcloud Signing status

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
	- EXTRA_FILE
		- nextcloud-init-sync.lock

Raw output
==========
Array
(
    [core] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [nextcloud-init-sync.lock] => Array
                        (
                            [expected] => 
                            [current] => cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
                        )

                )

        )

)

Nextcloud Logs

Nothing related

Additional info

No response

@urbenlegend urbenlegend added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Sep 19, 2024
@marco-calautti
Copy link

I have the same issue.

@kesselb
Copy link
Contributor

kesselb commented Sep 19, 2024

@kesselb kesselb closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
@MatKlein
Copy link

Also same here.

@casperghst42
Copy link

Same issue.

@pannal
Copy link

pannal commented Sep 20, 2024

Same here.

@uberDoward
Copy link

Same as well

@lssong99
Copy link

This file is created outside of Nextcloud itself, and should not be considered as extrafiles by scanner?

@MatKlein
Copy link

This file is created outside of Nextcloud itself, and should not be considered as extrafiles by scanner?

Well, at least it has never been criticized in recent years. So there must have been some kind of change in this respect.

No one is assigning blame here, but it is now an issue.

@kesselb
Copy link
Contributor

kesselb commented Sep 21, 2024

Thanks for your contributions 👍

Please head over to nextcloud/docker#2299, don't comment on this issue. Same here, +1 or similar remarks are no useful contributions to a discussion, use GitHub reactions to show that you encounter the same problem.

This file is created outside of Nextcloud itself, and should not be considered as extrafiles by scanner?

The purpose of the integrity check is to ensure that your Nextcloud installation is unmodified, and thus it will warn you about files which are not supposed to be here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug
Projects
None yet
Development

No branches or pull requests

9 participants