# Function: \<functionbeat\>, could not deploy, error: incompatible type received, expecting: 'functionManager'

**URL:** <https://discuss.elastic.co/t/function-functionbeat-could-not-deploy-error-incompatible-type-received-expecting-functionmanager/198280>\
**Category:** Beats\
**Tags:** functionbeat\
**Created:** [September 5, 2019, 3:18pm UTC](https://discuss.elastic.co/t/function-functionbeat-could-not-deploy-error-incompatible-type-received-expecting-functionmanager/198280 "2019-09-05T15:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Hardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavin_hardy/32/46713_2.png) [@Gavin\_Hardy](https://discuss.elastic.co/u/Gavin_Hardy)\
**Post date:** [September 5, 2019, 3:18pm UTC](https://discuss.elastic.co/t/function-functionbeat-could-not-deploy-error-incompatible-type-received-expecting-functionmanager/198280/1 "2019-09-05T15:18:34Z")

</div>

Hi there,

I have setup functionbeat to pull data from my kinesis data stream, and push to ES. However, when setting up the function beat I get the following error.

Function: eventlogsfunctionbeat, could not deploy, error: incompatible type received, expecting: 'functionManager'

This is my setup

functionbeat.yml

```auto
functionbeat.provider.aws.deploy_bucket: "<bucket>"
functionbeat.provider.aws.functions:
  - name: eventlogsfunctionbeat
    enabled: true
    type: kinesis
    description: "lambda function for event log kinesis"
    triggers:
      - event_source_arn: arn:aws:kinesis:<region>:<account>:stream/OrganizationCloudTrailStream
output.elasticsearch:
  hosts: ["<host>"]
  username: 'elastic'
  password: '<password>'
  index: "functionbeat"
  
setup.kibana:
  host: "<host>"
  username: 'elastic'
  password: '<password>'
  
setup.template.name: "functionbeat"
setup.template.pattern: "functionbeat-*"
setup.template.enabled: false

```

My Makefile is

```auto
	@./functionbeat setup -c $(LOGS_CONFIG)
	@./functionbeat deploy -c $(LOGS_CONFIG) "eventlogsfunctionbeat"

```

gitlab-ci.yml

```auto
  extends: .deploy
  variables:
    AWS_ACCESS_KEY_ID: ${LOGS_AWS_ACCESS_KEY_ID}
    AWS_SECRET_ACCESS_KEY: ${LOGS_AWS_SECRET_ACCESS_KEY}
  script:
    - ./functionbeat setup -c config/functionbeat.yml --template -E 'output.elasticsearch.hosts=["<host>"]'
    - make deploy-logs

```

Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![Gavin\_Hardy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gavin_hardy/32/46713_2.png) [@Gavin\_Hardy](https://discuss.elastic.co/u/Gavin_Hardy)\
**Post date:** [September 6, 2019, 7:00am UTC](https://discuss.elastic.co/t/function-functionbeat-could-not-deploy-error-incompatible-type-received-expecting-functionmanager/198280/2 "2019-09-06T07:00:59Z")

</div>

Hi, so it turns out my issues was because I wasn't using 7.3.0.

Now it deploys, but I'm getting these errors in my cloudwatch logs from the lambda

fork/exec /var/task/functionbeat: exec format error: PathError  
null

Any ideas?

---

<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:** [September 26, 2019, 9:01pm UTC](https://discuss.elastic.co/t/function-functionbeat-could-not-deploy-error-incompatible-type-received-expecting-functionmanager/198280/3 "2019-09-26T21:01:01Z")

</div>

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