foxroot Опубликовано 20 марта, 2015 · Жалоба Добрый день! подскажите решение одной проблемы. Имеется сервер с операционой системой linux, на нем крутиться программный комплекс NOC. на сервере пропало питание потому появилось в результате сам сервер загружаетс а вот NOC нет. Загрузка происходит за счет срипта #!/bin/sh cd /opt/noc /opt/noc/scripts/noc-launcher.py start noc-launcher.py работает на Python. после выполнения скрипта в top появляются записи 6651 noc 20 0 0 0 0 Z 34 0.0 0:01.03 python <defunct> 6654 noc 20 0 0 0 0 Z 34 0.0 0:01.03 python <defunct> 6656 noc 20 0 0 0 0 Z 34 0.0 0:01.03 python <defunct> 6657 noc 20 0 109m 23m 3448 R 33 0.1 0:01.00 python 6650 noc 20 0 0 0 0 Z 32 0.0 0:00.99 python <defunct> 3896 noc 20 0 127m 20m 3488 S 27 0.1 2:32.78 python 6655 noc 20 0 0 0 0 Z 25 0.0 0:00.77 python <defunct> 6717 noc 20 0 111m 22m 3540 R 21 0.1 0:00.65 python 6716 noc 20 0 89744 15m 3216 R 19 0.1 0:00.58 python 6719 noc 20 0 87812 16m 3188 R 19 0.1 0:00.58 python 6728 noc 20 0 143m 22m 2092 R 13 0.1 0:00.40 python 6730 noc 20 0 143m 22m 2092 R 12 0.1 0:00.38 python 6721 noc 20 0 143m 22m 2084 R 12 0.1 0:00.36 python 6734 noc 20 0 143m 22m 2092 R 9 0.1 0:00.28 python при этом NOC не запускается. Подскажите может кто сталкивался с подобной проблемой? Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
foxroot Опубликовано 20 марта, 2015 · Жалоба вот что выходит если смотреть логи ./scripts/noc-activator.py -f start /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. 2015-03-20 11:51:44,801 Running activator 'default' 2015-03-20 11:51:44,802 Setting up 'select' polling method 2015-03-20 11:51:44,802 Set up select() poller 2015-03-20 11:51:44,803 Loading profile classes 2015-03-20 11:51:44,803 Loading ProfileRegistry 2015-03-20 11:51:47,466 Loading ScriptRegistry 2015-03-20 11:51:47,572 [Activator(0x20a4990)]<None> ==> IDLE 2015-03-20 11:51:47,573 [Activator(0x20a4990)]<IDLE> set_timeout(3) 2015-03-20 11:51:47,574 [Activator(0x20a4990)]<IDLE> Loading private ssh key from 'etc/ssh/id_rsa' 2015-03-20 11:51:47,636 [Activator(0x20a4990)]<IDLE> Loading public ssh key from 'etc/ssh/id_rsa.pub' 2015-03-20 11:51:47,641 Running socket factory 2015-03-20 11:51:50,653 [Activator(0x20a4990)]<IDLE> Timeout expired 2015-03-20 11:51:50,653 [Activator(0x20a4990)]<IDLE> event(timeout) 2015-03-20 11:51:50,653 [Activator(0x20a4990)]<IDLE> ==> CONNECT 2015-03-20 11:51:50,654 [Activator(0x20a4990)]<CONNECT> set_timeout(10) 2015-03-20 11:51:50,654 register_socket(<noc.sa.activator.activator_socket.ActivatorSocket object at 0x24b0c10>,None) 2015-03-20 11:51:50,655 [ActivatorSocket(0x24b0c10)] Initializing socket 2015-03-20 11:51:50,656 [ActivatorSocket(0x24b0c10)] Connecting 127.0.0.1:19701 2015-03-20 11:51:50,657 [Activator(0x20a4990)]<CONNECT> event(refused) 2015-03-20 11:51:50,658 [Activator(0x20a4990)]<CONNECT> ==> IDLE 2015-03-20 11:51:50,658 unregister_socket(<noc.sa.activator.activator_socket.ActivatorSocket object at 0x24b0c10>) 2015-03-20 11:51:50,658 [Activator(0x20a4990)]<IDLE> event(close) 2015-03-20 11:51:50,658 [Activator(0x20a4990)]<IDLE> set_timeout(3) 2015-03-20 11:51:53,673 [Activator(0x20a4990)]<IDLE> Timeout expired 2015-03-20 11:51:53,673 [Activator(0x20a4990)]<IDLE> event(timeout) 2015-03-20 11:51:53,673 [Activator(0x20a4990)]<IDLE> ==> CONNECT 2015-03-20 11:51:53,674 [Activator(0x20a4990)]<CONNECT> set_timeout(10) 2015-03-20 11:51:53,674 register_socket(<noc.sa.activator.activator_socket.ActivatorSocket object at 0x24b32d0>,None) 2015-03-20 11:51:53,674 [ActivatorSocket(0x24b32d0)] Initializing socket 2015-03-20 11:51:53,675 [ActivatorSocket(0x24b32d0)] Connecting 127.0.0.1:19701 2015-03-20 11:51:53,675 [Activator(0x20a4990)]<CONNECT> event(refused) 2015-03-20 11:51:53,675 [Activator(0x20a4990)]<CONNECT> ==> IDLE 2015-03-20 11:51:53,676 unregister_socket(<noc.sa.activator.activator_socket.ActivatorSocket object at 0x24b32d0>) 2015-03-20 11:51:53,676 [Activator(0x20a4990)]<IDLE> event(close) 2015-03-20 11:51:53,676 [Activator(0x20a4990)]<IDLE> set_timeout(3) 2015-03-20 11:51:56,689 [Activator(0x20a4990)]<IDLE> Timeout expired 2015-03-20 11:51:56,689 [Activator(0x20a4990)]<IDLE> event(timeout) 2015-03-20 11:51:56,689 [Activator(0x20a4990)]<IDLE> ==> CONNECT 2015-03-20 11:51:56,690 [Activator(0x20a4990)]<CONNECT> set_timeout(10) 2015-03-20 11:51:56,690 register_socket(<noc.sa.activator.activator_socket.ActivatorSocket object at 0x24b3490>,None) 2015-03-20 11:51:56,690 [ActivatorSocket(0x24b3490)] Initializing socket 2015-03-20 11:51:56,691 [ActivatorSocket(0x24b3490)] Connecting 127.0.0.1:19701 2015-03-20 11:51:56,691 [Activator(0x20a4990)]<CONNECT> event(refused) 2015-03-20 11:51:56,691 [Activator(0x20a4990)]<CONNECT> ==> IDLE Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
zi_rus Опубликовано 20 марта, 2015 · Жалоба <CONNECT> event(refused) есть два варианта 1) SAE не запустился (noc-sae демон) 2) в веб заведен активатор, но привязанный ACL не разрешает подключения, поэтому сае сбрасывает подключение Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
foxroot Опубликовано 20 марта, 2015 · Жалоба Добый день, zi_rus да действительно sae не запустился так как noc-launcher.py не запустился вот лог ./scripts/noc-launcher.py -f start 2015-03-20 13:44:06,660 Reading config for noc-scheduler[#0]: etc/noc-scheduler.conf 2015-03-20 13:44:06,660 Reading config for noc-web[#0]: etc/noc-web.conf 2015-03-20 13:44:06,661 Reading config for noc-sae[#0]: etc/noc-sae.conf 2015-03-20 13:44:06,661 Reading config for noc-activator[#0]: etc/noc-activator.conf 2015-03-20 13:44:06,662 Reading config for noc-activator[#1]: etc/noc-activator.conf 2015-03-20 13:44:06,663 Reading config for noc-activator[#2]: etc/noc-activator.conf 2015-03-20 13:44:06,664 Reading config for noc-activator[#3]: etc/noc-activator.conf 2015-03-20 13:44:06,664 Reading config for noc-activator[#4]: etc/noc-activator-corpnet.conf 2015-03-20 13:44:06,665 Reading config for noc-activator[#5]: etc/noc-activator-corpnet.conf 2015-03-20 13:44:06,666 Reading config for noc-activator[#6]: etc/noc-activator-corpnet.conf 2015-03-20 13:44:06,667 Reading config for noc-activator[#7]: etc/noc-activator-corpnet.conf 2015-03-20 13:44:06,668 Reading config for noc-classifier[#0]: etc/noc-classifier.conf 2015-03-20 13:44:06,668 Reading config for noc-correlator[#0]: etc/noc-correlator.conf 2015-03-20 13:44:06,668 Reading config for noc-notifier[#0]: etc/noc-notifier.conf 2015-03-20 13:44:06,669 Reading config for noc-probe[#0]: etc/noc-probe.conf 2015-03-20 13:44:06,669 Reading config for noc-discovery[#0]: etc/noc-discovery.conf 2015-03-20 13:44:06,670 Syncronizing contrib Syncronizing contrib apps django is in sync (version 1.3.1) django-tagging is in sync (version 0.3.1) south is in sync (version 0.7.3) coverage is in sync (version 3.5.1) protobuf is in sync (version 2.4.1) pyasn1 is in sync (version 0.1.2) pysnmp is in sync (version 4.2.1) python-creole is in sync (version 0.2.4) docutils is in sync (version 0.7) Pygments is in sync (version 1.2.2) Jinja2 is in sync (version 2.2.1) Sphinx is in sync (version 1.0.7) mongoengine is in sync (version 0.6.1) tornado is in sync (version 2.2) 2015-03-20 13:44:06,796 contrib syncronized 2015-03-20 13:44:06,797 Launching noc-scheduler[#0] 2015-03-20 13:44:06,799 Daemon noc-scheduler[#0] started as PID 11470 2015-03-20 13:44:06,800 Launching noc-web[#0] 2015-03-20 13:44:06,802 Daemon noc-web[#0] started as PID 11471 2015-03-20 13:44:06,803 Launching noc-sae[#0] 2015-03-20 13:44:06,805 Daemon noc-sae[#0] started as PID 11472 2015-03-20 13:44:06,806 Launching noc-activator[#0] 2015-03-20 13:44:06,809 Daemon noc-activator[#0] started as PID 11473 2015-03-20 13:44:06,810 Launching noc-activator[#1] 2015-03-20 13:44:06,812 Daemon noc-activator[#1] started as PID 11474 2015-03-20 13:44:06,813 Launching noc-activator[#2] 2015-03-20 13:44:06,816 Daemon noc-activator[#2] started as PID 11475 2015-03-20 13:44:06,817 Launching noc-activator[#3] 2015-03-20 13:44:06,819 Daemon noc-activator[#3] started as PID 11476 2015-03-20 13:44:06,819 Launching noc-activator[#4] 2015-03-20 13:44:06,821 Daemon noc-activator[#4] started as PID 11477 2015-03-20 13:44:06,821 Launching noc-activator[#5] 2015-03-20 13:44:06,823 Daemon noc-activator[#5] started as PID 11478 2015-03-20 13:44:06,824 Launching noc-activator[#6] 2015-03-20 13:44:06,825 Daemon noc-activator[#6] started as PID 11479 2015-03-20 13:44:06,826 Launching noc-activator[#7] 2015-03-20 13:44:06,827 Daemon noc-activator[#7] started as PID 11480 2015-03-20 13:44:06,828 Launching noc-classifier[#0] 2015-03-20 13:44:06,830 Daemon noc-classifier[#0] started as PID 11481 2015-03-20 13:44:06,831 Launching noc-correlator[#0] 2015-03-20 13:44:06,833 Daemon noc-correlator[#0] started as PID 11482 2015-03-20 13:44:06,834 Launching noc-notifier[#0] 2015-03-20 13:44:06,837 Daemon noc-notifier[#0] started as PID 11483 2015-03-20 13:44:06,838 Launching noc-probe[#0] 2015-03-20 13:44:06,841 Daemon noc-probe[#0] started as PID 11484 2015-03-20 13:44:06,842 Launching noc-discovery[#0] 2015-03-20 13:44:06,845 Daemon noc-discovery[#0] started as PID 11485 /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. Traceback (most recent call last): File "./scripts/noc-activator.py", line 18, in <module> Activator().process_command() File "/opt/noc/sa/activator/activator.py", line 115, in __init__ Daemon.__init__(self) File "/opt/noc/lib/daemon.py", line 82, in __init__ self.load_config() File "/opt/noc/lib/daemon.py", line 141, in load_config backupCount=self.config.getint("main", "logfiles") File "/usr/lib64/python2.6/logging/handlers.py", line 107, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 59, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 819, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 838, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/noc/noc-activator.5.log' /opt/noc/contrib/lib/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. Traceback (most recent call last): File "./scripts/noc-activator.py", line 18, in <module> Activator().process_command() File "/opt/noc/sa/activator/activator.py", line 115, in __init__ Daemon.__init__(self) File "/opt/noc/lib/daemon.py", line 82, in __init__ self.load_config() File "/opt/noc/lib/daemon.py", line 141, in load_config backupCount=self.config.getint("main", "logfiles") File "/usr/lib64/python2.6/logging/handlers.py", line 107, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 59, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 819, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 838, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/noc/noc-activator.0.log' Traceback (most recent call last): File "./scripts/noc-activator.py", line 18, in <module> Activator().process_command() File "/opt/noc/sa/activator/activator.py", line 115, in __init__ Daemon.__init__(self) File "/opt/noc/lib/daemon.py", line 82, in __init__ self.load_config() File "/opt/noc/lib/daemon.py", line 141, in load_config backupCount=self.config.getint("main", "logfiles") File "/usr/lib64/python2.6/logging/handlers.py", line 107, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 59, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 819, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 838, in _open Traceback (most recent call last): File "./scripts/noc-activator.py", line 18, in <module> Activator().process_command() File "/opt/noc/sa/activator/activator.py", line 115, in __init__ Daemon.__init__(self) stream = open(self.baseFilename, self.mode) File "/opt/noc/lib/daemon.py", line 82, in __init__ IOError: [Errno 13] Permission denied: '/var/log/noc/noc-activator.4.log' self.load_config() File "/opt/noc/lib/daemon.py", line 141, in load_config backupCount=self.config.getint("main", "logfiles") File "/usr/lib64/python2.6/logging/handlers.py", line 107, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 59, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 819, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 838, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/noc/noc-activator.6.log' Traceback (most recent call last): File "./scripts/noc-activator.py", line 18, in <module> Activator().process_command() File "/opt/noc/sa/activator/activator.py", line 115, in __init__ Daemon.__init__(self) File "/opt/noc/lib/daemon.py", line 82, in __init__ self.load_config() Traceback (most recent call last): File "/opt/noc/lib/daemon.py", line 141, in load_config File "./scripts/noc-activator.py", line 18, in <module> Activator().process_command() File "/opt/noc/sa/activator/activator.py", line 115, in __init__ backupCount=self.config.getint("main", "logfiles") File "/usr/lib64/python2.6/logging/handlers.py", line 107, in __init__ Daemon.__init__(self) File "/opt/noc/lib/daemon.py", line 82, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 59, in __init__ self.load_config() File "/opt/noc/lib/daemon.py", line 141, in load_config logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 819, in __init__ backupCount=self.config.getint("main", "logfiles") File "/usr/lib64/python2.6/logging/handlers.py", line 107, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 59, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 819, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 838, in _open StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 838, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/noc/noc-activator.2.log' stream = open(self.baseFilename, self.mode) Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
zi_rus Опубликовано 20 марта, 2015 · Жалоба Permission denied: '/var/log/noc/noc-activator.6.log' поправить права Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
foxroot Опубликовано 23 марта, 2015 · Жалоба к сожалению ничего не работает. права я подправил. у меня есть следующие файлы backup noc-db-2015-03-09-10-31.dump noc-etc-2014-01-01-13-26.tar.gz noc-mongo-2015-03-16-10-33.tar.gz есть подозрение что noc-launcher не запускается так как есть какая то ошибка в базе данных pgsql можно ли из этих данных что нибудь восстановить? может кто то сталкивался ? Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
zi_rus Опубликовано 24 марта, 2015 · Жалоба все можно воссатновить, там обычный дамп постгресовской базы, но я не вижу ни одной причины почему дело в ней, а не где-то еще Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...