rotblauer / openbound

Homework should be free.
https://openbound.org
5 stars 0 forks source link

fix: cannot allocate memory/ENOENT download file #32

Open whilei opened 7 years ago

whilei commented 7 years ago
I, [2017-07-24T00:28:55.447897 #20345]  INFO -- : Started GET "/?school_name%5B%5D=Bowdoin+College&school_name%5B%5D=Spy+University&school_name%5B%5D=Seattle+Pacific+University&school_name%5B%5D=University+of+Minnesota+-+Twin+Cities&tag%5B%5D=architecture" for 164.132.162.159 at 2017-07-24 00:28:55 +0000
I, [2017-07-24T00:28:56.376365 #20345]  INFO -- : Completed 500 Internal Server Error in 13303627ms (ActiveRecord: 1.0ms)
F, [2017-07-24T00:28:56.516253 #20345] FATAL -- :
Errno::ENOENT (No such file or directory @ unlink_internal - /home/deploy/apps/openbound/releases/20170720140613/tmp/downloads/Homework_126pdf.pdf):
  app/controllers/works_controller.rb:377:in `delete'
  app/controllers/works_controller.rb:377:in `ensure in download'
  app/controllers/works_controller.rb:377:in `download'

I, [2017-07-24T00:28:56.681105 #20345]  INFO -- : Processing by ProjectsController#index as */*
I, [2017-07-24T00:28:56.810866 #20345]  INFO -- :   Parameters: {"school_name"=>["Bowdoin College", "Spy University", "Seattle Pacific University", "University of Minnesota - Twin Cities"], "tag"=>["architecture"]}
I, [2017-07-24T00:29:44.292729 #20345]  INFO -- : Started GET "/?school_name%5B%5D=Bowdoin+College&school_name%5B%5D=Gustavus+Adolphus+College&school_name%5B%5D=Marshall+School&school_name%5B%5D=Columbia+University+in+the+City+of+New+York&tag%5B%5D=chown" for 217.182.132.178 at 2017-07-24 00:29:42 +0000
I, [2017-07-24T00:29:53.209108 #20345]  INFO -- : Processing by ProjectsController#index as */*
I, [2017-07-24T00:29:53.864341 #20345]  INFO -- :   Parameters: {"school_name"=>["Bowdoin College", "Gustavus Adolphus College", "Marshall School", "Columbia University in the City of New York"], "tag"=>["chown"]}
I, [2017-07-24T00:30:12.958250 #20345]  INFO -- : Started GET "/?school_name%5B%5D=University+of+Minnesota+-+Twin+Cities&tag%5B%5D=heliocentricity" for 66.249.64.64 at 2017-07-24 00:30:12 +0000
I, [2017-07-24T00:30:14.293852 #20345]  INFO -- :   Rendered works/_metadata.html.erb (79018.8ms)
F, [2017-07-24T00:30:15.719820 #20345] FATAL -- :
PG::ConnectionBad (could not fork new process for connection: Cannot allocate memory

could not fork new process for connection: Cannot allocate memory
):
  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize'
  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `new'
  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `connect'
  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
  activerecord (4.2.1) lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout'
  /home/deploy/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'
  /home/deploy/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:567:in `retrieve_connection'
  activerecord (4.2.1) lib/active_record/connection_handling.rb:113:in `retrieve_connection'
  activerecord (4.2.1) lib/active_record/connection_handling.rb:87:in `connection'
  activerecord (4.2.1) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
  activerecord (4.2.1) lib/active_record/query_cache.rb:43:in `rescue in call'
  activerecord (4.2.1) lib/active_record/query_cache.rb:31:in `call'
  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'
  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'
  activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
  activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
  actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'
  ahoy_matey (1.5.4) lib/ahoy/engine.rb:22:in `call_with_quiet_ahoy'
  request_store (1.3.2) lib/request_store/middleware.rb:9:in `call'
  actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.6.8) lib/rack/methodoverride.rb:22:in `call'
  rack (1.6.8) lib/rack/runtime.rb:18:in `call'
  activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  rack-cache (1.7.0) lib/rack/cache/context.rb:140:in `forward'
  rack-cache (1.7.0) lib/rack/cache/context.rb:249:in `fetch'
  rack-cache (1.7.0) lib/rack/cache/context.rb:189:in `lookup'
  rack-cache (1.7.0) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.7.0) lib/rack/cache/context.rb:51:in `call'
  rack (1.6.8) lib/rack/sendfile.rb:113:in `call'
  actionpack (4.2.1) lib/action_dispatch/middleware/ssl.rb:24:in `call'
  railties (4.2.1) lib/rails/engine.rb:518:in `call'
  railties (4.2.1) lib/rails/application.rb:164:in `call'
  puma (3.7.1) lib/puma/configuration.rb:232:in `call'
  puma (3.7.1) lib/puma/server.rb:578:in `handle_request'
  puma (3.7.1) lib/puma/server.rb:415:in `process_client'
  puma (3.7.1) lib/puma/server.rb:275:in `block in run'
  puma (3.7.1) lib/puma/thread_pool.rb:120:in `call'
  puma (3.7.1) lib/puma/thread_pool.rb:120:in `block in spawn_thread'

I, [2017-07-24T00:30:15.852621 #20345]  INFO -- : Completed 500 Internal Server Error in 13322955ms (ActiveRecord: 2.6ms)
I, [2017-07-24T00:30:16.030192 #20345]  INFO -- :   Rendered works/_metadata_tags.html.erb (380.7ms)
F, [2017-07-24T00:30:16.182863 #20345] FATAL -- :
Errno::ENOENT (No such file or directory @ unlink_internal - /home/deploy/apps/openbound/releases/20170720140613/tmp/downloads/Homework_126pdf.pdf):
  app/controllers/works_controller.rb:377:in `delete'
  app/controllers/works_controller.rb:377:in `ensure in download'
  app/controllers/works_controller.rb:377:in `download'

I, [2017-07-24T00:30:16.882652 #20345]  INFO -- :   Rendered works/_preview_buttons.html.erb (5.7ms)
I, [2017-07-24T00:30:32.473855 #20345]  INFO -- : Completed 500 Internal Server Error in 13459877ms (ActiveRecord: 0.9ms)
F, [2017-07-24T00:30:37.876045 #20345] FATAL -- :
Errno::ENOENT (No such file or directory @ unlink_internal - /home/deploy/apps/openbound/releases/20170720140613/tmp/downloads/Homework_126pdf.pdf):
  app/controllers/works_controller.rb:377:in `delete'
  app/controllers/works_controller.rb:377:in `ensure in download'
  app/controllers/works_controller.rb:377:in `download'

I, [2017-07-24T00:30:40.721165 #20345]  INFO -- : Completed 500 Internal Server Error in 13528255ms (ActiveRecord: 0.8ms)
F, [2017-07-24T00:30:41.625963 #20345] FATAL -- :
Errno::ENOENT (No such file or directory @ unlink_internal - /home/deploy/apps/openbound/releases/20170720140613/tmp/downloads/Homework_126pdf.pdf):
  app/controllers/works_controller.rb:377:in `delete'
  app/controllers/works_controller.rb:377:in `ensure in download'
  app/controllers/works_controller.rb:377:in `download'

I, [2017-07-24T00:30:43.346064 #20345]  INFO -- :   Rendered works/_metadata.html.erb (24877.5ms)
I, [2017-07-24T00:30:43.593092 #20345]  INFO -- :   Rendered works/_metadata_tags.html.erb (54.5ms)
I, [2017-07-24T00:30:44.065881 #20345]  INFO -- :   Rendered works/_preview_buttons.html.erb (7.2ms)