Everything seems to be fine. List of modules populated and says is has downloaded module.

FTP set to normal for setup:

209.123.xxx.238:21

normal user and normal password.

Have set sites/all/modules each to 777

BUT get this:

Unable to create directory alinks/
Unable to install alinks

A drupal install was automatically located on ftp at public_html/sites/all/modules

When changing things to see what might be wrong, have had ftp error and path error, but is not showing those.

Seems to be working, but NOT!

Any ideas please? Thank you.

PS Have run update php after update to latest version. Did not use last installed version.

Comments

bserem’s picture

have you tried updating a module to see if everything work ok?

I just installed plugin_manager and everything worked perfectly out of the box!

in ftp I left "localhost", entered user/pass and everything worked
try with localhost and give some feedback, I just started messing with plugin_manager but maybe we can find out whats wrong

hopeless’s picture

bserem

Thanks for getting back on this.

Yes, there are a couple of modules in the queue and I have tried it with localhost. Sorry, still no joy.

BTW it is on Debian 4 Etch with MySQL 5 and php 5 and Drupal 6.9

The strange thing is, everything seems to be OK. Module list populated and working, box of green words to say modules downloaded, MD5# accepted, path found, directory permissions at 777 (not even sure if needed) but click to install and cannot create.

Anyway - time for sleep now.

Thank you for your help and any suggestions welcome.

bserem’s picture

have you tried checking the owner of the modules folder?

what I say might be stupid, but it just crossed my mind
you might have 777 to the modules folder but for a different owner, there's info about this issue on the handbook

hopeless’s picture

Thanks for the pointer, but unfortunately the ownerships are correct.

I think I might just hope that a new version comes out soon or try deleting and re-installing.

Best wishes and thanks.

mdowsett’s picture

I have the same issue(s). I've followed all the suggestions and the same result.

I get all good confirmation messages saying it's done the updates but the modules are still the old ones.

Isn't 'localhost' only for if your site is on your local machine? Would you have to put in your ftp server for remote hosted sites (ie ftp.mysite.com)? I tried both, neither worked.

rallycivic’s picture

I had the same messages:
Unable to create directory devel
Unable to install devel

I found that $ftp_path was empty at the point where the "Unable to create directory" message is created.

I had set the home directory of the ftp user that I used to be where the drupal install was, and had expected it to find the install in the current directory.

When I set the FTP Path to the absolute path on my server in the Settings page, installations worked.

hopeless’s picture

rallycivic

I get the green words in a box saying that the Drupal path has been found, so assume it is able to do so.

If I copy that path exactly into the settings box, it will not accept it when attempting a module install. I have tried every relative or absolute web or server path I can think of and it doesn't like any of them.

Oh, well.

Thanks for the help everyone.

mdowsett’s picture

Can you expand on this:

When I set the FTP Path to the absolute path on my server in the Settings page, installations worked.

Do yo mean you have to define the exact path that the modules are installed in? or just the home of that domain?

My site is on a subdomain...so I just have the FTP Path set to "public_html/subdomainname". Should I set it to "public_html/subdomainname/sites/default"? and with or without the trailing slash?

Antinoo’s picture

Subscribing.
I'm trying to install CCK and I'm getting the error Unable to upload cck/help/add-existing-field.html.

I've seen that when ftp_put() - in the ftp_plugin_manager_copy_library() function, defined in the ftp.backend.inc file - is run, $ftp_path is /, $file is cck/help/add-existing-field.html and $extract_dir is sites/default/files/plugin_manager_extraction/. This means that this is what is run:

    ftp_put($connect, "//cck/help/add-existing-field.html",
        "sites/default/files/plugin_manager_extraction/cck/help/add-existing-field.html", FTP_BINARY);

Notice the double slash in the 2nd argument.
In the setting page, I left blank the FTP path, since Drupal is installed in the FTP root directory.
A /cck and a /cck/help folders have been created. They are in the root path, and no file has been created.

If I change the FTP path to /sites/all/modules/, it says Your provided drupal install directory is invalid.

I'll continue to debug it tomorrow.

Greetings, Giovanni

Antinoo’s picture

I've deleted the @ which suppresses warnings and it says: warning: ftp_put(): PORT address does not match originator. in [...]/plugin_manager/ftp.backend.inc on line 153..

Google says it's the 501 FTP Error and that it means that "server returned an invalid response to PASV command, [try to] select the USER@SITE FTP method instead of PASV method".

It seems to be a FTP server-related error with the passive mode, and could be worked around by the FTP client.

Greetings, Giovanni

mdowsett’s picture

but there are no options to set what mode you are using this module in, is there??

Yorgg’s picture

In my case, "A drupal install was automatically located on ftp" sucessfully, though it is "Unable to upload" / create directory and write.
I have been looking for the recommended ownership/group chown/chmod for this case and no luck.

Is there an article on this?