#4153 Strange job duplication and job edit

open
5
2015-02-18
2012-10-04
No

Hi,
For a wile I try to resolve this together with the RackSpace.com support team but we came to the conclusion it must be a bug.
In the Scheduled Cron Jobs if I edit and job and save it (it does not matter if I really edit or just open and save) then it creates a duplicate entry instead of replacing the job. If I then delete the duplicate it deleted the duplicate but in addition the job above it in the list as well.
This i happens on my RHEL 6 - 64bit server only.
I could make a flash screen recording if this would assist.

Best wishes,
thomas

Discussion

  • Jamie Cameron

    Jamie Cameron - 2012-10-04

    That is odd - I would like to see a screen recording of this, if possible.

     
  • Thomas Bernthaler

    Hi,

    Please find the screen recording here.
    http://clients.dmni.com/Webmin.html
    and here is the screen of the config
    http://clients.dmni.com/cron.jpg

    Yes it is very strange, I use webmin for years on different servers and never seen something like this.

    I also uploaded a screen of the config of this module.

    Best wishes,
    thomas

     
  • Jamie Cameron

    Jamie Cameron - 2012-10-05

    Interesting, I wonder if the long command line in that cron job somehow triggered a bug.

    Does this happen for all cron jobs on your system, or just that one?

     
  • Thomas Bernthaler

    Hi,

    Yes you are correct, it does not happen on short commands.
    However, it does happen for this command. I will try to play around a but to see what actual character does the duplication. The command that is in there currently is:

    cd /home/digitalmedianetwork/htdocs && /home/digitalmedianetwork/htdocs/mailbox_manager_cron.php 2> /dev/null > /dev/null && postmap /etc/postfix/virtual 2> /dev/null > /dev/null && postalias /etc/aliases 2> /dev/null > /dev/null

     
  • Jamie Cameron

    Jamie Cameron - 2012-10-06

    Was that cron job originally created using Webmin, or manually?

    Also, could you post the contents of the file /var/spool/cron/root on your system?

     
  • Thomas Bernthaler

    Hi,

    Here is the content of /var/spool/cron/root

    0 2 * * * /usr/vt/ttssrv/delttslog > /dev/null
    49 19 * * 5 /usr/libexec/webmin/package-updates/update.pl
    @weekly /usr/libexec/webmin/disk-usage/usage.pl

    @daily php /home/mivnet/htdocs/framework/Cron_Scripts/create_pdf.php
    @daily php /home/mivnet/htdocs/framework/Cron_Scripts/cron.php
    @hourly php /home/mivnet/htdocs/framework/Cron_Scripts/cron_hourly.php

    The job was created using SSH but then edited using webmin. I have this job in a similar version running for many years. But 5 months ago I migrated to a new server and upgraded from RHEL 5 64Bit to RKEL 6 64Bit when this started happening. The previous job looked a bit different but had the same issue after I migrated. It looked different because old server was using Sendmail and now I am using Postfix.

    If you have a static IP (or can give me the temporary IP you use now) I am happy to set-up a webmin account for you to go into the cron. But to send the login info I would need some way to send it to you without posting it in public.

    Best wishes,
    Thomas

     
  • Jamie Cameron

    Jamie Cameron - 2012-10-08

    Login to your system would be useful to debug this. You can email me at jcameron@webmin.com. My IP is 67.188.12.52

     
  • Thomas Bernthaler

    Hi,

    I have send the email with details on the login.

    Best wishes,
    thomas

     
  • Jamie Cameron

    Jamie Cameron - 2012-10-09

    Thanks - I will take a look later today.

     
  • Jamie Cameron

    Jamie Cameron - 2012-10-09

    I just logged into your system, and edited that cron job and saved it, and I didn't see the problem of it being duplicated?

     
  • Simon Barrett

    Simon Barrett - 2015-02-16

    Hi there,

    May I add a +1 to this thread and say that I am having similar issues when editing cron jobs via Webmin.

    I use it in a private environment for a company and also for my home server.
    I use it to run scheduled backups etc but when I edit via Webmin, it screws up cron by duplicating the one I was editing and the duplicate is saved over another cron job.

    To rectify, I have to SSH in and then edit the actual crontab file.

    I use Webmin 1.730 on Centos 6.6 (64 bit).

    Many thanks,
    Simon

     
  • Jamie Cameron

    Jamie Cameron - 2015-02-17

    Is someone else perhaps editing cron jobs on your system at the same time?

     
  • Simon Barrett

    Simon Barrett - 2015-02-17

    Hi there Jamie,

    No, I'm the only one with access to either system.

     
  • Jamie Cameron

    Jamie Cameron - 2015-02-18

    Does this happen when you try to edit ANY cron jobs?

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks