Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

344
Visualizações
AWS S3 CLI not working after Ubuntu "do-release-upgrade"

The happy little nag about the "do-release-upgrade" finally got me the other day. Updating the system went as expected and I worked a couple of hours fixing the obvious errors that popped up. The only thing I have no idea and can't find any documentation on is the S3 command that I set up to copy backup files from my EC2 instance over to the S3 bucket. This is the command that I have in the cron.daily script:

mysqldump -u admin -p'myPasswordHere' myDbNameHere > "$_file"
aws s3 cp "$_file" s3://my-backup-bucket/mysql/ 

This worked before the upgrade (from LTS 14.04 to LTS 16.04). Now I have the error:

upload failed: tmp/MyDbNameHere_03_16_2017.sql.gz to 
s3://my-backup-bucket/mysql/MyDbNameHere_03_16_2017.sql.gz 
An error occurred (InvalidRequest) when calling the CreateMultipartUpload operation:
Missing required header for this request: x-amz-content-sha256

I don't know how I am "missing required header" - but that seems to be the problem.

The same but different error occurs from the command line:

root@sys:~# aws s3 cp "dead.letter" s3://my-backup-bucket/
upload failed: ./dead.letter to s3://my-backup-bucket/dead.letter 
An error occurred (InvalidRequest) when calling the PutObject operation:
Missing required header for this request: x-amz-content-sha256

*edit - I did upgrade awscli to the newest version as suggested. Did not fix issue.

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda