thoughtbot / paperclip

Easy file attachment management for ActiveRecord
https://thoughtbot.com
Other
9.01k stars 2.43k forks source link

PaperClip 2.8 - Rails 2.3 - Ruby 1.87 - OpenSSL::SSL::SSLError (SSL_read:: shutdown while in init): #2669

Open RayNawara opened 4 years ago

RayNawara commented 4 years ago

Hi! I know the software is old but I have a problem where almost every other time when saving images I get this error.

`Processing SerialNumberAssetsController#create (for 69.46.250.185 at 2020-10-28 17:46:07) [PUT] Parameters: {"authenticity_token"=>"v/IIahCzoLacZONd7+ZK/bMFL8156YJXgqMW6UlIXr8=", "controller"=>"serial_number_assets", "action"=>"create", "_method"=>"put", "serial_number"=>"[FILTERED]", "id"=>"75842"} [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0.jpg[0]' [paperclip] /usr/bin/convert '/tmp/stream,416,0.jpg[0]' -resize '108x108>' '/tmp/stream,416,0,416,0' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0,416,0[0]' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0.jpg[0]' [paperclip] /usr/bin/convert '/tmp/stream,416,0.jpg[0]' -resize '180x180>' '/tmp/stream,416,0,416,1' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0,416,1[0]' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0.jpg[0]' [paperclip] /usr/bin/convert '/tmp/stream,416,0.jpg[0]' -resize '504x504>' '/tmp/stream,416,0,416,2' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0,416,2[0]' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0.jpg[0]' [paperclip] /usr/bin/convert '/tmp/stream,416,0.jpg[0]' -resize '72x72>' '/tmp/stream,416,0,416,3' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0,416,3[0]' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0.jpg[0]' [paperclip] /usr/bin/convert '/tmp/stream,416,0.jpg[0]' -resize '1200x1200>' '/tmp/stream,416,0,416,4' [paperclip] /usr/bin/identify -format %wx%h '/tmp/stream,416,0,416,4[0]' [paperclip] Saving attachments.

OpenSSL::SSL::SSLError (SSL_read:: shutdown while in init): /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/protocol.rb:135:in sysread' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/protocol.rb:135:inrbuf_fill' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/timeout.rb:67:in timeout' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/timeout.rb:101:intimeout' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/protocol.rb:134:in rbuf_fill' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/protocol.rb:116:inreaduntil' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/protocol.rb:126:in readline' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/http.rb:2028:inread_status_line' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/http.rb:2017:in read_new' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/net/http.rb:1051:inrequest' cloudfiles (1.4.8) lib/cloudfiles/connection.rb:271:in cfreq' cloudfiles (1.4.8) lib/cloudfiles/connection.rb:150:incontainers' lib/paperclip/storage/cloudfiles.rb:61:in cloudfiles_container' lib/paperclip/storage/cloudfiles.rb:82:inflush_writes' lib/paperclip/storage/cloudfiles.rb:81:in each' lib/paperclip/storage/cloudfiles.rb:81:inflush_writes' /home/globalauth/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/after_commit-1.0.10/lib/after_commit/connection_adapters.rb:14:in transaction' app/controllers/attachables_controller.rb:17:increate_assets' app/controllers/attachables_controller.rb:15:in each' app/controllers/attachables_controller.rb:15:increate_assets' compass (0.10.6) lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in process' haml (3.0.4) rails/./lib/sass/plugin/rack.rb:41:incall' haml (3.0.4) rails/./lib/sass/plugin/rack.rb:41:in call' pdfkit (0.4.6) lib/pdfkit/middleware.rb:14:incall' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in process_request' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:160:inaccept_and_process_next_request' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:113:in main_loop' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:416:instart_threads' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/utils.rb:113:in create_thread_and_abort_on_exception' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/utils.rb:110:ininitialize' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/utils.rb:110:in new' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/utils.rb:110:increate_thread_and_abort_on_exception' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:411:in start_threads' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:410:intimes' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:410:in start_threads' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:409:insynchronize' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:409:in start_threads' passenger (5.1.10) src/ruby_supportlib/phusion_passenger/request_handler.rb:201:inmain_loop' passenger (5.1.10) src/helper-scripts/rack-preloader.rb:159

Rendering template within layouts/application Rendering errors/500 (500) [Hoptoad] Success: Net::HTTPOK [Hoptoad] Environment Info: [Ruby: 1.8.7] [Rails: 2.3.10] [Env: production] ** [Hoptoad] Response from Hoptoad: <?xml version="1.0" encoding="UTF-8"?>0005b2be-bd45-56b2-c25a-ca8946216184https://globalauth.airbrake.io/locate/0005b2be-bd45-56b2-c25a-ca8946216184 ` Any Ideas? I've updated OpenSSL to 1.0.2t. I upgraded paperclip from 2.3.1 to 2.8. I'd love to upgrade the system but I can't just yet. My client doesn't have the time or money yet.

I would appreciate any ideas. Thank you in advance for your help.

Ray

sasharevzin commented 4 years ago

Oh, man. I would downgrade to the version that it was working before because using Ruby v1.8 is already exposed to many exploits... 😞

RayNawara commented 4 years ago

It wasn't working before. It has been failing off and on. This version of paperclip is working faster and better, so I'd like to try and stay here at least.

Thanks...