ftp 910 error on file upload
ftp 910 error on file upload
G'day all,
I have a weather program (Lightsoft weather centre) that interfaces my weather station to my Mac. Part of the package has a ftp upload facility that will upload a weather observation page to a webserver.
When running, the ftp upload gets only part way through before the upstream connection fails. If I log in using a ftp client or firefox I get the same result. After some number of minutes the site becomes accessible via ftp again.
Here is the log of the ftp sequence:
16:01:01 29-Mar-09: FTP1: FTP upload starting.
16:01:01 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/background.jpg. (26 files left to upload.)
16:01:07 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/index.html. (25 files left to upload.)
16:01:09 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/menu.html. (24 files left to upload.)
16:01:11 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/stats.html. (23 files left to upload.)
16:01:11 29-Mar-09: FTP1: curl: (7) couldn't connect to host
16:01:11 29-Mar-09: FTP1: FTP ERROR (7) - Couldn't connect to host. Server down?
16:01:11 29-Mar-09: FTP1: FTP ERROR 910: Failed to start upload file://localhost/Users/dale/Library/Application%20Support/LWCWeb/LWCWeb/stats.html - retrying in 1 second.
16:01:12 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/stats.html. (23 files left to upload.)
16:01:12 29-Mar-09: FTP1: curl: (7) couldn't connect to host
16:01:12 29-Mar-09: FTP1: FTP ERROR (7) - Couldn't connect to host. Server down?
16:01:12 29-Mar-09: FTP1: FTP ERROR 910: Failed to start upload file://localhost/Users/dale/Library/Application%20Support/LWCWeb/LWCWeb/stats.html - retrying in 1 second.
Is my weather software exceeding a set number of ftp login or file upload limits?
I have a weather program (Lightsoft weather centre) that interfaces my weather station to my Mac. Part of the package has a ftp upload facility that will upload a weather observation page to a webserver.
When running, the ftp upload gets only part way through before the upstream connection fails. If I log in using a ftp client or firefox I get the same result. After some number of minutes the site becomes accessible via ftp again.
Here is the log of the ftp sequence:
16:01:01 29-Mar-09: FTP1: FTP upload starting.
16:01:01 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/background.jpg. (26 files left to upload.)
16:01:07 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/index.html. (25 files left to upload.)
16:01:09 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/menu.html. (24 files left to upload.)
16:01:11 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/stats.html. (23 files left to upload.)
16:01:11 29-Mar-09: FTP1: curl: (7) couldn't connect to host
16:01:11 29-Mar-09: FTP1: FTP ERROR (7) - Couldn't connect to host. Server down?
16:01:11 29-Mar-09: FTP1: FTP ERROR 910: Failed to start upload file://localhost/Users/dale/Library/Application%20Support/LWCWeb/LWCWeb/stats.html - retrying in 1 second.
16:01:12 29-Mar-09: FTP1: Uploading /Users/dale/Library/Application Support/LWCWeb/LWCWeb/stats.html. (23 files left to upload.)
16:01:12 29-Mar-09: FTP1: curl: (7) couldn't connect to host
16:01:12 29-Mar-09: FTP1: FTP ERROR (7) - Couldn't connect to host. Server down?
16:01:12 29-Mar-09: FTP1: FTP ERROR 910: Failed to start upload file://localhost/Users/dale/Library/Application%20Support/LWCWeb/LWCWeb/stats.html - retrying in 1 second.
Is my weather software exceeding a set number of ftp login or file upload limits?
Re: ftp 910 error on file upload
Yes. To help ward off pests, the server has connection limits. See what 2 or 3 connections per minute (max) does. Otherwise you will need SysAdmin's help.
910 is a Mac port error,
910 is a Mac port error,
Re: ftp 910 error on file upload
Thanks,
Tried using 3 connections, no luck.
Tried using 3 connections, no luck.
Re: ftp 910 error on file upload
3 connections or 3 connections per minute?Hangie wrote:Thanks,
Tried using 3 connections, no luck.
Andrew
Re: ftp 910 error on file upload
Woops,
That would be three connections, not per minute. The software loads up about thirty files or so every fifteen min.
It has a test function that uploads a single test.html file. This works no probs.
That would be three connections, not per minute. The software loads up about thirty files or so every fifteen min.
It has a test function that uploads a single test.html file. This works no probs.
Re: ftp 910 error on file upload
It is more then welcome to upload 30 files per 15 minutes no problem, so longer as it doe it with <= 3Hangie wrote:Woops,
That would be three connections, not per minute. The software loads up about thirty files or so every fifteen min.
It has a test function that uploads a single test.html file. This works no probs.
connections/min. If it does it with 30 connections, one after the other, every 15 minutes then you have
a problem.
Andrew
Re: ftp 910 error on file upload
Thanks Andrew.
I'll check with the coder re the ftp details. You would think that one connection and file transfer would make sense rather than one connection per file?
I'll check with the coder re the ftp details. You would think that one connection and file transfer would make sense rather than one connection per file?
Re: ftp 910 error on file upload
So much sense, in fact, that it's even supported by the protocol itself.Hangie wrote:Thanks Andrew.
I'll check with the coder re the ftp details. You would think that one connection and file transfer would make sense rather than one connection per file?

Andrew
Re: ftp 910 error on file upload
Well, funny enough, the software developer emailed me to say that LWC uses OS X curl to do the ftp work, one file, one connection.
I'll try another site and see what happens there!

I'll try another site and see what happens there!
Re: ftp 910 error on file upload
Yaay!Hangie wrote:Well, funny enough, the software developer emailed me to say that LWC uses OS X curl to do the ftp work, one file, one connection.![]()

Code: Select all
-T/--upload-file <file>
This transfers the specified local file to the remote URL. If
there is no file part in the specified URL, Curl will append the
local file name. NOTE that you must use a trailing / on the last
directory to really prove to Curl that there is no file name or
curl will think that your last directory name is the remote file
name to use. That will most likely cause the upload operation to
fail. If this is used on a http(s) server, the PUT command will
be used.
Use the file name "-" (a single dash) to use stdin instead of a
given file.
You can specify one -T for each URL on the command line. Each -T
+ URL pair specifies what to upload and to where. curl also sup‐
ports "globbing" of the -T argument, meaning that you can upload
multiple files to a single URL by using the same URL globbing
style supported in the URL, like this:
curl -T "{file1,file2}" http://www.uploadtothissite.com
or even
curl -T "img[1-1000].png" ftp://ftp.picturemania.com/upload/
Andrew