Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if there is an error when OpenStack power off and restart ceilometer to get data?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail what to do about the error in getting data from OpenStack power-off restart ceilometer. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

View the log file:

Root@controller:/var/log/ceilometer# cat ceilometer-api.log2017-05-31 13 root@controller:/var/log/ceilometer# cat ceilometer-api.log2017 5715 31.620 23249 TRACE ceilometer.api.hooks ConnectionFailure: could not connect to controller:27017: [Errno 111] ECONNREFUSED2017-05-31 13 could not connect to controller:27017 5731.620 23249 TRACE ceilometer.api.hooks 2017-05-31 13 13 root@controller:/var/log/ceilometer# cat ceilometer-api.log2017 31.749 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller'] 27017)] 2017-05-31 13 Errno 57 WARNING ceilometer.storage.mongo.utils 31.750 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED.2017-05-31 13 13 14 14 14 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller' 27017)] 2017-05-31 13 Errno 57 WARNING ceilometer.storage.mongo.utils 41.751 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED.2017-05-31 13 13 15 15 14 14 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller'] 27017)] 2017-05-31 13 could not connect to controller:27017 57 WARNING ceilometer.storage.mongo.utils 51.752 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111l] ECONNREFUSED.2017-05-31 1313 14 58 could not connect to controller:27017 01.762 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller'] 27017)] 2017-05-31 13 Errno 58 WARNING ceilometer.storage.mongo.utils 01.762 23249 [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED.

An error judged to be Mongodb according to the log file

Root@controller:/var/log/mongodb# cat mongodb.log* SERVER RESTARTED * Wed May 31 11 build info: MongoDB starting: pid=1779 port=27017 dbpath=/var/lib/mongodb 64-bit host=controllerWed May 31 11 build info: Linux orlo 3.2.0-58-generic # 88-53.786 [initandlisten] db version v2.4.9Wed May 31 11 Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x 86'64 BOOST_LIB_VERSION=1_54Wed May 31 11 BOOST_LIB_VERSION=1_54Wed May 31 11 initandlisten 25 BOOST_LIB_VERSION=1_54Wed May 53.786 [initandlisten] allocator: tcmallocWed May 31 11 Visa 2515 53.786 [initandlisten] options: {bind_ip: "192.168.1.170" Config: "/ etc/mongodb.conf", dbpath: "/ var/lib/mongodb", logappend: "true", logpath: "/ var/log/mongodb/mongodb.log", nojournal: "true", noprealloc: "true" Smallfiles: "true"} * Unclean shutdown detected.**Please visit http://dochub.mongodb.org/core/repair for recovery instructions.*Wed May 31 1115 2515 53.797 [initandlisten] exception in initAndListen: 12596 old lock file TerminatingWed May 31 11:25:53.797 dbexit: Wed May 31 11:25:53.797 [initandlisten] shutdown: going to close listening sockets...Wed May 31 11:25:53.797 [initandlisten] shutdown: going to flush diaglog...Wed May 31 11:25:53.797 [initandlisten] shutdown: going to close sockets...Wed May 31 11:25:53.797 [initandlisten] shutdown: waiting for fs preallocator...Wed May 31 11:25:53.797 [initandlisten] shutdown: closing all files. .. Wed May 31 11 closeAllFiles 25 dbexit 53.797 [initandlisten] dbexit () finishedWed May 31 11 dbexit: really exiting now

You can see that the error is Unclean shutdown detected. Then according to this Baidu search method, the solution remembers to modify the database file to mongdb users and groups

This is the end of the article on "what to do if there is an error in getting data from OpenStack power-off restart ceilometer". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report