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.

Entropy Chat Broken - Session Timed out, Please reload

Discussion in 'General Discussion' started by brianteeter, May 17, 2003.

  1. brianteeter

    brianteeter Well-Known Member

    Joined:
    Jan 6, 2002
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    This is a strange error. We have a client who wants to use Entropy chat and its broken. Here is all we get:

    Session Timed out, Please reload

    See: http://dc2-web5.assortedinternet.com:2084

    Any thoughts, or suggestions are appreciated!

    Thanks - Brian
     
  2. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    We are experiencing the same issue on one of our servers, restarting entropychat does not remedy the problem, any suggestions? Sorry for bumping this post, however I feel it's better than starting a new thread.

    Example is :
    http://www.southwestwoodcrafts.com/entrpychattest.htm

    cPanel.net Support Ticket Number:
     
  3. todd

    todd Registered
    PartnerNOC

    Joined:
    Sep 28, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I found what it is but dont know how to fix it!

    The problem is that the session id entropychat creates for each user is based from the /dev/urandom - and my /dev/urandom is returning junk - like binary who knows what. I am looking around for how to get the /dev/urandom working correctly but any help to get me moving faster would be really appreciated.

    if i cant figure it out i will just drop a bit of script here that makes a random session id with code only

    Thanks!

    Todd

    cPanel.net Support Ticket Number:
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Probably some type of permissions problem.. you should put in a ticket.

    cPanel.net Support Ticket Number:
     
  5. todd

    todd Registered
    PartnerNOC

    Joined:
    Sep 28, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    got tired of looking and customer complaining

    i just hacked entropychat....

    search for /dev/urandom in entropychat and make the below changes - sorry about the hack but i only have energy for a 2 minuter... not really tested either but should be ok...


    #open(UR,"/dev/urandom");
    #read UR,$msid,4096;
    #close(UR);
    #$msid =~ s/\W//g;

    ### speed hack
    my $junk_rand = int(rand(12022342342340));
    $junk_rand .= int(rand(22022342342340));
    $junk_rand .= int(rand(32022342342340));
    $junk_rand .= int(rand(42022342342340));
    $junk_rand .= int(rand(52022342342340));

    #$msid = substr($msid,0,75);
    $msid = substr($junk_rand,0,75);

    hope this helps while we wait...

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
    #5 todd, Jul 12, 2003
    Last edited: Jul 12, 2003
  6. dariofg2

    dariofg2 Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    You bet! The sessionid string is made up of random characters! The following line

    $msid =~ s/\W//g;

    is not filtering out non-word characters, don't ask me why. This does not work in only one of my servers, which has Red Hat 8 installed. Maybe that's related...

    I changed the default code as indicated

    open(UR,"/dev/urandom");
    read UR,$msid,16; #HERE
    close(UR);
    $msid = unpack('h16', $msid); #HERE

    And it worked.

    -Dario

    cPanel.net Support Ticket Number:
     
  7. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Hate to bring a ticket out of the stone age, but just as a FYI I just submitted and had this issue patched in the latest version of cpanel, see the Changelog for details, and it does now work :)

    cPanel.net Support Ticket Number:
     
  8. sreevishnu

    sreevishnu Member

    Joined:
    Aug 18, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    Thank you soo much Dario :D

    Also, Sometimes restarting the Cpanel would not start the daemon for entropychat. So, simply run "/usr/local/cpanel/entropychat/entropychat & " from your command line.

    Have a nice day Guys :)
     
Loading...

Share This Page