databacker / mysql-backup

image to enable automated backups of mysql databases in containers
648 stars 185 forks source link

[Bug] Entrypoint error: exec /entrypoint: exec format error #229

Closed GuillermoFarias closed 1 year ago

GuillermoFarias commented 1 year ago

introduced a bug inside entrypoint in this PR https://github.com/databacker/mysql-backup/pull/228

I get this error when executing:

exec /entrypoint: exec format error
apiVersion: batch/v1
kind: CronJob
metadata:
  name: backup
  namespace: app
spec:
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - env:
            - name: DB_DUMP_TARGET
              value: s3://mybucket
            - name: AWS_ACCESS_KEY_ID
              value: myawskeyid
            - name: AWS_SECRET_ACCESS_KEY
              value: myawssecretkey
            - name: AWS_DEFAULT_REGION
              value: myawsregion
            - name: DB_SERVER
              value: mydbserver
            - name: DB_PORT
              value: mydbport
            - name: DB_USER
              value: mydbuser
            - name: DB_PASS
              value: mydbpass
            - name: RUN_ONCE
              value: "true"
            image: databack/mysql-backup
            imagePullPolicy: Always
            name: mysql-backup-s3
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
          dnsPolicy: ClusterFirst
          restartPolicy: Never
          schedulerName: default-scheduler
  schedule: 0 */6 * * *
  suspend: false

With version v0.12.0 this does not happen and everything is ok

deitch commented 1 year ago

This is really strange. The latest tag is pointing at the wrong thing. The master should always point to head of that branch, and latest should point to most recent semver. Which is what GitHub Actions is doing. How do we end up with a latest tag that is amd64 only, as well?

deitch commented 1 year ago

Ah, Docker Hub has autobuilds on. How was that not detected before? I will stop them, delete that auto build, and repush latest.

deitch commented 1 year ago

Done. Give it a shot.

GuillermoFarias commented 1 year ago

Ready πŸš€ thks @deitch, i forget comment that my arch is arm πŸ˜… but now works fine πŸ‘ŒπŸ»