If uploading cf-release 204+ to your Director causes an invalid gzip error most likely issue has to do with Director nginx limits.
To reconfigure director job to accept large releases set director.max_upload_size job property to '10000mb'.
For bosh.yml:
# other config skipped
properties:
director:
max_upload_size: "10000m" # <------------ add this config
After modifying bosh.yml (or whatever you called your manifest) run `bosh deploy` as you would normally to update configuration.
For microbosh.yml:
# other config skipped
apply_spec:
properties:
director:
max_upload_size: "10000m" # <------------ add this config
After modifying microbosh.yml you have to run `bosh micro deploy <your-stemcell> --update` as you would normally to update your MicroBOSH.
Dmitriy