question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It seems like crond doesn't work

See original GitHub issue

When I start following command there is effect - zipkin-dependency-yyyy-mm-dd index at elasticsearch appears for a current day:

docker run -d --env STORAGE_TYPE=elasticsearch --env ES_HOSTS=elastichost --env ES_NODES_WAN_ONLY=true openzipkin/zipkin-dependencies

but when I start this command (based on your example) there is no any effect at all even if I waiting for a long time:

docker run -d --env STORAGE_TYPE=elasticsearch --env ES_HOSTS=elastichost --env ES_NODES_WAN_ONLY=true --entrypoint /usr/sbin/crond openzipkin/zipkin-dependencies -f

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
martin960commented, Oct 22, 2021

I think there are several issues. What i had to do, to make cron tasks work:

Run docker container with user = root

Make Scripts in /etc/periodic/ executable. - Execute permissions where missing.

Add cd /zipkin-dependencies before start-zipkin-dependencies ... in the cron scripts

2reactions
martin960commented, Oct 22, 2021

Hi, it seems like this issue is still open with 2.6.4: Zipkin-Dependencies Container startet with entrypoint “crontab -f -d 8”

gives me:

docker logs zipkin-dependencies-itu1

crond: crond (busybox 1.31.1) started, log level 8
crond: root: Permission denied
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my crontab not working, and how can I troubleshoot it?
If your date is recently changed by a user or system update, timezone or other, then crontab will start behaving erratically and exhibit...
Read more >
Top Reasons Your Cron Job Isn't Running - Airplane.dev
We'll walk through the most common reasons why your cron job isn't running: schedule errors, environmental changes, depleted resources, and ...
Read more >
Why is my Crontab not working, and how can I ... - Linux Hint
The first and foremost one is that your Cron daemon might not be working for some reason which will consequently cause your Crontab...
Read more >
Cron job troubleshooting guide - Cronitor
What to do if your cron job doesn't run when expected · Validate your job schedule. Once you have found your job, verify...
Read more >
CronJob not running - Stack Overflow
Bear in mind that cron jobs do not run with all the environment that an interactive command would - for instance, when you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found