com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)

Pentaho BI Platform Tracking | Marc Batchelor | 4 years ago
  1. 0

    [PDI-8656] JobEntrySSH2GET - Exception in deleteOrMoveFiles doesn't get logged - Pentaho BI Platform Tracking

    pentaho.com | 1 year ago
    com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)
  2. 0

    [PDI-8661] Various Job Entry exceptions aren't getting the underlying exception logged - Pentaho BI Platform Tracking

    pentaho.com | 1 year ago
    com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)
  3. 0

    After briefly working on PDI-8656, I decided to grep for exceptions in the job entries and see if there were any more not logged exceptions. There were, and this case is to track them: * copyfiltes * job * movfiles *pgpdecryptfiles *pgpencryptfiles * Additional lines in ssh2get and ssh2put * trans * zipfile For all these, I changed the logError message to include the exception so that the error log gets the full stack trace. In the case of the ssh2get, the error now looks like this: 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : Can not delete remote file [/WRITE/1989656.log.250] 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:556) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at com.trilead.ssh2.SFTPv3Client.rm(SFTPv3Client.java:974) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.deleteOrMoveFiles(JobEntrySSH2GET.java:1089) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.copyFile(JobEntrySSH2GET.java:1276) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.GetFiles(JobEntrySSH2GET.java:1153) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.execute(JobEntrySSH2GET.java:905) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.execute(Job.java:589) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.execute(Job.java:728) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.execute(Job.java:443) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.run(Job.java:363) So we get the full error and the full exception now.

    Pentaho BI Platform Tracking | 4 years ago | Marc Batchelor
    com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After briefly working on PDI-8656, I decided to grep for exceptions in the job entries and see if there were any more not logged exceptions. There were, and this case is to track them: * copyfiltes * job * movfiles *pgpdecryptfiles *pgpencryptfiles * Additional lines in ssh2get and ssh2put * trans * zipfile For all these, I changed the logError message to include the exception so that the error log gets the full stack trace. In the case of the ssh2get, the error now looks like this: 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : Can not delete remote file [/WRITE/1989656.log.250] 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:556) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at com.trilead.ssh2.SFTPv3Client.rm(SFTPv3Client.java:974) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.deleteOrMoveFiles(JobEntrySSH2GET.java:1089) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.copyFile(JobEntrySSH2GET.java:1276) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.GetFiles(JobEntrySSH2GET.java:1153) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.execute(JobEntrySSH2GET.java:905) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.execute(Job.java:589) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.execute(Job.java:728) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.execute(Job.java:443) 2012/10/02 16:41:16 - SSH2 Get - ERROR (version 4.4.0, build 1 from 2012-10-02 16.34.15 by mbatchelor) : at org.pentaho.di.job.Job.run(Job.java:363) So we get the full error and the full exception now.

    Pentaho BI Platform Tracking | 4 years ago | Marc Batchelor
    com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)
  6. 0

    Jenkins users - Another try to start slaves (SSH)

    nabble.com | 4 months ago
    hudson.util.IOException2: Could not copy slave.jar to slave

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.trilead.ssh2.SFTPException

      Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)

      at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage()
    2. Trilead
      SFTPv3Client.rm
      1. com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:556)
      2. com.trilead.ssh2.SFTPv3Client.rm(SFTPv3Client.java:974)
      2 frames
    3. org.pentaho.di
      Job.run
      1. org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.deleteOrMoveFiles(JobEntrySSH2GET.java:1089)
      2. org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.copyFile(JobEntrySSH2GET.java:1276)
      3. org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.GetFiles(JobEntrySSH2GET.java:1153)
      4. org.pentaho.di.job.entries.ssh2get.JobEntrySSH2GET.execute(JobEntrySSH2GET.java:905)
      5. org.pentaho.di.job.Job.execute(Job.java:589)
      6. org.pentaho.di.job.Job.execute(Job.java:728)
      7. org.pentaho.di.job.Job.execute(Job.java:443)
      8. org.pentaho.di.job.Job.run(Job.java:363)
      8 frames