View previous topic :: View next topic |
Author |
Message |
mhweather
Joined: 07 Aug 2005 Posts: 54
|
Posted: Tue Aug 16, 2005 9:23 am Post subject: FTP error |
|
|
I see a message coming out on my terminal console:
ftp: A: unknown option
messages shows:
Aug 16 11:16:14 localhost wviewftpd[2617]: <3218910280> : FTP: 4 rules processed
Aug 16 11:17:14 localhost wviewftpd[2617]: <3218970281> : FTP: 1 rules processed
Nothing got uploaded. Is there a more detailed log of this ? |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Tue Aug 16, 2005 1:19 pm Post subject: tnftp Solution for RedHat and FC Users |
|
|
The problem is that by default, FC4 has a very rudimentary ftp installed. wview requires a more advanced ftp utility, namely tnftp.
Download it from here: ftp://ftp.netbsd.org/pub/NetBSD/misc/lukemftp/tnftp-20050625.tar.gz
Extract it: tar zxvf tnftp-20050625.tar.gz
cd to the directory: cd tnftp-20050625
Then execute the following as root (you can cut and paste these commands):
./configure
make
make install
mv /usr/bin/ftp /usr/bin/ftp-old
ln -s /usr/local/bin/ftp /usr/bin/ftp
mv /usr/kerberos/bin/ftp /usr/kerberos/bin/ftp-old
ln -s /usr/local/bin/ftp /usr/kerberos/bin/ftp
The thing is, most linux distros (and all BSD distros) have tnftp by default. For some reason, RedHat and FC have always included the plain old (practically useless) ftp. I really need to add these tnftp tips into the User Manual somewhere...
Once you have done this, you will be in business.
Mark |
|
Back to top |
|
|
mhweather
Joined: 07 Aug 2005 Posts: 54
|
Posted: Tue Aug 16, 2005 4:40 pm Post subject: |
|
|
Well, FTP is working, but now I'm getting this:
ftp: local: img/Current_Conditions.htm: No such file or directory
EPRT not understood.
img/barom.png: No such file or directory
img/baromday.png: No such file or directory
img/barommonth.png: No such file or directory
img/baromyear.png: No such file or directory
img/dayrain.png: No such file or directory
img/dew.png: No such file or directory
Files are in the /var/wview/img directory |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Tue Aug 16, 2005 9:55 pm Post subject: |
|
|
As you and I have learned this evening, that is caused by not creating the img directory on the remote host. My bad for not having any FTP instructions in the User Manual. I have added a section and it is in the wview site version of the User Manual now. It will be in all subsequent releases.
Thanks for identifying this glaring omission in my documentation.
Mark |
|
Back to top |
|
|
Jean-Paul SEVESTRE
Joined: 09 Feb 2006 Posts: 30 Location: Fontanes, France
|
Posted: Wed Feb 15, 2006 2:28 pm Post subject: FTP set up |
|
|
Does the img/ folder has to be at the root on the web server? i.e. mywebsite/img/
Or can it be mywebsite/meteofolder/wview/anything/img/?
In the UM it says:
Do not add or remove spaces in this command!
cd /var/wview
/usr/bin/ftp -AiV -u ftp://remote_username:remote_password@remote_host/ img/*.*
Does that mean that the img folder must start with a space?
Thanks for your help
JP |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Wed Feb 15, 2006 2:50 pm Post subject: |
|
|
Quote: | Does the img/ folder has to be at the root on the web server? i.e. mywebsite/img/
Or can it be mywebsite/meteofolder/wview/anything/img/? |
No, see the UM section on setting up FTP transfers.
It does not mean that at all. This is a test command and the space is required because of the argument structure of the ftp command. |
|
Back to top |
|
|
|