Skip to content

s3Download Couldn't Create Parent Directories #334

@emilyyujieli

Description

@emilyyujieli

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions