[Tuto] Installation de Nextcloud + MariaDB + Redis + ClamAV en Docker

Avant :
YAML:
version: "2"
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:php8
    container_name: nextcloud
    networks:
      - nextcloud-network
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Paris
    volumes:
      - /home/nom_dutilisateur/docker/nextcloud/config:/config
      - /home/nom_dutilisateur/docker/nextcloud/data:/data
    ports:
      - 443:443
    depends_on:
      - mariadb
    restart: unless-stopped
  mariadb:
    image: linuxserver/mariadb
    container_name: mariadb
    networks:
      - nextcloud-network
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=123456789
      - TZ=Europe/Paris
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=ABCDEF
    volumes:
      - /home/nom_dutilisateur/docker/nextcloud/mariadb:/config
    restart: unless-stopped

#  av:
#    image: mkodockx/docker-clamav:alpine
#    container_name: nextav
#    networks:
#      - nextcloud
#    restart: unless-stopped

networks:
  nextcloud-network:
    external:
      name: nextcloud-network

Le tag php8 n'est plus necessaire

Le point 2.2 était la création manuelle du bridge
 
  • J'aime
Réactions: MilesTEG
Bonjour à tous,

Je rencontre une erreur lors du scan de Nextcloud mais je ne vois ni pourquoi, ni comment la résoudre :
1687796202407.png


Lorsque je regarde le détail, ça donne ça :
Code:
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
=======
- photos
    - EXTRA_FILE
        - l10n/tk.js
        - l10n/si.json
        - l10n/ps.js
        - l10n/ur_PK.js
        - l10n/tk.json
        - l10n/ps.json
        - l10n/si.js
        - l10n/ur_PK.json
        - lib/Listener/GroupDeletedListener.php
        - lib/Listener/GroupUserRemovedListener.php
        - lib/Listener/NodeDeletedListener.php
        - js/photos-vendors-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_A-0d7f22.js.map
        - js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-36962a.js
        - js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-36962a.js.map
        - js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2ca5cc.js.map
        - js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2ca5cc.js
        - js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2a64fd.js
        - js/photos-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_AccountGr-e8a447.js
        - js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2a64fd.js.map
        - js/photos-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_AccountGr-e8a447.js.map
        - js/photos-vendors-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_A-0d7f22.js
- serverinfo
    - EXTRA_FILE
        - l10n/lo.json
        - l10n/cy_GB.js
        - l10n/fo.json
        - l10n/kn.js
        - l10n/ta.json
        - l10n/ta.js
        - l10n/kn.json
        - l10n/fo.js
        - l10n/lo.js
        - l10n/cy_GB.json
        - l10n/ug.js
        - l10n/ug.json
        - l10n/bs.js
        - l10n/bs.json
- encryption
    - EXTRA_FILE
        - templates/altmail.php
        - templates/mail.php
- files_trashbin
    - EXTRA_FILE
        - lib/Sabre/PropfindPlugin.php
- files_pdfviewer
    - EXTRA_FILE
        - js/files_pdfviewer-workersrc.js.LICENSE.txt

Raw output
==========
Array
(
    [photos] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [l10n/tk.js] => Array
                        (
                            [expected] =>
                            [current] => 594fdae47e9fca04dc224735ca1a9c625de6cf839320548b3699b4021d40c19c762d7067d6176002f4872be9f2907b8f3d93020706a6311d9d42d823c9f475c4
                        )

                    [l10n/si.json] => Array
                        (
                            [expected] =>
                            [current] => b7a0710e4579b66534b671725022c14a34817beae841550665268cbf82d15af7f1bab12bdeca47419c6e5124d4aaf5e6217b017d88f899cec7d6fe26436f7406
                        )

                    [l10n/ps.js] => Array
                        (
                            [expected] =>
                            [current] => e3c8bbc66df0a1acb84a09370d82decd198b1962653b008c18fdf20d906d00b4535144e1ce66a381573165754f1a500929eefd8e5e0ebf7b2af9351e64dab441
                        )

                    [l10n/ur_PK.js] => Array
                        (
                            [expected] =>
                            [current] => 0144e305861c6351b3ccc47e940f32070c90618fc915f817412babad05fae38aa7383f9afec726b66734ad5a1d9ab4974d8289be73dfef205926a0028da123f2
                        )

                    [l10n/tk.json] => Array
                        (
                            [expected] =>
                            [current] => 9477cdee70f42fbf7a6e9772c5593f1bd9e9593f97a7717642845359579a435cd500d95b910ea0d34afa366a6b15835a34f86a60d3fe643402f1daab8f9c3f6d
                        )

                    [l10n/ps.json] => Array
                        (
                            [expected] =>
                            [current] => d90e82d5f0f1d7881f294b8adff11d70b5ec59a88242fe289311a3cdfb2c655cd8c1e444b35a6731c1b750097ac50d6e122524f92859d02ec5cbbbeb7c031f01
                        )

                    [l10n/si.js] => Array
                        (
                            [expected] =>
                            [current] => aca57ab4ff948a399d41cf889a2e231f0c9f866b4ebbf1ea548157fb7288659e2729e69b99c0f6d5846af1b28e808c9a6df30db3fd2856afb25dce2a778976b5
                        )

                    [l10n/ur_PK.json] => Array
                        (
                            [expected] =>
                            [current] => e0e54b9dbd4fddf94096b99cf12309b7a623a7b8ec7afca767c44ad6edccfe3521438260668a18c34565353794163ed2d433a45ae0b5a2960aa1efb66cc016b0
                        )

                    [lib/Listener/GroupDeletedListener.php] => Array
                        (
                            [expected] =>
                            [current] => 8606c79d02cb48e472e8b5ed353e0441135d95f285879c80a5367ba9d3654cdcc3743f661bd49ad58b6d863739fcb9eb2f8648cc32a6ec52c51f280f260e75a2
                        )

                    [lib/Listener/GroupUserRemovedListener.php] => Array
                        (
                            [expected] =>
                            [current] => fa0e4de16f0b792a8fe92834e093166ad0acd5aa1c5747cb0854a0ef06bd49fb65045df15f6853437c3be8ccdf5227330178758785e4650acc399c7fc7184136
                        )

                    [lib/Listener/NodeDeletedListener.php] => Array
                        (
                            [expected] =>
                            [current] => dd0d2a74eab07fbdfd62e11ea299e0a84c07e3f4cf2334847959bbf57de326e3ae2a7284b2f167dcdc07674857f71e52cb73d24fc21bcf1425385d07b1d79e60
                        )

                    [js/photos-vendors-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_A-0d7f22.js.map] => Array
                        (
                            [expected] =>
                            [current] => ec0fbdfdf75214d0dc3fd6c706c6d03da9f794beb1533fed746a292efcbac81f3291fbe28872d94664d9019b28db39f198e6766f5d195c05d1c2bb874da8964b
                        )

                    [js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-36962a.js] => Array
                        (
                            [expected] =>
                            [current] => 261b1668e0a72b60060431331ca6576e2013f36f3f60f9f8f898247401c86499801455a45dd272c230bcd3c65b17f7c4aac06a97403239177b4b6d7e222fcba2
                        )

                    [js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-36962a.js.map] => Array
                        (
                            [expected] =>
                            [current] => d81fbf9ed88fa0d13f7a03c6acf24472abc7ceb9b9fda80a812610868b1ef805607b3331dfab05025e48946e382a4fcab217262ae9b63610711458c4499141ae
                        )

                    [js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2ca5cc.js.map] => Array
                        (
                            [expected] =>
                            [current] => b942b79fc91746a4ac1c200144502be520542d9376dea4c1a9082e4ccd269ca83a42555362539b4126498be79d302139860bedd635dd3416ad4afeb0ba67203d
                        )

                    [js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2ca5cc.js] => Array
                        (
                            [expected] =>
                            [current] => f40b2f75d11246dada565e8bb55c6ca69315eb0029a8afb1b79c1d0ad4f1a91ae62880e30d6f3082aef3826d6aed51d94a63978bb7fbe5eda95505966675892c
                        )

                    [js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2a64fd.js] => Array
                        (
                            [expected] =>
                            [current] => 8d63fbed4bd4a819d1b0a6ba0df92b7b1d8a909dc760d050be447d571e6af6373332e34876319503aaaacc595331ff66ed78220dafbab8ae70e274ec37a2c796
                        )

                    [js/photos-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_AccountGr-e8a447.js] => Array
                        (
                            [expected] =>
                            [current] => ea266383ff8080075076a09f5db9760245d3df299f04327cbeffd714740997477db5831f50c578f98340c1a1a4a3a93826aa2e8f8b2f4af42f0cfff6eacd635a
                        )

                    [js/photos-node_modules_vue-material-design-icons_PackageVariant_vue-node_modules_vue-material-design-ic-2a64fd.js.map] => Array
                        (
                            [expected] =>
                            [current] => 278aec063e12d913473a56035d078b790af63e5facc85f104a84c1b414165e7f2bc72c05d9834ab9d47c40d49542460fd9b0c31ac879b5a83e4e79f677e4f1a3
                        )

                    [js/photos-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_AccountGr-e8a447.js.map] => Array
                        (
                            [expected] =>
                            [current] => 169457dcd162a8ad78fa203cc9d7a21e65afdd00b1f3ecce5ae9a695b5584a6bef39d89b5069b0d85dfdb64bf693f93fa524a51a5c8bfcfa09a6f2da36955bcd
                        )

                    [js/photos-vendors-node_modules_nextcloud_sharing_dist_index_js-node_modules_vue-material-design-icons_A-0d7f22.js] => Array
                        (
                            [expected] =>
                            [current] => 00bf3027a85fbbd85e32348db8445e767275391ed238ebe139d0cc05549a8472807a1dab6e0569a40ba0d0ba56492cd1b66b8a3ef1ed45ab048192b3fe3b60dd
                        )

                )

        )

    [serverinfo] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [l10n/lo.json] => Array
                        (
                            [expected] =>
                            [current] => a3676f0f1633a84ac9ddd1e51f96110d8f2aaac47ad387e3418e644403fa53c9b69e1d38707d335aea2f7b23eb2e43fa9f70aa770819e305b2500354426151eb
                        )

                    [l10n/cy_GB.js] => Array
                        (
                            [expected] =>
                            [current] => 3fbcfc202db25eee1e04b0c4a824c7f620346e72ee49343b441e4f6a4dd0e6a8181b63a98d2d626919142f8228cb1abb3deaad26152c1c7c20bcce3c151bf0f8
                        )

                    [l10n/fo.json] => Array
                        (
                            [expected] =>
                            [current] => 4bfb13f409e84630ad298aa806436fc215c1414946c31058146b7bd646c9c59b4fb15409484c6c20e694ff5387d3182059c1e0a24e0f5f6c70f9ba3b59f7eb24
                        )

                    [l10n/kn.js] => Array
                        (
                            [expected] =>
                            [current] => d2273c847eae12e2e9776e6c937316fbdb152f4fbe42638e7951512a50c04892a620a9d8eee8d75f9d4285ef9704c52777bf886ee3ddf984e233680f82462de9
                        )

                    [l10n/ta.json] => Array
                        (
                            [expected] =>
                            [current] => a4ffe199ab37f97d8576b9efd5c6d4371a670e8b1d9a868b5886839f7302cd6f747ffe24e1d9422cd0eaa5d4575f12a4ce4b2af9b235326ac898e9d2dda83664
                        )

                    [l10n/ta.js] => Array
                        (
                            [expected] =>
                            [current] => 8d1823ad0bdccf749a825068b18dd1afd3146bf65ea133691de8befa0ad4cf20aadf784252e51183a1716df48d8589731b3334e81deaebd5194986c368efc719
                        )

                    [l10n/kn.json] => Array
                        (
                            [expected] =>
                            [current] => 0e04c02cd35b2f86eace4e748d4b8985979b10fadad6371b928543055f22bcfe898c56578b5ca2cd1fae2dd7ad5c4b652fb7e8ddddf4dacaf3e2091da16b81af
                        )

                    [l10n/fo.js] => Array
                        (
                            [expected] =>
                            [current] => d9a38ad17bd79a0f71fe482f21fa3bd869d5f7d27cfd0f0c95c07086494d380b6ad48212efae88740d88135d91dc64dfce8addb7a1b5a90234d3b2041429ec1c
                        )

                    [l10n/lo.js] => Array
                        (
                            [expected] =>
                            [current] => 0c1588a17264a3114f82592b3a0e82003e61a2739d360e622dcf14c5df1d2092d744972c59a984b1cf89f3a794e8127c9c7dd58b9db210eaa6eee1b1b12db42a
                        )

                    [l10n/cy_GB.json] => Array
                        (
                            [expected] =>
                            [current] => 03e5bc4a3675ef09cabcb162042ee96088759d65cfe4f6494f866bef139a3dda612c6d595d94f26ec0fd0ea9e39e2778652406886d15d38ef7c5560a66bd0859
                        )

                    [l10n/ug.js] => Array
                        (
                            [expected] =>
                            [current] => 6ca0be0ef850fc6b6aae34d91c9a5c2674174ceef2a52e92b61b527d4fad2fed01256bdc120d875a04103a617abd547f0ad479072874cfa73df660f3600f822c
                        )

                    [l10n/ug.json] => Array
                        (
                            [expected] =>
                            [current] => abf662b0d32040f67f5e593ad23dc25a89fb096237315df92a9c732bdf8623e8723da440621d00cd20a740622c5198a1f822d7cacf0f38c5488c37ae34c489dd
                        )

                    [l10n/bs.js] => Array
                        (
                            [expected] =>
                            [current] => 772a5511fb81c659a87eeccb6d2b25f89ab0316074b0117c2287328188f5e90c166041df32e2978a5762678707bfbc090f518f5391d05089daf8df82ca194c37
                        )

                    [l10n/bs.json] => Array
                        (
                            [expected] =>
                            [current] => 7f5a1c2e71e2a8f94269bd06e81645abc2641cffd2c502657449bd2de4ea11716f7907fe1efbc940e2ad2e96a63c01f32726e96ca669223513ff567110b0a071
                        )

                )

        )

    [encryption] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [templates/altmail.php] => Array
                        (
                            [expected] =>
                            [current] => b42b51938dcfa614c798e004bb381cb024509cfd3e519caa2e42684ef8c95575e2e7235152b3545eae013497fe1784ef8f22557e79839d6554a13d96c2f8eab5
                        )

                    [templates/mail.php] => Array
                        (
                            [expected] =>
                            [current] => c8244a5bd79b8881c556e926c359ca3976f706b484b9c5703f8e99608e3ea08129203b31ef2494914c8edb96f89bda1e9919460bcda5f993690c263de6ef4ac0
                        )

                )

        )

    [files_trashbin] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [lib/Sabre/PropfindPlugin.php] => Array
                        (
                            [expected] =>
                            [current] => 601e9c68d9d2e1bf8a04558b4c1bbd7cb85b159edce9ba2f61d8676d5fab75116cc0d486ce874cff0d8b2db9fc01e0b679275928714baa452fa34ad239621836
                        )

                )

        )

    [files_pdfviewer] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [js/files_pdfviewer-workersrc.js.LICENSE.txt] => Array
                        (
                            [expected] =>
                            [current] => 33d76141aff0e634ceebc005e0d160862ead5c92bb9ddfa007ff68a2f7c33c1499afaa22b95c4d9d7e4fabeaef5d44aea76d196889f7b672e405e011b675c030
                        )

                )

        )

)

Auriez-vous une idée ?
 
J'ai tenté le downgrade mais nextcloud ne fonctionne plus donce j'ai remis l'image d'origine. Reste à voir comment résoudre. A la lecture du post, il y a une action manuelle à effectuer.
 
merci pour les retour. Par hasard, vous ne sauriez pas comment recupérer un fichier (.js) supprimer par erreur ?
 
Bonjour,
désolé pour la réponse tardive... Effectivement, j'ai restaurer ma sauvegarde et remis l'ancienne version pour le moment.
 
Bonjour tout le monde,
Avez vous aussi ce problème?
"Can't start Nextcloud because the version of the data (24.0.12.1) is more than one major version behind the docker image version (27.0.2.1) and upgrading more than one major version is not supported. Please run an image tagged for the major version 25 first."
 
Bonjour,
Tu utilises une version trop ancienne pour passer de la 24.0.12.1 à la 27.0.2.1. Il faut installation une version 25 de l'image puis si c'est bon vers la 27.

 
Salut!
Je voudrais savoir si ce tuto peut être appliqué sur mon NAS (qnap), s'il est toujours "à jour" et à quoi sert Redis.
Merci :)
 
Salut,
J'ai suivi ton tuto à la lettre. Pas de soucis pour l'installation, par contre lorsque je configure Nextcloud j'ai ce message:
Error while trying to create admin account: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
 
Cela me fait penser a un probleme pour joindre la base de données.

Je suis pas sur de comprendre a quelle étape tu as ce message , celle ci ?
1726170282822.png
 
Salut!
Juste sur cet écran:

1726246292576.png1726246333243.png

Voila :(
J'ai un peu cherché, j'ai trouvé quelques références, mais pas vraiment compris ce qui est proposé pour régler le problème.
 
Hello,

La connexion est refusée pour l'utilisateur mariadb nommé nextcloud. Est ce qu'il est bien créé ?

Dans ton docker-compose tu as bien les lignes :
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=ABCDEF

Tu as bien renseigné le mot de passe que tu as mis a la place de ABCDEF dans le champ "mot de passe de la base de données" ?