LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP stopped working, except on the command line (https://www.linuxquestions.org/questions/linux-networking-3/ftp-stopped-working-except-on-the-command-line-338217/)

sekelsenmat 06-28-2005 10:09 PM

FTP stopped working, except on the command line
 
Hi everyone,

I'm have a quite odd FTP problem. The thing is I cannot connect to FTPs using: gFTP / Firefox / urpmi (I can't even update my pc using urpmi!), but I can connect normally using the ftp command line problem.

I've being having this problem for the last month or so. On windows the ftp functions normally on FTP Core.

Here is a demonstration of the problem.

Using command line ftp:

Code:

[felipe@Lapa ~]$ ftp mandrake.contactel.cz
Connected to mandrake.contactel.cz.
220 212.65.242.233 FTP server ready
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (mandrake.contactel.cz:felipe): anonymous
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
lrwxrwxrwx  1 root    root          22 May 11  2004 Mandrake -> Mandrakelinux/official
lrwxrwxrwx  1 root    root          19 May 11  2004 Mandrake-devel -> Mandrakelinux/devel
lrwxrwxrwx  1 root    root          26 May 11  2004 Mandrake-iso -> Mandrakelinux/official/iso
drwxr-xr-x  13 (?)      (?)          250 Oct 27  2004 Mandrake-old
lrwxrwxrwx  1 root    root          23 Jul  8  2004 Mandrake-updates -> Sunsite-updates/updates
dr-xr-x---  1 apache  apache      4096 May 27 10:46 MandrakeClub
drwxr-xr-x  4 root    root          33 Oct 27  2004 Mandrakelinux
lrwxrwxrwx  1 root    root            8 Apr  7 19:38 Mandriva -> Mandrake
lrwxrwxrwx  1 root    root          19 Apr  7 19:38 Mandriva-devel -> Mandrivalinux/devel
lrwxrwxrwx  1 root    root          26 Apr  7 19:39 Mandriva-iso -> Mandrivalinux/official/iso
lrwxrwxrwx  1 root    root          15 Apr  7 19:39 Mandriva-updates -> Sunsite-updates
lrwxrwxrwx  1 root    root          12 May 11 07:34 MandrivaClub -> MandrakeClub
lrwxrwxrwx  1 root    root          13 Apr  7 19:37 Mandrivalinux -> Mandrakelinux
drwxr-xr-x  3 root    root          20 Jul  8  2004 Sunsite-updates
-rw-r--r--  1 root    root      5197298 Jun 28 22:03 ls-lR.gz
drwxr-xr-x  14 root    root        4096 Mar 31 11:45 people
-rw-r--r--  1 root    root        1912 Jan  4 10:23 struktura_adresaru.txt
226 Transfer complete.
ftp>

As you can see I connected successfully to mandrake.contactel.cz using ftp on the command line.

Now trying to add this repository with urpmi:

Code:

[root@Lapa felipe]# urpmi.addmedia main2 ftp://mandrake.contactel.cz/Mandrake...586/media/main with media_info/hdlist.cz
incapaz de acessar a arquivo 'hdlist' de "main", mídia ignorada
Mídia adicionada main2
grava o arquivo de configuração [/etc/urpmi/urpmi.cfg]
Examinando arquivo de síntese [/var/lib/urpmi/synthesis.hdlist.andyrtr.cz]
Examinando arquivo de síntese [/var/lib/urpmi/synthesis.hdlist.update_source.cz]
Adquirindo a fonte 'hdlist' (ou a síntese) de "main2"...
    ftp://mandrake.contactel.cz/Mandrake...info/hdlist.cz

  A aquisição falhou: curl: (7) couldn't connect to host
Aquisição da fonte hdlist (ou síntese) falhou
Nenhum arquivo 'hdlist' encontrado para a mídia "main2"
Examinando arquivo de síntese [/var/lib/urpmi/synthesis.hdlist.main2.cz]
Problema ao ler arquivo síntese da mídia "main2"
Encontrado 0 cabeçalhos no cache.
Removendo 0 cabeçalhos obsoletos no cache.
grava o arquivo de configuração [/etc/urpmi/urpmi.cfg]
incapaz de atualizar mídia "main2"
[root@Lapa felipe]#

This doesn't happen only to this ftp site, acctually I tryed more then 20, and that's very wierd because urpmi used to function normally. Also ftp://mandrake.contactel.cz/Mandrake...info/hdlist.cz does exist. I could even download it using the command line ftp.

FTP also won't work on Firefox. It simply won't, the page stays loading forever and I could not find any ftp configurations on firefox.

gFTP also doesn't work (and it used to work). It will say the login was successfull. Here is it's output:

Code:

USER braillevirtual

331 Password required for braillevirtual.
PASS xxxx
230 User braillevirtual logged in.
SYST

215 UNIX Type: L8
TYPE A

200 Type set to A.
PWD

257 "/home/braillevirtual" is current directory.
Carregando lista do diretório /home/braillevirtual do servidor (LC_TIME=pt_BR)
PASV

227 Entering Passive Mode (143,107,48,115,133,105)

It will remain in Passive Mode forever, I will never be able to see the contents of the directory. This site works perfectly when I connect using the command line FTP.

I'm behind a router, but that shouldn't be a problem, since:

1 - FTP worked last month

2 - I don't think that ftp clients should be affected by routers... only servers should

I searched a lot, but couldn't find any answers...

I also don't remember changing anything related to networking or anything last month that could be causing this... ftp just started to slowly stop functionning.

I'm using Mandriva 2005 / connecting throught cable, perfectly working www / http internet.

Any help apreciated,

Felipe

Matir 06-30-2005 12:24 PM

FTP clients can be problematic behind routers. If passive mode is breaking, switch to active and vice-versa. :)

sekelsenmat 07-01-2005 07:20 PM

Quote:

Originally posted by Matir
FTP clients can be problematic behind routers. If passive mode is breaking, switch to active and vice-versa. :)
Thanks, that worked for gFTP!! But unfortunatly urpmi doesn't have modes.... I just wonder what is different on the ftp command line and those programs that use ftp....

sekelsenmat 07-01-2005 07:32 PM

I tryed setting the ftp command line program to passive mode just to see what happens .... it will stop functioning... I guess this is the problem. If only I could configure all my ftp clients to use active mode...

Matir 07-01-2005 08:45 PM

There should be an option for most clients. I believe firefox has a plugin to allow you to set the mode, but I am not sure.

sekelsenmat 07-03-2005 07:44 AM

Quote:

Originally posted by Matir
There should be an option for most clients. I believe firefox has a plugin to allow you to set the mode, but I am not sure.
My main problem now is URPMI using passive mode. It doesn't offer active mode as far as I can tell by reading the man pages .... I am going to have to hack it's PERL script into passing a argument for curl (the ftp client that urpmi uses) so that it uses active mode.

I found the perl script that calls curl in this location: "/usr/lib/perl5/vendor_perl/5.8.6/urpm/download.pm"

Can anyone help me find where in that script is a place where it calls curl so that I can add a argument for curl using active mode?

The script is short, only 500 lines, but I don't know perl ...


All times are GMT -5. The time now is 10:15 PM.