Closed miniREACTOR closed 2 years ago
Добрый день! Не получается начать работать. Непонятно как выполнить последний пункт инструкции "Telegram bot initializaton". Также я не понимаю работает ли docker container вот логи:
[11.11.2021 10:05:31.252570] (1) DEBUG: [/nxs-chat-srv]: pid file successfully created (pid file: /tmp/nxs-chat-srv.pid) [11.11.2021 10:05:31.252909] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 0, pid: 162) [11.11.2021 10:05:31.253232] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 1, pid: 163) [11.11.2021 10:05:31.253853] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 2, pid: 164) [11.11.2021 10:05:31.254166] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 3, pid: 165) [11.11.2021 10:05:31.254437] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 4, pid: 166) [11.11.2021 10:05:31.254730] (1) DEBUG: [/nxs-chat-srv]: started cache worker process (pid: 167) [11.11.2021 10:05:31.254996] (1) DEBUG: [/nxs-chat-srv]: started rest api process (pid: 168) [11.11.2021 10:05:31.257840] (168) DEBUG: core: rest api init: using SSL [11.11.2021 10:05:31.264695] (168) ERROR: [rest-api]: rest api init error (error code: 7) [11.11.2021 10:05:31.264718] (168) ERROR: [rest-api]: can't start nxs-chat-srv [11.11.2021 10:05:31.265778] (1) DEBUG: [/nxs-chat-srv]: got signal CHLD, terminating daemon [11.11.2021 10:05:31.265819] (1) ERROR: [/nxs-chat-srv]: rest api was finished unexpectedly, program will terminate (pid: 168, status: 2) [11.11.2021 10:05:31.265836] (1) DEBUG: [/nxs-chat-srv]: no more childs processes finished [11.11.2021 10:05:31.325618] (167) DEBUG: [cache-worker]: rdmn projects get: success (offset: 0, limit: 100) [11.11.2021 10:05:31.327044] (167) DEBUG: [cache-worker]: db cache put: success (cache type: projects) [11.11.2021 10:05:31.327162] (167) DEBUG: [cache-worker]: projects cache successfully updated [11.11.2021 10:05:31.859001] (167) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 0, limit: 100) [11.11.2021 10:05:33.376583] (1) INFO: [/nxs-chat-srv]: shutdown process
Прошу подсказать:
- что делать дальше?
- нужно ли чтобы URL указанная в "telegram.webhook_host" была доступна из интернета?
Доброго дня, не так давно сами столкнулись с подобной проблемой, чтобы провести процедуру "Telegram bot initializaton", видимо необходимо запускать контейнер докер с необходимыми параметрами (setWebhook, create tables) как описано в руководстве. В нашем случае мы позаимствовали файл Docker-compose в релизе nxs-chat-srv 0.3.1 docs/docker-compose/nxs-chat-srv/docker-compose.yml слегка переделали под себя и внесли конфигурацию в этот файл. В этом файле уже присутствует инициализация nxs-chat-srv.
Немного разобрался, но ошибка не пропала.
[16.11.2021 13:29:08.508008] (162) DEBUG: [/nxs-chat-srv]: tlgrm set webhook: success (telegram url: https://api.telegram.org/bot1548451774:AAHcbm5ykKtXs_k-L8_TIf4PUv8Uf-Qb9OE/setWebhook, url: https://telegram.it.medirus.ru/tlgrm?token=bXvSbut7vUMz2eY6YtHTrE7Lyc5L2z, certificate: false), [16.11.2021 13:29:08.511332] (162) INFO: [/nxs-chat-srv]: set webhook to tlgrm: success (result: true, error code: 200, description: "Webhook is already set", using silf-signed certificate: false), [16.11.2021 13:29:08.533309] (1) DEBUG: [/nxs-chat-srv]: pid file successfully created (pid file: /tmp/nxs-chat-srv.pid), telegram set webhook success: Webhook is already set, [16.11.2021 13:29:08.533845] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 0, pid: 164), [16.11.2021 13:29:08.534238] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 1, pid: 165), [16.11.2021 13:29:08.534618] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 2, pid: 166), [16.11.2021 13:29:08.534981] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 3, pid: 167), [16.11.2021 13:29:08.535325] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 4, pid: 168), [16.11.2021 13:29:08.535831] (1) DEBUG: [/nxs-chat-srv]: started cache worker process (pid: 169), [16.11.2021 13:29:08.536230] (1) DEBUG: [/nxs-chat-srv]: started rest api process (pid: 170), [16.11.2021 13:29:08.537961] (170) DEBUG: core: rest api init: using SSL, [16.11.2021 13:29:08.548771] (170) ERROR: [rest-api]: rest api init error (error code: 7), [16.11.2021 13:29:08.548925] (170) ERROR: [rest-api]: can't start nxs-chat-srv, [16.11.2021 13:29:08.550348] (1) DEBUG: [/nxs-chat-srv]: got signal CHLD, terminating daemon, [16.11.2021 13:29:08.550492] (1) ERROR: [/nxs-chat-srv]: rest api was finished unexpectedly, program will terminate (pid: 170, status: 2), [16.11.2021 13:29:08.550572] (1) DEBUG: [/nxs-chat-srv]: no more childs processes finished, [16.11.2021 13:29:08.605048] (169) DEBUG: [cache-worker]: rdmn projects get: success (offset: 0, limit: 100), [16.11.2021 13:29:08.606415] (169) DEBUG: [cache-worker]: db cache put: success (cache type: projects), [16.11.2021 13:29:08.607006] (169) DEBUG: [cache-worker]: projects cache successfully updated, [16.11.2021 13:29:09.041559] (169) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 0, limit: 100), [16.11.2021 13:29:09.565499] (169) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 100, limit: 100), [16.11.2021 13:29:10.651529] (1) INFO: [/nxs-chat-srv]: shutdown process
Немного разобрался, но ошибка не пропала.
[16.11.2021 13:29:08.508008] (162) DEBUG: [/nxs-chat-srv]: tlgrm set webhook: success (telegram url: https://api.telegram.org/bot1548451774:AAHcbm5ykKtXs_k-L8_TIf4PUv8Uf-Qb9OE/setWebhook, url: https://telegram.it.medirus.ru/tlgrm?token=bXvSbut7vUMz2eY6YtHTrE7Lyc5L2z, certificate: false), [16.11.2021 13:29:08.511332] (162) INFO: [/nxs-chat-srv]: set webhook to tlgrm: success (result: true, error code: 200, description: "Webhook is already set", using silf-signed certificate: false), [16.11.2021 13:29:08.533309] (1) DEBUG: [/nxs-chat-srv]: pid file successfully created (pid file: /tmp/nxs-chat-srv.pid), telegram set webhook success: Webhook is already set, [16.11.2021 13:29:08.533845] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 0, pid: 164), [16.11.2021 13:29:08.534238] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 1, pid: 165), [16.11.2021 13:29:08.534618] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 2, pid: 166), [16.11.2021 13:29:08.534981] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 3, pid: 167), [16.11.2021 13:29:08.535325] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 4, pid: 168), [16.11.2021 13:29:08.535831] (1) DEBUG: [/nxs-chat-srv]: started cache worker process (pid: 169), [16.11.2021 13:29:08.536230] (1) DEBUG: [/nxs-chat-srv]: started rest api process (pid: 170), [16.11.2021 13:29:08.537961] (170) DEBUG: core: rest api init: using SSL, [16.11.2021 13:29:08.548771] (170) ERROR: [rest-api]: rest api init error (error code: 7), [16.11.2021 13:29:08.548925] (170) ERROR: [rest-api]: can't start nxs-chat-srv, [16.11.2021 13:29:08.550348] (1) DEBUG: [/nxs-chat-srv]: got signal CHLD, terminating daemon, [16.11.2021 13:29:08.550492] (1) ERROR: [/nxs-chat-srv]: rest api was finished unexpectedly, program will terminate (pid: 170, status: 2), [16.11.2021 13:29:08.550572] (1) DEBUG: [/nxs-chat-srv]: no more childs processes finished, [16.11.2021 13:29:08.605048] (169) DEBUG: [cache-worker]: rdmn projects get: success (offset: 0, limit: 100), [16.11.2021 13:29:08.606415] (169) DEBUG: [cache-worker]: db cache put: success (cache type: projects), [16.11.2021 13:29:08.607006] (169) DEBUG: [cache-worker]: projects cache successfully updated, [16.11.2021 13:29:09.041559] (169) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 0, limit: 100), [16.11.2021 13:29:09.565499] (169) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 100, limit: 100), [16.11.2021 13:29:10.651529] (1) INFO: [/nxs-chat-srv]: shutdown process
Не помогло. [16.11.2021 13:46:05.302302] (162) DEBUG: [/nxs-chat-srv]: tlgrm set webhook: success (telegram url: https://api.telegram.org/bot1548451774:AAHcbm5ykKtXs_k-L8_TIf4PUv8Uf-Qb9OE/setWebhook, url: https://telegram.it.medirus.ru/tlgrm?token=bXvSbut7vUMz2eY6YtHTrE7Lyc5L2z, certificate: false), [16.11.2021 13:46:05.305320] (162) INFO: [/nxs-chat-srv]: set webhook to tlgrm: success (result: true, error code: 200, description: "Webhook is already set", using silf-signed certificate: false), [16.11.2021 13:46:05.324880] (1) DEBUG: [/nxs-chat-srv]: pid file successfully created (pid file: /tmp/nxs-chat-srv.pid), telegram set webhook success: Webhook is already set, [16.11.2021 13:46:05.325275] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 0, pid: 164), [16.11.2021 13:46:05.325590] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 1, pid: 165), [16.11.2021 13:46:05.325903] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 2, pid: 166), [16.11.2021 13:46:05.326204] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 3, pid: 167), [16.11.2021 13:46:05.326858] (1) DEBUG: [/nxs-chat-srv]: started cache worker process (pid: 169), [16.11.2021 13:46:05.326534] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 4, pid: 168), [16.11.2021 13:46:05.327159] (1) DEBUG: [/nxs-chat-srv]: started rest api process (pid: 170), [16.11.2021 13:46:05.332882] (170) ERROR: [rest-api]: rest api init error (error code: 7), [16.11.2021 13:46:05.332915] (170) ERROR: [rest-api]: can't start nxs-chat-srv, [16.11.2021 13:46:05.333928] (1) DEBUG: [/nxs-chat-srv]: got signal CHLD, terminating daemon, [16.11.2021 13:46:05.333963] (1) ERROR: [/nxs-chat-srv]: rest api was finished unexpectedly, program will terminate (pid: 170, status: 2), [16.11.2021 13:46:05.333980] (1) DEBUG: [/nxs-chat-srv]: no more childs processes finished, [16.11.2021 13:46:05.394178] (169) DEBUG: [cache-worker]: rdmn projects get: success (offset: 0, limit: 100), [16.11.2021 13:46:05.395423] (169) DEBUG: [cache-worker]: db cache put: success (cache type: projects), [16.11.2021 13:46:05.395587] (169) DEBUG: [cache-worker]: projects cache successfully updated, [16.11.2021 13:46:05.799039] (169) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 0, limit: 100), [16.11.2021 13:46:06.220377] (169) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 100, limit: 100), [16.11.2021 13:46:07.438814] (1) INFO: [/nxs-chat-srv]: shutdown process
Подключиться удалось, но не приходят уведомления о изменениях задачи.
Если разберётесь раньше напишите как решили проблему пожалуйста
Добрый день если проблема еще актуальна смогли сегодня настроить уведомления. В нашем случае ошибка крылась в Модуле nxs-chat который в Redmine был неверно прописан URL для уведомлений. Надеюсь вам поможет. И еще гляньте Log файл redmine там прописана причина.
Спасибо! Это помогло.
Добрый день! Не получается начать работать. Непонятно как выполнить последний пункт инструкции "Telegram bot initializaton". Также я не понимаю работает ли docker container вот логи:
[11.11.2021 10:05:31.252570] (1) DEBUG: [/nxs-chat-srv]: pid file successfully created (pid file: /tmp/nxs-chat-srv.pid) [11.11.2021 10:05:31.252909] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 0, pid: 162) [11.11.2021 10:05:31.253232] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 1, pid: 163) [11.11.2021 10:05:31.253853] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 2, pid: 164) [11.11.2021 10:05:31.254166] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 3, pid: 165) [11.11.2021 10:05:31.254437] (1) DEBUG: [/nxs-chat-srv]: started queue worker process (index: 4, pid: 166) [11.11.2021 10:05:31.254730] (1) DEBUG: [/nxs-chat-srv]: started cache worker process (pid: 167) [11.11.2021 10:05:31.254996] (1) DEBUG: [/nxs-chat-srv]: started rest api process (pid: 168) [11.11.2021 10:05:31.257840] (168) DEBUG: core: rest api init: using SSL [11.11.2021 10:05:31.264695] (168) ERROR: [rest-api]: rest api init error (error code: 7) [11.11.2021 10:05:31.264718] (168) ERROR: [rest-api]: can't start nxs-chat-srv [11.11.2021 10:05:31.265778] (1) DEBUG: [/nxs-chat-srv]: got signal CHLD, terminating daemon [11.11.2021 10:05:31.265819] (1) ERROR: [/nxs-chat-srv]: rest api was finished unexpectedly, program will terminate (pid: 168, status: 2) [11.11.2021 10:05:31.265836] (1) DEBUG: [/nxs-chat-srv]: no more childs processes finished [11.11.2021 10:05:31.325618] (167) DEBUG: [cache-worker]: rdmn projects get: success (offset: 0, limit: 100) [11.11.2021 10:05:31.327044] (167) DEBUG: [cache-worker]: db cache put: success (cache type: projects) [11.11.2021 10:05:31.327162] (167) DEBUG: [cache-worker]: projects cache successfully updated [11.11.2021 10:05:31.859001] (167) DEBUG: [cache-worker]: rdmn users get: success (user id: 0, offset: 0, limit: 100) [11.11.2021 10:05:33.376583] (1) INFO: [/nxs-chat-srv]: shutdown process
Прошу подсказать: