The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cron daemon problem

Discussion in 'General Discussion' started by paolorulez, Oct 12, 2004.

  1. paolorulez

    paolorulez Guest

    i have this error after upgrade cpanel last night

    Cron <root@> * ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

    /bin/sh: line 1: cpanel3-skel: command not found


    i have checked my crontab, is correct

    root@ [~]# crontab -l
    # DO NOT EDIT THIS FILE - edit the master and reinstall.
    # (/scripts/.crontab installed on Tue Oct 12 00:14:06 2004)
    # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
    */10 * * * * * ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock




    every ten minutes send me email with command not found



    regards
     
  2. paolorulez

    paolorulez Guest

    any help?




    :rolleyes: :p
     
  3. paolorulez

    paolorulez Guest

    root@ [~]# locate mysql.sock
    /usr/local/lib/mysql.sock
    /var/lib/mysql/mysql.sock
    root@ [~]# cd /tmp
    root@ [/tmp]# ln -s /var/lib/mysql/mysql.sock mysql.sock
    ln: `mysql.sock': File exists
    root@ [/tmp]#



    is correct

    why crontab error?
     
  4. Shannon17

    Shannon17 Active Member

    Joined:
    Sep 20, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brisbane, Australia
    i had the same thing happen to me about a day ago i went to cpanel support form they said they just reinstall mysql if thats anyhelp if not try cpanel support as i post on here no reply
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I've no idea why you would want to try and recreate that symlink every 10 minutes, but if you really want to, the problem is here:

    There are too many asterix's. It should read:

    Certainly no need to re-install MySQL for this ;)
     
  6. paolorulez

    paolorulez Guest

    ok i have fixed, thanks for your help




    set every 60 minutes now, if mysql.sock has gone my crontab fix it :D
     
  7. llew

    llew Registered

    Joined:
    Oct 5, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Is this the best solution to the "MySQL Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" problem? My mysql.sock disappears from the tmp directory once a while which causes all my php/mysql sites to be down.
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It would certainly help in that case, yes. though finding the underlying reason as to why that symlink is being deleted would be best.
     
  9. paolorulez

    paolorulez Guest

Loading...

Share This Page