Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| sysadmin:linux:systemd:troubleshooting:echec_de_chargement_ruleset_nftables [2024/06/26 12:45] – créée yoann | sysadmin:linux:systemd:troubleshooting:echec_de_chargement_ruleset_nftables [2024/06/27 09:23] (Version actuelle) – yoann | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| {{tag> | {{tag> | ||
| - | :TODO: | ||
| - | ===== Systemd : Echec de chargement du ruleset nftables ====== | + | ===== Systemd : Échec |
| + | Au démarrage de la machine le service **'' | ||
| + | La configuration [[https:// | ||
| + | |||
| + | Les journaux système retracent l' | ||
| + | |||
| + | < | ||
| + | journalctl -xeu nftables.service | ||
| + | |||
| + | ... | ||
| + | |||
| + | ░░ L' | ||
| + | juin 27 09:20:06 node-7c87 nft[631]: / | ||
| + | juin 27 09:20:06 node-7c87 nft[631]: | ||
| + | juin 27 09:20:06 node-7c87 nft[631]: | ||
| + | juin 27 09:20:06 node-7c87 nft[631]: / | ||
| + | juin 27 09:20:06 node-7c87 nft[631]: | ||
| + | juin 27 09:20:06 node-7c87 nft[631]: | ||
| + | juin 27 09:20:06 node-7c87 systemd[1]: nftables.service: | ||
| + | ░░ Subject: Unit process exited | ||
| + | </ | ||
| + | |||
| + | L' | ||
| + | |||
| + | <code bash> | ||
| + | systemctl is-active nftables.service | ||
| + | failed | ||
| + | |||
| + | systemctl start nftables.service | ||
| + | |||
| + | systemctl is-active nftables.service | ||
| + | active | ||
| + | </ | ||
| + | |||
| + | Une solution consiste à surcharger le fichier unité par défaut pour le service nftables.service et temporiser en attendant que l' | ||
| + | |||
| + | <code bash> | ||
| + | systemctl edit nftables.service | ||
| + | </ | ||
| + | |||
| + | La directive ci-dessous permet de patienter jusqu' | ||
| + | |||
| + | < | ||
| + | [Service] | ||
| + | ExecStartPre=timeout 60s bash -c 'until ip link show wifi0; do sleep 2; done' | ||
| + | </ | ||
| + | |||
| + | Après modification du fichier unité et redémarrage de la machine, le service est correctement démarré. Les derniers logs apparaissant via la commande **'' | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | juin 27 11:13:20 node-7c87 timeout[359]: | ||
| + | juin 27 11:13:22 node-7c87 timeout[797]: | ||
| + | juin 27 11:13:24 node-7c87 timeout[803]: | ||
| + | juin 27 11:13:26 node-7c87 timeout[1410]: | ||
| + | juin 27 11:13:26 node-7c87 timeout[1410]: | ||
| + | juin 27 11:13:26 node-7c87 systemd[1]: Finished nftables.service - nftables. | ||
| + | Notice: journal has been rotated since unit was started, output may be incomplete. | ||
| + | </ | ||
| ===== Références ===== | ===== Références ===== | ||
| * [[https:// | * [[https:// | ||