Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
VALIANTnbrown
Contributor
Contributor

tGoogleDriveCopy attempts to create invalid local directory

when attempting to run a job

with tGoogleDriveCopy

created on a machine other than the one the job was built java.io.IOException: unable to create directory: DIRECTORY_FROM_ORIGINAL_MACHINE. Is there any way to get around this error?

Exception in component tGoogleDriveCopy_1 (gdrivetest3)

java.io.IOException: unable to create directory: /Users/n8/.credentials/talend-googledrive/GoogleDrive Talend Job

at com.google.api.client.util.store.FileDataStoreFactory.<init>(FileDataStoreFactory.java:71)

at org.talend.components.google.drive.runtime.client.GoogleDriveCredentialWithInstalledApplication$Builder.<init>(GoogleDriveCredentialWithInstalledApplication.java:91)

at org.talend.components.google.drive.runtime.client.GoogleDriveCredentialWithInstalledApplication$BuilderWithIdAndSecret.<init>(GoogleDriveCredentialWithInstalledApplication.java:128)

at org.talend.components.google.drive.runtime.client.GoogleDriveCredentialWithInstalledApplication.builderWithIdAndSecret(GoogleDriveCredentialWithInstalledApplication.java:42)

at org.talend.components.google.drive.runtime.GoogleDriveRuntime.getCredential(GoogleDriveRuntime.java:164)

at org.talend.components.google.drive.runtime.GoogleDriveRuntime.getDriveService(GoogleDriveRuntime.java:178)

at org.talend.components.google.drive.runtime.GoogleDriveReader.start(GoogleDriveReader.java:57)

at org.talend.components.google.drive.runtime.GoogleDriveCopyReader.start(GoogleDriveCopyReader.java:49)

at org.talend.codegen.flowvariables.runtime.FlowVariablesReader.start(FlowVariablesReader.java:73)

at reports.gdrivetest3_0_1.gdrivetest3.tGoogleDriveCopy_1Process(gdrivetest3.java:751)

at reports.gdrivetest3_0_1.gdrivetest3.runJobInTOS(gdrivetest3.java:1990)

at reports.gdrivetest3_0_1.gdrivetest3.main(gdrivetest3.java:1819)

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

You are using a tGoogleDriveConnection component, therefore the DataStore Path will be on the Advanced Settings of that component.

View solution in original post

7 Replies
Anonymous
Not applicable

If you go to the Advanced Settings of this component you will see you can set this location. If you want to use it on different machines, you can use a Context Variable here and set the value of the Context Variable for each location you run it on.

VALIANTnbrown
Contributor
Contributor
Author

Thank you, I see that in the documentation, but unfortunately it does not seem available on my version of talend.

Anonymous
Not applicable

Can you take a screenshot of your component's Basic Settings and Advanced Settings? You should have this in v7

VALIANTnbrown
Contributor
Contributor
Author

0695b00000PKGsEAAX.png0695b00000PKGrGAAX.png0695b00000PKGr1AAH.png

Anonymous
Not applicable

You are using a tGoogleDriveConnection component, therefore the DataStore Path will be on the Advanced Settings of that component.

VALIANTnbrown
Contributor
Contributor
Author

Much appreciated!

Anonymous
Not applicable

No problem! Glad you got it sorted 🙂