• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tSCPPut server folder doesn't exist but no error

#1 2012-07-11 17:59:39

Eikichi87
New member
Registered: 2012-07-11
Posts: 5

tSCPPut server folder doesn't exist but no error

Hi,

I have a problem with the component tSCPPut.

So my problem is :
I try to send a file by SCP connection but in the server the folder doesn't exist, so i think the execution pass in the link "onComponentError" but no, the execution follow the link "onComponentError". Moreover, i have a beautiful error :
java.io.IOException: Error during SCP transfer.
    at ch.ethz.ssh2.SCPClient.put(SCPClient.java:577)
    at ch.ethz.ssh2.SCPClient.put(SCPClient.java:535)
    at envoiscp.uploadscp_0_1.UploadSCP.tSCPPut_1Process(UploadSCP.java:2862)
    at envoiscp.uploadscp_0_1.UploadSCP.tSCPConnection_2Process(UploadSCP.java:1812)
    at envoiscp.uploadscp_0_1.UploadSCP.tFileCopy_1Process(UploadSCP.java:1717)
    at envoiscp.uploadscp_0_1.UploadSCP.tRunJob_1Process(UploadSCP.java:4247)
    at envoiscp.uploadscp_0_1.UploadSCP.tFileRowCount_1Process(UploadSCP.java:4033)
    at envoiscp.uploadscp_0_1.UploadSCP.tFileExist_1Process(UploadSCP.java:3821)
    at envoiscp.uploadscp_0_1.UploadSCP.tFileList_1Process(UploadSCP.java:5088)
    at envoiscp.uploadscp_0_1.UploadSCP.tSetGlobalVar_1Process(UploadSCP.java:6218)
    at envoiscp.uploadscp_0_1.UploadSCP.runJobInTOS(UploadSCP.java:7538)
    at envoiscp.uploadscp_0_1.UploadSCP.main(UploadSCP.java:7250)
Caused by: java.io.IOException: Remote scp terminated with error (scp: /production/Appli/M2OSIR2/data/PREPAR/tempo/: No such file or directory).
    at ch.ethz.ssh2.SCPClient.readResponse(SCPClient.java:61)
    at ch.ethz.ssh2.SCPClient.sendFiles(SCPClient.java:165)
    at ch.ethz.ssh2.SCPClient.put(SCPClient.java:573)
    ... 11 more

I have you an idea to correct this problem?

Thanks,
Ben

Offline

#2 2012-07-11 21:40:46

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tSCPPut server folder doesn't exist but no error

Hi Ben

What do you mean this?

Code:

so i think the execution pass in the link "onComponentError" but no, the execution follow the link "onComponentError"

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-07-12 09:16:32

Eikichi87
New member
Registered: 2012-07-11
Posts: 5

Re: tSCPPut server folder doesn't exist but no error

Hi,

Ths following image could explain my problem

[img]http://image.noelshack.com/fichiers/2012/28/1342077018-Sanstitre.png[/img]

When i have an error in tSCPPut component like (java.io.IOException: Remote scp terminated with error (scp: /production/Appli/M2OSIR2/data/PREPAR/tempo/: No such file or directory), i think the next instruction is "pb13Envo" but he go in tSCPRename.

I expect that i'm more precise.

Thanks,
Ben

Offline

#4 2012-07-12 09:36:35

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tSCPPut server folder doesn't exist but no error

Hi Ben

Which version of TOS do you use?
I test it under TOS 5.1.0. And it works fine with OnComponentOk and OnComponentError triggers.

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-07-12 09:41:36

Eikichi87
New member
Registered: 2012-07-11
Posts: 5

Re: tSCPPut server folder doesn't exist but no error

I use TOS 4.1.2.

Thanks Pedro.

Offline

#6 2012-07-12 09:43:20

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tSCPPut server folder doesn't exist but no error

Hi

Could you export this job and send me an email with it?
I will test it for you.

Regards,
Pedro


Only Paranoid Survive.

Offline

#7 2012-07-16 14:18:59

Eikichi87
New member
Registered: 2012-07-11
Posts: 5

Re: tSCPPut server folder doesn't exist but no error

Hello Pedro,

Have you receive my email?

Regards,
Ben

Offline

#8 2012-07-17 03:28:43

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tSCPPut server folder doesn't exist but no error

Hi Ben

I'm so sorry. I haven't received it.

Regards,
Pedro


Only Paranoid Survive.

Offline

#9 2012-07-17 08:59:01

Eikichi87
New member
Registered: 2012-07-11
Posts: 5

Re: tSCPPut server folder doesn't exist but no error

Hi,

It's okay i have found an another method to do it.
I use tSCPPut.STATUS to know if the component work good or not.

Thanks Pedro,
Ben

Offline

#10 2012-07-17 09:09:42

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: tSCPPut server folder doesn't exist but no error

Hi Ben

tSCPPut.STATUS is a workaround under TOS 4.1.2.
But I still think you'd better update TOS later if you are sure that the trigger "OnComponentError" doesn't work.

Regards,
Pedro


Only Paranoid Survive.

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » tSCPPut server folder doesn't exist but no error

Board footer

Powered by FluxBB