org.ftp4che.exception.FtpFileNotFoundException: FtpWorkflowException --> Return Value: 550 Description: Failed to open file.

Pentaho BI Platform Tracking | Dzmitry Prakapenka | 3 years ago
  1. 0

    File -rw------- 1 root root 4281 Feb 14 20:40 .viminfo org.ftp4che.exception.FtpFileNotFoundException: FtpWorkflowException --> Return Value: 550 Description: Failed to open file. at org.ftp4che.reply.Reply.validate(Reply.java:78) at org.ftp4che.FTPConnection.initDataSocket(FTPConnection.java:1571) at org.ftp4che.FTPConnection.streamFile(FTPConnection.java:1071) at org.ftp4che.FTPConnection.access$000(FTPConnection.java:68) at org.ftp4che.FTPConnection$1DownStreamingThread.run(FTPConnection.java:1030) 2014/02/17 17:28:31 - Get a file with FTPS - ERROR (version Unknown, build 0 from 2014/02/17 17:27:05.032 by Dzmitry_Prakapenka) : Unexpected error : org.pentaho.di.core.exception.KettleException: 2014/02/17 17:28:31 - Get a file with FTPS - org.pentaho.di.core.exception.KettleException: 2014/02/17 17:28:31 - Get a file with FTPS - Error Writing Streams to file [.viminfo]! 2014/02/17 17:28:31 - Get a file with FTPS - Pipe not connected 2014/02/17 17:28:31 - Get a file with FTPS - 2014/02/17 17:28:31 - Get a file with FTPS - 2014/02/17 17:28:31 - Get a file with FTPS - Error Writing Streams to file [.viminfo]! 2014/02/17 17:28:31 - Get a file with FTPS - Pipe not connected 2014/02/17 17:28:31 - Get a file with FTPS - ERROR (version Unknown, build 0 from 2014/02/17 17:27:05.032 by Dzmitry_Prakapenka) : Error getting files from FTPS : 2014/02/17 17:28:31 - Get a file with FTPS - Success condition was broken! We have 1 error(s) There is actually a memory leak on open InputStream FTPConnection - public InputStream downloadStream(FTPFile fromFile) throws IOException, FtpWorkflowException, FtpIOException { (line 1014) PipedInputStream pis = new PipedInputStream(); created and not closed in catch/finally block this looks like internal lib bug. If exception - this should at least make attempt to close input stream on local disk. The second - looks like we are expected to check every file available explicitly - even it name is in file listing from server. And make attempt to try/catch this situation - there is still many files available on wildcard match. We may consider to choose another library instead of ftp4che-0.7.1.jar. vsftpd config file output: listen=YES listen_port=10666 seccomp_sandbox=NO anonymous_enable=NO local_enable=YES write_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=NO idle_session_timeout=666 secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/server.crt rsa_private_key_file=/etc/ssl/private/server.key log_ftp_protocol=YES ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES force_local_logins_ssl=YES ssl_tlsv1=YES ssl_sslv2=YES ssl_sslv3=YES force_dot_files=YES require_ssl_reuse=NO debug_ssl=YES

    Pentaho BI Platform Tracking | 3 years ago | Dzmitry Prakapenka
    org.ftp4che.exception.FtpFileNotFoundException: FtpWorkflowException --> Return Value: 550 Description: Failed to open file.
  2. 0

    File -rw------- 1 root root 4281 Feb 14 20:40 .viminfo {noformat} org.ftp4che.exception.FtpFileNotFoundException: FtpWorkflowException --> Return Value: 550 Description: Failed to open file. at org.ftp4che.reply.Reply.validate(Reply.java:78) at org.ftp4che.FTPConnection.initDataSocket(FTPConnection.java:1571) at org.ftp4che.FTPConnection.streamFile(FTPConnection.java:1071) at org.ftp4che.FTPConnection.access$000(FTPConnection.java:68) at org.ftp4che.FTPConnection$1DownStreamingThread.run(FTPConnection.java:1030) 2014/02/17 17:28:31 - Get a file with FTPS - ERROR (version Unknown, build 0 from 2014/02/17 17:27:05.032 by Dzmitry_Prakapenka) : Unexpected error : org.pentaho.di.core.exception.KettleException: 2014/02/17 17:28:31 - Get a file with FTPS - org.pentaho.di.core.exception.KettleException: 2014/02/17 17:28:31 - Get a file with FTPS - Error Writing Streams to file [.viminfo]! 2014/02/17 17:28:31 - Get a file with FTPS - Pipe not connected 2014/02/17 17:28:31 - Get a file with FTPS - 2014/02/17 17:28:31 - Get a file with FTPS - 2014/02/17 17:28:31 - Get a file with FTPS - Error Writing Streams to file [.viminfo]! 2014/02/17 17:28:31 - Get a file with FTPS - Pipe not connected 2014/02/17 17:28:31 - Get a file with FTPS - ERROR (version Unknown, build 0 from 2014/02/17 17:27:05.032 by Dzmitry_Prakapenka) : Error getting files from FTPS : 2014/02/17 17:28:31 - Get a file with FTPS - Success condition was broken! We have 1 error(s) {noformat} There is actually a memory leak on open InputStream FTPConnection - {noformat} public InputStream downloadStream(FTPFile fromFile) throws IOException, FtpWorkflowException, FtpIOException { (line 1014) PipedInputStream pis = new PipedInputStream(); {noformat} created and not closed in catch/finally block this looks like internal lib bug. If exception - this should at least make attempt to close input stream on local disk. The second - looks like we are expected to check every file available explicitly - even it name is in file listing from server. And make attempt to try/catch this situation - there is still many files available on wildcard match. We may consider to choose another library instead of ftp4che-0.7.1.jar. vsftpd config file output: {noformat} listen=YES listen_port=10666 seccomp_sandbox=NO anonymous_enable=NO local_enable=YES write_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=NO idle_session_timeout=666 secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/server.crt rsa_private_key_file=/etc/ssl/private/server.key log_ftp_protocol=YES ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES force_local_logins_ssl=YES ssl_tlsv1=YES ssl_sslv2=YES ssl_sslv3=YES force_dot_files=YES require_ssl_reuse=NO debug_ssl=YES {noformat}

    Pentaho BI Platform Tracking | 3 years ago | Dzmitry Prakapenka
    org.ftp4che.exception.FtpFileNotFoundException: FtpWorkflowException --> Return Value: 550 Description: Failed to open file.

    Root Cause Analysis

    1. org.ftp4che.exception.FtpFileNotFoundException

      FtpWorkflowException --> Return Value: 550 Description: Failed to open file.

      at org.ftp4che.reply.Reply.validate()
    2. org.ftp4che.reply
      Reply.validate
      1. org.ftp4che.reply.Reply.validate(Reply.java:78)
      1 frame
    3. org.ftp4che
      FTPConnection$1DownStreamingThread.run
      1. org.ftp4che.FTPConnection.initDataSocket(FTPConnection.java:1571)
      2. org.ftp4che.FTPConnection.streamFile(FTPConnection.java:1071)
      3. org.ftp4che.FTPConnection.access$000(FTPConnection.java:68)
      4. org.ftp4che.FTPConnection$1DownStreamingThread.run(FTPConnection.java:1030)
      4 frames