[RESOLVED] 0 byte image.jpg FTP uploads

johndball

n3wb
Joined
Jan 9, 2020
Messages
25
Reaction score
9
Location
Virginia, USA
Trying to hunt down an issue that cropped up today.

BI v 5.4.9.18
Server- Ubuntu 18.04 LTS in Azure
FTP - VSFTP

Began seeing these in the logs and the image is not uploading. BI camera has a POST option to FTP server enabled. Test uploads work without issue, but image uploads result in 0 bytes. Note I stripped the last two octets of the server IP.


Sun Aug 22 13:20:31 2021 [pid 5384] [camera01p] OK LOGIN: Client "50.211.[redacted]"
Sun Aug 22 13:21:02 2021 [pid 5404] CONNECT: Client "50.211.[redacted]"
Sun Aug 22 13:21:02 2021 [pid 5403] [camera01p] OK LOGIN: Client "50.211.[redacted]"
Sun Aug 22 13:21:10 2021 [pid 5442] CONNECT: Client "50.211.[redacted]"
Sun Aug 22 13:21:10 2021 [pid 5439] [camera01p] OK LOGIN: Client "50.211.[redacted]"
Sun Aug 22 13:21:11 2021 [pid 5453] [camera01p] OK UPLOAD: Client "50.211.[redacted]", "/uploads/ftptest.txt", 20 bytes, 0.03Kbyte/sec
Sun Aug 22 13:21:34 2021 [pid 5474] CONNECT: Client "50.211.[redacted]"
Sun Aug 22 13:21:34 2021 [pid 5473] [camera01p] OK LOGIN: Client "50.211.[redacted]"
Sun Aug 22 13:21:35 2021 [pid 5475] [camera01p] FAIL UPLOAD: Client "50.211.[redacted]", "/image.jpg", 0.00Kbyte/sec
 
Last edited:

johndball

n3wb
Joined
Jan 9, 2020
Messages
25
Reaction score
9
Location
Virginia, USA
Update:

I can write an image using an FTP client on the Windows server running BlueIris (WinSCP in FTP mode).


Sun Aug 22 14:12:32 2021 [pid 7925] [camera01p] FAIL UPLOAD: Client "50.211.[redacted]", "/image.jpg", 0.00Kbyte/sec
Sun Aug 22 14:12:59 2021 [pid 7921] [camera01p] OK UPLOAD: Client "50.211.[redacted], "/uploads/image.jpg", 166803 bytes, 246.94Kbyte/sec
Sun Aug 22 14:13:04 2021 [pid 7941] CONNECT: Client "50.211.[redacted]"
Sun Aug 22 14:13:04 2021 [pid 7940] [camera01p] OK LOGIN: Client "50.211.[redacted]"
Sun Aug 22 14:13:04 2021 [pid 7942] [camera01p] FAIL UPLOAD: Client "50.211.[redacted]", "/image.jpg", 0.00Kbyte/sec

I think I see the issue. The start directory is "/" for my Azure FTP server and it is "/" for the second camera for WUnderground. if I change the start directory to "/uploads/" for the Azure FTP server, for some reason it "bleeds" over and changes the WUnderground server too. Still testing.
 

johndball

n3wb
Joined
Jan 9, 2020
Messages
25
Reaction score
9
Location
Virginia, USA
Last update:

For some reason, the folder and base folder options got jacked up when upgrading to 5.4.9.18. I rolled back to the previous version and the issue persisted where I would change the "folder" under Post to an FTP server and it would change for all cameras. I upgraded back to 5.4.9.18 and the issue disappeared. Not sure if something errored during the upgrade or what, but I can change the "folder" under Post to an FTP server and the images are uploading both to Azure and WUnderground now.
 

Attachments

johndball

n3wb
Joined
Jan 9, 2020
Messages
25
Reaction score
9
Location
Virginia, USA
Yeah, I don't rely on it as much as I rely on my own self-hosted FTP weather image web location. In other words, if WU stops working, then I don't loose sleep. WU is "best effort" since their buyout/merger/acquisition.

Not trying to plug my own site here, but if you visit "Bytes of helpful information" and go to Weather at the top (or on the menu) then down to Scientific/Other Links, there are many other areas that I contribute to and others could do the same and with more benefit to the larger scientific community too! I do wish the old WU would come back because it was easy for the general public to access and understand.
 
Top