Mise à jour système impossible

Mon serveur YunoHost

Matériel: Brique Internet avec VPN
Version de YunoHost: 4.2.6.1
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Salut à toutes et tous,

Je rencontre plusieurs problèmes avec mon serveur actuellement. Mise à jour impossible de nextcloud il y a un mois (Nextcloud upgrade problem - #4 by Quent), et là, impossible de mettre le système à jour (tant avec le webadmin qu’en SSH)…

Je ne peux malheureusement pas partager les logs avec vous car, il n’y a plus rien dans “journaux” depuis deux semaines (alors que j’ai effectué des actions, par ex. tentative de mise à jour, redémarrage…).

Voici les messages d’erreurs recu lors de la tentative de mise à jour:

Récupération des mises à jour disponibles pour les paquets du système...
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-backports/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/dists/buster/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://apt.armbian.com/dists/buster/InRelease Temporary failure resolving 'apt.armbian.com'
W: Failed to fetch http://forge.yunohost.org/debian/dists/buster/InRelease Temporary failure resolving 'forge.yunohost.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Des erreurs se sont produites lors de la mise à jour du cache APT (gestionnaire de paquets Debian). Voici un extrait des lignes du fichier sources.list qui pourrait vous aider à identifier les lignes problématiques :
sources.list:deb http://deb.debian.org/debian buster main contrib non-free sources.list:deb http://deb.debian.org/debian buster-updates main contrib non-free sources.list:deb http://deb.debian.org/debian buster-backports main contrib non-free sources.list:deb http://security.debian.org/ buster/updates main contrib non-free sources.list.d/armbian.list:deb http://apt.armbian.com buster main buster-utils buster-desktop sources.list.d/yunohost.list:deb http://forge.yunohost.org/debian/ buster stable
Mise à jour du catalogue d’applications…
Impossible de télécharger le catalogue des applications default : URL https://app.yunohost.org/default/v2/apps.json invalide : ce site existe-t-il ?

Le diagnostic m’affiche une erreur importante:

La résolution du nom de domaine semble être cassée sur votre serveur, ce qui semble lié au fait que `/etc/resolv.conf` ne pointe pas vers `127.0.0.1`.

Auriez-vous une idée pour régler cela?

Un tout grand merci d’avance!!!

Quentin

Il faut réparer la partie résolution nom de domaine:

Pour commencer essaie:

yunohost tools regen-conf dnsmasq --force

Salut ljf,

Merci! J’ai lancé la commande que tu proposes.

Success! Configuration updated for 'dnsmasq'
dnsmasq: 
  applied: 
    /etc/dnsmasq.d/unautremondeestpossible.be: 
      status: updated
    /etc/resolv.dnsmasq.conf: 
      status: force-updated
  pending:

Mais le/les problèmes restent…

Voici le diagnostic complet:

=================================
Base system (basesystem)
=================================

[WARNING] It looks like apt (the package manager) is configured to use the backports repository. Unless you really know what you are doing, we strongly discourage from installing packages from backports, because it's likely to create unstabilities or conflicts on your system.

=================================
Internet connectivity (ip)
=================================

[ERROR] Domain name resolution seems to be broken on your server, which seems related to /etc/resolv.conf not pointing to 127.0.0.1.

=================================
DNS records (dnsrecords)
=================================

[ERROR] Some DNS records are missing or incorrect for domain mondomaine.tld (category basic)
  - Please check the documentation at https://yunohost.org/dns_config if you need help about configuring DNS records.
  - The following DNS record does not seem to follow the recommended configuration:
    Type: A
    Name: @
    Current value: x.x.x.x
    Expected value: x.x.x.x
  - The following DNS record does not seem to follow the recommended configuration:
    Type: AAAA
    Name: @
    Current value: x.x.x.x
    Expected value: None

[WARNING] Some DNS records are missing or incorrect for domain mondomaine.tld (category extra)
  - Please check the documentation at https://yunohost.org/dns_config if you need help about configuring DNS records.
  - The following DNS record does not seem to follow the recommended configuration:
    Type: A
    Name: *
    Current value: x.x.x.x
    Expected value: x.x.x.x
  - The following DNS record does not seem to follow the recommended configuration:
    Type: AAAA
    Name: *
    Current value: x.x.x.x
    Expected value: None

=================================
Ports exposure (ports)
=================================

[ERROR] Port 22 is not reachable from outside.
  - Exposing this port is needed for admin features (service ssh)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 25 is not reachable from outside.
  - Exposing this port is needed for email features (service postfix)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 80 is not reachable from outside.
  - Exposing this port is needed for web features (service nginx)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 443 is not reachable from outside.
  - Exposing this port is needed for web features (service nginx)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 587 is not reachable from outside.
  - Exposing this port is needed for email features (service postfix)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 993 is not reachable from outside.
  - Exposing this port is needed for email features (service dovecot)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 5222 is not reachable from outside.
  - Exposing this port is needed for xmpp features (service metronome)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

[ERROR] Port 5269 is not reachable from outside.
  - Exposing this port is needed for xmpp features (service metronome)
  - To fix this issue, you most probably need to configure port forwarding on your internet router as described in https://yunohost.org/isp_box_config

=================================
Web (web)
=================================

[ERROR] Domain mondomaine.tld appears unreachable through HTTP from outside the local network.
  - Timed-out while trying to contact your server from outside. It appears to be unreachable.
    1. The most common cause for this issue is that port 80 (and 443) are not correctly forwarded to your server.
    2. You should also make sure that the service nginx is running
    3. On more complex setups: make sure that no firewall or reverse-proxy is interfering.

=================================
Email (mail)
=================================

[ERROR] The SMTP mail server is unreachable from the outside on IPv4. It won't be able to receive emails.
  - Could not open a connection on port 25 to your server in IPv4. It appears to be unreachable.
    1. The most common cause for this issue is that port 25 is not correctly forwarded to your server.
    2. You should also make sure that service postfix is running.
    3. On more complex setups: make sure that no firewall or reverse-proxy is interfering.

[ERROR] No reverse DNS is defined in IPv4. Some emails may fail to get delivered or may get flagged as spam.
  - You should first try to configure the reverse DNS with mondomaine.tld in your internet router interface or your hosting provider interface. (Some hosting provider may require you to send them a support ticket for this).
  - Some providers won't let you configure your reverse DNS (or their feature might be broken...). If you are experiencing issues because of this, consider the following solutions:
     - Some ISP provide the alternative of using a mail server relay though it implies that the relay will be able to spy on your email traffic.
    - A privacy-friendly alternative is to use a VPN *with a dedicated public IP* to bypass this kind of limits. See https://yunohost.org/#/vpn_advantage
    - Or it's possible to switch to a different provider

Une idée?

ls -l /etc/resolv.conf
ls -l /etc/resolv.dnsmasq.conf
cat /etc/resolv.conf

Merci! Voilà, ce que ça donne…

ls -l /etc/resolv.conf

-rw-r–r-- 1 root root 116 Jul 24 08:25 /etc/resolv.conf

ls -l /etc/resolv.dnsmasq.conf

-rw-r–r-- 1 root root 48 Jul 24 08:26 /etc/resolv.dnsmasq.conf

cat /etc/resolv.conf

Generated by NetworkManager
search unautremondeestpossible.be
nameserver 212.224.129.90
nameserver 212.224.129.94

Salut ljf,
Salut à toutes et tous,

Je me permets de relancer…

Auriez-vous une idée pour les problèmes de mises à jour et autres bugs que je rencontre actuellement?

Un énorme merci d’avance!!!

Quentin

Idélament il faut désinstaller l’environnement graphique. Logiquement dans La Brique Internet il n’ y a pas networkmanager il me semble.

Un topic sur un sujet similaire: [Yunohost Diagnostique] resolv.conf personnalisé?

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