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.

Odd issue with new installs

Discussion in 'General Discussion' started by OffbeatAdam, May 17, 2010.

  1. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    Greetings Folks,

    Recently (in the last week) we've had our server kicks having an interesting issue while installing.

    On our automated installs, we capture the exit status of the latest script in order to maintain appropriate logging and alerting in the event of a failure. Only recently, the script always returns an error, although we can't seem to figure out where exactly the error occurs.

    The exact command:

    latest || exit 1

    I've examined both the /var/cpanel/updatelogs/* and /var/log/cpanel-install-thread0.log logfiles, and I can't seem to find anything particularly wrong that would cause bash to detect that latest failed.

    The other interesting thing is, cpanel installs fine.

    Any insight would be appreciated. Are there other locations for cpanel installation logs, or a place where errors themselves may be directed?
     
  2. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    Interestingly enough, digging through the logs I do find at least one area where the console may receive bad exit status.

    dbdimp.c:4324: error: 'imp_sth_t' has no member named 'use_mysql_use_result'
    dbdimp.c:4328: error: 'imp_sth_t' has no member named 'warning_count'
    dbdimp.c:4340: error: 'imp_sth_t' has no member named 'result'
    dbdimp.c:4340: warning: passing argument 3 of 'mysql_st_FETCH_internal' makes integer from pointer without a cast
    dbdimp.c:4340: error: too many arguments to function 'mysql_st_FETCH_internal'
    dbdimp.c: In function 'mysql_bind_ph':
    dbdimp.c:4469: error: 'imp_sth_t' has no member named 'params'
    dbdimp.c:4469: warning: passing argument 1 of 'bind_param' from incompatible pointer type
    dbdimp.c: In function 'mysql_db_reconnect':
    dbdimp.c:4614: error: 'MYSQL' undeclared (first use in this function)
    dbdimp.c:4614: warning: statement with no effect
    dbdimp.c:4614: error: expected ';' before 'save_socket'
    dbdimp.c:4624: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4624: error: 'CR_SERVER_GONE_ERROR' undeclared (first use in this function)
    dbdimp.c:4624: warning: comparison between pointer and integer
    dbdimp.c:4628: error: 'imp_dbh_t' has no member named 'auto_reconnect'
    dbdimp.c:4642: error: 'save_socket' undeclared (first use in this function)
    dbdimp.c:4642: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4642: warning: statement with no effect
    dbdimp.c:4643: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4643: warning: passing argument 3 of '__builtin___memcpy_chk' makes integer from pointer without a cast
    dbdimp.c:4643: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4643: warning: passing argument 3 of '__memcpy_ichk' makes integer from pointer without a cast
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: warning: passing argument 1 of '__builtin___memset_chk' discards qualifiers from pointer target type
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4644: warning: passing argument 1 of '__memset_ichk' discards qualifiers from pointer target type
    dbdimp.c:4652: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4652: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4653: warning: passing argument 3 of 'mysql_dr_error' makes pointer from integer without a cast
    dbdimp.c:4654: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4654: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4654: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4654: warning: passing argument 1 of '__builtin___memcpy_chk' discards qualifiers from pointer target type
    dbdimp.c:4654: warning: passing argument 3 of '__builtin___memcpy_chk' makes integer from pointer without a cast
    dbdimp.c:4654: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4654: warning: passing argument 1 of '__memcpy_ichk' discards qualifiers from pointer target type
    dbdimp.c:4654: warning: passing argument 3 of '__memcpy_ichk' makes integer from pointer without a cast
    dbdimp.c:4655: error: 'imp_dbh_t' has no member named 'stats'
    dbdimp.c:4655: error: request for member 'auto_reconnects_failed' in something not a structure or union
    dbdimp.c:4655: error: invalid lvalue in increment
    dbdimp.c:4655: warning: statement with no effect
    dbdimp.c:4664: error: 'imp_dbh_t' has no member named 'stats'
    dbdimp.c:4664: error: request for member 'auto_reconnects_ok' in something not a structure or union
    dbdimp.c:4664: error: invalid lvalue in increment
    dbdimp.c:4664: warning: statement with no effect
    dbdimp.c: In function 'mysql_db_quote':
    dbdimp.c:4824: warning: implicit declaration of function 'mysql_real_escape_string'
    dbdimp.c:4824: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c: In function 'mysql_db_last_insert_id':
    dbdimp.c:4847: error: 'imp_dbh_t' has no member named 'pmysql'
    dbdimp.c:4847: warning: passing argument 2 of 'Perl_sv_2mortal' makes pointer from integer without a cast
    make: *** [dbdimp.o] Error 1

    This usually happens because MySQL is not installed.

    This raises the question though, is MySQL installed before or after the CPAN stuff runs?

    I'm pretty sure that the MySQL install by RPM happens afterwards, but the 'removal' happens before.

    This is about the only reasonable moment that I can see the status being returned as 1 instead of 0 (success)
     
  3. OffbeatAdam

    OffbeatAdam Active Member

    Joined:
    Jan 24, 2006
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    San Antonio, TX
    After further investigation I find that cpanel DOES in fact remove MySQL prior to the CPAN install and does NOT install MySQL until after.

    I'm not sure about the logic on that one. There are definitely a couple perl modules that would require MySQL in order to be built successfully.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Thank you for the information and detail provided. We have received your support request (ticket submission) and are examining the described issue and surrounding circumstances. For the time being we will keep you updated in the ticket to better track the reported issue. I will monitor the status and update this thread where applicable or upon confirmation of resolution.
     
Loading...

Share This Page