FTP problem - uploads empty images!

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Post Reply
brite77
Posts: 3
Joined: Fri Feb 16, 2007 11:40 pm

FTP problem - uploads empty images!

Post by brite77 »

Hello

there is something wrong with uploading captured photos to ftp server (with the latest version as well as the beta one) - the uploaded image is only 1 byte, and is empty.

Can it be something with passive transfer?

I really like yawcam, it's easy and intuitive, but until I find out how to fix this problem I'll have to look for other webcam software.
malun
Site Admin
Posts: 1589
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

Where do you have your ftp account?
Do you get any error messages in Yawcam's console?

The easiest way to find the problem would be if I could create an own ftp account at the same place to be able to debug. Or if you trust me I could borrow your account for a day or two...

/malun
brite77
Posts: 3
Joined: Fri Feb 16, 2007 11:40 pm

Post by brite77 »

It's my website's server.
Yawcam uploads "out.jpg.tmp", which is 1 byte big. It then changes as it should to 'out.jpg" and is of course still 1 byte, obviously containing no image.

The console is silent for a few minutes after "Ftp-output started" but later I get "Ftp error: Connection reset by peer: socket write error", however ity keeps uploading the 1-byte-big out.jpg.tmp

Any ideas?
malun
Site Admin
Posts: 1589
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

You can help with the debug if you do this:

Use the latest beta version.
Download this file:
http://www.tmp.yawcam.com/debug_start.bat
and save it in your Yawcam directory. (e.g. C:\Program Files\Yawcam)

Now start Yawcam by double clicking this new bat file.
Start the ftp output and run until you get the Ftp error in the console.
Quit Yawcam.

You will now have a log file named debug_log.txt in your Yawcam directory.

Please email this file to me: malun [at] yawcam.com

/malun
brite77
Posts: 3
Joined: Fri Feb 16, 2007 11:40 pm

Post by brite77 »

I got back to yawcam after a long pause and now, with the 0.3.0 version I still get the same error.

excerpt from the log:
resp: 150 Opening BINARY mode data connection for out.jpg
sendOfflineImage: true
ftpLogin USERresp: 331 Password required for ****.
ftpLogin PASSresp: 230 User **** logged in.
setDir resp: 250 CWD command successful
Seding PASV
Linlyn ftpGetDataSock() reply = 227 Entering Passive Mode (205,196,211,213,134,253).
Skall spara offlinebild till: out.jpg
resp: 150 Opening BINARY mode data connection for out.jpg
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.DataOutputStream.writeBytes(Unknown Source)
at yawcam.FtpOutputThread.run(FtpOutputThread.java:589)
Position 3
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.DataOutputStream.writeBytes(Unknown Source)
at yawcam.FtpOutputThread.run(FtpOutputThread.java:589)
CU: 1
wwazman
Posts: 6
Joined: Sun Jul 06, 2008 11:17 pm

Post by wwazman »

I'm still getting the same message on one of my computers.. on this particular (remote) computer, I just erased the hard drive, reinstalled Win Xp Pro, all the java updates, SP2, etc and when it goes to upload I get two files that I see through Filezilla and watching it : " .ftpquota" and then a " .pureftpd-upload.48713467.15.268a.74b781ee" (1 byte size) and it fails to upload. It gives me the "FTP Error: Connection reset by peer: socket write error"

on my HOME computer, it uploads successfully without any troubles, using the same settings (as far as uploads) username and directory.

If there's a easy setting I can check or change, I would be very grateful!
Helge
Posts: 54
Joined: Mon Oct 17, 2005 4:34 pm

Post by Helge »

wwazman wrote:....reinstalled Win Xp Pro, all the java updates, SP2, etc and when it goes to upload ........ (1 byte size) and it fails to upload. It gives me the "FTP Error: Connection reset by peer: socket write error"

If there's a easy setting I can check or change, I would be very grateful!
Similar problem here but my computers network connection also fails for all ather programs after Yawcam have tried FTP uploading images. Unfortunately I have no idea why this happens and would very much like to know.
jgauvin
Posts: 1
Joined: Sat Oct 10, 2009 10:21 pm

Post by jgauvin »

Helge wrote:
wwazman wrote:....reinstalled Win Xp Pro, all the java updates, SP2, etc and when it goes to upload ........ (1 byte size) and it fails to upload. It gives me the "FTP Error: Connection reset by peer: socket write error"

If there's a easy setting I can check or change, I would be very grateful!
Similar problem here but my computers network connection also fails for all ather programs after Yawcam have tried FTP uploading images. Unfortunately I have no idea why this happens and would very much like to know.
Same here. Ran for about four hours the very first time I used it, then it took down the computer's network connection; had to reboot. It has now been running for a day and a half and so far so good, but it has logged a few ftp errors. FWIW -- I'm uploading an image once every minute. Version 0.3.0 built: 2007-04-06

[06:56] Yawcam started
[06:56] Settings loaded
[06:56] Language: English
[06:56] Ftp-output started
[15:41] Ftp error: Software caused connection abort: socket write error
[16:08] Ftp error: Connection reset
[16:12] Ftp error: Connection reset by peer: socket write error
[16:20] Ftp error: Software caused connection abort: socket write error
[19:00] Ftp-output stopped
[06:00] Ftp-output started
[14:02] Ftp error: Connection reset
thewade
Posts: 2
Joined: Sat Dec 19, 2009 6:28 pm

Post by thewade »

I am also getting 1 byte files with FTP, and I don't see any errors in the console.

I am running 0.3.0 on Windows 7 x64.

Edit: Not sure what changed but now it is giving an error "Ftp error: Connection reset by peer: socket write error". It is not uploading new images anymore, it is just updating a .tmp file.
Post Reply