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

189
Visualizações
GCS Transfer Service Object MD5 and CRC32C hash mismatch

I am using GCS Transfer Service to move objects from S3 into GCS, I then have a ruby script on GAE that downloads the new GCS object and operates on it. The script fails to download because the MD5 and CRC32C hash verification fails. The verification (part of the google-cloud-storage gem) works by comparing the object.md5 and object.crc32c hashes to the file's calculated hashes, but these are mismatched.

I downloaded the file from AWS and calculated the md5 and crc32c hashes and I got the same value that the file attributes on GCS has: object.md5 and object.crc32c, however when I download directly from GCS and calculate the hashes, I get different md5 and crc32c hashes.

To replicate this:

  1. Calculate the hash of an AWS object
  2. Transfer the object to GCS via the transfer service
  3. Pull the attributed GCS object hashes using:
    gsutil ls -L gs://bucket/path/to/file
  4. Calculate the hashes of the GCS object

The error that I originally got was:

/usr/local/bundle/gems/google-cloud-storage-0.23.2/lib/google/cloud/storage/file/verifier.rb:34:in `verify_md5!': The downloaded file failed MD5 verification. (Google::Cloud::Storage::FileVerificationError)
    from /usr/local/bundle/gems/google-cloud-storage-0.23.2/lib/google/cloud/storage/file.rb:809:in `verify_file!'
    from /usr/local/bundle/gems/google-cloud-storage-0.23.2/lib/google/cloud/storage/file.rb:407:in `download'
    from sample.rb:9:in `'
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