ftp problem

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

ftp problem

Post 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?
Attachments
meteohub_ftpcapt.jpg
meteohub_ftpcapt.jpg (171.03 KiB) Viewed 10167 times
cgn
Expert Boarder
Expert Boarder
Posts: 91
Joined: Fri Jan 15, 2010 10:54 pm
Location: cgn

Re: ftp problem

Post by cgn »

The folder name ("Dossier Répertoire") should be included in slashes: /meteo/
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post by belidi »

Sorry
but the error is always the same. exept the code 258

thank you for your help
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: ftp problem

Post by wfpost »

I do not use slashes at all and it works!

Image
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post by belidi »

no changes :( :evil:
Attachments
Capture4.PNG
Capture4.PNG (57.82 KiB) Viewed 10133 times
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ftp problem

Post 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.
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post by belidi »

How can I do this command? :?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7878
Joined: Mon Oct 01, 2007 10:51 pm

Re: ftp problem

Post by admin »

Please don't use special characters in path or password. Meteohub does not handle that in all cases correctly.
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post by belidi »

no special characters, only uppercase and lowercase like this: CvBNdfg
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post by belidi »

My system is iconnect and using "putty" in windows, I can not connect via telnet and enter the command line.
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ftp problem

Post by YJB »

Hi,

You will need to use ssh to connect to Meteohub. You can use putty for this.
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post 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).

:(
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ftp problem

Post 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
belidi
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Tue Feb 16, 2010 5:32 pm

Re: ftp problem

Post 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:
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: ftp problem

Post by YJB »

No problem, always happy to help.

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