I got it never mind! I hadn't implemented a few methods!
Also, error makes it pretty clear! I was not able to identify which ones initially! With regards, Gopi Kiran On Mon, Apr 27, 2020 at 7:59 PM GOPI KIRAN <[email protected]> wrote: > Hi, > > I am getting the below error. Has anyone of you faced the issue? > I have defined all the things in the proto file. Attaching the proto file > too for the reference. > > > 2020-04-27 19:14:42,072 [OkHttp http://localhost:8500/...] INFO > o.a.a.mft.agent.MFTAgent Received raw message: > {"transferId":"b69885d3-4385-4fce-8b85-6449de647921","sourceId":"10mb-file","sourceType":"LOCAL","sourceToken":"local-ssh-cred","sourceResourceBackend":"","sourceCredentialBackend":"","destinationId":"ftp-resource","destinationType":"FTP","destinationToken":"ftp-cred","destResourceBackend":"","destCredentialBackend":""} > [] > 2020-04-27 19:14:42,080 [OkHttp http://localhost:8500/...] INFO > o.a.a.mft.agent.MFTAgent Received request > b69885d3-4385-4fce-8b85-6449de647921 [] > 2020-04-27 19:14:42,810 [OkHttp http://localhost:8500/...] ERROR > o.a.a.mft.agent.MFTAgent Error in submitting transfer > b69885d3-4385-4fce-8b85-6449de647921 [] > io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method > org.apache.airavata.mft.resource.service.ResourceService/getFTPResource is > unimplemented > at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:240) > at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:221) > at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:140) > at > org.apache.airavata.mft.resource.service.ResourceServiceGrpc$ResourceServiceBlockingStub.getFTPResource(ResourceServiceGrpc.java:1456) > at org.apache.airavata.mft.transport.ftp.FTPSender.init(FTPSender.java:33) > at > org.apache.airavata.mft.agent.MFTAgent.lambda$acceptRequests$6(MFTAgent.java:125) > at java.base/java.util.Optional.ifPresent(Optional.java:183) > at > org.apache.airavata.mft.agent.MFTAgent.lambda$acceptRequests$7(MFTAgent.java:106) > at java.base/java.lang.Iterable.forEach(Iterable.java:75) > at > org.apache.airavata.mft.agent.MFTAgent.lambda$acceptRequests$8(MFTAgent.java:104) > at com.orbitz.consul.cache.ConsulCache$1.onComplete(ConsulCache.java:150) > at com.orbitz.consul.util.Http$1.onResponse(Http.java:79) > at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129) > at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203) > at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834) > 2020-04-27 19:14:42,817 [OkHttp http://localhost:8500/...] INFO > o.a.a.mft.agent.MFTAgent Deleting key > mft/agents/messages/agent0/b69885d3-4385-4fce-8b85-6449de647921 [] > > > > On Thu, Apr 23, 2020 at 7:46 PM GOPI KIRAN <[email protected]> wrote: > >> Yup, my bad. I got it! Thanks! >> >> With regards, >> Gopi Kiran >> >> >> On Thu, Apr 23, 2020 at 7:13 PM DImuthu Upeksha < >> [email protected]> wrote: >> >>> Hi Gopi, >>> >>> I guess you got confused over FTP and SFTP [1]. In FTP you can't use ssh >>> credential to authorize. I believe username and password pair is the only >>> available authentication mechanism for FTP. I might be wrong. Please >>> correct me if I do. >>> >>> [1] https://www.guru99.com/ftp-vs-sftp.html >>> >>> Thanks >>> Dimuthu >>> >>> On Thu, Apr 23, 2020 at 6:44 PM GOPI KIRAN <[email protected]> >>> wrote: >>> >>>> Shall I take the id_rsa key for logging in to the server, as it is done >>>> in SCP protocol? This means that the FTP server should be aware of the >>>> calling system public key! >>>> >>>> With regards, >>>> Gopi Kiran >>>> >>>> >>>> On Thu, Apr 23, 2020 at 6:31 PM GOPI KIRAN <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> How do I take the credentials for FTP server? I shouldn't expose the >>>>> password. ApacheCommons FTP client has only a login method (username & >>>>> password). Any suggestions? >>>>> >>>>> With regards, >>>>> Gopi Kiran >>>>> >>>>> >>>>> On Thu, Apr 23, 2020 at 2:56 PM DImuthu Upeksha < >>>>> [email protected]> wrote: >>>>> >>>>>> If you are interested, mark it in >>>>>> https://docs.google.com/spreadsheets/d/1M7-Reda-pCi1l-TSSstI6Yi1pSbtINUqlBFcy5UrOW0/edit?usp=sharing >>>>>> >>>>>> Dimuthu >>>>>> >>>>>> On Thu, Apr 23, 2020 at 2:48 PM GOPI KIRAN <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Absolutely! >>>>>>> >>>>>>> With regards, >>>>>>> Gopi Kiran >>>>>>> >>>>>>> >>>>>>> On Thu, Apr 23, 2020 at 2:46 PM DImuthu Upeksha < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Hi Gopi, >>>>>>>> >>>>>>>> Thanks for the interest. Globus and TUS are little complicated for >>>>>>>> a new developer for MFT to try out as there are some complicated >>>>>>>> message >>>>>>>> paths in both transports. I believe you can start with FTP and go >>>>>>>> through >>>>>>>> the pull request process to understand basics of implementing a >>>>>>>> transport >>>>>>>> for MFT. Then let's see what we can do on other transports. Will that >>>>>>>> work >>>>>>>> for you? >>>>>>>> >>>>>>>> Thanks >>>>>>>> Dimuthu >>>>>>>> >>>>>>>> On Thu, Apr 23, 2020 at 2:25 PM GOPI KIRAN <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi Dimuthu, >>>>>>>>> >>>>>>>>> I was going over that spreadsheet. Can we go ahead and do our POC >>>>>>>>> on FTP/Globus/TUS. >>>>>>>>> It is also said that for SFTP SCP can be reused. >>>>>>>>> >>>>>>>>> If those components are still available we will be going ahead >>>>>>>>> with the POC. >>>>>>>>> Please confirm. >>>>>>>>> With regards, >>>>>>>>> Gopi Kiran >>>>>>>>> >>>>>>>>
