cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1910
Views
5
Helpful
6
Replies

Upgrade CMX 10.2 to 10.3

julio.vergara
Level 1
Level 1

Hi everybody

i had the CMX 10.2 and i upgrade to 10.3, all the process did as the guide but now i can not login to Web page for the admin and the upgrade.

I only access for SSH and i try the restar de services, reload the vmware but  i can not login.

Some idea so that it can operate correctly again

Thanks

6 Replies 6

patoberli
VIP Alumni
VIP Alumni

Try a different browser, it's maybe a browser cache issue.

Hi

i tried but is unsuccessful, continuos the same problem

Sorry then I am out of ideas. I suggest to make a rollback or a fresh installation and import the backup you created before the upgrade.

I would reach TAC & see if they can help you

Today i fix the CMX, I checked the CMX files, found that I had the version that i wanted to update, try with the command "cmxos upgrade" again and started to perform the whole update process, after installing all the files via CLI check that everything would have been Installed correctly, go toWEB and the CMX was active again and the configuration intact.

json_service_info: {"Name": "iodocs", "Tags": ["cmx.liverpool.com.mx"], "ID": "iodocs", "Port": 3000}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6382", "6382"], "ID": "cache_6382", "Port": 6382}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6383", "6383"], "ID": "cache_6383", "Port": 6383}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6380", "6380"], "ID": "cache_6380", "Port": 6380}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6381", "6381"], "ID": "cache_6381", "Port": 6381}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6385", "6385"], "ID": "cache_6385", "Port": 6385}
json_service_info: {"Name": "influxdb", "Tags": ["cmx.liverpool.com.mx"], "ID": "influxdb", "Port": 8086}
json_service_info: {"Name": "metrics", "Tags": ["cmx.liverpool.com.mx"], "ID": "metrics", "Port": 25826}
json_service_info: {"Tags": ["cmx.liverpool.com.mx"], "ID": "confd", "Name": "confd"}
json_service_info: {"Name": "configuration", "Tags": ["cmx.liverpool.com.mx"], "ID": "configuration", "Port": 6000}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6379", "6379"], "ID": "cache_6379", "Port": 6379}
json_service_info: {"Name": "cache", "Tags": ["cmx.liverpool.com.mx.6378", "6378"], "ID": "cache_6378", "Port": 6378}
json_service_info: {"Name": "haproxy", "Tags": ["cmx.liverpool.com.mx"], "ID": "haproxy", "Port": 80}
json_service_info: {"Name": "matlabengine", "Tags": ["cmx.liverpool.com.mx"], "ID": "matlabengine", "Port": 5577}
json_service_info: {"Name": "hyperlocation", "Tags": ["cmx.liverpool.com.mx"], "ID": "hyperlocation", "Port": 6006}
json_service_info: {"Name": "database", "Tags": ["cmx.liverpool.com.mx"], "ID": "database", "Port": 5432}
json_service_info: {"Name": "nmsplb", "Tags": ["cmx.liverpool.com.mx"], "ID": "nmsplb", "Port": 6001}
before starting update the refcursor
Starting consul
__init___ with PidFile:/opt/cmx/var/run/consul
checking for pid:None
attached to running process and updating pid file
updating pidflile /opt/cmx/var/run/consul
consul:start received
State for Service: consul  is 2
Starting consul Process...
The uid is 500 and euid is 500 and runAsSudo is: False
Running: consul agent -bind 172.22.201.157 -config-file=/opt/cmx/etc/consul.conf -config-dir=/opt/cmx/etc/consul/
__init___ with PidFile:/opt/cmx/var/run/consul
checking for pid:None
checking for pid:None
The cmd is consul agent -bind 172.22.201.157 -config-file=/opt/cmx/etc/consul.conf -config-dir=/opt/cmx/etc/consul/ and file is /opt/cmx/var/log/consul-%Y-%m-%d-stdout.log
started process with pid 27536
checking for pid:27536
p.is_running result:True
updating pidflile /opt/cmx/var/run/consul
consul:check if the service is reachable
Retrying..
Done
Started consul service with PID: 27536
started successfully consul , with pid: 27536 and state 3
Configuring Consul complete
generated service name from class: confd
Configuring Confd
Configuring Confd complete
generated service name from class: database
Configuring database
Setting up config files for Database Installation
No properties file found
generated service name from class: migrateschemas
Migrating schemas
postgres:start received
__init___ with PidFile:/opt/cmx/var/run/postgres
checking for pid:None
attached to running process and updating pid file
updating pidflile /opt/cmx/var/run/postgres
State for Service: postgres  is 2
Starting postgres Process...
The uid is 500 and euid is 500 and runAsSudo is: False
Running: sudo -u postgres -i /usr/pgsql-9.3/bin/postgres -D /opt/cmx/etc/
__init___ with PidFile:/opt/cmx/var/run/postgres
checking for pid:None
checking for pid:None
The cmd is sudo -u postgres -i /usr/pgsql-9.3/bin/postgres -D /opt/cmx/etc/ and file is /opt/cmx/var/log/postgres-%Y-%m-%d-stdout.log
started process with pid 27549
checking for pid:27549
p.is_running result:True
updating pidflile /opt/cmx/var/run/postgres
postgres:check if the service is reachable
Done
Started postgres service with PID: 27549
started successfully postgres , with pid: 27549 and state 3
Waiting 10 seconds for database to finish initializing...
Checking schema versions...
Latest analytics schema is version 24, current is 24
Latest loc schema is version 2, current is 2
Latest msap schema is version 1, current is 1
Latest mse schema is version 35, current is 35
Configuring cache_6378
Configuring cache services
Configuring cache_6378 complete
Configuring cache_6379
Configuring cache services
Configuring cache_6379 complete
Configuring cache_6380
Configuring cache services
Configuring cache_6380 complete
Configuring cache_6381
Configuring cache services
Configuring cache_6381 complete
Configuring cache_6382
Configuring cache services
Configuring cache_6382 complete
Configuring cache_6383
Configuring cache services
Configuring cache_6383 complete
Configuring cache_6385
Configuring cache services
Configuring cache_6385 complete
Configuring qlesspyworker
Checking call: redis-cli -p 6378 ping , with ret code None
redis6378:start received
__init___ with PidFile:/opt/cmx/var/run/redis_6378
checking for pid:None
attached to running process and updating pid file
updating pidflile /opt/cmx/var/run/redis_6378
State for Service: redis6378  is 2
Starting redis6378 Process...
The uid is 500 and euid is 500 and runAsSudo is: False
Running: redis-server /opt/cmx/etc/redis_6378.conf
__init___ with PidFile:/opt/cmx/var/run/redis_6378
checking for pid:None
checking for pid:None
The cmd is redis-server /opt/cmx/etc/redis_6378.conf and file is /opt/cmx/var/log/redis_6378-%Y-%m-%d-stdout.log
started process with pid 27578
checking for pid:27578
p.is_running result:True
updating pidflile /opt/cmx/var/run/redis_6378
redis6378:check if the service is reachable
Checking call: redis-cli -p 6378 ping , with ret code None
Done
Started redis6378 service with PID: 27578
started successfully redis6378 , with pid: 27578 and state 3
Job: RedisCacheCleanupTask is already scheduled
Job: RedisCleanupTask is already scheduled
Job: DBAdminDailyTask is already scheduled
Job: CassandraCleanupTask is already scheduled
Job: AnalyticsDBCleanupTask is already scheduled
Job: SMATweetFetcher is already scheduled
Job: SMATweetProcessor is already scheduled
Job: SMAAggregator is already scheduled
Job: SMACombiner is already scheduled
Configuring qlesspyworker complete
generated service name from class: influxdb
Configuring InfluxDB
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Couldn't open URI: [Errno 111] Connection refused
influxdb:start received
__init___ with PidFile:/opt/cmx/var/run/influxdb
checking for pid:None
attached to running process and updating pid file
updating pidflile /opt/cmx/var/run/influxdb
State for Service: influxdb  is 2
Starting influxdb Process...
The uid is 500 and euid is 500 and runAsSudo is: False
Running: influxdb -config /opt/cmx/etc/influxdb.conf
__init___ with PidFile:/opt/cmx/var/run/influxdb
checking for pid:None
checking for pid:None
The cmd is influxdb -config /opt/cmx/etc/influxdb.conf and file is /opt/cmx/var/log/influxdb-%Y-%m-%d-stdout.log
started process with pid 27585
checking for pid:27585
p.is_running result:True
updating pidflile /opt/cmx/var/run/influxdb
influxdb:check if the service is reachable
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Couldn't open URI: [Errno 111] Connection refused
Retrying..
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Couldn't open URI: [Errno 111] Connection refused
Retrying...
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Couldn't open URI: [Errno 111] Connection refused
Retrying....
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Done
Started influxdb service with PID: 27585
started successfully influxdb , with pid: 27585 and state 3
Stopping influxdb Process...
influxdb:stop received with state3
influxdb:shutting down
before calling sigterm on pid 27585
checking for pid:27585
p.is_running result:True
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Retrying..
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Retrying...
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Retrying....
Checking URI: http://127.0.0.1:8086/db?u=root&p=root
Couldn't open URI: [Errno 111] Connection refused
Done
Successfully shutdown influxdb Process.
Configuring InfluxDB complete
generated service name from class: cassandra
Configuring cassandra
Setting up config files for Cassandra Database Installation
No properties file found
generated service name from class: migratecassandraschemas
Migrating schemas
cassandra:start received
__init___ with PidFile:/opt/cmx/var/run/cassandra
checking for pid:None
attached to running process and updating pid file
updating pidflile /opt/cmx/var/run/cassandra
State for Service: cassandra  is 2
Starting cassandra Process...
The uid is 500 and euid is 500 and runAsSudo is: False
Running: /opt/apache-cassandra-2.1.13/bin/cassandra -f  
__init___ with PidFile:/opt/cmx/var/run/cassandra
checking for pid:None
checking for pid:None
The cmd is /opt/apache-cassandra-2.1.13/bin/cassandra -f   and file is /opt/cmx/var/log/cassandra-%Y-%m-%d-stdout.log
started process with pid 27603
checking for pid:27603
p.is_running result:True
updating pidflile /opt/cmx/var/run/cassandra
cassandra:check if the service is reachable
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Done
Started cassandra service with PID: 27603
started successfully cassandra , with pid: 27603 and state 3
Waiting 10 seconds for database to finish initializing...
Checking schema versions...
schema.version=12

 schema loc
 query result [u'loc', 12]
