Size: a a a

2020 December 15

M

Muslim in NOC Project
consul накрылся пытался перейти с master на stable

journalctl -u consul

дек 15 16:11:41 noc-tower consul[6936]: Server: true (Bootstrap: true)
дек 15 16:11:41 noc-tower consul[6936]: Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, gRPC: -1, DNS: 8600)
дек 15 16:11:41 noc-tower consul[6936]: Cluster Addr: 10.11.185.40 (LAN: 8301, WAN: 8302)
дек 15 16:11:41 noc-tower consul[6936]: Encrypt: Gossip: true, TLS-Outgoing: false, TLS-Incoming: false, Auto-Encrypt-TLS: false
дек 15 16:11:41 noc-tower consul[6936]: ==> Log data will now stream in as it occurs:
дек 15 16:11:41 noc-tower consul[6936]: raft: Failed to restore snapshot 20-376927-1608003639725: Unrecognized msg type 30
дек 15 16:11:41 noc-tower consul[6936]: 2020/12/15 16:11:41 [ERROR] raft: Failed to restore snapshot 20-376927-1608003639725: Unrecognized msg type 30
дек 15 16:11:41 noc-tower consul[6936]: raft: Failed to restore snapshot 20-360541-1607901721622: Unrecognized msg type 30
дек 15 16:11:41 noc-tower systemd[1]: consul.service: main process exited, code=exited, status=1/FAILURE
дек 15 16:11:41 noc-tower systemd[1]: Unit consul.service entered failed state.
дек 15 16:11:41 noc-tower systemd[1]: consul.service failed.
источник

Z

Zek in NOC Project
Ivan EKbfh
чо спросил?
ну ему же пакет более новый не нравится
источник

IE

Ivan EKbfh in NOC Project
Zek
ну ему же пакет более новый не нравится
кому ему?)
источник

IE

Ivan EKbfh in NOC Project
Muslim
consul накрылся пытался перейти с master на stable

journalctl -u consul

дек 15 16:11:41 noc-tower consul[6936]: Server: true (Bootstrap: true)
дек 15 16:11:41 noc-tower consul[6936]: Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, gRPC: -1, DNS: 8600)
дек 15 16:11:41 noc-tower consul[6936]: Cluster Addr: 10.11.185.40 (LAN: 8301, WAN: 8302)
дек 15 16:11:41 noc-tower consul[6936]: Encrypt: Gossip: true, TLS-Outgoing: false, TLS-Incoming: false, Auto-Encrypt-TLS: false
дек 15 16:11:41 noc-tower consul[6936]: ==> Log data will now stream in as it occurs:
дек 15 16:11:41 noc-tower consul[6936]: raft: Failed to restore snapshot 20-376927-1608003639725: Unrecognized msg type 30
дек 15 16:11:41 noc-tower consul[6936]: 2020/12/15 16:11:41 [ERROR] raft: Failed to restore snapshot 20-376927-1608003639725: Unrecognized msg type 30
дек 15 16:11:41 noc-tower consul[6936]: raft: Failed to restore snapshot 20-360541-1607901721622: Unrecognized msg type 30
дек 15 16:11:41 noc-tower systemd[1]: consul.service: main process exited, code=exited, status=1/FAILURE
дек 15 16:11:41 noc-tower systemd[1]: Unit consul.service entered failed state.
дек 15 16:11:41 noc-tower systemd[1]: consul.service failed.
снеси ему /var/consul/...
источник

IE

Ivan EKbfh in NOC Project
Zek
TASK [grafana : Install Debian packages] 01:07fatal: [noc.iqloesungen.de]: FAILED! => {
   "cache_update_time": 1608036744,
   "cache_updated": false,
   "changed": false,
   "rc": 100
}

STDOUT:

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
pfring-dkms : Depends: pfring (= 7.9.0-3296) but 7.9.0-3302 is to be installed
нок пфринги не ставит
источник

IE

Ivan EKbfh in NOC Project
сам сломал — сам чини
источник

Z

Zek in NOC Project
а, блед
источник

Z

Zek in NOC Project
ок, понял
источник

M

Muslim in NOC Project
Ivan EKbfh
снеси ему /var/consul/...
помогло , все проще чем мы думаем 🤦‍♂️ ))
источник

Z

Zek in NOC Project
я чет подумал это в плейбуке проверка
источник

Z

Zek in NOC Project
Ivan EKbfh
в конфиге КХ поменяй таймзону и будет тебе счастье
я тоже так подумал сперва, это не помогает
источник

M

Muslim in NOC Project
ПРОДОЛЖЕНИЯ DEPLOY

TASK [migrate : Synchronize collections] 11:56fatal: [noc-tower]: FAILED! => {
   "changed": true,
   "cmd": [
       "./noc",
       "collection",
       "sync"
   ],
   "delta": "0:00:02.763705",
   "end": "2020-12-15 16:33:05.201562",
   "rc": 1,
   "start": "2020-12-15 16:33:02.437857"
}

STDOUT:

2020-12-15 16:33:02,934 [noc.core.ioloop.util] Setting up asyncio event loop policy
2020-12-15 16:33:02,934 [noc.core.ioloop.util] Setting up default event loop
2020-12-15 16:33:02,989 [noc.core.dcs.base] [mongo] Starting resolver (near=False)
2020-12-15 16:33:02,995 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.11.1.40:27017
2020-12-15 16:33:02,995 [noc.core.dcs.base] [mongo] Stopping resolver
2020-12-15 16:33:02,996 [noc.core.mongo.connection] Connecting to MongoDB {'db': 'noc', 'username': 'noc', 'password': '********', 'authentication_source': 'noc', 'replicaSet': 'noc', 'readPreference': 'secondaryPreferred', 'maxIdleTimeMS': 60000, 'host': 'mongodb://noc:********@10.11.1.40:27017/noc'}
[main.fonts] Synchronizing
[main.glyphs] Synchronizing
[fm.syntaxaliases] Synchronizing
2020-12-15 16:33:03,764 [py.warnings] /opt/noc/core/profile/base.py:72: UserWarning: None: 'pattern_more' '^---MORE---' pattern must be of binary type. Support for text values will be removed in NOC 20.2
 warnings.warn(

[sa.profiles] Synchronizing
[sa.profiles|db90aba7-516b-4355-9da7-775b2ea90f5e] Deleting Linux.Astra
2020-12-15 16:33:03,995 [noc.core.dcs.base] Resolve near service postgres
2020-12-15 16:33:03,998 [noc.core.dcs.base] Resolved near service postgres to ['10.11.1.40:5432']
2020-12-15 16:33:04,296 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
Referred from model sa.ProfileCheckRule: Linux | Astra (id=5fcd2897d2c07344c7b6ba63)

MSG:
non-zero return code
источник

IE

Ivan EKbfh in NOC Project
Muslim
ПРОДОЛЖЕНИЯ DEPLOY

TASK [migrate : Synchronize collections] 11:56fatal: [noc-tower]: FAILED! => {
   "changed": true,
   "cmd": [
       "./noc",
       "collection",
       "sync"
   ],
   "delta": "0:00:02.763705",
   "end": "2020-12-15 16:33:05.201562",
   "rc": 1,
   "start": "2020-12-15 16:33:02.437857"
}

STDOUT:

2020-12-15 16:33:02,934 [noc.core.ioloop.util] Setting up asyncio event loop policy
2020-12-15 16:33:02,934 [noc.core.ioloop.util] Setting up default event loop
2020-12-15 16:33:02,989 [noc.core.dcs.base] [mongo] Starting resolver (near=False)
2020-12-15 16:33:02,995 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.11.1.40:27017
2020-12-15 16:33:02,995 [noc.core.dcs.base] [mongo] Stopping resolver
2020-12-15 16:33:02,996 [noc.core.mongo.connection] Connecting to MongoDB {'db': 'noc', 'username': 'noc', 'password': '********', 'authentication_source': 'noc', 'replicaSet': 'noc', 'readPreference': 'secondaryPreferred', 'maxIdleTimeMS': 60000, 'host': 'mongodb://noc:********@10.11.1.40:27017/noc'}
[main.fonts] Synchronizing
[main.glyphs] Synchronizing
[fm.syntaxaliases] Synchronizing
2020-12-15 16:33:03,764 [py.warnings] /opt/noc/core/profile/base.py:72: UserWarning: None: 'pattern_more' '^---MORE---' pattern must be of binary type. Support for text values will be removed in NOC 20.2
 warnings.warn(

[sa.profiles] Synchronizing
[sa.profiles|db90aba7-516b-4355-9da7-775b2ea90f5e] Deleting Linux.Astra
2020-12-15 16:33:03,995 [noc.core.dcs.base] Resolve near service postgres
2020-12-15 16:33:03,998 [noc.core.dcs.base] Resolved near service postgres to ['10.11.1.40:5432']
2020-12-15 16:33:04,296 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
Referred from model sa.ProfileCheckRule: Linux | Astra (id=5fcd2897d2c07344c7b6ba63)

MSG:
non-zero return code
Потому что вернуться с мастера можно безопасно лишь во время релиза мажорной ветки.
источник

IE

Ivan EKbfh in NOC Project
Zek
я тоже так подумал сперва, это не помогает
версия кх?
источник

Z

Zek in NOC Project
(version 20.8.2)
источник

IE

Ivan EKbfh in NOC Project
там баг был до какой-то версии
источник

IE

Ivan EKbfh in NOC Project
Zek
(version 20.8.2)
не, тут уже должно быть норм
источник

Z

Zek in NOC Project
ну select timezone() москву выдает, хотя в конфиге берлин
источник

IE

Ivan EKbfh in NOC Project
Zek
ну select timezone() москву выдает, хотя в конфиге берлин
ну ты же рестартовал его?)
источник

Z

Zek in NOC Project
да )
источник