nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.18k stars 4.04k forks source link

[Bug]: integrity check : missing .git directory #34173

Closed olaulau closed 2 years ago

olaulau commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

code integrity check says files are missing, whole .git directory. I don't have a .git directory under my webroot.

Steps to reproduce

go to /settings/integrity/failed

Expected behavior

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MySQL

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

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.dsconnectic.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.5.1",
        "overwrite.cli.url": "http:\/\/cloud.dsconnectic.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,
        "updater.release.channel": "stable",
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "app_install_overwrite": [
            "files_external_gdrive",
            "admin_notifications",
            "dashboard"
        ],
        "default_language": "fr",
        "default_locale": "fr_FR",
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "has_rebuilt_cache": true,
        "default_phone_region": "FR",
        "trashbin_retention_obligation": "30, 35",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - admin_audit: 1.14.0
  - announcementcenter: 6.3.1
  - bookmarks: 11.0.2
  - calendar: 3.5.0
  - circles: 24.0.1
  - cloud_federation_api: 1.7.0
  - contacts: 4.2.1
  - dashboard: 7.4.0
  - dav: 1.22.0
  - drawio: 1.0.3
  - duplicatefinder: 0.0.15
  - encryption: 2.12.0
  - event_update_notification: 1.5.0
  - extract: 1.3.5
  - federatedfilesharing: 1.14.0
  - files: 1.19.0
  - files_markdown: 2.3.6
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - firstrunwizard: 2.13.0
  - flow_notifications: 1.4.0
  - gpxpod: 4.3.0
  - group_default_quota: 0.1.4
  - group_everyone: 0.1.10
  - groupfolders: 12.0.1
  - groupquota: 0.1.8
  - impersonate: 1.11.0
  - lookup_server_connector: 1.12.0
  - metadata: 0.16.0
  - news: 18.1.1
  - nextcloud_announcements: 1.13.0
  - notifications: 2.12.1
  - oauth2: 1.12.0
  - onlyoffice: 7.5.4
  - password_policy: 1.14.0
  - passwords: 2022.9.20
  - photos: 1.6.0
  - provisioning_api: 1.14.0
  - quota_warning: 1.14.0
  - ransomware_protection: 1.13.0
  - recommendations: 1.3.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - spreed: 14.0.5
  - suspicious_login: 4.2.0
  - systemtags: 1.14.0
  - tasks: 0.14.4
  - text: 3.5.1
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - twofactor_email: 2.7.0
  - twofactor_gateway: 0.20.0
  - twofactor_nextcloud_notification: 3.4.0
  - twofactor_totp: 6.4.0
  - twofactor_webauthn: 0.3.1
  - updatenotification: 1.14.0
  - user_status: 1.4.0
  - user_usage_report: 1.8.0
  - viewer: 1.8.0
  - welcome: 1.0.1
  - workflowengine: 2.6.0
Disabled:
  - admin_notifications: 1.0.2
  - analytics: 4.4.0
  - appointments: 1.12.8
  - apporder: 0.15.0
  - bruteforcesettings: 2.4.0
  - carnet: 0.24.5
  - cms_pico: 1.0.19
  - collectives: 1.5.0
  - comments: 1.11.0
  - contactsinteraction: 1.2.0
  - cookbook: 0.9.15
  - cospend: 1.4.10
  - deck: 1.7.1
  - electronicsignatures: 2.0.1
  - external: 4.0.0
  - facerecognition
  - federation: 1.11.0
  - files_antivirus: 3.3.1
  - files_downloadactivity: 1.13.0
  - files_external: 1.8.0
  - files_external_gdrive: 0.4.0
  - files_fulltextsearch: 24.0.1
  - files_mindmap: 0.0.26
  - files_photospheres: 1.24.1
  - files_trackdownloads: 1.11.0
  - forms: 2.5.1
  - fulltextsearch: 24.0.0
  - gestion: 2.1.7
  - guests: 2.2.0
  - health: 1.5.1
  - integration_google: 1.0.8
  - integration_whiteboard: 0.0.14
  - keeweb: 0.6.9
  - logreader: 2.6.0
  - mail: 1.13.8
  - maps: 0.2.1
  - notes: 4.5.1
  - ocdownloader: 1.8.1
  - phonetrack: 0.7.0
  - piwik: 0.10.0
  - polls: 3.8.0
  - privacy: 1.5.0
  - quicknotes: 0.8.1
  - recognize: 1.6.10
  - socialsharing_email: 2.5.0
  - souvenirs: 1.6.1
  - support: 1.4.0
  - survey_client: 1.7.0
  - talk_simple_poll: 1.3.1
  - timemanager: 0.3.3
  - timetracker: 0.0.75
  - transmission: 0.7.2
  - twofactor_admin: 3.2.0
  - unsplash: 1.2.5
  - user_ispconfig: 0.4.10
  - user_ldap
  - video_converter: 1.0.5
  - weather: 1.7.6
  - weather_status: 1.1.0
  - workflow_ocr: 1.24.4

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
=======
- user_ispconfig
    - FILE_MISSING
        - .git/HEAD
        - .git/config
        - .git/description
        - .git/hooks/applypatch-msg.sample
        - .git/hooks/commit-msg.sample
        - .git/hooks/fsmonitor-watchman.sample
        - .git/hooks/post-update.sample
        - .git/hooks/pre-applypatch.sample
        - .git/hooks/pre-commit.sample
        - .git/hooks/pre-push.sample
        - .git/hooks/pre-rebase.sample
        - .git/hooks/pre-receive.sample
        - .git/hooks/prepare-commit-msg.sample
        - .git/hooks/update.sample
        - .git/index
        - .git/info/exclude
        - .git/logs/HEAD
        - .git/objects/pack/pack-00a0d7185bb1cb1da744cb42e4e7428bd135b3bd.idx
        - .git/objects/pack/pack-00a0d7185bb1cb1da744cb42e4e7428bd135b3bd.pack
        - .git/packed-refs
        - .git/refs/heads/master
        - .git/refs/remotes/origin/HEAD

