Skip to content

Codebuild fails with tar command #5

@sky-wang

Description

@sky-wang

After git clone, the tar command fails, anyone encounter this issue?

`
02:01:10
Cloning into bare repository 'ep-water-admin.git'...

02:01:30
remote: remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 0 remote: Counting objects: 2

02:02:10
Receiving objects: 0% (1/2332) Receiving objects: 1% (24/2332) Receiving objects: 2% (47/2332) Receiving objects: 3% (70/2332) Receiving objects: 4% (94/2332) Receiving objects: 5% (117/2332) Receiving objects: 6% (140/2332) Receiving objects: 7% (164/2332) Receiving objects: 8% (187/2332) Receiving objects: 9% (210/2332) Receiving objects: 10% (2

02:02:10
Receiving objects: 100% (2332/2332) Receiving objects: 100% (2332/2332), 636.58 KiB | 2.29 MiB/s, done.

02:02:10
Resolving deltas: 0% (0/1395) Resolving deltas: 1% (16/1395) Resolving deltas: 4% (63/1395) Resolving deltas: 6% (84/1395) Resolving deltas: 8% (123/1395) Resolving deltas: 10% (144/1395) Resolving deltas: 11% (163/1395) Resolving deltas: 12% (171/1395) Resolving deltas: 13% (182/1395) Resolving deltas: 15% (210/1395) Resolving deltas: 16% (228/1395)

02:02:10
++ date -u +%Y_%m_%d_%H_%M

02:02:10

  • dt=2018_08_28_02_02

    02:02:10
  • zipfile=ep-water-admin_backup_2018_08_28_02_02_UTC.tar.gz

    02:02:10
  • echo 'Compressing repository: ep-water-admin into file: ep-water-admin_backup_2018_08_28_02_02_UTC.tar.gz and uploading to S3 bucket: rc-codecommit-backup-repos-ap-northeast-1/ep-water-admin'

    02:02:10
    Compressing repository: ep-water-admin into file: ep-water-admin_backup_2018_08_28_02_02_UTC.tar.gz and uploading to S3 bucket: rc-codecommit-backup-repos-ap-northeast-1/ep-water-admin

    02:02:10
  • tar -zcvf ep-water-admin_backup_2018_08_28_02_02_UTC.tar.gz ep-water-admin/

    02:02:10
    tar: ep-water-admin: Cannot stat: No such file or directory

    02:02:10
    tar: Exiting with failure status due to previous errors`

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