Menu

#5313 Editing or deleting a scheduled cron job deletes the wrong job

1.930
closed-fixed
nobody
None
5
2020-03-01
2019-10-08
VoIPuser
No

I brought up a new Raspberry Pi 4 running Raspbian Buster and (after installing other software) installed Webmin on it. There was one cron job created by another program that I specifically wanted to delete because it insists on sending emails that I don't want sent. So I attemed to delete it in Webmin's Scheduled Cron Jobs but it did not go away. Figuring I did something wrong, I tried again, and again. It was only after I had done it four or five times that I realized it was deleting OTHER scheduled cron jobs above the one I was attempting to delete. Trying to edit a cron job to disable it had the same effect. So now I have to start completely over from scratch because I have no idea what cron jobs were deleted (and because it's a Raspberry Pi, I had disabled logging to reduce the wear on the SD card, though I don't know if logging would have helped). I've never had a problem like this with Webmin before, so I was quite shocked that this happened.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2019-10-09

    That seems like a serious bug! Is the list of cron jobs shown in Webmin stable? That is, does the order change when you refresh the page?

     
    • VoIPuser

      VoIPuser - 2019-11-09

      As far as I can tell the order does not change when you refresh the page.

       
  • Jamie Cameron

    Jamie Cameron - 2019-11-09

    Which button in the UI are you using to delete the cron job?

     
  • Ilia

    Ilia - 2019-12-09

    @VoIPuser Any additional info?

     
  • Dulanic

    Dulanic - 2020-02-18

    This bug is valid, I kept deleting 1 cron job and it kept deleting a different cron job. Thankfully I had a backup. I deleted from Scheduled Cron Jobs. It is not specific to raspberry pi for sure, Im using Ubuntu Linux 19.10.

    As can be seen with the below screenshots, I atempted to delete the /opt/rclone/upload_cloud job, but it instead deleted my weekly job.

    Before pressing delete button:
    https://snipboard.io/fl5YmN.jpg
    After pressing delete button:
    https://snipboard.io/bYnZQ9.jpg

     

    Last edit: Dulanic 2020-02-18
  • Jamie Cameron

    Jamie Cameron - 2020-02-22

    Do you know which config file on the system the correct and incorrect cron jobs were in? ie. /etc/crontab or a user's file under /var/spool/crontab ?

     
  • Dulanic

    Dulanic - 2020-02-22

    Mine was within /etc/crontab

     
  • Jamie Cameron

    Jamie Cameron - 2020-02-28

    Are both the correct and incorrect lines in the same file, just next to each other?

    If so, can you post the full file here?

     
  • Dulanic

    Dulanic - 2020-03-01

    Looks like it's the row above. It deleted the weekely line vs the line below it which is the correct line.

    https://paste.ubuntu.com/p/HvGZScG5PZ/

     
  • Jamie Cameron

    Jamie Cameron - 2020-03-01
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2020-03-01

    Ok I finally found the cause of this - the bug will be fixed in the next Webmin release.

     

Log in to post a comment.