Latest loc schema is version 12, current is 12
schema.version=4

 schema mse
 query result [u'mse', 4]
Latest mse schema is version 4, current is 4
schema.version=1

 schema msap
 query result [u'msap', 1]
Latest msap schema is version 1, current is 1
schema.version=16

 schema analytics
 query result [u'analytics', 1]
Latest analytics schema is version 16, current is 1
Some schemas are outdated, upgrading...
Analytics schema is out of date, attempting to upgrade now
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_1_to_2.cql

successfully imported cql
Migration from 1 to 2 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_2_to_3.cql

successfully imported cql
Migration from 2 to 3 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_3_to_4.cql

successfully imported cql
Migration from 3 to 4 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_4_to_5.cql

successfully imported cql
Migration from 4 to 5 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_5_to_6.cql

successfully imported cql
Migration from 5 to 6 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_6_to_7.cql

successfully imported cql
Migration from 6 to 7 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_7_to_8.cql

successfully imported cql
Migration from 7 to 8 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_8_to_9.cql

successfully imported cql
Migration from 8 to 9 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_9_to_10.cql

successfully imported cql
Migration from 9 to 10 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_10_to_11.cql

successfully imported cql
Migration from 10 to 11 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_11_to_12.cql

successfully imported cql
Migration from 11 to 12 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_12_to_13.cql

successfully imported cql
Migration from 12 to 13 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_13_to_14.cql

successfully imported cql
Migration from 13 to 14 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_14_to_15.cql

successfully imported cql
Migration from 14 to 15 on schema analytics succeeded
/opt/cmx/sw/dbmigration/analytics/upgrade/upgrade_15_to_16.cql

successfully imported cql
Migration from 15 to 16 on schema analytics succeeded
generated service name from class: metrics
Configuring metrics
Configuring metrics complete
generated service name from class: haproxy
Configuring HA-Proxy
Configuring Configuration
Setting up config files for Configuration Engine Configuration
No properties file found
Config file template: /opt/cmx/sw/confd/templates/static/configuration.events didn't exist
Configuring Configuration complete
Configuring iodocs
Setting up config files for Iodocs Configuration
No properties file found
Configuring iodocs complete
Configuring analytics
Setting up config files for analytics
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/analytics.events didn't exist
configuring analytics complete
Configuring location
Setting up config files for location
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/location.events didn't exist
configuring location complete
Configuring matlabengine
Setting up config files for matlabengine
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/matlabengine.events didn't exist
configuring matlabengine complete
Configuring nmsplb
Setting up config files for nmsplb
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/nmsplb.events didn't exist
configuring nmsplb complete
Configuring connect
Setting up config files for connect
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/connect.events didn't exist
configuring connect complete
Configuring hyperlocation
Setting up config files for hyperlocation
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/hyperlocation.events didn't exist
configuring hyperlocation complete
generated service name from class: cron
Scheduling Cron Jobs
Configuring common
Setting up config files for common
No default properties
No properties for node_type
Config file template: /opt/cmx/sw/confd/templates/static/common.server didn't exist
configuring common complete
Starting nodeagent Process...
Done
Started nodeagent service with PID: 28021
CMX NG install is now complete.

** Finished running nodesetup
** Starting CMX services.

Retrying..
Retrying...
Retrying....
Done
The nodeagent service is currently running with PID: 28021
Done
The consul service is already running with pid: 27536
Job: RedisCacheCleanupTask is already scheduled
Job: RedisCleanupTask is already scheduled
Job: DBAdminDailyTask is already scheduled
Job: CassandraCleanupTask is already scheduled
Job: AnalyticsDBCleanupTask is already scheduled
Job: SMATweetFetcher is already scheduled
Job: SMATweetProcessor is already scheduled
Job: SMAAggregator is already scheduled
Job: SMACombiner is already scheduled
The qlesspyworker service is already running with pid: 28161
Done
The cassandra service is already running with pid: 27603
Starting iodocs Process...
Done
Started iodocs service with PID: 28345
The redis6382 service is already running with pid: 28199
The redis6383 service is already running with pid: 28206
The redis6380 service is already running with pid: 28213
The redis6381 service is already running with pid: 28220
The redis6385 service is already running with pid: 28227
The influxdb service is already running with pid: 28234
The collectd service is already running with pid: 28249
The confd service is already running with pid: 28284
The redis6379 service is already running with pid: 28295
Done
The redis6378 service is already running with pid: 27578
Done
The haproxy service is already running with pid: 28318
Done
The postgres service is already running with pid: 27549
Starting analytics Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Done
Started analytics service with PID: 28380
Running in production mode
Starting connect Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Done
Started connect service with PID: 28515
Running in production mode
Starting location Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Retrying.......
Done
Started location service with PID: 28645
Running in production mode
Starting configuration Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Retrying.......
Retrying........
Retrying.........
Retrying..........
Retrying...........
Done
Started configuration service with PID: 28844
Running in production mode
Starting matlabengine Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Done
Started matlabengine service with PID: 29092
Running in production mode
Starting hyperlocation Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Done
Started hyperlocation service with PID: 29217
Running in production mode
Starting nmsplb Process...
Retrying..
Retrying...
Retrying....
Retrying.....
Retrying......
Retrying.......
Done
Started nmsplb service with PID: 29367
Running in production mode
Starting monit: Starting Monit 5.14 daemon with http interface at [*]:2812
Monit start delay set -- pause for 240s
[  OK  ]
** Finished starting CMX services.

Done

thanks for your help

julio.vergara
Level 1
Level 1

I check the status for SSH and try to run this comand cmxctl start –a, but send me this error

[cmxadmin@cmx ~]$ cmxctl start –a
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/opt/cmx/sw/lib/pymodules/cmxctl/__main__.py", line 279, in <module>
    cmxctl(obj=obj)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 934, in invoke
    sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 506, in make_context
    self.parse_args(ctx, args)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 767, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1244, in handle_parse_result
    value = self.full_process_value(ctx, value)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1202, in full_process_value
    value = self.process_value(ctx, value)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1192, in process_value
    return self.type_cast_value(ctx, value)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1181, in type_cast_value
    return _convert(value, (self.nargs != 1) + bool(self.multiple))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1179, in _convert
    return self.type(value, self, ctx)
  File "/usr/local/lib/python2.7/site-packages/click/types.py", line 37, in __call__
    return self.convert(value, param, ctx)
  File "/usr/local/lib/python2.7/site-packages/click/types.py", line 139, in convert
    (value, ', '.join(self.choices)), param, ctx)
  File "/usr/local/lib/python2.7/site-packages/click/types.py", line 67, in fail
    raise BadParameter(message, ctx=ctx, param=param)
  File "/usr/local/lib/python2.7/site-packages/click/exceptions.py", line 69, in __init__
    UsageError.__init__(self, message, ctx)
  File "/usr/local/lib/python2.7/site-packages/click/exceptions.py", line 38, in __init__
    ClickException.__init__(self, message)
  File "/usr/local/lib/python2.7/site-packages/click/exceptions.py", line 13, in __init__
    Exception.__init__(self, message.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 16: ordinal not in range(128)

Review Cisco Networking products for a $25 gift card