Skip to content

Error during upload: the offset is lower than the number of bytes written #362

Description

@elopez-lodgify

TL;DR

An unexpected Error: the offset is lower than the number of bytes written. appears when we upload files.

Expected behavior

Uploading the files always works

Observed behavior

we have been observing this behavior where pipelines randomly fail since April with the mentioned error, if we re-run those pipelines they work perfectly

Action YAML

- name: 📤 Update commit build on Google Cloud
        uses: google-github-actions/upload-cloud-storage@v2
        with:
          path: ./build
          destination: ${{ env.GCP_BUCKET_NAME }}/${{ env.GCP_BUCKET_PATH }}/${{ github.sha }}
          parent: false

Log output

Error: google-github-actions/upload-cloud-storage failed with: the offset is lower than the number of bytes written. The server has 0 bytes and while 10 bytes has been uploaded - thus 10 bytes are missing. Stopping as this could result in data loss. Initiate a new upload to continue.

Additional information

It seems that this only happens when we are using the managed runners, with self-hosted we have not observed this problem, but as I said it happens randomly so it may or may not happen in the future

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions