11-02-2018 10:47 PM
I am trying to read & write file on FTP but getting connection time out error in groudplex every time but the same is working with cloudpex. Any setting I have to do in groudplex to resolve the issue. Please refer below for complete error message
[{“error”:“Unable to read from ftp://ftpupload.net/htdocs/calculator/vue.js",“stacktrace”:"java.net.ConnectException: Connection timed out: connect\r\n\tat java.net.DualStackPlainSocketImpl.connect0(Native Method)\r\n\tat java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)\r\n\tat java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)\r\n\tat java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)\r\n\tat java.net.AbstractPlainSocketImpl.connect(Unknown Source)\r\n\tat java.net.PlainSocketImpl.connect(Unknown Source)\r\n\tat java.net.SocksSocketImpl.connect(Unknown Source)\r\n\tat java.net.Socket.connect(Unknown Source)\r\n\tat org.apache.commons.net.SocketClient.connect(SocketClient.java:182)\r\n\tat org.apache.commons.net.SocketClient.connect(SocketClient.java:203)\r\n\tat com.snaplogic.snap.api.fs.ftp.FtpUrlConnection.connect(FtpUrlConnection.java:140)\r\n\tat com.snaplogic.snaps.binary.SimpleRead.process(SimpleRead.java:220)\r\n\tat com.snaplogic.snap.api.ExecutionUtil.process(ExecutionUtil.java:95)\r\n\tat com.snaplogic.snap.api.ExecutionUtil.execute(ExecutionUtil.java:68)\r\n\tat com.snaplogic.snap.api.SimpleSnap.execute(SimpleSnap.java:67)\r\n\tat com.snaplogic.snaps.binary.SimpleRead.executeForSuggest(SimpleRead.java:325)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.executeSnap(SnapRunnableImpl.java:716)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.executeForSuggest(SnapRunnableImpl.java:595)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.doRun(SnapRunnableImpl.java:774)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.access$000(SnapRunnableImpl.java:110)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl$1.run(SnapRunnableImpl.java:340)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl$1.run(SnapRunnableImpl.java:336)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat javax.security.auth.Subject.doAs(Unknown Source)\r\n\tat org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:335)\r\n\tat com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:110)\r\n\tat java.util.concurrent.FutureTask.run(Unknown Source)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)\r\n\tat java.util.concurrent.FutureTask.run(Unknown Source)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n\tat java.lang.Thread.run(Unknown Source)\r\n”,“reason”:“Connection timed out: connect”,“resolution”:“Check for URL syntax and file access permission”,“status_code”:“error”,“snap_details”:{“label”:“File Reader”,“instance_id”:“57261829-8477-442a-8576-351b1041ba0a”,“class_id”:“com-snaplogic-snaps-binary-simpleread”,“build_tag”:“snapsmrc490”,“views”:{“in”:{},“out”:{“output0”:{“count”:0}},“error”:{“error0”:{“count”:0}}},“status”:[{“msg”:“Opening: ftp://ftpupload.net/htdocs/calculator/vue.js”}]}}]
11-04-2018 02:18 PM
Is the resource actually accessible from your local node? Can you connect to it from outside of SnapLogic? It sounds like there is a network restriction of some kind.