Titel: getaddrinfo error: hostname nor servname provided Beitrag von: [tE]bachi am 04. September 2005, 10:16:54 Salü!
Habe ein grossees Problem mit meinem neu aufgesetzten System... ProFTPD startet auf, kann aber von ausser nicht erreicht werden: "500 Sorry, no server available to handle request on data.bachi.net" Console: Code: [root@data ~]# /usr/local/etc/rc.d/proftpd.sh start Starting proftpd. - getaddrinfo 'data.bachi.net' error: hostname nor servname provided, or not known System: Code: FreeBSD 5.4 ProFTPD 1.3.0rc2 ifconfig: 10.0.0.245 hostname: data.bachi.net /etc/hosts: Code: 127.0.0.1 localhost 10.0.0.245 data.bachi.net /usr/local/etc/proftpd.conf Code: ServerName "bachi.net" ServerAdmin info@bachi.net ServerType standalone ### USER / GROUP User nobody Group nogroup ### Defaults Port 21 MaxInstances 30 TimeoutStalled 300 UseReverseDNS off ScoreboardFile /var/run/proftpd.scoreboard # Permission Usr Grp # File: -rw-r--r-- FTP WWW # Dir : drwxr-xr-x FTP WWW Umask 133 022 ### LOG FORMAT LogFormat default "%h %l %u %t \"%r\" %s %b" LogFormat auth "%v [%P] %h %t \"%r\" %s" LogFormat write "%h %l %u %t \"%r\" %s %b" TimeoutLogin 120 TimeoutIdle 600 TimeoutNoTransfer 900 TimeoutStalled 3600 MaxLoginAttempts 3 DefaultRoot /opt DeferWelcome off RequireValidShell no AllowOverwrite yes IdentLookups off ServerIdent on "bachi.net FTP" MaxClients 10 "Sorry, the maximum number of allowed users are already connected (%m)" AccessGrantMsg "Login: %u. Access is Logged." DisplayLogin .message PathDenyFilter "(^|/)(\.ftpaccess|\.htaccess|\.message)(/|$)" ### LOGS TransferLog /var/log/proftpd/xfer.log ExtendedLog /var/log/proftpd/access.log WRITE,READ write ExtendedLog /var/log/proftpd/auth.log AUTH auth proftpd -V Code: Compile-time Settings: Version: 1.3.0rc2 Platform: FREEBSD5 (FREEBSD5_4) Built With: configure --localstatedir=/var/run --sysconfdir=/usr/local/etc --disable-sendfile --disable-ipv6 --with-modules=mod_ifsession:mod_ratio:mod_readme:mod_rewrite:mod_wrap --prefix=/usr/local i386-portbld-freebsd5.4 Files: Configuration File: /usr/local/etc/proftpd.conf Pid File: /var/run/proftpd.pid Scoreboard File: /var/run/proftpd/proftpd.scoreboard Features: - Autoshadow support - Controls support + curses support - Developer support - DSO support + IPv6 support + Largefile support + ncurses support - POSIX ACL support - Shadow file suppport - Sendfile support Tunable Options: PR_TUNABLE_BUFFER_SIZE = 1024 PR_TUNABLE_GLOBBING_MAX = 8 PR_TUNABLE_HASH_TABLE_SIZE = 40 PR_TUNABLE_NEW_POOL_SIZE = 512 PR_TUNABLE_RCVBUFSZ = 65536 PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80 PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30 PR_TUNABLE_SELECT_TIMEOUT = 30 PR_TUNABLE_SNDBUFSZ = 32768 PR_TUNABLE_TIMEOUTIDENT = 10 PR_TUNABLE_TIMEOUTIDLE = 600 PR_TUNABLE_TIMEOUTLINGER = 180 PR_TUNABLE_TIMEOUTLOGIN = 300 PR_TUNABLE_TIMEOUTNOXFER = 300 PR_TUNABLE_TIMEOUTSTALLED = 3600 PR_TUNABLE_XFER_BUFFER_SIZE = 32768 PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10 Vielen Dank! greets bachi[/code] Titel: getaddrinfo error: hostname nor servname provided Beitrag von: [tE]bachi am 08. September 2005, 20:28:13 Habs selber herausgefunden... Hängt mit IPv6 zusammen!
Ob man bei configure --enable-ipv6 oder --disable-ipv6 schreibt... es nimmt immer IPv6! http://bugs.proftpd.org/show_bug.cgi?id=2676 Workaround für FreeBSD ist: Code: $ pkg_deinstall proftpd $ cd /usr/ports/ftp/proftpd $ make clean $ make extract $ make configure $ vi work/proftpd-1.3.0rc2/config.h Auskommentieren... /* #define PR_USE_IPV6 0 */ $ make install clean ... und schon funktioniert es: Code: Features: [...] - IPv6 support + ncurses support [...] greets bachi |