Advertisement
Guest User

2015-04-13, TSergey, upgrade error

a guest
Apr 12th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. Checking PostGIS installation
  2. ... found
  3. Checking postgresql database connection
  4. Checking mongodb database connection
  5. Traceback (most recent call last):
  6. File "./scripts/check-db.py", line 36, in <module>
  7. check_mongo()
  8. File "./scripts/check-db.py", line 23, in check_mongo
  9. from noc.lib.nosql import get_db
  10. File "/opt/noc/lib/nosql.py", line 18, in <module>
  11. import pymongo
  12. File "/opt/noc/lib/python2.7/site-packages/pymongo/__init__.py", line 90, in <module>
  13. from pymongo.common import (MIN_SUPPORTED_WIRE_VERSION,
  14. File "/opt/noc/lib/python2.7/site-packages/pymongo/common.py", line 19, in <module>
  15. from pymongo import read_preferences
  16. File "/opt/noc/lib/python2.7/site-packages/pymongo/read_preferences.py", line 19, in <module>
  17. from pymongo.errors import ConfigurationError
  18. File "/opt/noc/lib/python2.7/site-packages/pymongo/errors.py", line 17, in <module>
  19. from bson.errors import *
  20. ImportError: No module named bson.errors
  21. upgrade-user: : Unable to connect to mongodb database. Check noc.conf settings
  22. Terminating
  23.  
  24. root@noc:/opt/noc# mongo noc
  25. MongoDB shell version: 2.6.3
  26. > db.getUsers()
  27. [
  28. {
  29. "_id" : "noc.noc",
  30. "user" : "noc",
  31. "db" : "noc",
  32. "roles" : [
  33. {
  34. "role" : "dbOwner",
  35. "db" : "noc"
  36. }
  37. ]
  38. }
  39. ]
  40.  
  41. > db.getName()
  42. noc
  43.  
  44. # noc.conf
  45. [nosql_database]
  46. # MongoDB database name
  47. name = noc
  48. # MongoDB database user
  49. user = noc
  50. # MongoDB database password
  51. password = noc
  52. #
  53. host =
  54. #
  55. port =
  56. # Mongo replica set name for HA configuration
  57. replica_set =
  58.  
  59. root@noc:/opt/noc# mongostat
  60. connected to: 127.0.0.1
  61. insert query update delete getmore command flushes mapped vsize res faults locked db idx miss % qr|qw ar|aw netIn netOut conn time
  62. *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
  63. *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
  64. *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
  65. *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
  66. ^C
  67.  
  68. root@noc:/opt/noc# mongo -u noc -p noc noc
  69. MongoDB shell version: 2.6.3
  70. connecting to: noc
  71. > exit
  72. bye
  73. root@noc:/opt/noc# mongo -u noc -p noctest noc
  74. MongoDB shell version: 2.6.3
  75. connecting to: noc
  76. 2015-04-13T09:54:49.135+0600 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210
  77. exception: login failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement