Advertisement
Guest User

2014-06-10, TSergey, error upgrade

a guest
Jun 10th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. UPDATE RefBook Q.931 Call Clearings
  2. UPDATE RefBook Выписка из реестра Российской системы нумерации
  3. UPDATE RefBook IEEE OUI
  4. UPDATE RefBook Российский План Нумерации
  5. UPDATE RefBook SMI Network Management Private Enterprise Codes
  6. UPDATE RefBook E.164 Country Prefixes
  7. UPDATE RefBook ISO 3166 Country Codes
  8. Syncronize MIBs
  9. Synchnonizing MIBs
  10. creating CISCO-IETF-PW-MIB
  11. Traceback (most recent call last):
  12. File "manage.py", line 45, in <module>
  13. execute_from_command_line(sys.argv)
  14. File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
  15. utility.execute()
  16. File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
  17. self.fetch_command(subcommand).run_from_argv(self.argv)
  18. File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
  19. self.execute(*args, **options.__dict__)
  20. File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
  21. output = self.handle(*args, **options)
  22. File "/opt/noc/fm/management/commands/sync-mibs.py", line 38, in handle
  23. self.sync_mibs(force=options["force"])
  24. File "/opt/noc/fm/management/commands/sync-mibs.py", line 91, in sync_mibs
  25. self.create_mib(f.read())
  26. File "/opt/noc/fm/management/commands/sync-mibs.py", line 124, in create_mib
  27. mib.save()
  28. File "/opt/noc/lib/python2.7/site-packages/mongoengine/document.py", line 236, in save
  29. raise OperationError(message % unicode(err))
  30. mongoengine.queryset.OperationError: Tried to save duplicate unique keys (E11000 duplicate key error index: noc.noc.mibs.$name_1 dup key: { : "CISCO-IETF-PW-TC-MIB" })
  31. upgrade-user: : sync-mibs failed
  32. Terminating
  33. upgrade complete
  34. root@noc:/opt/noc#
  35.  
  36.  
  37. # не помогло:
  38. mongo noc
  39. db
  40. db.noc.mibs.remove()
  41. db.noc.mibdata.runCommand("compact");
  42. db.noc.mibpreferences.remove();
  43. db.noc.mibpreferences.runCommand("compact");
  44. ./noc sync-mib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement