aws-samples / aws-samples/aws-codecommit-serverless-backup

Codebuild fails with tar command

Offen
#5 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
48
Forks
62
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit den Shell-Befehlen rund um den im Issue gezeigten Aufruf von git clone und tar und überprüfe dabei das Arbeitsverzeichnis und den Namen des geklonten Repositorys. Reproduziere den CodeBuild-Backup-Ablauf und bestätige, dass der Archivierungsbefehl das Repository finden kann, bevor der S3-Upload fortgesetzt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, shell
Bereich
cloud, devops
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.