Could not login to the ftp server.

giorgio79 - November 20, 2008 - 04:33
Project:Plugin Manager
Version:6.x-1.5
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I keep getting this message:
# Could not login to the ftp server.

in host I put my website address like www.hehehehe.com
user: lalala@zxcvzxcv.com
pass: lnflkjandfjkalf

something like that :P

It works in FTP clients, still the module complains.

#1

jabapyth - November 20, 2008 - 12:19

have you tried "localhost" for the host? That is usually what you want.

#2

giorgio79 - November 20, 2008 - 13:51

Yep, tried that, also localhost:23, and simply host as well.

#3

jabapyth - November 20, 2008 - 20:38

what errors do you get?

#4

giorgio79 - November 21, 2008 - 16:44

Thanks for coming back.

That is the thing, I only get

"Could not login to ftp"

It does not say if access denied for user or anything else, just that.

#5

jaxpax - November 21, 2008 - 17:26

I also had this problem when trying to login. I therefore changed my host name from localhost to ftp.example.com

#6

Christian Zange - May 1, 2009 - 13:40

Hi all,

i have the same problem...

Could not login to the ftp server.

I tried to change things in the servername / but then i got "cannot find FTP server" / that means, that a ftp server is found / but login is impossible. No reason is given why. Login via FTP client works well. Is there anything i should now?

I am hosting at hostgator. With my own server i naver had this problem..

regards
christian

#7

giorez - May 10, 2009 - 07:54

I'm actually on a cheap virtual hosting server. I succesefully set evethyng just using the site alias:

Settings
Stored Username: xxxxx@aruba.it
Stored Hostname: ftp.example.it

FTP Settings
FTP Path: /www.example.it

#8

jabapyth - May 27, 2009 - 15:11

Is this still a problem in version 1.9?
btw to two errors you would get w/ regards to the ftp server are:

No ftp server could be found. (bad host name)
Could not login to the ftp server. (bad username/password)

which are you getting?

#9

giorgio79 - June 8, 2009 - 13:45
Status:active» fixed

The issue for me seems to have disappeared with the latest dev version...Using ftp.mysite.com etc etc worked fine.

Thanks a lot.

#10

System Message - June 22, 2009 - 13:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#11

mistify - January 23, 2010 - 10:17
Version:6.x-1.4» 6.x-1.x-dev
Status:closed» active

Running 6.x-1.x-dev and continue to receive the error "No ftp server could be found.". My site is hosted with GoDaddy, no apparent FTP path is defined (installed in the root directory on remote host), and I have tried the following common sensical hostname's:

domain.com
ftp.domain.com
www.domain.com
localhost
local
root
Site IP address and port, proven to function with FileZilla, entered in the ip:port format

I'm a newbie, what am I missing here?

#12

reysbro - February 12, 2010 - 10:08
Version:6.x-1.x-dev» 6.x-1.5

Same problem when trying to install modules using plugin manager.
Simply cannot connect to FTP.
Getting "No ftp server could be found."
drupal installed using godaddy interface (one-click)
I am able to log into the ftp account/directory in any other interface (browser, etc) except through the drupal admin - what's wrong?

#13

nightlife2008 - March 1, 2010 - 11:40

Hi guys,

Since yesterday I discovered this awesome module! First off, kudos to the creator(s), we'll be using this on all our companies' websites and will save us a truckload of time!

Second, I must say I'm not so convinced about the provided documentation as it took me about half a day to get this working.

It seemed that all my FTP credentials were correct under "Plugin Manager - Settings":


Host: notorious.halecomm.net
User: ftp_user
Pass: xxxxxxx

I tried these with cuteFTP and got it working.

After this issue, it seemed that Plugin Manager could not retrieve the installation path for drupal, so I had to put in the full linux path to my drupal installation:

Path: /home/ftp_user/www/drupal6 (with beginning / and no trailing / as "sites/default/" or "sites/all" is being added...

With these settings I managed to download all the necessairy files, but was unable to extract and copy them through the FTP system to my "/sites/all/modules/" directory.

After some Googling I found out the following on the PHP.net website, about the usage of "ftp_connect":

http://be.php.net/manual/en/function.ftp-connect.php

thomas g.
03-Mar-2003 11:35
always keep an eye on the ftp_pasv function, if you are behind a firewall or nat'ed and your scripts won't do a listing or put files to the ftp

As our company webserver is behind our firewall, I suspected the problem was indeed in the lacking of PASV mode so I added the following line of code to "plugin_manager/ftp.backend.inc" on line 133:

ftp_pasv ($connect, true);

So the whole code block from line 115 to line 138 looks something like:

<?php
 
// Try to guess which how far in we are chrooted...
 
if (empty($ftp_path)) {
    foreach (
$local_path AS $index => $value) {
      unset(
$local_path[$index]);
      if (@
ftp_nlist($connect, implode('/', $local_path) .'/'. $dir)) {
       
$ftp_path = implode('/', $local_path) .'/'. $dir;
       
drupal_set_message(t('A drupal install was automatically located on ftp at @ftp_path.', array('@ftp_path' => $ftp_path)));
        break;
      }
    }
  }
  else {
   
$ftp_path = $ftp_path .'/'. $dir;
    if (!@
ftp_chdir($connect, $ftp_path)) {
     
drupal_set_message(t('Your provided drupal install directory is invalid.') . l(t('Change it here.'), 'admin/plugin_manager/settings'),  'error');
      return
FALSE;
    }
  }

 
ftp_pasv ($connect, true);

 
// If we couldn't guess it, then quit.
 
if (!isset($ftp_path) || !@ftp_chdir($connect, $ftp_path)) {
   
drupal_set_message(l(t('Could not guess the ftp directory for drupal.  Set it here.'), 'admin/plugin_manager/settings'), 'error');
    return
FALSE;
  }
?>

I hope to be of any assistance,
Kind regards,
Kim

 
 

Drupal is a registered trademark of Dries Buytaert.