wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

wviewftpd.conf
Goto page Previous  1, 2
 
Post new topic   Reply to topic    wviewweather.com Forum Index -> FTP
View previous topic :: View next topic  
Author Message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Sat Feb 18, 2006 2:14 am    Post subject: Reply with quote

cd /var/wview
/usr/bin/ftp -Aiv -u ftp://remote_username:remote_password@remote_host/MeteoFontanes img/*.*

Ftp transfer starts well but it ends up at mid process with this:
..................
226 Transfer complete.
2255 bytes sent in 00:00 (11.12 KB/s)
local: img/fc-icon-partlycloudyandsnow.gif remote: img/fc-icon-partlycloudyandsnow.gif
200 EPRT command successful.
150 Opening BINARY mode data connection for 'img/fc-icon-partlycloudyandsnow.gif'.
100% |*********************************************************************| 2299 2.28 MB/s 00:00 ETA
226 Transfer complete.
2299 bytes sent in 00:00 (11.21 KB/s)
local: img/fc-icon-partlycloudy.gif remote: img/fc-icon-partlycloudy.gif
200 EPRT command successful.

421 Service not available, remote server timed out. Connection closed

looks like its a server problem then. The ftp transfer stops half way. Files are transferred in alphabetical order. In this example it did not go further than letter "f".

I am going to try to contact the ISP but this is even much more complicated than setting up wview... I let you know the outcome if I can get any.
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Sat Feb 18, 2006 3:19 am    Post subject: Reply with quote

Could you see if splitting up the transfer works? This is not a solution, just a further test. Save this code as ftptest.sh, then do 'sh ftptest.sh'

Code:
#!/bin/sh

USER=remote_username
PASS=remote_password
HOST=remote_host

DIRECTORY=MeteoFontanes

cd /var/wview
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/*.html
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/*.htm
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/*.xml
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/[a-l]*.png
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/[m-z]*.png
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/*.txt
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Sat Feb 18, 2006 4:12 am    Post subject: Reply with quote

Your /bin/usr/ftptest.sh script performed better than than what we had previously.
Towards the beginning of the run It says:

Using binary mode to transfer files.
200 Type set to I.
local: img/index.html remote: MeteoFontanes
200 EPRT command successful.
553 MeteoFontanes: Is a directory.
Connected to judith.nfrance.com.
220 judith.nfrance.com FTP server (Version 6.00LS) ready.

It ends up with:
226 Transfer complete.
1827 bytes sent in 00:00 (10.05 KB/s)

But /var/wview/img/index.html was not transferred.
Permission for this file is rwxrwxrwx. By the way should I restrict it more?
What means local: img/index.html remote: MeteoFontanes further up?
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Sat Feb 18, 2006 4:34 am    Post subject: Reply with quote

Like you said earlier, I think it means your ISP doesn't like index.html and is renaming it.

One more test!

cd /var/wview/img
ln -s index.html meteo.htm

Then re-run ftptest.sh. Hopefully meteo.htm will be uploaded without being mangled.
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Sat Feb 18, 2006 4:55 am    Post subject: Reply with quote

When looking more carefully at the result of your ftptest.sh script, I find the following:

img/*.html The only html file was not transmitted
img/*.htm All the htm files where transmitted.
img/*.xml There was no xml file to transfer.
img/[a-l]*.png Executed
img/[m-z]*.png Executed
img/*.txt Executed

gif and jpg files where not transmitted because we did not ask for it.
Can I add them up in your script?

Therefore beside the server problem which hangs up before ftp process is finished, we still have a problem with the only html file.
What can I do to test FTP transfer just for this one file?
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Sat Feb 18, 2006 5:09 am    Post subject: Reply with quote

At least we can now see your site:

http://www.vol-libre-cadurcien.net/MeteoFontanes/img/meteo.htm

It looks really good (apart from the missing images).

If your ISP is going to block index.html and you're not generating an xml file, just change the first couple of lines to:

/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/*.gif
/usr/bin/ftp -Aiv -u ftp://${USER}:${PASS}@${HOST}/${DIRECTORY} img/*.jpg
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Sat Feb 18, 2006 5:12 am    Post subject: Reply with quote

I added up jpg an gif files to your ftptest.sh script and it went all through down to Clouds-dusky.jpg when it stopped.

meteo.htm is now visible on the web (without the wind dial though)
Bravo.
as far as I am concerned I do not have a clue how you made the trick with this symbolic link...!
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Sat Feb 18, 2006 5:23 am    Post subject: Reply with quote

In wview the gif and jpg files are static and only need to be transferred once - maybe you could do this manually?

Do you have any idea why wind.png is missing?
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Sat Feb 18, 2006 6:29 am    Post subject: Reply with quote

I added up jpg an gif files to your ftptest.sh script and it went all through down to Clouds-dusky.jpg when it stopped.

meteo.htm is now visible on the web (without the wind dial though)
Bravo.
as far as I am concerned I do not have a clue how you made the trick with this symbolic link...!
Back to top
View user's profile Send private message Visit poster's website
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Sat Feb 18, 2006 7:01 am    Post subject: Reply with quote

Jon,
Sorry I got a bit mixed up with the board lately and my replies were not sent properly.

I want to thank you for all the time you spent tracking down this FTP problem. Well done.

To try to solve the ISP server problem I posted on their board. May be I'll get an answer.
On my side do you think I should change something in my modem/firewall.
At the moment the outgoing rule is.
Outgoing services: active, any service, allow everything, any Lan user, any web server.
This should not restrict in anyway FTP service. Isn't it?

On www.vol-libre-cadurcien.net/MeteoFontanes/img/meteo.htm time in the head part is not updated and old changes to template are not taken into account. Any idea why?
Back to top
View user's profile Send private message Visit poster's website
Rig



Joined: 30 Aug 2006
Posts: 12

PostPosted: Tue Sep 12, 2006 1:56 pm    Post subject: Reply with quote

Hi! I have the exactly the same problem with Ftp! Crying or Very sad

The "ftptest.sh" script is running well, except index.html and xml files. Same thing as Jean-Paul. But, I think I could fix it.

Therefore, someone could tell me how that I should incorporate this script with the Ftp daemon (wviewftpd). Should I change the "/usr/bin/ftp" with the ftptest script?

The daemon don't use the "-u" option! And I need it!
I have reached a deadlock!

So, I'm looking for a solution to use the "Wviewftpdeamon" with Wview!

Thanks for your help!!
Back to top
View user's profile Send private message
Rig



Joined: 30 Aug 2006
Posts: 12

PostPosted: Tue Sep 12, 2006 9:44 pm    Post subject: Reply with quote

The problem with *.html and *.xml is because there is only one file html and xml. I added two fake files (xyz.html and xyz.xml) and the script is working well for all files. (Syntax problem)!

Same thing if you want to send your Current file! I added another fake file to fix the problem. (Currentfake.htm)

And I chaged the wviewftp.conf
# current conditions every minute
img/Curren*.htm

I don't really like to send some fake files... but it's easier then to change the code!....

About the "u" option... forget it! The option is already there!

And finally, you need already a "img" directory at your "path".

Rig!

Almost fixed... Thanks! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> FTP All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group