pipeline-aws-plugin icon indicating copy to clipboard operation
pipeline-aws-plugin copied to clipboard

s3Download Couldn't Create Parent Directories

Open emilyyujieli opened this issue 1 year ago • 0 comments

Hi

Description l tried to use s3Download download file from s3 object storage to a specific pvc path in kubernetes pod.

            s3Download(
                    pathStyleAccessEnabled: true,
                    payloadSigningEnabled: false,
                    file: '/demo/',
                    bucket: BUCKET_NAME,
                    path: 'test/',
                    force: false
            )

However it always come to an error - "java.lang.RuntimeException: Couldn't create parent directories for /demo/test/test.txt". l tried to check the permission in the pod and it's already root user. Meanwhile if l execute in this pod and create those folder manually, it also works.

Question Kindly ask if there any good idea how to solve this issue?

emilyyujieli avatar Nov 26 '24 10:11 emilyyujieli