# Timer not found

**URL:** <https://community.convox.com/t/timer-not-found/624>\
**Category:** Configuration\
**Created:** [October 4, 2019, 8:53pm UTC](https://community.convox.com/t/timer-not-found/624 "2019-10-04T20:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moises](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/moises/32/97_2.png) [@moises](https://community.convox.com/u/moises)\
**Post date:** [October 4, 2019, 8:53pm UTC](https://community.convox.com/t/timer-not-found/624/1 "2019-10-04T20:53:44Z")

</div>

I have the following codebase structure

```auto
app.js
Dockerfile
bin/
 cleanup
timers/
  topic/
    Dockerfile
convox.yml

```

and my `convox.yml` looks like

```auto
services:
  web:
    build: .
    port: 3000
  timers:
    build: ./timers/topic
    scale: 0
timers:
  cleanup:
    command: bin/cleanup
    schedule: "*/5 * * * ? *"
    service: timers

```

I’m getting this error `timer/cleanup:KWWFBULRYEN/f60b8c6efcc9 sh: 1: bin/cleanup: not found`

I tried moving the bin folder into the timers folder like this

```auto
app.js
Dockerfile
timers/
  topic/
    Dockerfile
    bin/
      cleanup
convox.yml

```

But I’m still getting the same error. Why is `bin/cleanup` not being found?

---

<div class="post-metadata">

**Author:** ![ed\_convox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/ed_convox/32/101_2.png) [@ed\_convox](https://community.convox.com/u/ed_convox)\
**Post date:** [October 7, 2019, 9:33am UTC](https://community.convox.com/t/timer-not-found/624/2 "2019-10-07T09:33:30Z")

</div>

What’s your `timers` Dockerfile doing? If you build and run that yourself locally can you run the `bin/cleanup` command with the image?

---

<div class="post-metadata">

**Author:** ![moises](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/moises/32/97_2.png) [@moises](https://community.convox.com/u/moises)\
**Post date:** [October 7, 2019, 6:38pm UTC](https://community.convox.com/t/timer-not-found/624/3 "2019-10-07T18:38:22Z")

</div>

Hey @ed_convox,

My Dockerfile looks like this:

```auto
FROM mysql:5.6
COPY bin/cleanup /bin/
ENV MYSQL_ROOT_PASSWORD=somepassword
CMD ["mysqld"]

```

I can `convox exec` into my timers service and run the bash script manually `bash bin/cleanup` and it will run just fine.

EDIT:

I can confirm my timer is working and running. I had a typo in my CMD in the Dockerfile. Sorry for all the trouble.
