Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

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

Open
RayNawara opened this issue Oct 28, 2020 · 2 comments

Comments

@RayNawara
Copy link

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:in rbuf_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:in timeout'
/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:in readuntil'
/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:in read_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:in request'
cloudfiles (1.4.8) lib/cloudfiles/connection.rb:271:in cfreq' cloudfiles (1.4.8) lib/cloudfiles/connection.rb:150:in containers'
lib/paperclip/storage/cloudfiles.rb:61:in cloudfiles_container' lib/paperclip/storage/cloudfiles.rb:82:in flush_writes'
lib/paperclip/storage/cloudfiles.rb:81:in each' lib/paperclip/storage/cloudfiles.rb:81:in flush_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:in create_assets'
app/controllers/attachables_controller.rb:15:in each' app/controllers/attachables_controller.rb:15:in create_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:in call'
haml (3.0.4) rails/./lib/sass/plugin/rack.rb:41:in call' pdfkit (0.4.6) lib/pdfkit/middleware.rb:14:in call'
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:in accept_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:in start_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:in initialize'
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:in create_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:in times'
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:in synchronize'
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:in main_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:

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
Copy link

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
Copy link
Author

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants