DX NetOps

 View Only
Expand all | Collapse all

Spectrum Upgrade Error - 10.3

  • 1.  Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 01:04 PM

    Hello !

     

    Someone is getting error to upgrade spectrum to 10.3 version ?

     

    I try several times and in all components (Oneclick and Spectro Server) the upgrade fail under mysql.cus script 

     

    ********** Started: Wed Aug 29 11:32:15 2018 **********
    running Custom Script Install-Tools/CUS/mysql.cus
    Error(s) occurred. Please see D:/Spectrum/Install-Tools/LOGS/10.3.0.0.341_20180829/mysql.log.

    Script Install-Tools/CUS/mysql.cus has FAILED

     

     

    Now I have only one of my 3 Oneclick servers working fully with restful services (http://yourservername/spectrum/restful/heartbeat ) to integrate with UIM. 



  • 2.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 29, 2018 01:28 PM

    Thiago,

     

    I have not upgraded yet, but since you mentioned "to integrate with UIM", have you noticed the Spectrum/UIM integration requires a new version of spectrumgtw probe (8.66) which is not GA yet?

     

    CA Spectrum and CA UIM - CA Spectrum 10.3 Documentation

     

    About the error you are facing, have you verified the checksum of downloaded media to make sure it is not compromised?

     

    Rgs,

    Fernando



  • 3.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 01:45 PM

    Galbier Hello !

     

    I send one e-mail directly to you regarding probe version 

     

    Regards 



  • 4.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 01:33 PM

    The system and logs should be analyzed further

    Can you open a ticket with Support so we can take a look?

     

    Upload the installation logs for us when creating.

     

    Thanks!



  • 5.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 01:44 PM

    Matthew, 

     

    I already did that - 01178971

     

    I upload also to the case the logs generated by getSpectrumInfo.sh lite

     

    Regards 



  • 6.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 29, 2018 01:34 PM

    Hi Thiago,

    What's the output in this file:

    Error(s) occurred. Please see D:/Spectrum/Install-Tools/LOGS/10.3.0.0.341_20180829/mysql.log.

    Cheers

    Jay



  • 7.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 01:43 PM

    Jason, 

     

    Here is the output 

     

    ******* Begin Installation of the Distributed Data Manager *******


    ******* Upgrading mysql *******

    Stopping the mysql service
    ******* Starting mysql *******
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Final attempt to reach mysql...
    **^G Error during mysqladmin --defaults-file=D:/Spectrum/mysql/my-spectrum.cnf -uroot ping

     

    Make no sense 



  • 8.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 29, 2018 01:50 PM

    Hi Thiago,

    Are you able to manually start mysql?  If not, look in mysql error log file and/or Windows logs for clues.  If you can manually start it, I’m not sure why the installer can’t but you should be able to get around it by watching the install log and manually starting it before it gets to this point.

    Cheers

    Jay



  • 9.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 01:56 PM

    Jason, 

     

    This is the problem... Mysql is up and running at the installation. (Windows Service) 



  • 10.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 29, 2018 02:00 PM

    Hi Thiago,

                   Ok, so if it will run, the install shuts it down, runs some scripting, then starts it back up.  I don’t know why it’s not able to start it back up, but try manually starting it right before this stage.  See if that works.

     

    Maybe it’s still worth checking the mysql logs and Windows logs for clues.

    Cheers

    Jay



  • 11.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 02:40 PM

    Jason, 

     

    Here is the problem 

     

    mysql> show full processlist\G
    *************************** 1. row ***************************
    Id: 2
    User: root
    Host: localhost:59080
    db: reporting
    Command: Query
    Time: 0
    State: starting
    Info: show full processlist
    1 row in set (0.00 sec)

     

    On the log 

     

    2018-08-29T18:29:07.815909Z 0 [Note] D:/Spectrum/mysql/bin/mysqld.exe: ready for connections.
    Version: '5.7.22-enterprise-commercial-advanced' socket: '' port: 3306 MySQL Enterprise Server - Advanced Edition (Commercial)

     

    How to solve the state to change to running ?

     

    Regards 



  • 12.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 29, 2018 03:29 PM

    Jason, 

     

    For future reference take a look on the case - 01178971

     

    Me and okasi01 is providing some informations to dev team check the beahvior 

     

    The files mysql.exe and mysqladmin.exe was deleted from installation program and do not saved again on the folder 

     

    /specroot/mysql/bin

     

    I copy manually from another server and the installation finish with success 

     

    Regards 



  • 13.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 29, 2018 04:07 PM

    I recall this happening many years ago, but can’t recall what it was (I think it was a Windows issue)…Hopefully Silvio and engineering can figure it out.

    Cheers!

    Jay



  • 14.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 29, 2018 07:49 PM

    Yes that is correct, its a Windows bug, where services will not restart when they are shutdown for some reason. If you look at the mysql.err file, you should see a message stating unable to bind to port 3306.  Microsoft was supposed to release a patch for that . The other work around is to restart the machine, but this will not work in this case.



  • 15.  Re: Spectrum Upgrade Error - 10.3

    Posted Aug 31, 2018 10:01 AM

    Tarun and Jason, 

     

    The problem is not a Windows BUG.

     

    Mahendra find some errors on installation scripts and DEV team will build a new installation package to avoid the errors. 

     

    I found 2 errors 

     

    1 - Error on Mysql.cus script 

     

    2 - Error on Tomcat Files (Regarding RESTFUL services) 

     

    We are now on a webex session doing some tests 

     

    Regards



  • 16.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Aug 31, 2018 10:17 AM

    Hi Thiago,

                   That’s good to know.  Thank you for the update.  Please let us know when it’s resolved.

    Cheers!

    Jay



  • 17.  Re: Spectrum Upgrade Error - 10.3

    Posted Sep 04, 2018 03:20 AM

    Hi Thiago, all.

    Please can you share with us the latest on this?  

    If it's not a Windows-specific install issue(?) - is there a PTF issued yet? We have a Spectrum (on Linux) customer  to upgrade next week and will revert to original plan of 10.2.3 plus the BMP if 10.3 is having a shaky start!

    Cheers, Dan.



  • 18.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Sep 04, 2018 02:18 PM

    This is a Windows specific issue and it is still being researched.

     

    Two major problems are occurring while running the Custom Script Install-Tools/CUS/mysql.cus file in the upgrade - Postinstall process.

     

    A) The mysql.cus script is failing to copy the following new files to the $SPECROOT/mysql/bin/ directory:
    - mysql.exe
    - mysqladmin.exe

     

    Hence the subsequent scripts will also fail, because those files are no longer in $SPECROOT/mysql/bin/ directory.

     

    The following message is logged in the mysql.log file due the new mysqladmin.exe file is not found (Note that MySQL server is up and running):

    Waiting for mysql to start up...
    Waiting for mysql to start up...
    Final attempt to reach mysql...
    **^G Error during mysqladmin --defaults-file=D:/Spectrum/mysql/my-spectrum.cnf -uroot ping

     

    It looks like while the rm (remove) command is still deleting the files, the cp (copy) command is already trying to copy the new files. Hence the new files are not copied and the old files are deleted.

     

    In the $SPECROOT/Install-Tools/CUS/mysql.cus file:
    installlog "******* Removing and copying new mysql/bin dir *******"
    rm -Rf $MYSQL_DIR/bin >> /dev/null 2>&1
    cp -Rf $NEW_MYSQL_DIR/bin $MYSQL_DIR/

     

    In the postinst.hhmm file:
    ********** Started: Tue Aug 28 17:23:16 2018 **********
    running Custom Script Install-Tools/CUS/mysql.cus
    cp: cannot create regular file 'd:/spectrum/mysql/bin/mysql.exe': File exists
    cp: cannot create regular file 'd:/spectrum/mysql/bin/mysqladmin.exe': File exists
    Error(s) occurred. Please see D:/Spectrum/Install-Tools/LOGS/10.3.0.0.341_20180828/mysql.log.

    Script Install-Tools/CUS/mysql.cus has FAILED
    ********** Completed: Tue Aug 28 17:29:00 2018 **********

     

    Workarounds:
    1) Rename the following files from the $SPECROOT/mysql/bin directory prior upgrading the CA Spectrum:
    - mysql.exe
    - mysqladmin.exe

    After the upgrade has finished you can delete the renamed files.

     

    2) Modify mysql.cus file to insert a delay in between rm and cp commands. It is tricky to handle this because we have to modify the script in time, while installing.
    After the upgrade has launched, check the progress of Extracting files, and go to the $SPECROOT/Install-Tools/CUS/ directory and check the mysql.cus file date. Once it has been updated, then quickly open and add "sleep 60" (without quotes) in between lines 533 and 534 and save it.

     

    installlog "******* Removing and copying new mysql/bin dir *******"
    rm -Rf $MYSQL_DIR/bin >> /dev/null 2>&1
    sleep 60
    cp -Rf $NEW_MYSQL_DIR/bin $MYSQL_DIR/


    B) The mysql.cus script is failing to delete the following old file from the $SPECROOT/mysql/bin/ directory:
    - mysqld.exe

     

    Even though the mysqld.exe process is no longer running, the $SPECROOT/mysql/bin/mysqld.exe file cannot be deleted. Another Windows process such as DHCP Client has locked the file.

     

    ********** Started: Fri Aug 31 13:14:08 2018 **********
    running Custom Script Install-Tools/CUS/mysql.cus
    rm: delete file "d:/spectrum/mysql/bin/mysqld.exe" failed: Access is denied.
    rm: delete dir "d:/spectrum/mysql/bin" failed: The process cannot access the file because it is being used by another process.

     

    Workaround:
    Disable Event Log service and reboot the machine to free up the mysqld.exe file.


    This problem is similar to this post at stackoverflow:

    https://stackoverflow.com/questions/5076618/windows-event-log-service-holding-executable-file-handle

     

    I've also run into this issue, so just adding some of my experiences.

    I have a Windows 2008 Service system (have not seen this on 2003 Server), and when I stop my service, and instance of svchost.exe loads the service executable (visible using vmmap.exe or Process Hacker) preventing it from being deleted/overwritten during uninstall/install. The instance of svchost.exe is running the DHCP Client (Dhcp), TCP/IP NetBIOS Helper (lmhosts), and Windows Event Log (EventLog) services.

    In our case, we have created a registry entry to make our service executable an event source. (though I'm unsure exactly why we are doing this, or whether we should be doing this).

    Empirically, if I remove that registry entry before stopping the service, the executable is not loaded by svchost.exe and all is fine. If the service has already been stopped and executable loaded by svchost.exe, restarting the Event Log service (or killing the process) also frees up the executable.

    I'm guessing our service is not well-behaved (perhaps a side effect of being a 32-bit process on 64-bit OS?) or correctly installed, but haven't isolated the issue yet.

    Update: It appears this issue is only happening on HP systems (and not Dell or IBM) which is curious. There are HP-specific management components installed, so perhaps one of them is altering the behavior somehow?


    The problem occurs on the SpectroSERVER and OneClick hosts.

     

    Thanks,

    Silvio



  • 19.  Re: Spectrum Upgrade Error - 10.3

    Posted Sep 11, 2018 05:46 PM

    Hello all, I'm seeing a related issue re: mysql.cus.  I downloaded Spectrum 10.3 GA when it was released in late Aug. I know it's not corrupted because I upgraded a 10.2.3 environment to 10.3 and did a fresh install on another system and it's now also running 10.3  This afternoon, I tried to upgrade another 10.2.3 environment to 10.3  However, the installer has been stuck at "Running customization scripts".  When I View Logs, I see that the pre-installation and installation logs are normal. However, in the post-installation log, it's "stuck" at the following (I'm copying and pasting some prior history as well):

    Script Install-Tools/CUS/j2utl.cus was SUCCESSFUL
    ********** Completed: Tue Sep 11 13:20:33 2018 **********
     
    ********** Started: Tue Sep 11 13:20:33 2018 **********
    running Custom Script Install-Tools/CUS/icmpd.cus
     
    Script Install-Tools/CUS/icmpd.cus was SUCCESSFUL
    ********** Completed: Tue Sep 11 13:20:33 2018 **********
     
    ********** Started: Tue Sep 11 13:20:33 2018 **********
    running Custom Script Install-Tools/CUS/globl.cus
     
    Script Install-Tools/CUS/globl.cus was SUCCESSFUL
    ********** Completed: Tue Sep 11 13:20:33 2018 **********
     
    ********** Started: Tue Sep 11 13:20:33 2018 **********
    running Custom Script Install-Tools/CUS/mysql.cus

     

    The time is in CDT and it's currently 16:44.  So it's been stuck at that portion for over 3 hours.  What do you recommend?  When I run top on that server, it is showing:

    16921 root      20   0 3947348   2.4g   2500 S  31.6 15.3  63:59.31 mysqld

     

    That is the heaviest CPU consuming process on the server.  I'd like to not kill the upgrade.  I'll open a case on it, but wanted to first post on CA Communities.  Thanks.



  • 20.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Sep 11, 2018 05:59 PM

    Hi Princy

     

    As mentioned previously in this thread, the install should be shutting MySQL down to perform the upgrade, then start it back up. In this case it almost seems as if MySQL is not shutting down for the upgrade.

     

    Is there anything logged in /Spectrum/Install-Tools/LOGS/<install date>/mysql.log?

     

    You can see if MySQL is processing some activity:

     

    • Cd to  <SPECROOT>/mysql/bin
    • Log into mysql: mysql -uroot -proot ddmdb
    • At mysql> prompt, run: show full processlist;
    • Take a snapshot of the screen to see what the processes are running

     

    If there is not much running you can try shutting down MySQL manually:

     

    • Cd to <SPECROOT>/bin
    • Run: ./cmdC localhost 2 MYSQL MYSQL.OUT

     

    Is processd also shut down?


    Regards,

    Jay V



  • 21.  Re: Spectrum Upgrade Error - 10.3

    Posted Sep 11, 2018 06:09 PM

    Hi Jay, thanks for the quick reply.

     

    (BTW, I forgot to mention that unlike the original user, this is a RHEL 6 installation and not Windows.)  Yes, there is a mysql.log file and it's pretty large.  Running tail -f on it shows the following:

     

    [spectrum@speclick 10.3.0.0.341_20180911]$ tail -f mysql.log
    2018-09-11T21:59:11.063933Z 0 [Note] ./bin/mysqld: ready for connections.
    Version: '5.7.22-enterprise-commercial-advanced'  socket: '/spectrum/mysql/tmp/mysql.sock'  port: 3306  MySQL Enterprise Server - Advanced Edition (Commercial)
    2018-09-11T21:59:12.018002Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180911 16:59:12
    Waiting for mysql to start up...
    Creating access for spectrum in database ...
    Deleting all remote access to database ...
    Deleting all anonymous database users ...

    ****** Installation of the Distributed Data Manager Complete ******

     

    When I tried running the mysql command you provided, it gives the following error:

     

    [spectrum@speclick ~]$ cd /spectrum/mysql/bin
    [spectrum@speclick bin]$ mysql -uroot -proot ddmdb
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

     

    I'll try the other commands you suggested next.  Thanks again.



  • 22.  Re: Spectrum Upgrade Error - 10.3

    Posted Sep 11, 2018 06:12 PM

    Oh wow, here's another update.  Just as I replied, I saw that tail -f of mysql.log showed this update:

    ...

    2018-09-11T22:05:41.021584Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 180911 17:05:41
    2018-09-11T22:05:42.871836Z 0 [Note] InnoDB: Shutdown completed; log sequence number 277104848810
    2018-09-11T22:05:42.873621Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
    2018-09-11T22:05:42.873634Z 0 [Note] Shutting down plugin 'MEMORY'
    2018-09-11T22:05:42.873652Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
    2018-09-11T22:05:42.873671Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
    2018-09-11T22:05:42.873680Z 0 [Note] Shutting down plugin 'MyISAM'
    2018-09-11T22:05:42.873692Z 0 [Note] Shutting down plugin 'CSV'
    2018-09-11T22:05:42.873697Z 0 [Note] Shutting down plugin 'sha256_password'
    2018-09-11T22:05:42.873700Z 0 [Note] Shutting down plugin 'mysql_native_password'
    2018-09-11T22:05:42.873793Z 0 [Note] Shutting down plugin 'binlog'
    2018-09-11T22:05:42.874549Z 0 [Note] ./bin/mysqld: Shutdown complete

     

    And sure enough, the upgrade finally completed!  That took almost 4 hours, but it finally shutdown MySQL to proceed with the customization scripts.  I guess that must be some sort of bug that it took so long to shut it down to proceed with the upgrade.  But I didn't force anything (like kill any processes) for it to finish.  Hopefully this will help others.



  • 23.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Sep 11, 2018 06:19 PM

    HI Princy

     

    Ok good news the upgrade completed.

     

    Yes I should have mention the Linux command to log into mysql is:

     

    mysql --defaults-file=../my-spectrum.cnf -uroot -proot ddmdb

     

    Its possible MySQL was finishing up process of events, especially if there was some recent trap storms or flood of alarms, etc. Normally should not take 4 hours to shut it down. I would think this is a one-time occurrence.

     

    Regards,

    Jay V

     

     

     

     



  • 24.  Re: Spectrum Upgrade Error - 10.3

    Posted Sep 12, 2018 07:25 PM

    Thanks again Jay.  Yes, that was odd that it took so long and was stuck there.  If it occurs again in the future (such as when upgrading another Spectrum environment), I'll keep your tips in mind.  I guess it wouldn't be dangerous to manually shutdown MySQL as per the command you gave?



  • 25.  Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted Sep 13, 2018 09:05 AM

    Hi Princy

     

    Yes that command is to stop process tickets managed by Processd. Many tickets managed by processd are configure to restart automatically. So, normally stopping mysql, processd will restart it automatically. To prevent that, you can run ./cmdC command to stop the ticket and processd will not restart it. You can then run the start ticket command to startup processes managed by processd as well.

     

    From <SPECROOT>/bin

     

    To start:

     

    > ./launchinstdbapp

    Usage:

     

      launchinstdbapp <hostname> <install partname> <autorestart> <logname>

     

           i.e.: launchinstdbapp localhost SS y VNM.OUT

     

    To stop:

     

    > ./cmdC

    Usage:

     

    cmdC <hostname> <function id> <pid num>/<part name>/<outputfile> <absolute path>

     

         function ids:

                       1 = STOP_TICKET

                       2 = STOP_AUTO_TICKET

                       3 = PAUSE_TICKET

                       4 = CONTINUE_TICKET

                       5 = REQUEST_TICKET_OUTPUT

                       6 = GET_ALL_ACTIVE_TICKETS

                       7 = GET_TICKET_BY_PID

                       8 = GET_TICKET_BY_PART

                       9 = GET_INSTALL_TICKET_BY_PART

                      10 = GET_ALL_INSTALL_TICKETS

                      11 = ATTACH_TICKET_TO_PROCESS

                     666 = KILL_ALL_ACTIVE_TICKETS_AND_EXIT

                     999 = RESTART_PROCESSD

     

           i.e.: cmdc localhost 2 MYQL MYSQL.OUT

     

    To find the <part name> this is listed in the corresponding IDB file located in <SPECROOT>/lib/SDPM/partlist

     

    HTH

    ~Jay V

     



  • 26.  Re: Spectrum Upgrade Error - 10.3

    Posted Sep 13, 2018 03:16 PM

    Thanks again Jay!  This will be good to know for future upgrades and hopefully help out others as well.  Since mysql auto restarts if shutdown manually, once the upgrade finishes, there's nothing additional that would have to be done, I presume.



  • 27.  RE: Re: Spectrum Upgrade Error - 10.3

    Posted May 08, 2020 11:29 AM
    hey Jay, do you have a fix for this with Windows 
    I was trying to do the upgrade today and it failed for the same reasons

    james


  • 28.  RE: Re: Spectrum Upgrade Error - 10.3

    Broadcom Employee
    Posted May 11, 2020 09:24 AM
    Hello James

    Unfortunately your inquiry is not too clear. Being this thread is older and quite long, I would suggest for you to create a new topic/Community Post and provide screenshots/information on the errors you may be getting during install. You can also check the install logs at <SPECROOT>/Install-Tools/LOGS/<timestamp_of_install> - the "postInst" doc would have details on the failed installation.

    ------------------------------
    Senior Support Engineer
    Broadcom
    ------------------------------