Skip to content

pingaccess-admin-0 - 90-upload-backup-s3.sh not gracefully erroring #1

@ashleyhull-versent

Description

@ashleyhull-versent

kubectl logs pingaccess-admin-0 -n ping-cloud-alpha
Hey, Simple issue... alpine APKINDEX was denied, but it doesn't gracefully retry and the container just boot loops/crashes over and over.

----- Starting hook: /opt/staging/hooks/90-upload-backup-s3.sh
Installing AWS CLI tools for S3 support
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.11/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.70f61090.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
python3 (missing):
required by: world[python3]
/opt/staging/hooks/90-upload-backup-s3.sh: line 152: pip3: not found
/opt/staging/hooks/90-upload-backup-s3.sh: line 153: pip3: not found
Uploading to location s3://bendoshlee
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 276k 100 276k 0 0 722k 0 --:--:-- --:--:-- --:--:-- 722k
sh: curl: Saved to filename 'pa-data-05-21-2020.05.49.47.zip'
200: out of range
Creating directory pingaccess under bucket bendoshlee
/opt/staging/hooks/90-upload-backup-s3.sh: line 33: aws: not found
/opt/staging/hooks/90-upload-backup-s3.sh: line 35: aws: not found
Upload return code: 127
Upload was unsuccessful - crash the container
post-start: data backup status: 1
post-start: admin post-start backup failed
PingAccess exiting
waiting for PingAccess to terminate due to error

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