aws-samples / aws-samples/sample-sagemaker-video-upscaler

cp: preserving times for '/asset-output/.': Operation not permitted

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When doing this in Windows using Docker Desktop, after issuing the "cdk deploy --all --require-approval never " command in bash we get the following error:

cp: preserving times for '/asset-output/.': Operation not permitted

To resolve the issue:
"sed -i 's/cp -au/cp -r/' project_constructs/lambda_function.py"

The cp -r will copy files without trying to preserve timestamps, which avoids the Windows/Docker permission conflict.

Contributor guide

Open the contributing guide

Research direction

Open project_constructs/lambda_function.py and locate the cp -au command used during asset copying. Reproduce or verify the issue with Docker Desktop on Windows by running the documented cdk deploy --all --require-approval never command. Done means deployment no longer reports the '/asset-output/.' timestamp-preservation permission error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, python
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.