Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Checking PostGIS installation
- ... found
- Checking postgresql database connection
- Checking mongodb database connection
- Traceback (most recent call last):
- File "./scripts/check-db.py", line 36, in <module>
- check_mongo()
- File "./scripts/check-db.py", line 23, in check_mongo
- from noc.lib.nosql import get_db
- File "/opt/noc/lib/nosql.py", line 18, in <module>
- import pymongo
- File "/opt/noc/lib/python2.7/site-packages/pymongo/__init__.py", line 90, in <module>
- from pymongo.common import (MIN_SUPPORTED_WIRE_VERSION,
- File "/opt/noc/lib/python2.7/site-packages/pymongo/common.py", line 19, in <module>
- from pymongo import read_preferences
- File "/opt/noc/lib/python2.7/site-packages/pymongo/read_preferences.py", line 19, in <module>
- from pymongo.errors import ConfigurationError
- File "/opt/noc/lib/python2.7/site-packages/pymongo/errors.py", line 17, in <module>
- from bson.errors import *
- ImportError: No module named bson.errors
- upgrade-user: : Unable to connect to mongodb database. Check noc.conf settings
- Terminating
- root@noc:/opt/noc# mongo noc
- MongoDB shell version: 2.6.3
- > db.getUsers()
- [
- {
- "_id" : "noc.noc",
- "user" : "noc",
- "db" : "noc",
- "roles" : [
- {
- "role" : "dbOwner",
- "db" : "noc"
- }
- ]
- }
- ]
- > db.getName()
- noc
- # noc.conf
- [nosql_database]
- # MongoDB database name
- name = noc
- # MongoDB database user
- user = noc
- # MongoDB database password
- password = noc
- #
- host =
- #
- port =
- # Mongo replica set name for HA configuration
- replica_set =
- root@noc:/opt/noc# mongostat
- connected to: 127.0.0.1
- insert query update delete getmore command flushes mapped vsize res faults locked db idx miss % qr|qw ar|aw netIn netOut conn time
- *0 *0 *0 *0 0 1|0 0 2.44g 5.05g 70m 0 noc:0.0% 0 0|0 0|0 62b 3k 1 09:53:32
- *0 *0 *0 *0 0 1|0 0 2.44g 5.05g 70m 0 test:0.0% 0 0|0 0|0 62b 3k 1 09:53:33
- *0 *0 *0 *0 0 1|0 0 2.44g 5.05g 70m 0 test:0.0% 0 0|0 0|0 62b 3k 1 09:53:34
- *0 *0 *0 *0 0 1|0 0 2.44g 5.05g 70m 0 test:0.0% 0 0|0 0|0 62b 3k 1 09:53:35
- ^C
- root@noc:/opt/noc# mongo -u noc -p noc noc
- MongoDB shell version: 2.6.3
- connecting to: noc
- > exit
- bye
- root@noc:/opt/noc# mongo -u noc -p noctest noc
- MongoDB shell version: 2.6.3
- connecting to: noc
- 2015-04-13T09:54:49.135+0600 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210
- exception: login failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement