service cron failures are silent
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker, javascript
- Domain
- devops
Research direction
The issue identifies cron jobs in the service container and shows the proposed change for /usr/bin/upload-blobs.sh. Start by locating that cron entry and checking how the service container exposes process output. Ensure cron job stdout and stderr reach the container logs, then verify the cron configuration uses the intended output destinations.
Written by the indexing model from the issue text.
Description
Without a configured mailer, and with no redirect of stdout/stderr of cron jobs, failures of cron jobs are completely silent.
One simple option would be to redirect stdout and stderr of cron jobs to the service container's pid 1, e.g.:
-0 5 * * * root /usr/bin/with-pgenvblock.pl /dev/shm/docker-envblock /usr/odk/upload-blobs.sh
+0 5 * * * root /usr/bin/with-pgenvblock.pl /dev/shm/docker-envblock /usr/odk/upload-blobs.sh >>/proc/1/fd/1 2>>/proc/1/fd/2
- Dominant language
- JavaScript
- Stars
- 233
- Forks
- 241
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 13
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getodk/central
-
sessions are not reapedPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
The `New Submission` button on the Submissions tab is now harder to access on mobilePossibly taken @sadiqkhoja claimed this 1 day ago. Openfrontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getodk/central#2334 · 1 assignee ·
Maintainers usually reply within 1 day
-
Copying text from table clicks on the rowPossibly taken @sadiqkhoja claimed this 1 day ago. Openfrontend needs testing
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getodk/central#2331 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Hide closed formsPossibly taken @nicoleorlowski claimed this 8 days ago. Openfrontend needs testing
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
getodk/central#2323 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Remove Feedback buttonPossibly taken @lognaturel claimed this 9 days ago. Openfrontend
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
getodk/central#2322 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Escaped `*` followed by `*` (`\**`) never matchesPossibly taken @bardrop claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
editorconfig/editorconfig-core-js#172 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fb55/htmlparser2#2579 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Provider editor: multiple top plugin options overlap Models because .top caps the container at 46pxOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100