Projet

Général

Profil

Proposition Scénario #25134

Pb au démarrage de e2guardian, pour 1 cas d'utilisation.

Ajouté par Philippe Carre il y a plus de 5 ans. Mis à jour il y a environ un an.

Statut:
Classée sans suite
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
% réalisé:

0%


Description

Sur nos eSSL , par défaut le filtrage web est désactivé. Si on le ré-active ( parce que #23978 ) e2guardian ne démarre pas.

La cause semble être l'absence des fichiers template-*.html dans /usr/share/e2guardian/languages/french/ :

sept. 18 11:41:36 ssl-norm-r01 eole-guardian[32512]:  * Instance #guardian0
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]: error reading: /usr/share/e2guardian/languages/french/template-moderateur.html
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]: Error reading HTML Template file: /usr/share/e2guardian/languages/french/template-moderateur.html
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]: Error opening filter group config: /etc/guardian/guardian0/guardianf2.conf
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]: Error in reading filter group files
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]: Error reading filter group conf file(s).
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]: Error parsing the e2guardian.conf file or other e2guardian configuration files
sept. 18 11:41:41 ssl-norm-r01 e2guardian[32521]: error reading HTML template file.
sept. 18 11:41:41 ssl-norm-r01 eole-guardian[32512]:    ...fail!

a priori , normal. Dans /etc/guardian/guardian0/guardian.conf :
languagedir = '/usr/share/e2guardian/languages'
# language to use from languagedir.
language = 'french'

Sauf que les fichiers ne sont pas présents dans /usr/share/e2guardian/languages/french

Dans le dico 23_proxy.xml , les fichiers concernés sont copiés dans /etc/e2guardian/languages/french/ (modif récente).
<file filelist='guardian' name='/etc/e2guardian/languages/french/template-moderateur.html' source='guardian-template-moderateur.html'/> par ex.
Avec ce dossier , pas de pb. Les fichiers sont présents.
Tel quel ça semble logique d'avoir ce pb avec e2guardian.

J'ai testé sur un amon.

Filtrage proxy à non avant instance

instance

root@amon:~# ll /etc/e2guardian/languages/french/
total 28
drwxr-xr-x  2 root root 4096 juil.  2 15:31 ./
drwxr-xr-x 29 root root 4096 juil.  2 15:28 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2628 juin  18 11:53 template.html
root@amon:~# ll /usr/share/e2guardian/languages/french/
total 28
drwxr-xr-x  2 root root 4096 juil.  2 15:31 ./
drwxr-xr-x 29 root root 4096 juil.  2 15:28 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2628 juin  18 11:53 template.html

Modif de :
Filtrage proxy -> oui
reconfigure

root@amon:~# ll /etc/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 21 10:46 ./
drwxr-xr-x 29 root root 4096 sept. 21 09:35 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2114 sept. 21 10:46 template.html
-rw-r--r--  1 root root 1464 sept. 21 10:46 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 21 10:46 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 21 10:46 template-utilisateur_interdits.html
root@amon:~# ll /usr/share/e2guardian/languages/french/
total 28
drwxr-xr-x  2 root root 4096 sept. 20 11:16 ./
drwxr-xr-x 29 root root 4096 sept. 21 09:35 ../
-rwxr-xr-x  1 root root 6605 juil. 18  2017 fancydmtemplate.html*
-rwxr-xr-x  1 root root 6310 juil. 18  2017 messages*
-rwxr-xr-x  1 root root 2628 juil. 18  2017 template.html*

Les fichiers ne sont pas copiés dans /usr/share/...

Filtrage proxy à oui avant instance

Instance :

root@amon:~# ll /etc/e2guardian/languages/french/
total 28
drwxr-xr-x  2 root root 4096 sept. 24 09:37 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2628 juin  18 11:53 template.html
root@amon:~# ll /usr/share/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 09:27 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rwxr-xr-x  1 root root 6605 juil. 18  2017 fancydmtemplate.html*
-rwxr-xr-x  1 root root 6310 juil. 18  2017 messages*
-rw-r--r--  1 root root 2114 sept. 24 09:39 template.html
-rw-r--r--  1 root root 1464 sept. 24 09:39 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 09:39 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 09:39 template-utilisateur_interdits.html

pas de fichiers copiés dans /etc/... ! Mais ils le sont dans /usr/share/..

reconfigure :

root@amon:/var/log/rsyslog/local/e2guardian# ll /etc/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 10:30 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2114 sept. 24 10:30 template.html
-rw-r--r--  1 root root 1464 sept. 24 10:30 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 10:30 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 10:30 template-utilisateur_interdits.html
root@amon:/var/log/rsyslog/local/e2guardian# ll /usr/share/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 09:27 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rwxr-xr-x  1 root root 6605 juil. 18  2017 fancydmtemplate.html*
-rwxr-xr-x  1 root root 6310 juil. 18  2017 messages*
-rw-r--r--  1 root root 2114 sept. 24 09:39 template.html
-rw-r--r--  1 root root 1464 sept. 24 09:39 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 09:39 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 09:39 template-utilisateur_interdits.html

Les fichiers sont copiés dans /etc/... Aucune modif pour ceux de /usr/share/..

Modif Filtrage proxy -> non
reconfigure :

root@amon:/var/log/rsyslog/local/e2guardian# ll /etc/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 10:30 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2114 sept. 24 10:30 template.html
-rw-r--r--  1 root root 1464 sept. 24 10:30 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 10:30 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 10:30 template-utilisateur_interdits.html
root@amon:/var/log/rsyslog/local/e2guardian# ll /usr/share/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 09:27 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rwxr-xr-x  1 root root 6605 juil. 18  2017 fancydmtemplate.html*
-rwxr-xr-x  1 root root 6310 juil. 18  2017 messages*
-rw-r--r--  1 root root 2114 sept. 24 09:39 template.html
-rw-r--r--  1 root root 1464 sept. 24 09:39 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 09:39 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 09:39 template-utilisateur_interdits.html

Aucune modif . Normal.

Modif Filtrage proxy -> oui
reconfigure :

root@amon:/var/log/rsyslog/local/e2guardian# ll /etc/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 10:30 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rw-r--r--  1 root root 6605 juin  18 11:53 fancydmtemplate.html
-rw-r--r--  1 root root 6330 juin  18 11:53 messages
-rw-r--r--  1 root root 2114 sept. 24 15:00 template.html
-rw-r--r--  1 root root 1464 sept. 24 15:00 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 15:00 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 15:00 template-utilisateur_interdits.html
root@amon:/var/log/rsyslog/local/e2guardian# ll /usr/share/e2guardian/languages/french/
total 40
drwxr-xr-x  2 root root 4096 sept. 24 09:27 ./
drwxr-xr-x 29 root root 4096 sept. 24 09:36 ../
-rwxr-xr-x  1 root root 6605 juil. 18  2017 fancydmtemplate.html*
-rwxr-xr-x  1 root root 6310 juil. 18  2017 messages*
-rw-r--r--  1 root root 2114 sept. 24 09:39 template.html
-rw-r--r--  1 root root 1464 sept. 24 09:39 template-liste_blanche.html
-rw-r--r--  1 root root 1489 sept. 24 09:39 template-moderateur.html
-rw-r--r--  1 root root 1390 sept. 24 09:39 template-utilisateur_interdits.html

Seuls les fichiers de /etc/.. sont traités.

Au final, les fichiers ajoutés dans /usr/share/e2guardian/languages/french/ ne le sont qu'une seule fois, à l'instance.
Si activer_filtrage_proxy = non avant l'instance, e2guardian ne démarre plus ensuite quand on l'active.

Historique

#1 Mis à jour par Gilles Grandgérard il y a environ 5 ans

  • Tracker changé de Proposition Scénario à Scénario

#2 Mis à jour par Joël Cuissinat il y a environ un an

  • Tracker changé de Scénario à Proposition Scénario
  • Statut changé de Nouveau à Classée sans suite

Formats disponibles : Atom PDF