AEM - Unable to connect to sftp server for importing Assets | Community
Skip to main content
Level 2
January 31, 2022
Solved

AEM - Unable to connect to sftp server for importing Assets

  • January 31, 2022
  • 2 replies
  • 2036 views

Hi,

 

In AEM 6.5.10 Managed Instance , I am trying to import Assets from a sftp server using Asset ingestor in ACS Manage Controlled Process.

 

sftp://<hostname>:<port> (Username and password entered correctly in appropriate fields)

 

It is throwing an exception in the logs as  "javax.jcr.RepositoryException: Cannot access remote system"

 

Can anyone please help if I am missing any configuration somewhere

 

Note: I am able to succesfully able to connect to teh sftp server from MacBook terminal.

 

 

 

 

 

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by viveksachdeva

Take a look at https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2412.. There is a likely solution that you can give a try..

2 replies

viveksachdeva
Community Advisor
Community Advisor
February 4, 2022

By any chance do you have any IP whitelisting on SFTP. When you connect from your laptop, it would be trying to access FTP from your IP, whereas in Managed Instance, it would be trying to access from IP of Managed AEM Author?

Level 2
February 4, 2022

Hi vivek,    Thank you. Our network team has actually whitelisted it couple of days. We are not getting thos error anymore but it lead to another exception

 

java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec

at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec not found by com.adobe.acs.acs-aem-commons-bundle [592]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

viveksachdeva
Community Advisor
viveksachdevaCommunity AdvisorAccepted solution
Community Advisor
February 4, 2022

Take a look at https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2412.. There is a likely solution that you can give a try..