Le Tue, 6 Nov 2007 19:59:29 -0800 "Dan Nicholson" <[EMAIL PROTECTED]> a
écrit :

> On 11/6/07, Nicolas FRANCOIS <[EMAIL PROTECTED]> wrote:
> >
> > I have an annoying problem with my new LFS box (LFS SVN post 6.3, BLFS
> > SVN) : Everything is working quite OK...except ftp. When I want to
> > connect to an ftp server, everything goes OK until I want to dir a
> > directory :
> >
> > ftp> ls
> > 200 PORT command successful. Consider using PASV.
> > 425 Failed to establish connection.
> >
> > Same problem with the ftp program from cpan, I guess, for I can only
> > retreive packages with wget or lynx. With Firefox and Konqueror, ftp is
> > fine.
> >
> > Ncftp works fine, so I think it's a specific problem from the core ftp
> > program installed in LFS. How can I trace this problem to it's origin ?
> 
> I don't have any ideas, but I would try strace.
> 
> http://sourceforge.net/projects/strace/
> 
> strace -f -o ftp.log ftp
> 
> Then just do what you normally do. There will be a lot of output in
> ftp.log, hopefully something will point you in the right direction.

This is the part of the log between the time I type ls and the time I
receive the fail message. Can you help me decrypt it ?


25963 write(1, "ftp> ", 5)              = 5
25963 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
25963 read(0, "l", 1)                   = 1
25963 write(1, "l", 1)                  = 1
25963 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
25963 read(0, "s", 1)                   = 1
25963 write(1, "s", 1)                  = 1
25963 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
25963 read(0, "\r", 1)                  = 1
25963 write(1, "\n", 1)                 = 1
25963 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
25963 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) 
= 0
25963 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
25963 rt_sigaction(SIGINT, {0x8053400, [INT], SA_RESTART}, {0xb7f46f20, [], 0}, 
8) = 0
25963 rt_sigaction(SIGTERM, {SIG_DFL}, {0xb7f46f20, [], 0}, 8) = 0
25963 rt_sigaction(SIGQUIT, {SIG_DFL}, {0xb7f46f20, [], 0}, 8) = 0
25963 rt_sigaction(SIGALRM, {SIG_DFL}, {0xb7f46f20, [], 0}, 8) = 0
25963 rt_sigaction(SIGTSTP, {SIG_DFL}, {0xb7f46f20, [], 0}, 8) = 0
25963 rt_sigaction(SIGTTOU, {SIG_DFL}, {0xb7f46f20, [], 0}, 8) = 0
25963 rt_sigaction(SIGTTIN, {SIG_DFL}, {0xb7f46f20, [], 0}, 8) = 0
25963 rt_sigaction(SIGWINCH, {SIG_DFL}, {0xb7f46a80, [], SA_RESTART}, 8) = 0
25963 time(NULL)                        = 1194481898
25963 rt_sigaction(SIGINT, {0x804fb30, [INT], SA_RESTART}, {0x8053400, [INT], 
SA_RESTART}, 8) = 0
25963 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
25963 bind(5, {sa_family=AF_INET, sin_port=htons(0), 
sin_addr=inet_addr("192.168.0.1")}, 16) = 0
25963 getsockname(5, {sa_family=AF_INET, sin_port=htons(36516), 
sin_addr=inet_addr("192.168.0.1")}, [16]) = 0
25963 listen(5, 1)                      = 0
25963 rt_sigaction(SIGINT, {0x804fbd0, [INT], SA_RESTART}, {0x804fb30, [INT], 
SA_RESTART}, 8) = 0
25963 write(4, "PORT 192,168,0,1,142,164\r\n", 26) = 26
25963 rt_sigaction(SIGINT, {0x804fbd0, [INT], SA_RESTART}, {0x804fbd0, [INT], 
SA_RESTART}, 8) = 0
25963 read(3, "200 PORT command successful. Con"..., 1024) = 51
25963 write(1, "200 PORT command successful. Con"..., 50) = 50
25963 rt_sigaction(SIGINT, {0x804fbd0, [INT], SA_RESTART}, {0x804fbd0, [INT], 
SA_RESTART}, 8) = 0
25963 rt_sigaction(SIGINT, {0x804fb30, [INT], SA_RESTART}, {0x804fbd0, [INT], 
SA_RESTART}, 8) = 0
25963 rt_sigaction(SIGINT, {0x804fbd0, [INT], SA_RESTART}, {0x804fb30, [INT], 
SA_RESTART}, 8) = 0
25963 write(4, "LIST\r\n", 6)           = 6
25963 rt_sigaction(SIGINT, {0x804fbd0, [INT], SA_RESTART}, {0x804fbd0, [INT], 
SA_RESTART}, 8) = 0
25963 read(3, "425 Failed to establish connecti"..., 1024) = 37
25963 write(1, "425 Failed to establish connecti"..., 36) = 36

I couldn't find something wrong, but I'm not especially good in
decrypting strace messages :-(

Can you help me ?

\bye

-- 

                   Nicolas FRANCOIS
            http://nicolas.francois.free.fr
 A TRUE Klingon programmer does NOT comment his code
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to