简体   繁体   English

没有找到“主要”的连接池

[英]No connection pool with 'primary' found

I am using rails 5.2.3 and ruby 2.5.2 version, In my work i have two active job classes that will perform two jobs parallel, I am using MSSQL database and having "No connection pool with 'primary' found" issue when it started working in parallel.我正在使用 rails 5.2.3 和 ruby 2.5.2 版本,在我的工作中,我有两个活动的作业类,它们将并行执行两个作业,我正在使用 MSSQL 数据库并且在它时出现“没有找到'主'的连接池”问题开始并行工作。

Can anyone help me to resolve this.谁能帮我解决这个问题。

#source 'https://rubygems.org'
source 'http://production.cf.rubygems.org'
#source 'http://rubygems.org'

gem 'rails', '5.2.3'
gem 'log4r'
gem 'will_paginate'
gem 'bcrypt'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'activesupport'
gem 'activerecord-sqlserver-adapter'
gem 'tiny_tds'
gem 'sequel'
gem 'mysql2', '~> 0.5.2 '
gem 'bootsnap'
gem 'capybara'
gem 'poltergeist', :group => [:development, :test]
gem "rspec-rails", :group => [:development, :test]
gem 'public_suffix'
gem 'xpath'
gem 'nokogiri'
gem 'byebug', '~> 11.1', '>= 11.1.1'
gem 'activewarehouse-etl', '~> 1.0'
gem 'table_print'
gem 'sidekiq'
#gem 'pg'
gem 'adapter_extensions', '~> 0.9.5.rc1'
gem 'test-unit'
gem "iconv", "~> 1.0.3"
gem 'fileutils'
gem 'json'
# Gems used only for assets and not required
# in production environments by default.
gem 'stupidedi'
gem 'sass-rails'
gem 'sass'
gem 'coffee-rails'
gem 'mailfactory'
gem 'rake'
gem 'rack-cache'
gem 'listen'
gem 'thor'
gem 'openssl'
gem 'rb-inotify'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyrhino'

gem 'uglifier'
group :assets do

end
gem 'rubyzip', '>= 1.0.0' 

gem 'axlsx'
gem "axlsx_rails"
gem 'prawn'
gem 'typhoeus'
gem 'tlsmail'
gem 'net_http_ssl_fix'
gem 'simple_xlsx_reader'
gem 'spreadsheet'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有找到主要的连接池 - no connection pool with primary found 没有为 RSpec 找到具有“主”的连接池 - No connection pool with 'primary' found for RSpec 未找到 ID 为主要的连接池 - No connection pool with id primary found ActiveRecord::ConnectionNotEstablished(未找到“主”连接池。) - ActiveRecord::ConnectionNotEstablished (No connection pool with 'primary' found.) 呈现结果时,ActiveRecord::ConnectionNotEstablished(未找到具有“主要”的连接池。) - ActiveRecord::ConnectionNotEstablished (No connection pool with 'primary' found.) when rendering results ActiveRecord::ConnectionNotEstablished:在登台时找不到“阅读”角色的“主要”连接池 - ActiveRecord::ConnectionNotEstablished: No connection pool with 'primary' found for the 'reading' role on staging 出现“找不到‘ActiveRecord::Base’的连接池”的间歇性错误 - Getting intermittent error of "No connection pool for 'ActiveRecord::Base' found" 引发ConnectionNotFounded,“未找到带有'#{spec_name}'的连接池。”除非池LOCALHOST3000不起作用 - raise ConnectionNotEstablished, “No connection pool with '#{spec_name}' found.” unless pool LOCALHOST3000 not working {model name} 没有连接池 - No connection pool for {model name} 轨道连接池5 - Connection Pool for rails 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM