Services start problem: 'git describe' dependency
- Classifier and correlator не могут быть запущены по причине:
2022-04-18 17:21:59,432 [noc.core.ioloop.util] Setting up default event loop
2022-04-18 17:21:59,500 [noc.core.dcs.base] Resolve near service postgres
2022-04-18 17:21:59,505 [noc.core.dcs.base] Resolved near service postgres to ['10.10.11.21:5432']
2022-04-18 20:21:59,668 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
fatal: unsafe repository ('/opt/noc' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /opt/noc
UNHANDLED EXCEPTION (2022-04-18 20:22:00.005826)
Working directory: /opt/noc
<class 'subprocess.CalledProcessError'>
Command '['git', 'describe', '--tags', '--abbrev=8']' returned non-zero exit status 128.
START OF TRACEBACK
------------------------------------------------------------------------
File: ../../usr/lib/python3.8/subprocess.py (Line: 516)
- git describe падает по причине: https://lore.kernel.org/git/xmqqv8veb5i6.fsf@gitster.g/
WA: sudo -u noc 'git config --global --add safe.directory /opt/noc'
, но это не решает проблемы ручного перезапуска сервиса в случае команды ./noc ctl restart correlator-default:*
- Необходимо продумать отказ от определения версии через git в случае пакета для установки