Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>1.</strong> Sorry for this but just to ensure: have you ensured that FTP connection succeeds manually, i.e. not from FTP Request in jmeter script but via console/telnet connection or any FTP client utility?</p> <p><br> <strong>2.</strong> FTP Passive mode</p> <p><strong>Possible cause:</strong><br> Since your FTP Request fails during PASV command execution can suppose that the root cause is that your ftp server doesn't support passive mode while jmeter's FTP Request uses passive mode by default.</p> <p>To ensure this try to switch into Passive mode after connecting to your ftp from console, e.g.</p> <pre><code>telnet your.ftp.server.url 21 USER yourusername PASS yourpassword PASV </code></pre> <p>or</p> <pre><code>ftp -d your.ftp.server.url USER yourusername PASS yourpassword passive </code></pre> <p>or using any ftp client utility which have option to select mode (active/passive) for connection.</p> <p>If the same issue appears during this - well, the problem is that your ftp server doesn't support passive mode which is used by FTP Request.</p> <p>See e.g. <a href="http://www.onkarjoshi.com/blog/128/understand-ftp-passive-pasv-and-active-modes/" rel="nofollow">this</a> for explanation of differences in both the modes.</p> <p><br> <strong>Possible solution:</strong><br> As per <a href="http://svn.apache.org/repos/asf/jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java" rel="nofollow">jmeter sources</a>:</p> <pre><code>ftp.enterLocalPassiveMode(); </code></pre> <p>switch to passive mode is used by default and there is no possibility to set mode externally in <a href="http://jmeter.apache.org/usermanual/component_reference.html#FTP_Request" rel="nofollow">FTP Request configuration screen</a>.</p> <p>But you can implement ftp request yourself, avoiding usage of FTP Request.<br> You can use <a href="https://commons.apache.org/net/api-3.1/org/apache/commons/net/ftp/FTPClient.html" rel="nofollow">FTPClient</a> realization from <a href="https://commons.apache.org/net/" rel="nofollow">Apache Commons Net</a> and script ftp connection in <a href="http://jmeter.apache.org/usermanual/component_reference.html#BeanShell_Sampler" rel="nofollow">BeanShell Sampler</a>.</p> <p>Very simplified this may look like:</p> <pre class="lang-java prettyprint-override"><code>import org.apache.commons.net.ftp.*; FTPClient client = new FTPClient(); client.setDataTimeout(3600000); client.connect(ftpHost,ftpPort); client.login(userName, userName); client.setFileType(FTPClient.BINARY_FILE_TYPE); ... // FTPClient uses 'active mode' by default if (ftp_passive_mode) { client.enterLocalPassiveMode(); } else { client.enterLocalActiveMode(); } ... client.logout(); client.disconnect(); </code></pre> <p>Maybe also I'm wrong and the reason of your issue hides in another place.<br> Hope this will help you to diagnose and solve your problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload