The Wayback Machine - https://web.archive.org/web/20200602070035/https://github.com/dejan/rails_panel/issues/145
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

Errno::ENOENT (No such file or directory @ rb_sysopen - {RAILS_PATH}/tmp/data/meta_request/xxx.json) #145

Open
durnin opened this issue Sep 10, 2018 · 2 comments

Comments

@durnin
Copy link

@durnin durnin commented Sep 10, 2018

Using ruby '2.5.1', 'rails', '~> 5.2.0' I'm getting the following stack trace, multiple times (Rails Panel works, but server get's plagued with this exceptions):

Errno::ENOENT (No such file or directory @ rb_sysopen - {RAILS_PATH}/tmp/data/meta_request/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.json):
  
meta_request (0.6.0) lib/meta_request/storage.rb:16:in `read'
meta_request (0.6.0) lib/meta_request/storage.rb:16:in `read'
meta_request (0.6.0) lib/meta_request/middlewares/meta_request_handler.rb:20:in `events_json'
meta_request (0.6.0) lib/meta_request/middlewares/meta_request_handler.rb:11:in `call'
scout_apm (2.4.14) lib/scout_apm/instant/middleware.rb:53:in `call'
scout_apm (2.4.14) lib/scout_apm/middleware.rb:20:in `call'
rack-attack (5.4.0) lib/rack/attack.rb:174:in `call'
warden (1.2.7) lib/warden/manager.rb:36:in `block in call'
warden (1.2.7) lib/warden/manager.rb:35:in `catch'
warden (1.2.7) lib/warden/manager.rb:35:in `call'
rack (2.0.5) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.0.5) lib/rack/etag.rb:25:in `call'
rack (2.0.5) lib/rack/conditional_get.rb:25:in `call'
rack (2.0.5) lib/rack/head.rb:12:in `call'
actionpack (5.2.0) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context'
rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/cookies.rb:670:in `call'
activerecord (5.2.0) lib/active_record/migration.rb:559:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (5.2.0) lib/active_support/callbacks.rb:98:in `run_callbacks'
actionpack (5.2.0) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/executor.rb:14:in `call'
airbrake (7.3.4) lib/airbrake/rack/middleware.rb:48:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
rack-contrib (2.0.1) lib/rack/contrib/response_headers.rb:17:in `call'
meta_request (0.6.0) lib/meta_request/middlewares/headers.rb:16:in `call'
web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.6.2) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch'
web-console (3.6.2) lib/web_console/middleware.rb:20:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.0) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.0) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.0) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.0) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.0) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.0) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.0.5) lib/rack/method_override.rb:22:in `call'
rack (2.0.5) lib/rack/runtime.rb:22:in `call'
activesupport (5.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.0) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
railties (5.2.0) lib/rails/engine.rb:524:in `call'
puma (3.12.0) lib/puma/configuration.rb:225:in `call'
puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
puma (3.12.0) lib/puma/server.rb:472:in `process_client'
puma (3.12.0) lib/puma/server.rb:332:in `block in run'
puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'

As you can see from stack we use other middleware like:

  • scout_apm
  • rack-attack
  • rack-rewrite
  • rack-timeout
  • web-console
  • airbrake

But nothing unusual about those. Any help to remove this noise appreciated.

@gogiel
Copy link
Collaborator

@gogiel gogiel commented Oct 20, 2018

Might be related to #94

@gogiel
Copy link
Collaborator

@gogiel gogiel commented Jul 4, 2019

Settings higher storage_pool_size should fix that.

However it still shouldn't raise this kind of raw issue.

Task: replace raw Errno exception with an user-friendly message referring to potential issue with storage_pool_size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.