Gandi.net Groups

Hébergement Généralités: Échec de l'installation de ProFTPD

Vous devez être connecté pour poster de nouveaux messages. Créer un compte.

Bonjour,

Mon hébergement tourne sous Ubuntu 7.10.

J'ai scrupuleusement suivi le tutoriel suivant afin de créer un serveur
FTP :
http://wiki.gandi.net/fr/hosting/using-lin...

En tentant de lancer le serveur, ce message apparaît :

root@name:/home/user# sudo /etc/init.d/proftpd start
 * Starting ftp server proftpd
   ...fail!
root@name:/home/user#

Que puis-je faire ?

Merci par avance.
Namida a écrit :
Bonjour,

Mon hébergement tourne sous Ubuntu 7.10.

J'ai scrupuleusement suivi le tutoriel suivant afin de créer un serveur
FTP :
http://wiki.gandi.net/fr/hosting/using-lin...

En tentant de lancer le serveur, ce message apparaît :

root@name:/home/user# sudo /etc/init.d/proftpd start
 * Starting ftp server proftpd
   ...fail!
root@name:/home/user#

Que puis-je faire ?
Bonjour,

Il faudrait en savoir plus pour comprendre. Pour ce la il faut regarder 
les logs systèmes : /var/log/messages et /var/log/syslog

Cordialement,
Olivier BONHOMME
Bonjour,

Merci pour votre réponse.

Voici ce que j'obtiens via la commande "less /var/log/messages" :

Jan 13 06:48:10 Serveur syslogd 1.4.1#21ubuntu3: restart.
Jan 13 07:06:58 Serveur -- MARK --
Jan 13 07:26:59 Serveur -- MARK --
Jan 13 07:46:59 Serveur -- MARK --
Jan 13 08:06:59 Serveur -- MARK --
Jan 13 08:27:00 Serveur -- MARK --
Jan 13 08:47:00 Serveur -- MARK --
Jan 13 09:07:01 Serveur -- MARK --
Jan 13 09:27:01 Serveur -- MARK --
Jan 13 09:47:02 Serveur -- MARK --
Jan 13 10:07:02 Serveur -- MARK --
Jan 13 10:27:02 Serveur -- MARK --
Jan 13 10:47:03 Serveur -- MARK --
Jan 13 11:07:03 Serveur -- MARK --
Jan 13 11:27:04 Serveur -- MARK --
Jan 13 11:47:04 Serveur -- MARK --
Jan 13 12:07:04 Serveur -- MARK --
Jan 13 12:27:05 Serveur -- MARK --
Jan 13 12:47:05 Serveur -- MARK --
Jan 13 13:07:06 Serveur -- MARK --
Jan 13 13:27:06 Serveur -- MARK --
Jan 13 13:47:06 Serveur -- MARK --
Jan 13 14:07:07 Serveur -- MARK --

Via la commande "less /var/log/syslog" :

Jan 16 06:26:16 Serveur syslogd 1.4.1#21ubuntu3: restart.
Jan 16 06:39:01 Serveur /USR/SBIN/CRON[14216]: (root) CMD (  [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Jan 16 06:49:53 Serveur -- MARK --
Jan 16 07:09:02 Serveur /USR/SBIN/CRON[14223]: (root) CMD (  [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Jan 16 07:17:01 Serveur /USR/SBIN/CRON[14230]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Jan 16 07:29:53 Serveur -- MARK --
Jan 16 07:39:01 Serveur /USR/SBIN/CRON[14233]: (root) CMD (  [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Jan 16 07:49:54 Serveur -- MARK --
Jan 16 08:09:01 Serveur /USR/SBIN/CRON[14427]: (root) CMD (  [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Jan 16 08:17:01 Serveur /USR/SBIN/CRON[14434]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Jan 16 08:29:55 Serveur -- MARK --
Jan 16 08:39:01 Serveur /USR/SBIN/CRON[14437]: (root) CMD (  [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print
Namida a écrit :
Bonjour,

Merci pour votre réponse.
Hmm rien d'interessant la dedans. Il n'y aurait pas un log spécifique a 
proftpd dans /var/log ?
Il y a bel et bien un dossier "proftpd" dans "/var/log" qui contient un
"controls.log" apparemment vide et un "proftpd.log" n'offrant que peu
d'informations :

Jan 15 15:10:46 Serveur proftpd[13095] Serveur: ProFTPD 1.3.0 (stable)
(built Fri Jun 15 12:52:16 GMT 2007) standalone mode STARTUP
Jan 16 22:04:43 Serveur proftpd[20270] Serveur
(209.142.29.2[209.142.29.2]): FTP session opened.
Jan 16 22:04:43 Serveur proftpd[20270] Serveur
(209.142.29.2[209.142.29.2]): FTP session closed.

Je doute malheureusement que cela vous permette de m'aider davantage,
mais vous remercie d'essayer. :)
Namida a écrit :
Je doute malheureusement que cela vous permette de m'aider davantage,
mais vous remercie d'essayer. :)
Hmm. Alors passons en mode débug. En ligne de commande tape

proftpd -nd 5

et ca va lance proftpd avec tout plein de traces sur la console. Tente 
une connexion et regarde un peu ce que raconte la sortie standard.

Cordialement,
Olivier BONHOMME
Après avoir entré la commande proftpd -nd 5, j'avoue être perdu.
Qu'entendez-vous par "tenter une connexion" et "sortie standard" ?

Je me permets de vous donner le résultat de la commande sus-citée :

root@Serveur:/home/User# proftpd -nd 5
 - mod_ctrls/0.9.4: binding ctrls socket to
'/var/run/proftpd/proftpd.sock'
 - parsing '/etc/proftpd/proftpd.conf' configuration
 - parsing '/etc/proftpd/modules.conf' configuration
 - mod_tls/2.1.1: using OpenSSL 0.9.8e 23 Feb 2007
 - DenyFilter: compiling deny regex '\*.*/'
 - <IfModule>: using 'mod_tls.c' section at line 89
 - <IfModule>: skipping 'mod_quota.c' section at line 93
 - <IfModule>: skipping 'mod_ratio.c' section at line 97
 - <IfModule>: using 'mod_delay.c' section at line 105
 - <IfModule>: using 'mod_ctrls.c' section at line 109
 - mod_ctrls/0.9.4: closing ctrls socket '/var/run/proftpd/proftpd.sock'
(3)
 - <IfModule>: using 'mod_ctrls_admin.c' section at line 117
 - IPv6 getaddrinfo 'Serveur' error: Name or service not known
Serveur - 
Serveur - Config for Debian:
Serveur - DeferWelcome
Serveur - DefaultServer
Serveur - ShowSymlinks
Serveur - TimeoutNoTransfer
Serveur - TimeoutStalled
Serveur - TimeoutIdle
Serveur - DisplayLogin
Serveur - DisplayFirstChdir
Serveur - ListOptions
Serveur - DenyFilter
Serveur - UserID
Serveur - UserName
Serveur - GroupID
Serveur - GroupName
Serveur - Umask
Serveur - DirUmask
Serveur - AllowOverwrite
Serveur - TransferLog
Serveur - TLSEngine
Serveur - DelayEngine
Serveur - mod_ctrls/0.9.4: binding ctrls socket to
'/var/run/proftpd/proftpd.sock'
Serveur - deleting existing scoreboard
'/var/run/proftpd/proftpd.scoreboard'
Serveur - Failed binding to 0.0.0.0, port 21: Address already in use
Serveur - Check the ServerType directive to ensure you are configured
correctly.
root@Serveur:/home/User#

Le problème pourrait-il venir d'un conflit avec une autre installation
? Sachant que j'ai commencé à installer Apache, MySQL et PHP ainsi
qu'un serveur TeamSpeak.

Merci à nouveau. :)
Namida a écrit :
Serveur - Failed binding to 0.0.0.0, port 21: Address already in use
Serveur - Check the ServerType directive to ensure you are configured
correctly.
root@Serveur:/home/User#
La réponse est la : tu as déja un serveur ftp qui tourne sur cette 
machine et qui monopolise le port 21. C'est donc pour ca que proftpd 
n'arrive pas à démarrer.

Un petit netstat -naple |grep 21 va permettre de déterminer si c'est un 
proftpd qui s'est mal arrété.

Si le résultat de la commande précise que c'est un processus proftpd qui 
tourne il suffit de faire un killall -9 proftpd puis de redémarrer 
celui-ci proprement

Cordialement,
Olivier BONHOMME
Cela fonctionne.

Merci beaucoup pour votre aide.

Cordialement,

N.