Bug 4145 - 2_a3: crond is not running
Summary: 2_a3: crond is not running
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 05:27 CET by Bit Twister
Modified: 2012-01-16 19:24 CET (History)
1 user (show)

See Also:
Source RPM: cronie-1.4.8-2.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Bit Twister 2012-01-16 05:27:11 CET
Description of problem:

crond is not running.

Version-Release number of selected component (if applicable):

 crond is not running

# ll /var/log/cron
total 0
-rw-r--r-- 1 root root 0 Jan 15 17:58 errors.log
-rw-r--r-- 1 root root 0 Jan 15 17:58 info.log
-rw-r--r-- 1 root root 0 Jan 15 17:58 warnings.log

How reproducible: Always


Steps to Reproduce:
1. Clean install of Mageia-2-alpha3-x86_64-DVD.iso
2. apply all updates, reboot
3. Wait for hourly cron job execution
4: grep -i cron /var/log/messages
5: grep -i cron /var/log/syslog | grep root

Note missing something like these snipped results.
  CROND[x]: (root) CMD (nice -n 19 run-parts --report /etc/cron.weekly)
  CROND[x]: (root) CMD (nice -n 19 run-parts --report /etc/cron.hourly)


# systemctl status crond.service
crond.service - Command Scheduler
      Loaded: loaded (/lib/systemd/system/crond.service; enabled)
      Active: active (running) since Sun, 15 Jan 2012 21:26:15 -0600; 50min ago
      Main PID: 1481 (crond)
          CGroup: name=systemd:/system/crond.service
                  รข 1481 /usr/sbin/crond -n

Jan 15 21:53:01 wb2.home.test /usr/sbin/crond[3613]: pam_tcb(crond:session): Session opened for bittwister by js4113tx(uid=0)
Session opened for bittwister by bittwister(uid=0)
Jan 15 22:01:01 wb2.home.test /usr/sbin/crond[3883]: pam_tcb(crond:session): Session opened for root by root(uid=0)
Comment 1 Sander Lepik 2012-01-16 11:33:12 CET
Do you have crontabs installed?

CC: (none) => sander.lepik

Manuel Hiebel 2012-01-16 16:30:37 CET

Keywords: (none) => NEEDINFO

Comment 2 Bit Twister 2012-01-16 16:56:10 CET
(In reply to comment #1)
> Do you have crontabs installed?

Looks like it to me. 

$ locate crontab
/etc/crontab
/etc/sysconfig/crontab
/usr/bin/crontab
/usr/share/doc/crontabs
/usr/share/man/man1/crontab.1.xz
/usr/share/man/man1p/crontab.1p.xz
/usr/share/man/man5/crontab.5.xz
/usr/share/vim/syntax/crontab.vim

Oh, by the way, Alpha2 was working until a bunch of updates came through a day or so before Alpha3 release. Cron stopped working.

More info from my Alpha3 clean install.

# systemctl restart crond.service
# cat /var/log/cron/*     <sniped Jan 16 09:41:02 wb2 >
 /usr/sbin/crond[3770]: (CRON) bad minute (/var/spool/cron/bittwister)
 /usr/sbin/crond[3770]: (CRON) bad minute (/var/spool/cron/bittwister)
 /usr/sbin/crond[3770]: (CRON) INFO (running with inotify support)
 /usr/sbin/crond[3770]: (CRON) INFO (@reboot jobs will be run at computer's startup.)

# ll /var/spool/cron/bittwister
-rw------- 1 bittwister bittwister 1727 Jan 14 19:11 /var/spool/cron/bittwister

# grep bit /etc/cron.allow
bittwister


# cat /var/spool/cron/bittwister
#*************** start of $HOME/.cron/cron.job ***************************
#
####################################################################
#    syntax example                                                #
#minute (0-59),                                                    #
#|      hour (0-23),                                               #
#|      |       day of the month (1-31),                           #
#|      |       |       month of the year (1-12),                  #
#|      |       |       |       day of the week (0-6 with 0=Sunday)#
#|      |       |       |       |       commands                   #
#30     01      *       *       *       /home/jim/bin/cleartmp     #
####################################################################
SHELL=/bin/bash
MAILTO=bittwister
HOME=/home/bittwister
_cron_loc=/home/bittwister
PATH=/home/bittwister/local/work:/sbin:/usr/sbin:/usr/local/bin\
:/local/bin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/games\
:/usr/lib/qt4/bin:/home/bittwister/local/bin
0 0-23 * * * /bin/nice -n 19 /usr/bin/run-parts $_cron_loc/.cron/hourly
20 5 * * * /bin/nice -n 19 /usr/bin/run-parts $_cron_loc/.cron/daily
30 5 * * 0 /bin/nice -n 19 /usr/bin/run-parts $_cron_loc/.cron/weekly
40 5 1 * * /bin/nice -n 19 /usr/bin/run-parts $_cron_loc/.cron/monthly
52 5 * * * /bin/nice -n 19 /local/bin/ck_mail_msg
#*
#* Install:   click up a terminal,
#*            su - root
#*            cp ~bittwister/.cron/cron.job /var/spool/cron/bittwister
#*            chown bittwister:bittwsiter /var/spool/cron/bittwister
#*            chmod 600 /var/spool/cron/bittwister
#*            exit
#*            exit
#*
#************* end $HOME/.cron/cron.job **********************************

Keywords: NEEDINFO => (none)

Comment 3 Sander Lepik 2012-01-16 18:01:03 CET
Hmm.. Are you 100% sure it doesn't work? How did you test? Maybe it just doesn't log?
Comment 4 Bit Twister 2012-01-16 19:24:16 CET
(In reply to comment #3)
> Hmm.. Are you 100% sure it doesn't work? How did you test? Maybe it just
> doesn't log?

Good point. I'll try to do a better test next time. :)

Numerous updates have been applied since I opened this bug.
After this morning's boot, /var/log/messages had cron log entries and a user cron job did execute.

Bunch more updates just now, one of the packages sets /etc/hostname to localhost :(


I'll mark it resolved for now.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.