southbridgeio / redmine_bots

44 stars 12 forks source link

Requirements: redmine_sidekiq #53

Open tranrn opened 4 years ago

tranrn commented 4 years ago

After installing redmine_sidekiq to redmine 4.1.1.stable got an error

[ E 2020-06-19 09:29:51.9956 64309/T13 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /opt/redmine-4.1.1: The application encountered the following error: unde fined method `before_filter' for SidekiqSandboxController:Class Did you mean? before_action (NoMethodError)

ruby -v ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-linux] sidekiq -v 5.2.9 before_filter deleted in ver 5.1

vladislav-yashin commented 4 years ago

Please, use the latest version from our fork: https://github.com/southbridgeio/redmine_sidekiq It's fixed for Redmine 4

tranrn commented 4 years ago

same: [ E 2020-06-19 09:47:45.6442 64309/T27 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /opt/redmine-4.0.1: The application encountered the following error: undefined method `before_filter' for SidekiqSandboxController:Class Did you mean? before_action (NoMethodError) Error ID: 909abdf0 Error details saved to: /tmp/passenger-error-t4JNZa.html

Should I use old sidekiq version?

vladislav-yashin commented 4 years ago

It means you're still running old code. There're no "before_filter" calls in master version of redmine_sidekiq. Did you restart server?

tranrn commented 4 years ago

oh, installation section is:

Installation $ git clone https://github.com/**ogom**/redmine_sidekiq ./plugins/redmine_sidekiq My bad. Replaced to your version and it works

tranrn commented 4 years ago

I, [2020-06-19T12:56:50.911468 #5891] INFO -- : Start daemon... I, [2020-06-19T12:56:50.938771 #5891] INFO -- : Telegram Bot: Connecting to telegram... E, [2020-06-19T12:56:56.533111 #5891] ERROR -- : GLOBAL Timeout::Error: Operation timed out after 5001 milliseconds with 0 out of -1 bytes received /opt/redmine-4.0.1/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:43:in rescue in call' /opt/redmine-4.0.1/plugins/redmine_bots/lib/redmine_bots/telegram/bot/faraday_adapter.rb:5:incall' /usr/local/rvm/gems/ruby-2.4.5/gems/faraday-1.0.1/lib/faraday/request/url_encoded.rb:25:in call' /usr/local/rvm/gems/ruby-2.4.5/gems/faraday-1.0.1/lib/faraday/request/multipart.rb:25:incall' /usr/local/rvm/gems/ruby-2.4.5/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in build_response' /usr/local/rvm/gems/ruby-2.4.5/gems/faraday-1.0.1/lib/faraday/connection.rb:492:inrun_request' /usr/local/rvm/gems/ruby-2.4.5/gems/faraday-1.0.1/lib/faraday/connection.rb:279:in post' /usr/local/rvm/gems/ruby-2.4.5/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/api.rb:75:incall' /usr/local/rvm/gems/ruby-2.4.5/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/api.rb:63:in method_missing' /usr/local/rvm/gems/ruby-2.4.5/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/client.rb:30:infetch_updates' /usr/local/rvm/gems/ruby-2.4.5/gems/telegram-bot-ruby-0.12.0/lib/telegram/bot/client.rb:25:in listen' /opt/redmine-4.0.1/plugins/redmine_bots/lib/tasks/telegram.rake:29:inblock (3 levels) in <top (required)>' /opt/redmine-4.0.1/plugins/redmine_bots/lib/redmine_bots/utils.rb:25:in daemonize' /opt/redmine-4.0.1/plugins/redmine_bots/lib/tasks/telegram.rake:26:inblock (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/task.rb:281:in block in execute' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/task.rb:281:ineach' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/task.rb:281:in execute' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/task.rb:219:inblock in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.4.5/lib/ruby/2.4.0/monitor.rb:214:in mon_synchronize' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/task.rb:199:ininvoke_with_call_chain' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/task.rb:188:in invoke' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:160:ininvoke_task' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:116:in block (2 levels) in top_level' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:116:ineach' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:116:in block in top_level' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:125:inrun_with_threads' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:110:in top_level' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:83:inblock in run' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:186:in standard_exception_handling' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/lib/rake/application.rb:80:inrun' /usr/local/rvm/gems/ruby-2.4.5/gems/rake-13.0.1/exe/rake:27:in <top (required)>' /usr/local/rvm/gems/ruby-2.4.5/bin/rake:23:inload' /usr/local/rvm/gems/ruby-2.4.5/bin/rake:23:in <main>' /usr/local/rvm/gems/ruby-2.4.5/bin/ruby_executable_hooks:24:ineval' /usr/local/rvm/gems/ruby-2.4.5/bin/ruby_executable_hooks:24:in `

'


Seems to me bot cannot connect to telegram But succesfully connected accounts via /connect

Sidekiq have 2 queues:

Queue | Size | Latency | Actions default | 2 | 1,687.64 (28 minutes ago) telegram | 4 | 6,101.26 (1 hour ago)

tdlog

[ 3][t28][1592564013.682438612][NetQuery.h:239][#7][!Td][&net_query] [Query:[id:1835008][tl:0x1fb33026][state:Error][Error : 500 : Request aborted]] [debug:Td: received from DcManager] [ 3][t28][1592564013.682447672][Td.cpp:3762][#7][!Td][&net_query] Receive result of [Query:[id:1835008][tl:0x1fb33026][state:Error][Error : 500 : Request aborted]]