LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-28-2005, 10:09 PM   #1
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Rep: Reputation: 30
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
 
Old 06-30-2005, 12:24 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
FTP clients can be problematic behind routers. If passive mode is breaking, switch to active and vice-versa.
 
Old 07-01-2005, 07:20 PM   #3
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Original Poster
Rep: Reputation: 30
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....
 
Old 07-01-2005, 07:32 PM   #4
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Original Poster
Rep: Reputation: 30
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...
 
Old 07-01-2005, 08:45 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
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.
 
Old 07-03-2005, 07:44 AM   #6
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Original Poster
Rep: Reputation: 30
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 ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 03:26 AM
Command Line FTP erikcw Fedora 3 10-12-2004 09:44 AM
ftp command line acrors Fedora 3 10-02-2004 04:55 AM
Shar Command Stopped Working thef0x82 Red Hat 0 11-18-2003 07:24 AM
Command Line FTP Client Donald1000 Linux - Software 3 09-19-2003 11:06 AM


All times are GMT -5. The time now is 09:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration