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.

I get this error

Discussion in 'General Discussion' started by Chase, Aug 1, 2003.

  1. Chase

    Chase Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Can't call method "login" on an undefined value at /scripts/getremotecpmove line 23, line 1.

    cPanel.net Support Ticket Number:
     
  2. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    usually means you have the username/pass wrong or it cant reach the other server.

    cPanel.net Support Ticket Number:
     
  3. Chase

    Chase Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Well OK that problem is fixed now many of us have this.

    Can't connect to local MySQL server through socket '/var/tmp/mysql.sock'


    MySQL has been stopped and started and stil have problems.

    cPanel.net Support Ticket Number:
     
  4. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    rm -f /tmp/mysql.sock
    rm -f /var/tmp/mysql.sock
    /etc/init.d/mysql stop
    rm -f /var/lib/mysql/mysql.sock
    /etc/init.d/mysql start
    ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
    ln -s /var/lib/mysql/mysql.sock /var/tmp/mysql.sock

    cPanel.net Support Ticket Number:
     
  5. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    We get this error on new server.

    DBI connect('mysql:localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 42 0 / 20

    I have tried the above and we still get the same thing in cpanel.

    cPanel.net Support Ticket Number:
     
  6. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    fixed

    cPanel.net Support Ticket Number:
     
  7. kmsd

    kmsd Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Thank you, worked perfectly for this error:

    Can't connect to the database server. MySQL said:
    Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2)

    :).
     
  8. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    This does not work for me. Any suggestions?
     
  9. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    NNNils: what error are you receiveing a mysql error or the account transfer problem.
     
  10. NNNils

    NNNils Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    580
    Likes Received:
    0
    Trophy Points:
    16
    Datacenter fixed it for me.
     
  11. pingo

    pingo Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    430
    Likes Received:
    0
    Trophy Points:
    16
    rm -f /tmp/mysql.sock
    rm -f /var/tmp/mysql.sock
    /etc/init.d/mysql stop
    rm -f /var/lib/mysql/mysql.sock
    /etc/init.d/mysql start
    ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
    ln -s /var/lib/mysql/mysql.sock /var/tmp/mysql.sock


    It neither did work for me.

    John
     
  12. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
  13. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    This problem showed up for us after a reboot from a new kernel install. It will not allow us to remove the /var/tmp/mysql.sock file though so we can complete the rest of the process here.

    rm -f /var/tmp/mysql.sock
    rm: cannot unlink `/var/tmp/mysql.sock': Operation not permitted
     
Loading...

Share This Page