Raw output
==========
Array
(
    [user_ispconfig] => Array
        (
            [FILE_MISSING] => Array
                (
                    [.git/HEAD] => Array
                        (
                            [expected] => 76b199f1bffdc6d21547895431b0f85f3857df400225cbd1ae55e7ded09786a8a44e1cb21f1feff4951cf57c893043a0be696dcb0e4f5758a4d6081a833eb6cf
                            [current] => 
                        )

                    [.git/config] => Array
                        (
                            [expected] => dfff4b0fec92bdaa10f9e456c759bb5a8f6c9252b0f8ffc220fde80d19f2be2cfebe1bbceba87ff7e926119314c9f128385b2daa13bbe8f61b1e7264c712b788
                            [current] => 
                        )

                    [.git/description] => Array
                        (
                            [expected] => f7e152f75b124c3e1c5d12f00427729d9eec4e2c1bf70d7606440a6600d003367eb178331e75ab976a61496e79c2c822020849d28ffd170946397b934611b471
                            [current] => 
                        )

                    [.git/hooks/applypatch-msg.sample] => Array
                        (
                            [expected] => 536cce804d84e25813993efdd240537b52d00ce9cdcecf1982f85096d56a521290104c825c00b370b2752201952a9616a3f4e28c5d27a5b4e4842101a2ff9bee
                            [current] => 
                        )

                    [.git/hooks/commit-msg.sample] => Array
                        (
                            [expected] => d6bb7fa747f4625adf1877f546565cbe812ca7dd4168f7e9068e6732555d8737eba549546cf5946649e3f38de82d173aaf9c160a4c9f9445655258b4c5f955eb
                            [current] => 
                        )

                    [.git/hooks/fsmonitor-watchman.sample] => Array
                        (
                            [expected] => 4f611b6fc08db7552a0eaca432c41d1114cd4daa066d9fc722f34f6de05ec3eed615286e8cfc5a27df0cbfb90887473beb0f859ba3edbcd1e829bb3b5050d2a9
                            [current] => 
                        )

                    [.git/hooks/post-update.sample] => Array
                        (
                            [expected] => 473ad124642571656276bf83b9ff63ab1804d3c23a5bdae52391c6f70a894849ac60c10c9d31deff3938922ce83b68b1e60c11592bbf7ea503f4acd39968cefa
                            [current] => 
                        )

                    [.git/hooks/pre-applypatch.sample] => Array
                        (
                            [expected] => cb78aa7e9b9c146e5db65d86dd83f04e2b6942a06fab50c704a0fd900683f3b6ad1164e74afe2f267f6da91cdff0b9ab07713e12cefc6f8d741b5df194f4fda6
                            [current] => 
                        )

                    [.git/hooks/pre-commit.sample] => Array
                        (
                            [expected] => 337579c03ec152cc04240141f16a7bc471d7ea1cdc214f6e553367d03a337621e3f0ed2dc0eaa800e4a080e37b0ea3967d5daee3744b7519b5c789262beb1d39
                            [current] => 
                        )

                    [.git/hooks/pre-push.sample] => Array
                        (
                            [expected] => 37cd20a090494acb16c2255fe93dadeb409f2553afddc409dad5b5e99c9f5612a28eba397c0f3ae771e17edbe0a6c2a3af311154285e6d9c43e4cc4f06ba5b8d
                            [current] => 
                        )

                    [.git/hooks/pre-rebase.sample] => Array
                        (
                            [expected] => 00d21d5d72386c3d9b5a1c36ba85201f730556a8295d4353af54af7892ab81010d42aff209ec1fda61c54e4dda3737cea5fda64f09d40ce5004ae28239565025
                            [current] => 
                        )

                    [.git/hooks/pre-receive.sample] => Array
                        (
                            [expected] => ee08c11fab7e896b2e09c241954ba7640338b12c75cd8040daf053c31b2f22236d7a0deac736f89d305236312fdb4f560a38d4d8debdcc9dcdd23b2d975907d5
                            [current] => 
                        )

                    [.git/hooks/prepare-commit-msg.sample] => Array
                        (
                            [expected] => 50ec8a0dd98427e80a82a8d8ce44462a845876e1594c9d0e89483ce9a8aaad616edea0e5c45c1bb69d8fe7f520c6f2260d6fa350d77b400899c3ae375e965bfb
                            [current] => 
                        )

                    [.git/hooks/update.sample] => Array
                        (
                            [expected] => 759abd33e5d1dda9b3e3d3116c47b23f616320d70cd66d567b1c4eeefeb6d78571d83b67d825d9e23aac35f0a2e0745cfab1381ecf486e30076b08797699f2c4
                            [current] => 
                        )

                    [.git/index] => Array
                        (
                            [expected] => 8bdfc4d9667ea2ac5b2b87fe0d3e527515a15471ef1c1839959abb91e0155a6079091f4af58fc9ff313b6e5db72e9c63fbe02d867dd70212bb50f11464ccca70
                            [current] => 
                        )

                    [.git/info/exclude] => Array
                        (
                            [expected] => 9828c6ecdf91bf117416e17f4ee9caee2e1e37b6fb00b9ff04035ace17a3089b9d0a25c6baa1046c0e1c62d3da88838e8fca74ea82973d6b975905fde58f3072
                            [current] => 
                        )

                    [.git/logs/HEAD] => Array
                        (
                            [expected] => 843065890e1dd560c265439f616b48aa8f6231415218fe82dfd8445eab552d2e9ed7da2d888a6fd042b7e7197c4489eb56529ecc9277b256bfb4e62d0e952bf1
                            [current] => 
                        )

                    [.git/objects/pack/pack-00a0d7185bb1cb1da744cb42e4e7428bd135b3bd.idx] => Array
                        (
                            [expected] => dfbe5618542728d0d5a7a54badae2cb8a042c9f2db00ddc8957448c47383a60cb0491109bd3e838501737831a636953607ad3c2d4b37a721346fcedbb80dbbab
                            [current] => 
                        )

                    [.git/objects/pack/pack-00a0d7185bb1cb1da744cb42e4e7428bd135b3bd.pack] => Array
                        (
                            [expected] => 22b18ec5d3bbf23e883d55fe1cd7262cc3821c54247493732cd08d9dd22af22d1b45e2575b2c2569ee10f8fb4d0eca47b54743769c28c98fff7a4d3943afb1ce
                            [current] => 
                        )

                    [.git/packed-refs] => Array
                        (
                            [expected] => f280f530a4703d198d6d93af978c85fe854911a1979eb0b8267a1f160cf01e1c5e3085d88116d35640ba19ffd6b3e35cfcae691488e25d42d2a827ba7643d086
                            [current] => 
                        )

                    [.git/refs/heads/master] => Array
                        (
                            [expected] => 81aa2a0957be181df17ad239cb902179479ff3453d8a28defadb38d63ffcbb5d18bc79c81fd1302046dc07dcdb8fd5b0df880f5777e4433148c45f807113c325
                            [current] => 
                        )

                    [.git/refs/remotes/origin/HEAD] => Array
                        (
                            [expected] => 0d686b330d5704fdbb9588d62bbddda273f86b24db52ddbdb73c0c304aabb8e6f8a1df806b360113de6783bdc138f8731c03c22db1537cc4ad14975eb28d031f
                            [current] => 
                        )

                )

        )

)

Nextcloud Logs

No response

Additional info

I also had the problem with earlier versions (I would say v22 & v23). upgrading didn't solved this.

szaimen commented 2 years ago

Hi, please report thid to https://github.com/SpicyWeb-de/nextcloud-user-ispconfig. Thanks!