Project

General

Profile

Tâche #33063

Scénario #33049: Traitement express MEN (35-38)

Erreur eole-lsc : systemd ignore les chemins non absolus

Added by Joël Cuissinat about 2 years ago. Updated almost 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/01/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Vu dans les logs du Scribe 73 :

[ 2.914513] systemd[1]: /lib/systemd/system/eole-lsc.service:11: Executable path is not absolute, ignoring: -mkdir -p /var/log/lsc 
[ 2.914658] systemd[1]: /lib/systemd/system/eole-lsc.service:12: Executable path is not absolute, ignoring: -chown -R lsc:lsc /var/log/lsc

Cela explique l'erreur récurrente :

sept. 01 04:52:27 scribe lsc[101897]: /usr/bin/lsc: ligne 73: /var/log/lsc/lsc.log: Permission non accordée
sept. 01 04:52:27 scribe lsc[101897]: /usr/bin/lsc: ligne 73: /var/log/lsc/lsc.log: Permission non accordée

Il faudrait en profiter pour vérifier ce qu'il en est dans les autres fichiers systemd que nous fournissons ;)

Associated revisions

Revision 155101f6 (diff)
Added by Joël Cuissinat about 2 years ago

eole-lsc.service : improve systemd unit

Ref: #33063

History

#1 Updated by Joël Cuissinat about 2 years ago

  • Description updated (diff)

#2 Updated by Joël Cuissinat about 2 years ago

À corriger sur EOLE >= 2.7.2

Pour vérifier, après correction on ne doit plus avoir ce qui suit :

root@scribe:~# systemctl restart eole-lsc
root@scribe:~# systemctl status eole-lsc | grep Permission
sept. 01 11:25:09 scribe lsc[5241]: /usr/bin/lsc: ligne 73: /var/log/lsc/lsc.log: Permission non accordée
sept. 01 11:25:09 scribe lsc[5241]: /usr/bin/lsc: ligne 73: /var/log/lsc/lsc.log: Permission non accordée

#3 Updated by Joël Cuissinat about 2 years ago

Pour mémoire :

If the executable path is prefixed with "-", an exit code of the
command normally considered a failure (i.e. non-zero exit status or
abnormal exit due to signal) is ignored and considered success.

Et il faut aussi ajouter PermissionsStartOnly=true sinon, c'est exécuté avec l'utilisateur lsc et on retombe sur le problème de droits !

#4 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

#5 Updated by Joël Cuissinat about 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#6 Updated by Fabrice Barconnière almost 2 years ago

Commit présent sur 2.7.2-21, 2.8.0-19 et 2.8.1-14

#7 Updated by Fabrice Barconnière almost 2 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF