Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir: can't create directory '/github/home/.aws': File exists #1

Closed
straumat opened this issue Sep 5, 2019 · 3 comments
Closed

mkdir: can't create directory '/github/home/.aws': File exists #1

straumat opened this issue Sep 5, 2019 · 3 comments

Comments

@straumat
Copy link

straumat commented Sep 5, 2019

I added your action to my CI with the command

      - name: Update website
        uses: jakejarvis/s3-sync-action@master
        env:
          SOURCE_DIR: './www/dist/www'
          AWS_REGION: ${{secrets.AWS_REGION}}
          AWS_S3_BUCKET: ${{secrets.AWS_WWW_S3_BUCKET_STAGING}}
          AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
          AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}

I get the error : mkdir: can't create directory '/github/home/.aws': File exists

For your information, i run a cloudformation just before :

      - name: Deploy to AWS via CloudFormation
        uses: mgenteluci/cloudformation-deploy-action@v1.3.0
        env:
          TEMPLATE: 'aws-configuration.yml'
          AWS_STACK_NAME: 'libraquery-staging'
          AWS_REGION: ${{secrets.AWS_REGION}}
          AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
          AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
          AWS_DEPLOY_BUCKET: ${{secrets.AWS_DEPLOY_BUCKET}}
          PARAMETER_OVERRIDES: ARN=${{secrets.AWS_ARN_STAGING}}

Ful error :

Run jakejarvis/s3-sync-action@master
/usr/bin/docker run --name b6eba6c17c9e653ad54f62b23bce69b1e7e531_b00afa --label b6eba6 --workdir /github/workspace --rm -e JAVA_HOME -e JAVA_HOME_8.0.222_x64 -e SOURCE_DIR -e AWS_REGION -e AWS_S3_BUCKET -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/libraquery/libraquery":"/github/workspace" b6eba6:c17c9e653ad54f62b23bce69b1e7e531
mkdir: can't create directory '/github/home/.aws': File exists
##[error]Docker run failed with exit code 1
@straumat
Copy link
Author

straumat commented Sep 5, 2019

To be more clear. If i put jakejarvis/s3-sync-action@master before my cloudformation, it works perfectly

@jakejarvis
Copy link
Owner

Nice catch, thanks for debugging it! I added a simple fix, but let me know if it still doesn't work and I'll do some additional checking for leftover configs from other actions.

@straumat
Copy link
Author

straumat commented Sep 5, 2019

Works perfectly ! thank you

@straumat straumat closed this as completed Sep 5, 2019
okamidash referenced this issue in oxide-one/s3-sync-action Mar 31, 2022
…pine

Bump python from 3.8-alpine to 3.10.3-alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants