# Cannot deploy functionbeat 7.12.1 to GCP Cloud function

**URL:** <https://discuss.elastic.co/t/cannot-deploy-functionbeat-7-12-1-to-gcp-cloud-function/272206>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [May 5, 2021, 2:28pm UTC](https://discuss.elastic.co/t/cannot-deploy-functionbeat-7-12-1-to-gcp-cloud-function/272206 "2021-05-05T14:28:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yerome](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yerome](https://discuss.elastic.co/u/yerome)\
**Post date:** [May 5, 2021, 2:28pm UTC](https://discuss.elastic.co/t/cannot-deploy-functionbeat-7-12-1-to-gcp-cloud-function/272206/1 "2021-05-05T14:28:23Z")

</div>

I try to deploy functionbeat 7.12.1 on a cloud function using filebeat 7.12.1-linux-x86\_64.

The deployment fail during installation :

```auto
2021-05-05T12:51:45.303Z DEBUG [gcp.executor] executor/executor.go:76 The executor is rolling back previous execution, '3' operations to rollback
[89](xxx/-/jobs/1238073946#L89)2021-05-05T12:51:45.303Z DEBUG [gcp] gcp/op_delete_file_bucket.go:34 Removing file 'functionbeat-record-provisioner' from bucket 'functionbeat-deploy-recette'
[90](xxx/-/jobs/1238073946#L90)2021-05-05T12:51:47.455Z DEBUG [gcp] gcp/op_delete_file_bucket.go:47 Successfully removed function 'functionbeat-record-provisioner' from bucket 'functionbeat-deploy-recette'
[91](xxx/-/jobs/1238073946#L91)2021-05-05T12:51:47.455Z DEBUG [gcp.executor] executor/executor.go:89 The rollback is successful
[92](xxx/-/jobs/1238073946#L92)2021-05-05T12:51:47.456Z DEBUG [gcp] gcp/cli_manager.go:61 Update complete for function 'functionbeat-record-provisioner'
[93](xxx/-/jobs/1238073946#L93)Function: functionbeat-record-provisioner, could not update, error: error while creating function (code: 3):
[94](xxx/-/jobs/1238073946#L94)Build failed: # pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon
[95(xxx/-/jobs/1238073946#L95)src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:112:3: unknown field 'VerifyConnection' in struct literal of type tls.Config
[96(xxx-/jobs/1238073946#L96)src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:123:4: unknown field 'VerifyConnection' in struct literal of type tls.Config
[97(xxx/-/jobs/1238073946#L97)src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:141:4: unknown field 'VerifyConnection' in struct literal of type tls.Config
[98(xxx/-/jobs/1238073946#L98)src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:149:8: config.VerifyConnection undefined (type *tls.Config has no field or method VerifyConnection); Error ID: 6191efcd

```

The deployment was working using 7.11.2-linux-x86\_64. Unfortunatly I had a random issue where the cloud function would sometimes panic crash while provisioning event into ES (instance/beat.go:168 Failed due to panic. {"panic": "name version already used"). That's why I decided to upgrade to 7.12.1.

The command I'm using is :

```auto
    ./functionbeat -v -e -E cloud.id=XXX -E cloud.auth=XXX -d "*" deploy functionbeat-notification-provisioner

```

---

<div class="post-metadata">

**Author:** ![yerome](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yerome](https://discuss.elastic.co/u/yerome)\
**Post date:** [May 19, 2021, 9:38am UTC](https://discuss.elastic.co/t/cannot-deploy-functionbeat-7-12-1-to-gcp-cloud-function/272206/2 "2021-05-19T09:38:40Z")

</div>

Bug Tracked here : [functionbeat 7.12 can't deploy -- unknown field 'VerifyConnection' in struct literal of type tls.Config · Issue #24925 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/24925)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 16, 2021, 11:38am UTC](https://discuss.elastic.co/t/cannot-deploy-functionbeat-7-12-1-to-gcp-cloud-function/272206/3 "2021-06-16T11:38:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
