Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: Message system, cron and others not working

  1. #1
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203

    Message system, cron and others not working

    Since the installation of directadmin, some services are not working at all. The message system and create backups for example.

    All services under Service Monitor are running normal.

    I looked in a dozen log files and figured out that for some reason yum erased a lot of services.

    ...
    Apr 26 14:24:46 Erased: matahari
    Apr 26 14:24:46 Erased: system-config-firewall-base
    Apr 26 14:24:47 Erased: git
    Apr 26 14:24:48 Erased: perl-Git
    Apr 26 14:24:48 Erased: iwl5150-firmware
    Apr 26 14:24:48 Erased: iwl100-firmware
    Apr 26 14:24:49 Erased: iwl6050-firmware
    Apr 26 14:24:49 Erased: bfa-firmware
    Apr 26 14:24:50 Erased: iwl6000-firmware
    Apr 26 14:24:50 Erased: iwl1000-firmware
    Apr 26 14:24:50 Erased: dracut-kernel
    Apr 26 14:24:51 Erased: dracut
    Apr 26 14:24:51 Erased: aic94xx-firmware
    Apr 26 14:24:52 Erased: iwl6000g2a-firmware
    Apr 26 14:24:52 Erased: b43-openfwwf
    Apr 26 14:24:52 Erased: iwl6000g2b-firmware
    Apr 26 14:24:53 Erased: matahari-broker
    Apr 26 14:24:53 Erased: matahari-host
    Apr 26 14:24:54 Erased: matahari-network
    Apr 26 14:24:55 Erased: matahari-service
    Apr 26 14:24:55 Erased: qpid-cpp-server-ssl
    Apr 26 14:24:55 Erased: matahari-sysconfig
    Apr 26 14:24:56 Erased: matahari-agent-lib
    Apr 26 14:24:56 Erased: crontabs
    Apr 26 14:24:57 Erased: cronie-anacron
    Apr 26 14:24:57 Erased: cronie
    Apr 26 14:24:58 Erased: qpid-cpp-server
    Apr 26 14:24:59 Erased: cyrus-sasl
    Apr 26 14:24:59 Erased: plymouth
    Apr 26 14:25:00 Erased: policycoreutils
    Apr 26 14:25:01 Erased: openssh-server
    Apr 26 14:25:01 Erased: mdadm
    Apr 26 14:25:02 Erased: libdrm
    Apr 26 14:25:02 Erased: rsyslog
    Apr 26 14:25:03 Erased: qpid-qmf
    Apr 26 14:25:04 Erased: qpid-cpp-client-ssl
    Apr 26 14:25:04 Erased: qpid-cpp-client
    Apr 26 14:25:05 Erased: kbd
    Apr 26 14:25:05 Erased: iptables-ipv6
    Apr 26 14:25:06 Erased: dhclient
    Apr 26 14:25:06 Erased: quota
    Apr 26 14:25:07 Erased: systemtap
    Apr 26 14:25:07 Erased: openssh-clients
    Apr 26 14:25:08 Erased: openssh
    Apr 26 14:25:08 Erased: util-linux-ng
    Apr 26 14:25:09 Erased: iputils
    Apr 26 14:25:09 Erased: udev
    Apr 26 14:25:10 Erased: initscripts
    Apr 26 14:25:11 Erased: iproute
    Apr 26 14:25:11 Erased: iptables
    Apr 26 14:25:26 Installed: iptables-1.4.7-5.1.el6_2.x86_64
    Apr 26 14:25:51 Installed: iproute-2.6.32-17.el6.x86_64
    Apr 26 14:25:51 Installed: iputils-20071127-16.el6.x86_64
    Apr 26 14:25:53 Installed: util-linux-ng-2.17.2-12.4.el6.x86_64
    Apr 26 14:25:54 Installed: initscripts-9.03.27-1.el6.centos.1.x86_64
    Apr 26 14:25:55 Installed: udev-147-2.40.el6.x86_64
    Apr 26 14:25:56 Installed: openssh-5.3p1-70.el6_2.2.x86_64
    Apr 26 14:25:56 Installed: openssh-server-5.3p1-70.el6_2.2.x86_64
    Apr 26 14:31:58 Installed: iptables-1.4.7-5.1.el6_2.x86_64
    Apr 26 14:32:42 Installed: nano-2.0.9-7.el6.x86_64
    Apr 26 15:49:31 Installed: mdadm-3.2.2-9.el6.x86_64
    May 04 13:21:51 Installed: openssh-clients-5.3p1-70.el6_2.2.x86_64
    As you can see, some were installed again, most were not. Strangely enough some of messages are also echoed in /var/log/messages

    ...
    Apr 26 14:00:09 hosted-by kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
    Apr 26 14:24:46 hosted-by yum[6891]: Erased: matahari
    Apr 26 14:24:46 hosted-by yum[6891]: Erased: system-config-firewall-base
    Apr 26 14:24:47 hosted-by yum[6891]: Erased: git
    Apr 26 14:24:48 hosted-by yum[6891]: Erased: perl-Git
    Apr 26 14:24:48 hosted-by yum[6891]: Erased: iwl5150-firmware
    Apr 26 14:24:48 hosted-by yum[6891]: Erased: iwl100-firmware
    Apr 26 14:24:49 hosted-by yum[6891]: Erased: iwl6050-firmware
    Apr 26 14:24:49 hosted-by yum[6891]: Erased: bfa-firmware
    Apr 26 14:24:50 hosted-by yum[6891]: Erased: iwl6000-firmware
    Apr 26 14:24:50 hosted-by yum[6891]: Erased: iwl1000-firmware
    Apr 26 14:24:50 hosted-by yum[6891]: Erased: dracut-kernel
    Apr 26 14:24:51 hosted-by yum[6891]: Erased: dracut
    Apr 26 14:24:51 hosted-by yum[6891]: Erased: aic94xx-firmware
    Apr 26 14:24:52 hosted-by yum[6891]: Erased: iwl6000g2a-firmware
    Apr 26 14:24:52 hosted-by yum[6891]: Erased: b43-openfwwf
    Apr 26 14:24:52 hosted-by yum[6891]: Erased: iwl6000g2b-firmware
    Apr 26 14:24:53 hosted-by yum[6891]: Erased: matahari-broker
    Apr 26 14:24:53 hosted-by yum[6891]: Erased: matahari-host
    Apr 26 14:24:53 hosted-by dbus: [system] Reloaded configuration
    Apr 26 14:24:53 hosted-by dbus: [system] Reloaded configuration
    Apr 26 14:24:54 hosted-by yum[6891]: Erased: matahari-network
    Apr 26 14:24:54 hosted-by dbus: [system] Reloaded configuration
    Apr 26 14:24:54 hosted-by dbus: [system] Reloaded configuration
    Apr 26 14:24:55 hosted-by yum[6891]: Erased: matahari-service
    Apr 26 14:24:55 hosted-by dbus: [system] Reloaded configuration
    Apr 26 14:24:55 hosted-by dbus: [system] Reloaded configuration
    Apr 26 14:24:55 hosted-by yum[6891]: Erased: qpid-cpp-server-ssl
    Apr 26 14:24:55 hosted-by yum[6891]: Erased: matahari-sysconfig
    Apr 26 14:24:56 hosted-by yum[6891]: Erased: matahari-agent-lib
    Apr 26 14:24:56 hosted-by yum[6891]: Erased: crontabs
    Apr 26 14:24:57 hosted-by yum[6891]: Erased: cronie-anacron
    Apr 26 14:24:57 hosted-by yum[6891]: Erased: cronie
    Apr 26 14:24:58 hosted-by qpidd[1231]: 2012-04-26 14:24:58 notice Shut down
    Apr 26 14:24:58 hosted-by yum[6891]: Erased: qpid-cpp-server
    Apr 26 14:24:59 hosted-by yum[6891]: Erased: cyrus-sasl
    Apr 26 14:24:59 hosted-by yum[6891]: Erased: plymouth
    Apr 26 14:25:00 hosted-by yum[6891]: Erased: policycoreutils
    Apr 26 14:25:01 hosted-by yum[6891]: Erased: openssh-server
    Apr 26 14:25:01 hosted-by yum[6891]: Erased: mdadm
    Apr 26 14:25:02 hosted-by yum[6891]: Erased: libdrm
    Apr 26 14:25:02 hosted-by kernel: Kernel logging (proc) stopped.
    Apr 26 14:25:02 hosted-by rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-pid="1086" x-info="http://www.rsyslog.com"] exiting on signal 15.
    As a pretty newbee, I am not really sure whether I just have to yum install these services in CentOS (6.2 x64) to get my DirectAdmin working as it should? Help would be really appreciated.

  2. #2
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    My guess is that maybe was just updates.

    Behind that, what doesnt work with backup system and messages?

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  3. #3
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Ai, I see my previous reply didn't make it through the forum. I hate these random questions you have to fill in if you want to post a message.

    I don't receive messages from my DirectAdmin panel. For example: when someone tries to do a Brute Force Attack for the 100th time.
    Cron jobs also don't work
    Backups / restore function doesn't work at all.

    It's pretty nasty.

    As you can see I have installed the Brute Force Monitor by the DirectAdmin manual.
    I also upgraded PHP to version 5.3.12.

  4. #4
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    The random question appear just untill a moderator / admin check you as real user, sorry but is for prevent spammers.

    1 - Check which email is set to the system message center (top right). Check if mail server is working, check logs
    2 - How can you say they doesnt work? How cron would be related to DA? It is just system related
    3 - As ive asked.. why it doenst work? How can you say that? What did you tryed?

    And, most important, did you reade guide? http://help.directadmin.com and www.site-helper.com?

    BFM is not get installed manually, the scripts to make action are made manually, BFM exist as default.

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  5. #5
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Thanks for the quick reply.

    The email address in the message system is okay. But it's not that I only don't get an email. But there are no messages appearing in the message system when I start a backup of a user account.

    I've just tried to make a backup via: Admin Backup/Transfer > selected a user and checked the location (/home/admin/admin_backups) and submitted.

    When I login with ssh, there are is nog .tar.gz file appearing (nor a folder that indicated that DirectAdmin is processing the backup) in the folder /home/admin/admin_backups.

    And there are no messages appearing in the Message System (0 new)

    There is an old backup of may 6. But I can't remember how that got there.

  6. #6
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    I don't see a way to edit my forum message.

    Anyway, I've just checked some logs:

    Apache error log:
    [Thu May 10 16:47:58 2012] [error] [client 61.51.18.235] File does not exist: /var/www/html/user
    [Thu May 10 16:47:58 2012] [error] [client 61.51.18.235] File does not exist: /var/www/html/404.shtml

    The latest logs from /var/log/cron dates from April 26

  7. #7
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Ow, never mind. Those logs are just coincidence. That IP address is from some Chinese MF that tries to "connect" to my server.

  8. #8
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    The backup is not immediate, but should be that cron isnt working and so backup arent starting.

    Please post out for those commands:

    Code:
    cat /usr/local/directadmin/data/task.queue
    Code:
    cat /etc/cron.d/directadmin_cron
    Code:
    ps aux | grep crond
    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  9. #9
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Code:
    cat /usr/local/directadmin/data/task.queue
    Code:
    action=directadmin&value=restart
    action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=die&type=admin&value=multiple&when=now&where=local
    action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=die&type=admin&value=multiple&when=now&where=local
    action=directadmin&value=restart
    action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=die&type=admin&value=multiple&when=now&where=local
    action=backup&select%30=autoresponder&select%31=database&select%31%30=vacation&select%32=domain&select%33=email&select%34=emailsettings&select%35=forwarder&select%36=ftp&select%37=ftpsettings&select%38=list&select%39=subdomain&type=sitebackup&value=haa
    action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&select%30=die&type=admin&value=multiple&when=now&where=local

    Code:
    cat /etc/cron.d/directadmin_cron
    Code:
    * * * * * root /usr/local/directadmin/dataskq
    2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
    #5 5 * * 0 root /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;
    10 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
    20 4 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
    0 4 * * * root echo 'action=check&value=license' >> /usr/local/directadmin/data/task.queue


    Code:
    ps aux | grep crond
    Code:
     
    admin    24274  0.0  0.0 103308   888 pts/0    S+   17:20   0:00 grep crond
    Cheers!

  10. #10
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    Ok, your cron isnt running.

    run:

    Code:
    > /usr/local/directadmin/data/task.queue
    /etc/init.d/crond restart
    then again post output for:
    Code:
    ps aux | grep crond
    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  11. #11
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Could you tell me (for my understanding) what > /usr/local/directadmin/data/task.queue does/means?

    crond restart gives: bash: /etc/init.d/crond: No such file or directory

    It's simply removed. (like in my first post: removed by Yum) But I just don't know why or how?

    I think there's more missing. Can't I just simply install the missing things with yum install, or does this conflict with DirectAdmin?

    This is what's installed:
    root@d1:/etc/init.d ssh$ ls
    auditd exim iptables messagebus netconsole rdisc udev-post
    da-popb4smtp functions iptables.backup mysqld netfs single
    directadmin halt killall named network sshd
    dovecot httpd mdmonitor named.back proftpd startips

    Regards!

  12. #12
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Sorry, tabs got messed up:
    etc/init.d$ ls -1

    auditd
    da-popb4smtp
    directadmin
    dovecot
    exim
    functions
    halt
    httpd
    iptables
    iptables.backup
    killall
    mdmonitor
    messagebus
    mysqld
    named
    named.back
    netconsole
    netfs
    network
    proftpd
    rdisc
    single
    sshd
    startips
    udev-post

  13. #13
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    the line you asked remove everything in the specified file, cause there was 5 backup request in it.

    ok so, install it

    Code:
    yum install crond -y
    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  14. #14
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    That should be

    yum install crontabs
    yum install anacron
    yum install vixie-cron


    I believe, but not crond
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  15. #15
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    thnx guys

    I was already googling because crond wasn't working.

    I think the hosting company installed the CentOS 6.2 minimal version. Do you know if there are other services that I need to install to let DirectAdmin work properly?

    Cheers!

  16. #16
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    PS: how do you edit a message?

  17. #17
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    You righ Alex,

    too hurry wrong reply xD

    Well, for missing services it depend if something else isnt working.

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  18. #18
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    NP SeLLeRoNe,
    I am really glad you're helping me out here

    ps aux | grep crond
    root 25303 0.0 0.0 117180 1368 ? Ss 19:59 0:00 crond
    root 25343 0.0 0.0 103292 860 pts/0 S+ 20:04 0:00 grep crond

  19. #19
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    Ok, now is working.

    Try run a backup now

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  20. #20
    Join Date
    Apr 2012
    Location
    Rotterdam, Netherlands
    Posts
    203
    Yeeeah, it's working

    And I'm receiving e-mail confirmations. Thanks a lot guys!

Page 1 of 2 12 LastLast

Similar Threads

  1. Message System
    By dannygoh in forum Admin-Level Difficulties
    Replies: 5
    Last Post: 12-29-2010, 12:23 PM
  2. Message system
    By Peter Laws in forum Feedback & Feature Requests
    Replies: 9
    Last Post: 11-17-2010, 11:50 PM
  3. Message System
    By Peter Laws in forum General Technical Discussion & Troubleshooting
    Replies: 4
    Last Post: 10-06-2010, 07:58 AM
  4. Weired Cron Message From my Server
    By topdog in forum General Technical Discussion & Troubleshooting
    Replies: 3
    Last Post: 03-27-2010, 01:04 PM
  5. Message System
    By seachen in forum Feedback & Feature Requests
    Replies: 5
    Last Post: 08-28-2008, 10:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •