Project

General

Profile

Tâche #21826

Scénario #21824: Les ACL sur les dossiers créés via FTP devraient être correctes [signalement upstream] (suite)

Résoudre le problème d'installation du paquet

Added by Gérald Schwartzmann almost 6 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Start date:
10/23/2017
Due date:
% Done:

100%

Estimated time:
4.00 h
Spent time:
Remaining (hours):
0.0

Description

2.5 et 2.6

Associated revisions

Revision f32c8de4 (diff)
Added by EOLE Pack almost 6 years ago

Postinst hangs because Proftpd could not close all of its fds

  • debian/proftpd-basic.postinst: add call to db_stop.

History

#1 Updated by Gérald Schwartzmann almost 6 years ago

Après un test en 2.6 :

Les paquets suivants contiennent des dépendances non satisfaites :
 eole-proftpd-pkg : Dépend: proftpd-mod-clamav mais ne sera pas installé
l'appel à apt-get (-c /etc/apt/apt-eole.conf install eole-proftpd-pkg pydio-apps) a retourné une erreur (code 100). Voir /var/log/apt/term.log
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

root@scribe:~# 

#2 Updated by Emmanuel GARETTE almost 6 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Gérald Schwartzmann almost 6 years ago

  • Assigned To set to Gérald Schwartzmann

#4 Updated by Gérald Schwartzmann almost 6 years ago

  • % Done changed from 0 to 30

En 2.6 c'est un problème de dépendance dont le numéro de version attendu n'est pas le bon.
Le paquet proftpd-mod-clamav en question est sur notre forge https://dev-eole.ac-dijon.fr/projects/proftpd-mod-clamav/
La recompilation du paquet fait rentrer les choses dans l'ordre : https://dev-eole.ac-dijon.fr/projects/proftpd-mod-clamav/repository?utf8=%E2%9C%93&rev=dist%2Feole%2F2.6.2%2Fmaster

Le résultat sera visible demain matin : http://jenkins.eole.lan/jenkins/job/2.6.2/job/test-moduletests-scribe-2.6.2-amd64/

En attendant, à la main c'est OK :

root@scribe:~# getfacl /home/a/admin/perso/test
getfacl : suppression du premier « / » des noms de chemins absolus
# file: home/a/admin/perso/test
# owner: admin
# group: professeurs
user::rwx
user:admin:rwx
group::---
mask::rwx
other::---
default:user::rwx
default:user:admin:rwx
default:group::---
default:mask::rwx
default:other::---

root@scribe:~# 

#5 Updated by Gérald Schwartzmann almost 6 years ago

  • % Done changed from 30 to 40
  • Remaining (hours) changed from 4.0 to 2.0

En 2.5 le problème est que le script postinst ne rend pas la main et rien n'indique le pourquoi du comment

Le script perl /usr/share/debconf/frontend appel /var/lib/dpkg/info/proftpd-basic.postinst qui se termine en processus zombie

root      3800  0.0  0.3 164452  7840 ?        Ss   14:55   0:00  \_ sshd: root@pts/0    
root      3808  0.1  0.8  34604 16496 pts/0    Ss   14:55   0:00  |   \_ -bash
root      7145  1.6  2.1 251144 43808 pts/0    S+   15:02   0:03  |       \_ /usr/bin/python /usr/bin/Maj-Auto -D
root      7199  3.7  0.6  83348 13152 pts/0    R+   15:02   0:08  |           \_ apt-get -c /etc/apt/apt-eole.conf dist-upgrade
root      7630  0.0  0.2  18736  5600 pts/6    Ss+  15:02   0:00  |               \_ /usr/bin/dpkg --force-confold --force-confmiss --status-fd 59 --configure
root      7631  0.0  0.8  65872 18104 pts/6    S+   15:02   0:00  |                   \_ /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/proft
root      7633  0.0  0.0      0     0 pts/6    Z+   15:02   0:00  |                       \_ [proftpd-basic.p] <defunct>

le script /usr/share/debconf/frontend va jusqu'à la ligne :

my $confmodule=make_confmodule(@ARGV);

Une solution consisterait à commenter dans le postinst le démarrage du service qui est inutile à l'installation du paquet :
ligne 181

#6 Updated by Daniel Dehennin almost 6 years ago

  • % Done changed from 40 to 100
  • Remaining (hours) changed from 2.0 to 0.25

Correction présente dans le paquet 1.3.6-1~eole25.2

#7 Updated by Daniel Dehennin almost 6 years ago

  • Status changed from En cours to Résolu

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

  • Remaining (hours) changed from 0.25 to 0.0
Testé sur Scribe 2.5.2 puis copie du paquet en candidate pour 2.5.1 & 2.5.2, les tests unitaires sont re-passé au vert :

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

  • Status changed from Résolu to Fermé

Also available in: Atom PDF