Skip to contentSkip to conversation

New: cronstamp jobs are not performed with bumped version of dcron

Buildroot [email protected] 1 participant 8 messages Nov 17, 2021 – May 6, 2023

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=14356

            Bug ID: 14356
           Summary: cronstamp jobs are not performed with bumped version
                    of dcron
           Product: buildroot
           Version: 2021.02.7
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Target Milestone: ---

Since we have integrated the commit 8a0d4e6a which bumps dcron to a non released version, we have noticed that the cronstamp jobs are not executed. The timestamp of the files in /var/spool/cron/cronstamps/ directory are not updated.
If we revert the commit and get back to version 4.5 of dcron, the jobs are working nominally.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

https://bugs.busybox.net/show_bug.cgi?id=14356

--- Comment #1 from Dominique Tronche <[email protected]> --- I forgot to say that the dcron process is running and no error message is displayed when run in debug mode

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14356

--- Comment #2 from Peter Seiderer <[email protected]> --- (In reply to Dominique Tronche from comment #1)

Tested on RPi Zero 2W (buildroot master, configs/raspberrypizero2w_defconfig), both dcron-4.5 and dcron-1ba33c3325df48de46263276a43ed76cf9d81518 create the files in /var/spool/cron/cronstamps and simple dcron jobs work (echo date >> /home/test/out.log)...

Just added (but works without too):

mkdir -p /var/spool/cron/crontabs
mkdir -p /var/spool/cron/cronstamps

to /etc/init.d/S90dcron startup file...

Anything special with your crontab files? Can your provide an example?

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14356

--- Comment #3 from Dominique Tronche <[email protected]> --- Created attachment 9151
--> https://bugs.busybox.net/attachment.cgi?id=9151&action=edit
Timestamps of cronstamps files are not updated

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14356

--- Comment #4 from Dominique Tronche <[email protected]> --- We only have a logrotate script in /etc/cron.daily. Has you can see in the snapshot the timestamp of the cronstamps file are not updated. root.sys-hourly should be updated every hour

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14356

--- Comment #5 from Peter Seiderer <[email protected]> --- (In reply to Dominique Tronche from comment #4)

Any updates on this one? I can confirm the changed behavior/failure for the default /etc/cron.d/system @hourly entry (did not run the test longer), can confirm that the offending commit seems to be [1] (upstream issue already exists [2], dating back to May 2018)...

[1]
https://github.com/dubiousjim/dcron/commit/f048a83da348c1d62204fcbdf407b7abf33e3db0

[2] https://github.com/dubiousjim/dcron/issues/15

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14356

--- Comment #6 from Dominique Tronche <[email protected]> --- The issue has been corrected with commit 1557312f from Mario Haustein

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

[Buildroot] [Bug 14356] cronstamp jobs are not performed with bumped version of dcron

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14356

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #7 from Yann E. MORIN <[email protected]> --- Dominique, All,

Thanks for the report and the feedback. As you noticed, this is now supposed to be fixed with commit 1557312f, so I'm closing this bug report. Thanks!

Regards,
Yann E. MORIN.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot