southbridgeio / redmine_bots

44 stars 12 forks source link

Ошибки после установки плагина, не приходят уведомления #50

Closed koren85 closed 4 years ago

koren85 commented 4 years ago

Проблема: Бот не получает сообщения, не приходят уведомления.

что сделано:

  1. установлен и запущен sidekiq
  2. установлен и запущен redis
  3. развернут redmine 4.0.4 из образа docker
Environment:
  Redmine version                4.0.4.stable
  Ruby version                   2.4.6-p354 (2019-04-01) [x86_64-linux-gnu]
  Rails version                  5.2.3
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.9.3
  Mercurial                      3.7.3
  Cvs                            1.12.13
  Bazaar                         2.7.0
  Git                            2.25.2
  Filesystem                     
Redmine plugins:
  accept                         0.0.1
  redmine_bots                   0.4.1
  redmine_sidekiq                2.1.0
  view_customize                 2.0.0
  1. Скомпилен tdlib согласно руководства (ruby, debian 9)
  2. Установлен плагин redmine-bots
  3. Установлен плагин Redmine Sidekiq plugin
  4. прописан прокси http и socks5 (прокси рабочий, десктопный телеграмм работает)
  5. Авторизация бота проходит успешно (в телеграмм приходит код)

ошибки: WebHooks не работает, при нажатии "Инициализировать бота" - ошибка 500 в логе Sidekiq Faraday::TimeoutError: Operation timed out after 0 milliseconds with 0 out of 0 bytes received

в логе tdlib.log

[ 3][t 0][1584971208.822229147][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 (nil)
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:43: warning: constant ::TimeoutError is deprecated
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:43: warning: toplevel constant TimeoutError referenced by Faraday::Error::TimeoutError
rake aborted!
Timeout::Error: Operation timed out after 0 milliseconds with 0 out of 0 bytes received
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:43:in `rescue in call'
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:5:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/request/url_encoded.rb:23:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/request/multipart.rb:25:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/rack_builder.rb:153:in `build_response'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/connection.rb:492:in `run_request'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/connection.rb:279:in `post'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/api.rb:75:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/api.rb:63:in `method_missing'
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram.rb:42:in `init_bot'
/home/redmine/redmine/plugins/redmine_bots/lib/tasks/telegram.rake:15:in `init_bot'
/home/redmine/redmine/plugins/redmine_bots/lib/tasks/telegram.rake:27:in `block (3 levels) in <top (required)>'
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/utils.rb:25:in `daemonize'
/home/redmine/redmine/plugins/redmine_bots/lib/tasks/telegram.rake:26:in `block (2 levels) in <top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.4.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'

Caused by:
Patron::TimeoutError: Operation timed out after 0 milliseconds with 0 out of 0 bytes received
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/patron-0.13.3/lib/patron/session.rb:330:in `handle_request'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/patron-0.13.3/lib/patron/session.rb:330:in `request'
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:28:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/request/url_encoded.rb:23:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/request/multipart.rb:25:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/rack_builder.rb:153:in `build_response'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/connection.rb:492:in `run_request'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/faraday-1.0.0/lib/faraday/connection.rb:279:in `post'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/api.rb:75:in `call'
/home/redmine/data/tmp/bundle/ruby/2.4.0/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/api.rb:63:in `method_missing'
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/telegram.rb:42:in `init_bot'
/home/redmine/redmine/plugins/redmine_bots/lib/tasks/telegram.rake:15:in `init_bot'
/home/redmine/redmine/plugins/redmine_bots/lib/tasks/telegram.rake:27:in `block (3 levels) in <top (required)>'
/home/redmine/redmine/plugins/redmine_bots/lib/redmine_bots/utils.rb:25:in `daemonize'
/home/redmine/redmine/plugins/redmine_bots/lib/tasks/telegram.rake:26:in `block (2 levels) in <top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/2.4.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine_bots:telegram
(See full trace by running task with --trace)

ставил плагин redmine_intouch, настраивал согласно руководства, уведомления не приходили, ошибки в логах те же самые.

подскажите куда копать?

vladislav-yashin commented 4 years ago

Прокси в списке отображаются как доступные? Если нет, напишите пожалуйста, в каком формате заполнены прокси (замените ip, login, password на случайные данные)

koren85 commented 4 years ago

прикладываю логи: tdlib.log bot.log sidekiq.log

koren85 commented 4 years ago

прокси отображаются как доступные (см. скрин) image

koren85 commented 4 years ago

скрин sidekiq image

koren85 commented 4 years ago

скрин sidekiq (cron) image

koren85 commented 4 years ago

решилось настройкой впн вместо прокси