Rails容器无法启动,并显示错误消息“资源暂时不可用-bs_fetch:atomic_write_cache_file:rename(Errno :: EAGAIN)”

时间:2019-03-27 14:12:45

标签: ruby-on-rails docker

Bootsnap抛出

  

“资源暂时不可用”

启动容器时;抽佣任务还会导致引发相同的错误。我尝试过:

我尝试重新生成lockfile,删除引导快照的缓存,并在构建期间也在缓存目录上运行chmod 775 -R。这些似乎都没有改变任何东西。我知道容器具有写访问权限,因为它创建了缓存文件。

这是完整的错误

service_1  | /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/compile_cache/iseq.rb:37:in `fetch': Resource temporarily unavailable - bs_fetch:atomic_write_cache_file:rename (Errno::EAGAIN)
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/compile_cache/iseq.rb:37:in `load_iseq'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /usr/local/bundle/gems/arel-9.0.0/lib/arel/nodes.rb:20:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /usr/local/bundle/gems/arel-9.0.0/lib/arel.rb:24:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /usr/local/bundle/gems/activerecord-5.2.2.1/lib/active_record.rb:29:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /usr/local/bundle/gems/activerecord-5.2.2.1/lib/active_record/railtie.rb:3:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/all.rb:17:in `block in <main>'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/all.rb:15:in `each'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/all.rb:15:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /app/config/application.rb:3:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/commands/server/server_command.rb:145:in `block in perform'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/commands/server/server_command.rb:142:in `tap'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/commands/server/server_command.rb:142:in `perform'
service_1  |    from /usr/local/bundle/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
service_1  |    from /usr/local/bundle/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
service_1  |    from /usr/local/bundle/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/command/base.rb:65:in `perform'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/command.rb:46:in `invoke'
service_1  |    from /usr/local/bundle/gems/railties-5.2.2.1/lib/rails/commands.rb:18:in `<main>'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
service_1  |    from /usr/local/bundle/gems/bootsnap-1.4.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `block in require'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:257:in `load_dependency'
service_1  |    from /usr/local/bundle/gems/activesupport-5.2.2.1/lib/active_support/dependencies.rb:291:in `require'
service_1  |    from bin/rails:4:in `<main>'

0 个答案:

没有答案