Upgrade ClusterControl to Latest Version

Follow

Comments

32 comments

  • Avatar
    Chris

    Hi

    Thanks for a tip. The issue was lack of disk space, now it`s ok. But I have now two instances of CC: old one working well, and new one empty! How to import old settings?

    KR

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    Strange, mysql is running and accessible by the user cmon.

     

    0
    Comment actions Permalink
  • Avatar
    Johan

    @principe  - hold on, trying to reproduce this.

    0
    Comment actions Permalink
  • Avatar
    Chris

    Hi guys

     

    I`ve tried to upgrade old 1.3.6 CC but it fails. How can I get new CC on already running cluster (Percona and 1.3.6 CC)? 

     

    KR

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    Stopping cmon:  ok

    Starting cmon: Checking for default config file at /etc/cmon.cnf: found

    Deprecated parameter: nodaemon

       To start cmon in nodaemon mode:    ./cmon -d

    found pidfile /var/run/cmon.pid with pid 23372

    Going to daemonize.. - cmon will write a log in /var/log/cmon.log from now

    Starting cmon  : ok

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Johan

    @principe -  can you do on the controller:

    service cmon restart

    What do you get then?

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi Principe,

    Did you install garbd, haproxy, keepalived from scripts or from the UI?

    Best regards

    Johan

    0
    Comment actions Permalink
  • Avatar
    Henry Snow

    I'm having the same issue as Principe. Logs look fairly similar.

    0
    Comment actions Permalink
  • Avatar
    Niko

    Hey,

    I tried to update software with automatic scripts but for some reason it only shows status but won't start updating:

    ./s9s_upgrade_cmon --latest

    ===================================

          Collecting Information

    ** Current CMON version: 1.2.4

    ** Latest CMON version: 1.2.4a

    ** Latest CCUI version: 1.2.4

    ClusterControl is already up-to-date.

    How can I update from 1.2.4 to 1.2.4a?

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    Can you post the /var/log/cmon.log from any of the problematic agents?

    Also can you do on the same problematic node you get the /var/log/cmon.log from:

    ps -ef |grep cmon  

     

    If you don't want to put it here, please open a support ticket.

    Best regards

    Johan

     

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    Hi, simply solved rolling back to the previous version and evertything now works without problems.

    Thanks for your help

    Regards

    Principe

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    That is fine. The UI and the CMON API (a RESTful API) is still on 1.2.4, but the ClusterControl server needed a patch (fixes for the comments  above saying upgrade did not work) and became 1.2.4a .

    Best regards

    Johan

    0
    Comment actions Permalink
  • Avatar
    David Majchrzak

    Tried updating to 1.24 but it seems to fail a bit:

    ./s9s_upgrade_cmon --latest

    ===================================

    Collecting Information

    Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    ** Current CMON version: 1.2.3d

    ** Latest CMON version: 1.2.4

    New version found.

    ** Proceed with upgrading? (Y/n): Y

    Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    ===================================

    Backup CMON controller

    Creating backup directory: /tmp/s9s_backup_2013-11-20-11_33_22 [ OK ]

    Backup CMON schema Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    [ OK ]

    Backup CMON cron [ OK ]

    Backup CMON web app [ OK ]

    Backup ClusterControl web app [ OK ]

    Backup ClusterControl schema Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

    [ OK ]

    Backup CMON share directory [ OK ]

    Backup CMON configuration files [ OK ]

    Backup CMON log file [ OK ]

    Backup CMON init.d [ OK ]

    Backup my.cnf [ OK ]

    Backup S9S binary cp: omitting directory `/usr/bin/s9s_repo'

    [ Backup S9S binary ]

    [ ERROR ]

    Upgrade failed. Unfortunately, the detected backup is incomplete. Kindly proceed with manual restoration.

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    That is strange, i can't reproduce this upgrading from 1.2.3 to 1.2.4, what version did you upgrade from?

    Thanks,

    Johan

    0
    Comment actions Permalink
  • Avatar
    Ashraf Sharif

    Hi David,

    It seems like you executed the script under /usr/bin directory. Try again by removing /usr/bin/s9s_repo directory and restart again the script from other location (it is recommended to run the script from your $HOME)

    Regards,

    Ashraf

    0
    Comment actions Permalink
  • Avatar
    Henry Snow

    I'm going from 1.2.2 using the same upgrade process as above. Hostnames and IPs have been modified.

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    Any suggestions for me?

    Regards

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    Please do:

    ./s9s_upgrade_cmon --latest --force

    Make sure you have the latest s9s_upgrade_cmon first:

    cd s9s-admin

    git pull

    cd ccadmin

    ./s9s_upgrade_cmon ... 

     

     

     

    0
    Comment actions Permalink
  • Avatar
    David Majchrzak

    @Ashraf Sharif: This was actually straight from /root/s9s-admin/ccadmin/

    The problem was an empty directory /usr/bin/s9s-repo

    Deleted the directory and the script continued and upgraded successfully.

     

    0
    Comment actions Permalink
  • Avatar
    Niko

    Hey,

    I did. Now UI says:

    |
    ClusterControl UI version:
    | 1.2.4
    |
    |
    ClusterControl Server Version: 
    | 1.2.4a
    |
    |
    CMON API Version:
    | 1.2.4
    |

    How do I update rest?

    0
    Comment actions Permalink
  • Avatar
    Johan

    Did you restart cmon on the controller?

    service cmon restart

    Wait a few minutes, then what do you see in Manage -> Processes (please send screen shot + /var/log/cmon.log from the controller)? 

    Best regards

    Johan

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    Hi, I upgrade the new version and everything seems to be done. The only think that I don't understand is the message "Agent is not responding for .... ", this message is for garbd, haproxy, and keepalived hosts, for cluster nodes it's all right.

    I try to run service cmon restart but it continue to show me this message.

    What I can do? Any suggestions?

    Thanks

    Principe Orazio

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    From 1.2.3 with this command:

    To upgrade to the latest version, clone the Git repo in ClusterControl host:

    $ git clone https://github.com/severalnines/s9s-admin.git

     If you already have that clone, it is very important you update it:

    $ cd s9s-admin

    $ git pull

    Navigate to the s9s_upgrade_cmon script folder:

    $ cd s9s-admin/ccadmin

     

    Start the upgrade process:

    ./s9s_upgrade_cmon --latest

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    Hi, I installed all of them from the UI during the trial period

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    It looks quite fine (there is no mysql server running on 192.168.2.11?) .

    Can you go to Manage -> Processes and take a screenshot of it?

    Best regards

    Johan

     

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    Did you update the UI?

    BR

    johan

    0
    Comment actions Permalink
  • Avatar
    Ashraf Sharif

    Hi,

    For the new UI, you need to install it by go to http://cluster_control_ip/install . Enter required details like MySQL root password, email address, password and most importantly take note the ClusterControl API Access Token. Click "Install" and follow the integration wizard. Once completed, you can access the new UI accessible at https://cluster_control_ip/clustercontrol.

    For example of upgrade, you can refer to our blog post here:  http://www.severalnines.com/blog/how-upgrade-clustercontrol.

    0
    Comment actions Permalink
  • Avatar
    Principe Orazio

    I have done what described up in this page:

     

    ./s9s_upgrade_cmon --latest

    0
    Comment actions Permalink
  • Avatar
    Johan

    Can you do on the controller:

    mysql -ucmon -p -h127.0.0.1

    use cmon;

    select * from cmon.ext_proc \G

    select * from cmon.hosts \G

    Best regards

    Johan

     

     

    0
    Comment actions Permalink
  • Avatar
    Ashraf Sharif

    Hi,

    Did you mean version 1.1.36? Can you clone again the git repo and restart the upgrade process with following command:

    $ ./s9s_upgrade_cmon --latest 2>&1 | tee upgrade.log

    And attach the upgrade.log to us via support ticket.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk