Support Forums
Strange FTP behavior

Hi All,

I am still battling away on the project that I mentioned in a previous post, but as I have progressed slightly I thought it would be better in a new thread. My application is using a DT80 (and now also a DT85) to log data and then upload to a web server via FTP.

I am struggling to make the FTP part work. At the moment I have a DT80 connected to the internet via a Belkin router, attempting to FTP DBD files every few minutes. What I have observed is that I can FTP to a server on the same network with no problems at all - perfect.

However, when I try to send files to a remote server over the internet, it doesn't go according to plan. The correct file structure is created on the remote server, but no data files are transferred. I set P56=63 so that I can keep an eye on what's going on... For the successful transfers onto a computer on the same network, I see this:

?? >> USER username 
?? >> PASS password 
?? >> TYPE I 
?? >> CWD JOBS 
?? >> CWD FTPTEST2 
?? >> CWD A 
?? >> PASV 250 
?? >> STOR 2007-11-25T01-58-20.DBD 
?? >> QUIT

But when I try to go through the router to a server on the internet I see this:

?? >> USER username 
?? >> PASS password 
?? >> TYPE I 
?? >> CWD JOBS 
?? >> CWD FTPTEST2 
?? >> CWD A 
?? >> PASV 250 
?? >> QUIT

Notice that the all-important line ?? >> STOR 2007-11-25T01-58-20.DBD is missing. The connection is "QUIT"ed before a data file is transferred, and no attempt seems to be made to transfer the file, although the directory structure is made successfully.

Any ideas? Is this likely to be a dataTaker problem or a server problem? I can FTP to and from the same server from a PC on the same network as the DT80 with no trouble at all, so I don't think it is a router or server issue but I am not an expert in these matters!

I am currently testing this on a DT80 running firmware version 6.18.

Thanks,
Robin

Hi All, I am still battling away on the project that I mentioned in a previous post, but as I have progressed slightly I thought it would be better in a new thread. My application is using a DT80 (and now also a DT85) to log data and then upload to a web server via FTP. I am struggling to make the FTP part work. At the moment I have a DT80 connected to the internet via a Belkin router, attempting to FTP DBD files every few minutes. What I have observed is that I can FTP to a server on the same network with no problems at all - perfect. However, when I try to send files to a remote server over the internet, it doesn't go according to plan. The correct file structure is created on the remote server, but no data files are transferred. I set P56=63 so that I can keep an eye on what's going on... For the successful transfers onto a computer on the same network, I see this: ```` ?? >> USER username ?? >> PASS password ?? >> TYPE I ?? >> CWD JOBS ?? >> CWD FTPTEST2 ?? >> CWD A ?? >> PASV 250 ?? >> STOR 2007-11-25T01-58-20.DBD ?? >> QUIT ```` But when I try to go through the router to a server on the internet I see this: ```` ?? >> USER username ?? >> PASS password ?? >> TYPE I ?? >> CWD JOBS ?? >> CWD FTPTEST2 ?? >> CWD A ?? >> PASV 250 ?? >> QUIT ```` Notice that the all-important line **?? >> STOR 2007-11-25T01-58-20.DBD** is missing. The connection is "QUIT"ed before a data file is transferred, and no attempt seems to be made to transfer the file, although the directory structure is made successfully. Any ideas? Is this likely to be a dataTaker problem or a server problem? I can FTP to and from the same server from a PC on the same network as the DT80 with no trouble at all, so I don't think it is a router or server issue but I am not an expert in these matters! I am currently testing this on a DT80 running firmware version 6.18. Thanks, Robin

Good morning Robin,

The fact that the FTP works on a local network and not an external network would indicate it is a network issue. It might be something like a fire wall setting or gate way number.

Do you have a gate way number set in the DT80? It is required to talk to external network.

Cheers,
Roger

Good morning Robin, The fact that the FTP works on a local network and not an external network would indicate it is a network issue. It might be something like a fire wall setting or gate way number. Do you have a gate way number set in the DT80? It is required to talk to external network. Cheers, Roger

Not so sure about that Roger,

Robin says:

"The correct file structure is created on the remote server, but no data files are transferred"

So at some point the outside world can been seen, maybe something to do with the server and passive/active modes etc?

Not so sure about that Roger, Robin says: > "The correct file structure is created on the remote server, but no data files are transferred" So at some point the outside world can been seen, maybe something to do with the server and passive/active modes etc?

Roger, SuperMono,

Thanks to both for your replies. I am inclined to agree with SuperMono that it is unlikely to be a gateway or firewall issue, since the dataTaker is communicating with the server to some degree. The weird thing is that the file structure is there, but no files are being transferred across.

I have tried sending files from my PC with the FTP client set to both active and passive modes, both of which work fine. Perhaps I need to access a different FTP server and see how we go from there.

At the moment, I have the DT FTPing files to a PC on the same network, and the PC then sends them to the server...not a particularly elegant solution!

Cheers,
Robin

Roger, SuperMono, Thanks to both for your replies. I am inclined to agree with SuperMono that it is unlikely to be a gateway or firewall issue, since the dataTaker is communicating with the server to some degree. The weird thing is that the file structure is there, but no files are being transferred across. I have tried sending files from my PC with the FTP client set to both active and passive modes, both of which work fine. Perhaps I need to access a different FTP server and see how we go from there. At the moment, I have the DT FTPing files to a PC on the same network, and the PC then sends them to the server...not a particularly elegant solution! Cheers, Robin

Hi all,

FYI Robin there is a new firmware upgrade 6.22. If you don't need the old firmware version retained for any reason, then maybe giving that a go might fix it.

  • FIX: File upload to logger FTP server was sometimes failing with some fast FTP clients (#1202)

Let me know how it goes as I am to use 6.18 for FTPing files and am sure to have problems!

Roger

Hi all, FYI Robin there is a new firmware upgrade 6.22. If you don't need the old firmware version retained for any reason, then maybe giving that a go might fix it. - FIX: File upload to logger FTP server was sometimes failing with some fast FTP clients (#1202) Let me know how it goes as I am to use 6.18 for FTPing files and am sure to have problems! Roger

I do not think that firmware upgrade can solve the problem. I have met exactly the same problem with DT80 series 2 (firmware v. 7.02).

Has anyone overcome the problem?

I do not think that firmware upgrade can solve the problem. I have met exactly the same problem with DT80 series 2 (firmware v. 7.02). Has anyone overcome the problem?

This error appears to still exist in Firmware v. 7.04. I have tried using both external FTP servers and internal FTP servers, which produce the same general error message.

My guess is that it is not related to the network, but rather the implementation of the FTP commands by the DT80. At this point, there seem to be quite a few people having issues with this feature of the data logger, so it might suggest that there are unresolved issues with the STOR command. Below are two more examples that illustrate the error.

I am curious to know which FTP servers seem to work with the DT80. Would someone mind sharing which program they are using? Or are you utilizing a workaround, like using the internal FTP server, to get your data off the logger?

?? >> USER meter
?? << 331 Password required for meter.
?? >> PASS password
?? << 230 User meter logged in.
?? >> TYPE A
?? << 200 Type set to A.
?? >> PASV
?? << 227 Entering Passive Mode (192,168,0,3,10,26).
?? >> STOR 2008-05-16T18-57-35.txt
?? << 501 Permission Denied
?? >> QUIT
?? << 221 Goodbye!

?? >> USER circlet
?? << 331 Password required for circlet.
?? >> PASS xxxxxx
?? << 230 User circlet logged in.
?? >> TYPE A
?? << 200 Type set to A
?? >> PASV
?? << 227 Entering Passive Mode (xxx,xxx,xxx,xxx,201,26).
?? >> STOR 2008-05-16T19-02-06.txt
?? << 550 2008-05-16T19-02-06.txt: Permission denied
?? >> QUIT
?? << 221 Goodbye.
This error appears to still exist in Firmware v. 7.04. I have tried using both external FTP servers and internal FTP servers, which produce the same general error message. My guess is that it is not related to the network, but rather the implementation of the FTP commands by the DT80. At this point, there seem to be quite a few people having issues with this feature of the data logger, so it might suggest that there are unresolved issues with the STOR command. Below are two more examples that illustrate the error. I am curious to know which FTP servers seem to work with the DT80. Would someone mind sharing which program they are using? Or are you utilizing a workaround, like using the internal FTP server, to get your data off the logger? ```` ?? &gt;&gt; USER meter ?? &lt;&lt; 331 Password required for meter. ?? &gt;&gt; PASS password ?? &lt;&lt; 230 User meter logged in. ?? &gt;&gt; TYPE A ?? &lt;&lt; 200 Type set to A. ?? &gt;&gt; PASV ?? &lt;&lt; 227 Entering Passive Mode (192,168,0,3,10,26). ?? &gt;&gt; STOR 2008-05-16T18-57-35.txt ?? &lt;&lt; 501 Permission Denied ?? &gt;&gt; QUIT ?? &lt;&lt; 221 Goodbye! ?? &gt;&gt; USER circlet ?? &lt;&lt; 331 Password required for circlet. ?? &gt;&gt; PASS xxxxxx ?? &lt;&lt; 230 User circlet logged in. ?? &gt;&gt; TYPE A ?? &lt;&lt; 200 Type set to A ?? &gt;&gt; PASV ?? &lt;&lt; 227 Entering Passive Mode (xxx,xxx,xxx,xxx,201,26). ?? &gt;&gt; STOR 2008-05-16T19-02-06.txt ?? &lt;&lt; 550 2008-05-16T19-02-06.txt: Permission denied ?? &gt;&gt; QUIT ?? &lt;&lt; 221 Goodbye. ````

Hi all

Steven,

It would appear that the "meter" and "circlet" user names do not have write permission on your ftp server, as the server is returning a
"501 Permission Denied" response. Have you tried manually copying files from your PC to this server using these accounts from a PC FTP client, e.g: Internet Explorer?

Robin,

I'm a little puzzled as to why your P56=63 diagnostic output only shows one side of the conversation; it should show both commands and responses, as in Steven's example. It is likely that in your case the server is returning an error which is causing the transfer to terminate.
Note that in DT80 firmware 7.02+ any FTP errors are also saved to the event log, so you could try checking there using the UEVTLOG command.

Jeremy

Hi all Steven, It would appear that the &quot;meter&quot; and &quot;circlet&quot; user names do not have write permission on your ftp server, as the server is returning a &quot;501 Permission Denied&quot; response. Have you tried manually copying files from your PC to this server using these accounts from a PC FTP client, e.g: Internet Explorer? Robin, I&#039;m a little puzzled as to why your P56=63 diagnostic output only shows one side of the conversation; it should show both commands and responses, as in Steven&#039;s example. It is likely that in your case the server is returning an error which is causing the transfer to terminate. Note that in DT80 firmware 7.02+ any FTP errors are also saved to the event log, so you could try checking there using the UEVTLOG command. Jeremy
44
7
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft