Page 1 of 1

ftp problem

Posted: Mon Jan 07, 2013 7:40 pm
by belidi
hello

hello
I want to change server, "skynet.be" to server "ovh.com." lorsaue I put in the necessary information Meteohub I get this:

"Error on call system: / usr / bin / ncftpput-S.-V-u tmp" beltxmvf "-p 'XXXXXX' P-21 ftp.bel1.eu / Weather / home / Meteohub / Meteohub upload.test-2> & 1
Error: The file test "Meteohub-upload.test" has not been sent (returned code 1280: Unknown Error). "
with fiezella or "total commander", there is no connection problem
the / meteo is chmod 705

What is my problem?

Re: ftp problem

Posted: Wed Jan 09, 2013 9:21 am
by cgn
The folder name ("Dossier Répertoire") should be included in slashes: /meteo/

Re: ftp problem

Posted: Wed Jan 09, 2013 4:51 pm
by belidi
Sorry
but the error is always the same. exept the code 258

thank you for your help

Re: ftp problem

Posted: Wed Jan 09, 2013 6:11 pm
by wfpost
I do not use slashes at all and it works!

Image

Re: ftp problem

Posted: Wed Jan 09, 2013 6:41 pm
by belidi
no changes :( :evil:

Re: ftp problem

Posted: Thu Jan 10, 2013 9:20 am
by YJB
Have you tried to do this from the commandline, using the exact same command?

Testing directly from the commandline gives you the option to add "-d", this will give you full debugging information.

I've seen a similair occurrence before, and it turned out that the ftp server was not allowing file renames. From what I recall ncftpput 1st uploads into a temporary file and then renames to the targetfile. Most likely removing the "-S" option will allow the upload to succeed.

Re: ftp problem

Posted: Thu Jan 10, 2013 6:23 pm
by belidi
How can I do this command? :?

Re: ftp problem

Posted: Thu Jan 10, 2013 11:20 pm
by admin
Please don't use special characters in path or password. Meteohub does not handle that in all cases correctly.

Re: ftp problem

Posted: Fri Jan 11, 2013 11:26 am
by belidi
no special characters, only uppercase and lowercase like this: CvBNdfg

Re: ftp problem

Posted: Fri Jan 11, 2013 4:05 pm
by belidi
My system is iconnect and using "putty" in windows, I can not connect via telnet and enter the command line.

Re: ftp problem

Posted: Fri Jan 11, 2013 4:23 pm
by YJB
Hi,

You will need to use ssh to connect to Meteohub. You can use putty for this.

Re: ftp problem

Posted: Mon Jan 14, 2013 6:15 pm
by belidi
Here is what I get as a response:

meteohub:/usr/bin# ncftpput -S .tmp -V -u "YYyyYY11" -p 'XXxxXXX' -P 21 ftp.bel1.eu /meteo/ /home/meteohub/meteohub-upload.test 2>&1
ncftpput: Could not change to directory /meteo/: server said: Can't change directory to meteo: No such file or directory

meteohub:/usr/bin# ncftpput -S .tmp -V -u "YYyyYYY11" -p 'XXxxXXxx' -P 21 ftp.bel1.eu /meteo /home/meteohub/meteohub-upload.test 2>&1
ncftpput: Could not change to directory /meteo: server said: Can't change directory to meteo: No such file or directory

I if I create another folder like "foo", the answer is even.

after having tried on the new server, I wanted to return to that worked and this is what I get now!!
Error on system call: /usr/bin/ncftpput -S .tmp -V -u "YYYYYYYYY" -p 'XXXxx1111' -P 21 users.skynet.be /meteo/ /home/meteohub/meteohub-upload.test 2>&1
Erreur : Le fichier test "meteohub-upload.test" n'a pas été envoyé (Code retourné 1280: Unknown Error).

:(

Re: ftp problem

Posted: Mon Jan 14, 2013 7:35 pm
by YJB
Hi,

It looks like there is no /meteo directory on the ftp server.

Not sure how to debug this server, I could try this myself, but then you will need to create a -temporary- account and password for me. Not sure if that is ossible and if you are able/willing to do so.

This is what I've just tried on my own server using a file that does always exist on MH:

Code: Select all

ncftpput -S .tmp -d -V -u username -p secret asterix /tmp /home/meteohub/meteohub.conf

Re: ftp problem

Posted: Tue Jan 15, 2013 8:24 pm
by belidi
:P Ok, thank you for the time you spent to help me. Force but try to understand, via commands, I found my mistake.
The directory of my hosting provider is not "/ weather /" but www / Weather /.
I was wrong, because my old hoster the directory / Weather / worked.
Again my apologies for any inconvenience :oops:

Re: ftp problem

Posted: Wed Jan 16, 2013 12:25 am
by YJB
No problem, always happy to help.

The main thing is that you've figured out the problem!