CMON 1.4.1 released - upgrade instructions

Follow

Comments

47 comments

  • Avatar
    Alex

    Hi

    How did you perform the upgrade? Try logout and then login again from the web application. It should have automatically updated the clusters with the correct RPC keys.

    If that still doesn't work then

    • Check that your <webroot>/clustercontrol/bootstrap.php contains a parameter called RPC_TOKEN

    • If you only have a single /etc/cmon.cnf file then check that you have a parameter called rpc_key with the same value as the above RPC_TOKEN

    • If you have /etc/cmon.d/cmon_N.cnf file(s) then check that those files have a rpc_key parameter that matches below output

    mysql -ucmon -p -e "select id as clusterid, token from dcps.clusters"

     

     Best Regards,

    Alex

    1
    Comment actions Permalink
  • Avatar
    Joachim Heidenreich

    Works like a charm on Debian 7 

    0
    Comment actions Permalink
  • Avatar
    Александр Васин

    on this step it brokes:

    [root@salt1 ccadmin]# mysql -uroot -psomepwd -h127.0.0.1 < /usr/share/cmon/cmon_db_mods-1.2.5-1.2.6.sql

    ERROR 1060 (42S21) at line 13: Duplicate column name 'retry_count'

    0
    Comment actions Permalink
  • Avatar
    Alex

    Hi 

    There is unfortunately a minor mistake in that sql file. Just ignore the error by applying --f (force). 

    Do

    mysql --force -uroot -p -h127.0.0.1 < /usr/share/cmon/cmon_db_mods-1.2.5-1.2.6.sql

    or comment below line out in the file and run the import again.

    -- alter table simple_email add column retry_count integer NOT NULL DEFAULT '0';

     

    Best Regards,

    Alex

    0
    Comment actions Permalink
  • Avatar
    Александр Васин

    If I do that. here is next trouble.

    mysql -f -h127.0.0.1 -ucmon -** < /usr/share/cmon/cmon_db.sql

    mysql -f -h127.0.0.1 -ucmon -** < /usr/share/cmon/cmon_data.sql

    mysql -f -h127.0.0.1 -ucmon -** < /usr/share/cmon/cmon_db_mods-1.2.5-1.2.6.sql\

    ERROR 1060 (42S21) at line 2: Duplicate column name 'compressed'

    ERROR 1060 (42S21) at line 13: Duplicate column name 'parent_id'

     

    and it's fresh install with 

    install-cc.sh

     

    than I upgrade it to 1.2.5 with 

    ./s9s_upgrade_cmon --latest

     

    and than I trying this manual upgrade...

     

     

    0
    Comment actions Permalink
  • Avatar
    Александр Васин

    and what about full cmon.cnf options list?

    http://www.severalnines.com/docs/clustercontrol-administration-guide/components/cmon-controller/passwordless-ssh

    talks me that if I use another port I must right something like 

    ssh_options='-p 51515'

    ssh_identity=/home/sm1ly/.ssh/id_rsa.pub

     

    but when I try to start cmon it fails, cause:

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

    Starting cmon :cmon: ssh_options = -p 51515 is invalid. Option name is not recognized.

    Exiting...

    ok

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi,

    Please set:

    ssh_port=51515

    Best regards

    johan

    0
    Comment actions Permalink
  • Avatar
    David Majchrzak

    Upgraded to latest 1.2.6 -260 from 1.2.4 following the rpm manual procedure. However after clearing cache and logging in again it seems to want me to register the cluster, create a new one or add existing. Checking cmon.log shows me that the hosts are checking in normally and nothing seems to be wrong there.

    Is that intended? Do we need to register it again using the API key? (which I'll have to look for)

    0
    Comment actions Permalink
  • Avatar
    David Majchrzak

    Nevermind, I pressed Cluster Registrations link on top and then Cluster and it came back.. 

    0
    Comment actions Permalink
  • Avatar
    Aigars Polis

    Hi,

     

    Command to add repository for Debian is not correct ! When I execute I get only OK in "/etc/apt/sources.list.d/s9s-repo.list".

    ##########

    cat /etc/apt/sources.list.d/s9s-repo.list

    OK

    ############

    Can you please provide correct command how to add repo for Debian?

    0
    Comment actions Permalink
  • Avatar
    Aigars Polis

    I also got errors when importing data in DB.

    mysql -uroot -p -f cmon < /usr/share/cmon/cmon_db_mods-1.2.8-1.2.9.sql

    Enter password:

    ERROR 1054 (42S22) at line 5: Unknown column 'component' in 'simple_alarm'

     

    mysql -uroot -p < /usr/share/cmon/cmon_data.sql

    Enter password:

    ERROR 1054 (42S22) at line 14: Unknown column 'cid' in 'field list'

    0
    Comment actions Permalink
  • Avatar
    Aigars Polis

    Correct script for Debian should be:

                                              

    mysql -uroot -p -f cmon < /usr/share/cmon/cmon_db.sql

    mysql -uroot -p -f cmon < /usr/share/cmon/cmon_db_mods-1.2.6-1.2.7.sql

    mysql -uroot -p -f cmon < /usr/share/cmon/cmon_db_mods-1.2.7-1.2.8.sql

    mysql -uroot -p -f cmon < /usr/share/cmon/cmon_db_mods-1.2.8-1.2.9.sql

    mysql -uroot -p -f cmon < /usr/share/cmon/cmon_data.sql

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi Aigars,

    We will look into it, particularly about the repo setup, but the sql scripts seems already to be written in the correct order.

    Best regards

    Johan

    0
    Comment actions Permalink
  • Avatar
    Graham Green

    That worked.

    I'm also seeing a different UI for the "Add Existing Cluster" feature too which I wasn't before.

    Thanks for your help!

    0
    Comment actions Permalink
  • Avatar
    Tobi Schulz

    Just upgraded from 1.2.8 to 1.2.9 and now I am stuck in redirect loops.

    Deleted all cookies from the domain, even restarted the box just in case - still redirects forever after login.

    We are using nginx on CentOS following exactly the instructions given here:

    http://www.severalnines.com/blog/how-configure-clustercontrol-run-nginx

    Have there been changes to the file/url structure? (Guess so...)

    TIA!!

    0
    Comment actions Permalink
  • Avatar
    Tobi Schulz

    Just for clarification, this is what the nginx access log gives:

    62.xxx.xx.xxx - - [18/Mar/2015:22:32:18 +0100] "GET /clustercontrol/ HTTP/1.1" 302 5 "-" "Mozilla/5.0"

    62.xxx.xx.xxx - - [18/Mar/2015:22:32:18 +0100] "GET /clustercontrol/users/login HTTP/1.1" 302 5 "-" "Mozilla/5.0"

    62.xxx.xx.xxx - - [18/Mar/2015:22:32:19 +0100] "GET /clustercontrol/ HTTP/1.1" 302 5 "-" "Mozilla/5.0"

    62.xxx.xx.xxx - - [18/Mar/2015:22:32:19 +0100] "GET /clustercontrol/users/login HTTP/1.1" 302 5 "-" "Mozilla/5.0"

    and so on and so on.

    Seems like the login mechanism has changed or something along those lines.

    0
    Comment actions Permalink
  • Avatar
    Krzysztof Ksiazek

    Hi Tobi,

    Please add following rewrite rules to the server section of your nginx config file. In 1.2.9 couple of .htaccess files were added and nginx doesn't support them.

    location / {

    rewrite ^/$ /app/webroot/ break;

    rewrite ^(.*)$ /app/webroot/$1 break;

    }

    location /app/webroot/ {

    if (!-e $request_filename){

    rewrite ^(.*)$ /index.php?/$1 break;

    }

    }

    0
    Comment actions Permalink
  • Avatar
    Tobi555

    You're a star!

    That works fine now!

     

    0
    Comment actions Permalink
  • Avatar
    Damodar Chettani

    Hi Johan,

    I have 1.2.9.657 Cluster control. When i executed the procedure I found a few error:

    Cannot open: clustercontrol-controller-1.2.10-727-x86_64.rpm. Skipping.

    When I checked my actual version I see: 

    |
    ClusterControl UI version:
    | 1.2.10.5dbcb85
    |
    |
    ClusterControl CMON Version: 
    | 1.2.9.713
    |
    |
    CMON API Version:
    | 1.2.10.4103a2a
    |

    It is correct?

    0
    Comment actions Permalink
  • Avatar
    Petr Hrabal

    Hi,

    in Debian manual section there is a typo:

    wget -O cmon-controller-1.2.10-727-x86_64.rpm http://www.severalnines.com/downloads/cmon/cmon-controller-1.2.10-727-x86_64.rpm

    Ofc it should be .deb

    also did someone have problem with those error? (using wheezy update point 7.8)

    dpkg: unrecoverable critical error, aborting:

    File List package "netcat-traditional" does not contain the final newline

    dpkg: unrecoverable critical error, aborting:

    File List package "net-tools" does not contain the final newline

    Petr

     

     

    0
    Comment actions Permalink
  • Avatar
    Aigars

    Hi,

     

    After upgrade I got message "cluster is not running. Please, verify RPC_TOKEN settings". Where I should look for this setting?

    0
    Comment actions Permalink
  • Avatar
    Aigars

    Hi,

     

    Updated was performed with APT.

    Looks like my original cmon.cnf file was replaced in upgrade procedure. When I restored old one then ClusterController started up without errors.

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    Joachim Heidenreich

    Hi,

    I had the same problem updating to cmon 1.3.0 with APT on Ubuntu. Performing the steps Alex posted fixed the error.

    BR

    0
    Comment actions Permalink
  • Avatar
    Petr Hrabal

    Hi, Upgraded to latest version and hit a strange glitch 

    my galera cluster is graphed normaly but its reported as failed.

    colums Status,wsrep cluster size,local quee, flowcontrol and cert deps distance seems to be empty/undefined...

    In reality cluster size is 3 and all nodes are in primary state. Please note that I was upgrading galera as well and I am now on lastest percona version for 5.6

    Please advise where/how to check what is wrong.

    BR petr

     

    0
    Comment actions Permalink
  • Avatar
    Marc Bernard

    I also confirm everything works fine under Centos 5.9 64bit after update.

    0
    Comment actions Permalink
  • Avatar
    Johan

    Here is a complete set of mods files from 1.1.10 to 1.1.22:

     

     

    wget -O cmon_db_mods-1.1.10-1.1.11.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.10-1.1.11.sql

    wget -O cmon_db_mods-1.1.11-1.1.12.sql http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.11-1.1.12.sql

    wget -O cmon_db_mods-1.1.12-1.1.13.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.12-1.1.13.sql

    wget -O cmon_db_mods-1.1.13-1.1.14.sql http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.13-1.1.14.sql

    wget -O cmon_db_mods-1.1.14-1.1.15.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.14-1.1.15.sql

    wget -O cmon_db_mods-1.1.15-1.1.16.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.15-1.1.16.sql

    wget -O cmon_db_mods-1.1.16-1.1.17.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.16-1.1.17.sql

    wget -O cmon_db_mods-1.1.17-1.1.18.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.17-1.1.18.sql

    wget -O cmon_db_mods-1.1.19-1.1.20.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.19-1.1.20.sql

    wget -O cmon_db_mods-1.1.18-1.1.19.sql http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.18-1.1.19.sql

    wget -O cmon_db_mods-1.1.21-1.1.22.sql   http://www.severalnines.com/downloads/cmon/cmon_db_mods-1.1.21-1.1.22.sql

     

     

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.10-1.1.11.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.11-1.1.12.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.12-1.1.13.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.13-1.1.14.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.14-1.1.15.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.15-1.1.16.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.16-1.1.17.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.17-1.1.18.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.19-1.1.20.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.18-1.1.19.sql

    mysql -uroot -p cmon < ../../repo/cmon_db_mods-1.1.21-1.1.22.sql

    0
    Comment actions Permalink
  • Avatar
    Laurent

    Hi Johan,

    Thanks for these upgrade instructions, could you please provide the 32bits tarball please ?

    Regards,

    Laurent 

    0
    Comment actions Permalink
  • Avatar
    Johan

    Hi Laurent, 

    Sure we can build 32-bit. 

    Also, pay attention to set the (the bold lines in the example cmon.cnf controller file above)

    os=redhat|debian 

    cmon_core_dir=/path/to/deployment_package

    Before restarting with the new version.

     

    Best regards,

    Johan 

    0
    Comment actions Permalink
  • Avatar
    Ethan Hall

    Hello,

    I'm still on 1.1.24.  Are there any DB mods from there up tp 1.1.27?

    Thanks!

    Ethan

    0
    Comment actions Permalink
  • Avatar
    Marc Bernard

    There is an error in your post for RedHat / Centos - This is how the line to get the website package should read: 

    wget -O cmon-www-1.1.33-1.noarch.rpm http://www.severalnines.com/downloads/cmon/cmon-www-1.1.3*3*-1.noarch.rpm

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk