# Heartbeat subcommands unable to run on 7.17.x and 8.0.x docker images

**URL:** <https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630>\
**Category:** Beats\
**Tags:** docker, heartbeat\
**Created:** [March 14, 2022, 2:17pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630 "2022-03-14T14:17:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdavid15](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdavid15/32/52806_2.png) [@cdavid15](https://discuss.elastic.co/u/cdavid15)\
**Post date:** [March 14, 2022, 2:17pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/1 "2022-03-14T14:17:17Z")

</div>

Hi all,

I am trying to run the heartbeat setup but I am getting the following error only on the 7.17.0, 7.17.1 and 8.0.0 docker images:

`/usr/local/bin/docker-entrypoint: line 25: exec: setup: not found`

It appears the issue is related the docker entrypoint as can quickly be tested / verified as a bug withn 7.17.x and 8.0.x only using the help subcommand (or any other subcommand):

```nohighlight
docker run docker.elastic.co/beats/heartbeat:7.17.1 help

```

This results in the following:

```nohighlight
`/usr/local/bin/docker-entrypoint: line 25: exec: help: not found`

```

This issue does not occur on 7.16.3 or the 8.1.x releases.

We currently can't upgrade to the 8.x release at the moment so wondering whether we should stick to the stable 7.16.3 release and avoid 7.17 completely unless a patch fix can be applied to the 7.17?

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [March 14, 2022, 7:11pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/2 "2022-03-14T19:11:58Z")

</div>

Apologies, this is a known issue we're tracking here: [7.17.0 awk entrypoint broken · Issue #30435 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/30435) , it looks like the fix has already been merged

---

<div class="post-metadata">

**Author:** ![cdavid15](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdavid15/32/52806_2.png) [@cdavid15](https://discuss.elastic.co/u/cdavid15)\
**Post date:** [March 14, 2022, 7:31pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/3 "2022-03-14T19:31:24Z")

</div>

Thanks for the reply and glad that’s been sorted already.

Do you know if this will be backported to make 7.x stable for those unable to upgrade to 8.x at the moment?

---

<div class="post-metadata">

**Author:** ![cdavid15](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdavid15/32/52806_2.png) [@cdavid15](https://discuss.elastic.co/u/cdavid15)\
**Post date:** [March 14, 2022, 8:15pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/4 "2022-03-14T20:15:17Z")

</div>

I can actually see it was merged into the 7.17 branch 18 days ago. Is there any indication when the 7.17.2 release will drop?

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [March 15, 2022, 12:10am UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/5 "2022-03-15T00:10:03Z")

</div>

Unfortunately we don't release dates there since they are subject to change, however it may be a while since we usually wait till we have a number of bug fixes for a previous major. I'll check and see if we can bump it up, I think it may be worthwhile

---

<div class="post-metadata">

**Author:** ![cdavid15](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdavid15/32/52806_2.png) [@cdavid15](https://discuss.elastic.co/u/cdavid15)\
**Post date:** [March 15, 2022, 6:06am UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/6 "2022-03-15T06:06:49Z")

</div>

Appreciate and understand that.

According to the [release notes for 7.17.1](https://www.elastic.co/guide/en/beats/libbeat/7.17/release-notes-7.17.1.html) it is supposed to be fixed for all beats so not sure if this will help your discussions and accelerate a patch version but it would certainly be handy for me.

> ### Bugfixes
> 
> **Affecting all Beats**
> 
> - Fix the ability for subcommands to be ran properly from the beats containers. [30452](https://github.com/elastic/beats/pull/30452)

---

<div class="post-metadata">

**Author:** ![cdavid15](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdavid15/32/52806_2.png) [@cdavid15](https://discuss.elastic.co/u/cdavid15)\
**Post date:** [April 4, 2022, 6:22am UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/7 "2022-04-04T06:22:20Z")

</div>

Just to close of this discussion a new 7.17.2 version of heartbeat has been released and the issues is now resolved.

```auto
docker run docker.elastic.co/beats/heartbeat:7.17.2 help

```

Resulting the expected output:

```auto
Usage:
  heartbeat [flags]
  heartbeat [command]

Available Commands:
  export Export current config or index template
  help Help about any command
  keystore Manage secrets keystore
  run Run heartbeat
  setup Setup Elasticsearch index template and pipelines
  test Test config
  version Show current version info

Flags:
  -E, --E setting=value Configuration overwrite
  -N, --N Disable actual publishing for testing
  -c, --c string Configuration file, relative to path.config (default "heartbeat.yml")
      --cpuprofile string Write cpu profile to file
  -d, --d string Enable certain debug selectors
  -e, --e Log to stderr and disable syslog/file output
      --environment environmentVar set environment being ran in (default default)
  -h, --help help for heartbeat
      --httpprof string Start pprof http server
      --memprofile string Write memory profile to this file
      --path.config string Configuration path
      --path.data string Data path
      --path.home string Home path
      --path.logs string Logs path
      --plugin pluginList Load additional plugins
      --strict.perms Strict permission checking on config files (default true)
      --system.hostfs string Mount point of the host's filesystem for use in monitoring a host from within a container
  -v, --v Log at INFO level

Use "heartbeat [command] --help" for more information about a command.

```

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [April 4, 2022, 1:45pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/8 "2022-04-04T13:45:17Z")

</div>

Thanks for bearing with us @cdavid15 !

---

<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:** [May 2, 2022, 3:45pm UTC](https://discuss.elastic.co/t/heartbeat-subcommands-unable-to-run-on-7-17-x-and-8-0-x-docker-images/299630/9 "2022-05-02T15:45:28Z")

</div>

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