Project

General

Profile

Tâche #32152

Scénario #31842: Diagnose: services en Erreur (Apache, Dhcp, Lsc, Sso, logrotate) après MajAuto Hebdo

Le service eole-lsc n'est pas fiable

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

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/16/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Constaté au CD74, mais reproductible en maquette :

root@scribe:~# /usr/share/eole/diagnose/151-fichier-ad;service slapd stop ;sleep 2; service slapd start;/usr/share/eole/diagnose/151-fichier-ad 
.             Ticket kerberos => Ok
.         Synchronisation LSC => Ok

.             Ticket kerberos => Ok
.         Synchronisation LSC => Erreur

root@scribe:~# service eole-lsc status
● eole-lsc.service - Eole LSC
     Loaded: loaded (/lib/systemd/system/eole-lsc.service; enabled; vendor preset: enabled)
     Active: active (exited) since Fri 2021-04-16 16:06:15 CEST; 54s ago
    Process: 38820 ExecStart=/usr/sbin/eolelsc start (code=exited, status=0/SUCCESS)
   Main PID: 38820 (code=exited, status=0/SUCCESS)

avril 16 16:06:11 scribe eolelsc[38824]: lsc: [OK] LSC configuration test successful
avril 16 16:06:11 scribe lsc[38881]: [INFO] Launching LSC...
avril 16 16:06:11 scribe eolelsc[38824]: lsc: [INFO] Launching LSC...
avril 16 16:06:11 scribe eolelsc[38824]: lsc: [OK] Using LSC JMX port 1099
avril 16 16:06:11 scribe su[38883]: (to lsc) root on none
avril 16 16:06:11 scribe su[38883]: pam_unix(su:session): session opened for user lsc by (uid=0)
avril 16 16:06:11 scribe eolelsc[38824]: lsc: [INFO] Waiting 1s for LSC java process to launch
avril 16 16:06:13 scribe eolelsc[38824]: lsc: [OK] Register LSC PID   38900
avril 16 16:06:15 scribe eolelsc[38824]: lsc: [OK] LSC started
avril 16 16:06:15 scribe systemd[1]: Finished Eole LSC.

Le port 1099 n'est plus ouvert mais le service n'est même pas en erreur :o


Related issues

Related to Distribution EOLE - Tâche #32375: Déclarer /etc/nut/dummy.dev en tant que fichier à sauvegarder par Bareos Fermé 05/03/2021
Blocked by Distribution EOLE - Tâche #32221: Voir si on change le fichier systemd pour eole-lsc Fermé 04/26/2021

Associated revisions

Revision be013044 (diff)
Added by Emmanuel GARETTE almost 3 years ago

Lancement de lsc à la mode systemd (ref #32152)

History

#1 Updated by Emmanuel GARETTE almost 3 years ago

Fichier systemd qui fonctionne pour moi :

[Unit]
Description=Eole LSC
ConditionPathExists=/etc/default/eole-lsc
Wants=eole-wait-addc.service
After=eole-wait-addc.service

[Service]
#Type=oneshot
#RemainAfterExit=yes
User=lsc
EnvironmentFile=/etc/default/lsc
ExecStartPre=/usr/bin/lsc -v -f /etc/lsc
ExecStart=/usr/bin/lsc -a all -f /etc/lsc

[Install]
WantedBy=multi-user.target

#2 Updated by Emmanuel GARETTE almost 3 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE almost 3 years ago

A faire en 2.7.2 (voir la dépendance sur le service slapd)

#4 Updated by Emmanuel GARETTE almost 3 years ago

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

#5 Updated by Joël Cuissinat almost 3 years ago

  • Related to Tâche #32375: Déclarer /etc/nut/dummy.dev en tant que fichier à sauvegarder par Bareos added

#6 Updated by Joël Cuissinat almost 3 years ago

eole-ad$ git branch -r --contains be013044 
  origin/2.7.2/master
  origin/2.8.0/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.2/master
  origin/dist/eole/2.8.0/master
  origin/dist/eole/2.8.1/master
  origin/master

#7 Updated by Joël Cuissinat almost 3 years ago

Le service reste sensible à une coupure OpenLDAP mais est bien signalé comme "mort" désormais :

root@scribe:~# service eole-lsc status
● eole-lsc.service - Eole LSC
     Loaded: loaded (/lib/systemd/system/eole-lsc.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Tue 2021-05-25 14:22:04 CEST; 4s ago
    Process: 17375 ExecStartPre=/usr/bin/mkdir -p /var/log/lsc (code=exited, status=0/SUCCESS)
    Process: 17382 ExecStartPre=/usr/bin/chown -R lsc:lsc /var/log/lsc (code=exited, status=1/FAILURE)
    Process: 17388 ExecStartPre=/usr/bin/lsc -v -f /etc/lsc (code=exited, status=0/SUCCESS)
    Process: 17414 ExecStart=/usr/bin/lsc -a all -f /etc/lsc (code=exited, status=0/SUCCESS)
   Main PID: 17414 (code=exited, status=0/SUCCESS)

#8 Updated by Joël Cuissinat almost 3 years ago

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

Also available in: Atom PDF