Erreur "The configuration file '/var/www/.well-known/domain.tld/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated"

My YunoHost server

Hardware: Serveur kimsufi
YunoHost version: 11.2.5
I have access to my server : SSH + webmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : non, installation fraiche, tous les réglages ont été fait via la webadmin

Description of my issue

En mettant en place mon nouveau serveur avec Yunohost (essentiellement ajout de plusieurs my_webapp et de plusieurs domaines) je me suis soudain retrouvé avec ce message d’avertissement:

The configuration file '/var/www/.well-known/domain.tld/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated

J’ai regardé un peu sur les forums (ici par exemple), mais je n’ai pas trouvé de raison au soucis.

Alors, bon, ça n’est qu’un warning, mais ça m’embête que le système pense que j’ai modifié un fichier à la main lorsque je ne l’ai pas fait.

La solution est simple en fait, d’abord identifier ce qui ne va pas via sudo yunohost tools regen-conf nginx --with-diff --dry-run
Ce qui me donne le résultat suivant (remplacer domain.tld par mon vrai domaine):

nginx: 
  applied: 
  pending: 
    /var/www/.well-known/domain.tld/autoconfig/mail/config-v1.1.xml: 
      diff: @@ -1,19 +0,0 @@
-<clientConfig version="1.1">
-  <emailProvider id="domain.tld">
-    <domain>domain.tld</domain>
-    <incomingServer type="imap">
-      <hostname>thiel.fr</hostname>
-      <port>993</port>
-      <socketType>SSL</socketType>
-      <authentication>password-cleartext</authentication>
-      <username>%EMAILLOCALPART%</username>
-    </incomingServer>
-    <outgoingServer type="smtp">
-      <hostname>domain.tld</hostname>
-      <port>587</port>
-      <socketType>STARTTLS</socketType>
-      <authentication>password-cleartext</authentication>
-      <username>%EMAILLOCALPART%</username>
-    </outgoingServer>
-  </emailProvider>
-</clientConfig>
      status: modified

Et pour résoudre ça, un petit coup de sudo yunohost tools regen-conf nginx --with-diff -f
Notez bien le -f pour forcer le tout.

J’ai fini par comprendre ce qui posais problème : dans le panneau d’amin du domain, j’avais décoché les options relatives aux emails:

Outgoing emails No

Incoming emails No

Visiblement, faire cela ne régénère pas pas correctement le fichier xml d’autoconfig.

J’espère que ça pourra en aider d’autre, ou que ça puisse permettre de fixer le bug (si c’est en est un!).

Merci,
MT

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.