Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError: wrong number of arguments (given 2, expected 1) #46

Open
JKeySZR opened this issue Feb 22, 2020 · 0 comments
Open

ArgumentError: wrong number of arguments (given 2, expected 1) #46

JKeySZR opened this issue Feb 22, 2020 · 0 comments

Comments

@JKeySZR
Copy link

JKeySZR commented Feb 22, 2020

Какая-та проблема, как я понимаю с проверкой прокси.
Отправка сообщений из редмайна в телеграмм работает "через раз".

Среда запуска

Redmine 3.4.2.stable
Environment:
Redmine version 3.4.2.stable
Ruby version 2.6.3-p62 (2019-04-16) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Git 1.8.3.1
Filesystem
Redmine plugins:
clipboard_image_paste 1.12
easy_mindmup 1.0
easy_wbs 1.5
issue_mail_with_attachments 0.1.0
redmine_2chat 0.3.2
redmine_bots 0.4.1
redmine_checklists 3.1.10
redmine_ckeditor 1.1.5
redmine_contacts 4.1.1
redmine_finance 2.1.3
redmine_intouch 1.5.1
redmine_lightbox2 0.4.3
redmine_people 1.3.2
redmine_sidekiq 2.1.0
redmineup_tags 2.0.1
scrum 0.18.0
that_email_log 0.0.3
time_logger 0.5.3
vault 0.4.1

В логах нашел вот такое:

I, [2020-02-22T18:40:25.500819 #27209] INFO -- : start
D, [2020-02-22T18:40:25.501418 #27209] DEBUG -- : enqueued retry: {"queue":"default","args":[],"class":"TelegramProxyMonitoringWorker","retry":true,"jid":"2b18c409f055fb1ca2575dac","created_at":1582385966.0502994,"enqueued_at":1582385995.9067066,"error_message":"wrong number of arguments (given 2, expected 1)","error_class":"ArgumentError","failed_at":1582385967.0561674,"retry_count":1,"retried_at":1582385997.305031}
I, [2020-02-22T18:40:26.505332 #27209] INFO -- : fail: 1.005 sec
W, [2020-02-22T18:40:26.505456 #27209] WARN -- : {"context":"Job raised exception","job":{"queue":"default","args":[],"class":"TelegramProxyMonitoringWorker","retry":true,"jid":"2b18c409f055fb1ca2575dac","created_at":1582385966.0502994,"enqueued_at":1582386025.5002677,"error_message":"wrong number of arguments (given 2, expected 1)","error_class":"ArgumentError","failed_at":1582386026.5044427,"retry_count":1,"retried_at":1582385997.305031,"processor":"REDMINE.MYSITE.pw:27209"},"jobstr":"{"queue":"default","args":[],"class":"TelegramProxyMonitoringWorker","retry":true,"jid":"2b18c409f055fb1ca2575dac","created_at":1582385966.0502994,"enqueued_at":1582386025.5002677,"error_message":"wrong number of arguments (given 2, expected 1)","error_class":"ArgumentError","failed_at":1582385967.0561674,"retry_count":1,"retried_at":1582385997.305031}"}
W, [2020-02-22T18:40:26.505485 #27209] WARN -- : ArgumentError: wrong number of arguments (given 2, expected 1)
W, [2020-02-22T18:40:26.505520 #27209] WARN -- : /home/redmine/APP/plugins/redmine_bots/app/models/telegram_proxy.rb:8:in assign_attributes' /usr/local/rvm/gems/ruby-2.6.3/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/persistence.rb:64:in block in update'
/usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/transactions.rb:351:in block in with_transaction_returning_status' /usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction'
/usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction'
/usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in transaction' /usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/transactions.rb:348:in with_transaction_returning_status'
/usr/local/rvm/gems/ruby-2.6.3/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/persistence.rb:63:in update' /home/redmine/APP/plugins/redmine_bots/app/models/telegram_proxy.rb:32:in check!'
/usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/relation/batches.rb:51:in block (2 levels) in find_each' /usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/relation/batches.rb:51:in each'
/usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/relation/batches.rb:51:in block in find_each' /usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/relation/batches.rb:124:in find_in_batches'
/usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/relation/batches.rb:50:in find_each' /usr/local/rvm/gems/ruby-2.6.3/gems/activerecord-4.2.8/lib/active_record/querying.rb:9:in find_each'
/home/redmine/APP/plugins/redmine_bots/app/workers/telegram_proxy_monitoring_worker.rb:5:in perform' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:192:in execute_job'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:165:in block (2 levels) in process' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/middleware/chain.rb:128:in block in invoke'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/middleware/server/active_record.rb:16:in call' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/middleware/chain.rb:130:in block in invoke'
/usr/local/rvm/gems/ruby-2.6.3/bundler/gems/sidekiq-failures-ade3c0035e8b/lib/sidekiq/failures/middleware.rb:9:in call' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/middleware/chain.rb:130:in block in invoke'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/middleware/chain.rb:133:in invoke' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:164:in block in process'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:137:in block (6 levels) in dispatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/job_retry.rb:109:in local'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:136:in block (5 levels) in dispatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq.rb:37:in block in module:Sidekiq'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:132:in block (4 levels) in dispatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:250:in stats'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:127:in block (3 levels) in dispatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/job_logger.rb:8:in call'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:126:in block (2 levels) in dispatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/job_retry.rb:74:in global'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:125:in block in dispatch' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/logging.rb:48:in with_context'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/logging.rb:42:in with_job_hash_context' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:124:in dispatch'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:163:in process' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:83:in process_one'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/processor.rb:71:in run' /usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/util.rb:16:in watchdog'
/usr/local/rvm/gems/ruby-2.6.3/gems/sidekiq-5.2.8/lib/sidekiq/util.rb:25:in `block in safe_thread'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant