Panda Stream Crashing on Heroku
Hey Guys, I am running through the steps in the walkthrough found here:
http://devcenter.heroku.com/articles/pandastream
At the step where I try to do the encoding like this:
heroku console
video = Panda::Video.create(:source_url => "http://panda-test-harness-videos.s3.amazonaws.com/panda.mp4")
The app crashes, "heroku logs" shows the following:
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:397:
[BUG] Segmentation fault
2011-11-27T22:53:33+00:00 app[web.1]: ruby 1.9.2p180 (2011-02-18
revision 30909) [x86_64-linux]
2011-11-27T22:53:33+00:00 app[web.1]:
2011-11-27T22:53:33+00:00 app[web.1]: -- control frame
----------
2011-11-27T22:53:33+00:00 app[web.1]: c:0057 p:---- s:0269 b:0269
l:000268 d:000268 CFUNC :easy_getinfo_string
2011-11-27T22:53:33+00:00 app[web.1]: c:0056 p:0013 s:0265 b:0265
l:000264 d:000264 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:397
2011-11-27T22:53:33+00:00 app[web.1]: c:0055 p:0022 s:0261 b:0261
l:000260 d:000260 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:174
2011-11-27T22:53:33+00:00 app[web.1]: c:0054 p:0121 s:0258 b:0236
l:000235 d:000235 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/hydra.rb:243
2011-11-27T22:53:33+00:00 app[web.1]: c:0053 p:0029 s:0231 b:0229
l:001bf8 d:000228 BLOCK
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/hydra.rb:186
2011-11-27T22:53:33+00:00 app[web.1]: c:0052 p:---- s:0225 b:0225
l:000224 d:000224 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0051 p:---- s:0223 b:0223
l:000222 d:000222 CFUNC :call
2011-11-27T22:53:33+00:00 app[web.1]: c:0050 p:0021 s:0219 b:0219
l:000218 d:000218 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:362
2011-11-27T22:53:33+00:00 app[web.1]: c:0049 p:---- s:0216 b:0216
l:000215 d:000215 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0048 p:---- s:0214 b:0214
l:000213 d:000213 CFUNC :multi_perform
2011-11-27T22:53:33+00:00 app[web.1]: c:0046 p:0131 s:0208 b:0208
l:000207 d:000207 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/hydra.rb:95
2011-11-27T22:53:33+00:00 app[web.1]: c:0047 p:0019 s:0211 b:0211
l:000210 d:000210 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/multi.rb:21
2011-11-27T22:53:33+00:00 app[web.1]: c:0045 p:0528 s:0202 b:0202
l:0007d0 d:0007d0 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/faraday-0.7.5/lib/faraday/adapter/typhoeus.rb:56
2011-11-27T22:53:33+00:00 app[web.1]: c:0044 p:0027 s:0192 b:0192
l:000191 d:000191 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/faraday-0.7.5/lib/faraday/request/url_encoded.rb:14
2011-11-27T22:53:33+00:00 app[web.1]: c:00
2011-11-27T22:53:33+00:00 app[web.1]: c:0042 p:0096 s:0184
b:0184 l:000183 d:000183 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/faraday-0.7.5/lib/faraday/connection.rb:207
2011-11-27T22:53:33+00:00 app[web.1]: c:0041 p:0059 s:0175 b:0175
l:000174 d:000174 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/faraday-0.7.5/lib/faraday/connection.rb:94
2011-11-27T22:53:33+00:00 app[web.1]: c:0040 p:0015 s:0168 b:0168
l:000ce0 d:002708 BLOCK
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/adapters/faraday.rb:27
2011-11-27T22:53:33+00:00 app[web.1]: c:0039 p:0016 s:0166 b:0165
l:000164 d:000164 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/adapters/faraday.rb:63
2011-11-27T22:53:33+00:00 app[web.1]: c:0038 p:0084 s:0160 b:0160
l:000ce0 d:000ce0 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/adapters/faraday.rb:26
2011-11-27T22:53:33+00:00 app[web.1]: c:0037 p:0042 s:0154 b:0154
l:000153 d:000153 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/connection.rb:27
2011-11-27T22:53:33+00:00 app[web.1]: c:0036 p:0089 s:0148 b:0148
l:000147 d:000147 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/builders.rb:36
2011-11-27T22:53:33+00:00 app[web.1]: c:0034 p:0023 s:0138 b:0138
l:000058 d:000380 EVAL /home/heroku_rack/lib/console.rb:158
2011-11-27T22:53:33+00:00 app[web.1]: c:0035 p:0046 s:0143 b:0143
l:000142 d:000142 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/builders.rb:14
2011-11-27T22:53:33+00:00 app[web.1]: c:0033 p:---- s:0135 b:0135
l:000134 d:000134 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0032 p:---- s:0133 b:0133
l:000132 d:000132 CFUNC :eval
2011-11-27T22:53:33+00:00 app[web.1]: c:0031 p:0029 s:0129 b:0129
l:000128 d:000128 METHOD /home/heroku_rack/lib/console.rb:148
2011-11-27T22:53:33+00:00 app[web.1]: c:0030 p:0019 s:0124 b:0124
l:000118 d:000123 BLOCK /home/heroku_rack/lib/console.rb:80
2011-11-27T22:53:33+00:00 app[web.1]: c:0029 p:0019 s:0122 b:0122
l:000121 d:000121 METHOD
/usr/ruby1.9.2/lib/ruby/1.9.1/monitor.rb:201
2011-11-27T22:53:33+00:00 app[web.1]: c:0028 p:0078 s:0119 b:0119
l:000118 d:000118 METHOD /home/heroku_rack/lib/console.rb:79
2011-11-27T22:53:33+00:00 app[web.1]: c:0027 p:0305 s:0109 b:0108
l:000107 d:000107 METHOD /home/heroku_rack/lib/console.rb:41
2011-11-27T22:53:33+00:00 app[web.1]: c:0026 p:0179 s:0100 b:0100
l:000087 d:000099 BLOCK
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:52
2011-11-27T22:53:33+00:00 app[web.1]: c:0025 p:---- s:0093 b:0093
l:000092 d:000092 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0024 p:---- s:0091 b:0091
l:000090 d:000090 CFUNC :each
2011-11-27T22:53:33+00:00 app[web.1]: c:0023 p:0058 s:0088 b:0088
l:000087 d:000087 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:46
2011-11-27T22:53:33+00:00 app[web.1]: c:0022 p:0038 s:0079 b:0079
l:000078 d:000078 METHOD
/home/heroku_rack/lib/date_header.rb:14
2011-11-27T22:53:33+00:00 app[web.1]: c:0021 p:0019 s:0071 b:0071
l:000070 d:000070 METHOD
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:134
2011-11-27T22:53:33+00:00 app[web.1]: c:0020 p:0020 s:0067 b:0067
l:000058 d:000066 BLOCK
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:76
2011-11-27T22:53:33+00:00 app[web.1]: c:0019 p:---- s:0065 b:0065
l:000064 d:000064 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0018 p:---- s:0063 b:0063
l:000062 d:000062 CFUNC :catch
2011-11-27T22:53:33+00:00 app[web.1]: c:0017 p:0064 s:0059 b:0059
l:000058 d:000058 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:74
2011-11-27T22:53:33+00:00 app[web.1]: c:0016 p:0088 s:0055 b:0054
l:000053 d:000053 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:57
2011-11-27T22:53:33+00:00 app[web.1]: c:0015 p:0036 s:0051 b:0051
l:000050 d:000050 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:42
2011-11-27T22:53:33+00:00 app[web.1]: c:0014 p:---- s:0046 b:0046
l:000045 d:000045 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0012 p:0248 s:0041 b:0041
l:000040 d:000040 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256
2011-11-27T22:53:33+00:00 app[web.1]: c:0013 p:---- s:0044 b:0044
l:000043 d:000043 CFUNC :run_machine
2011-11-27T22:53:33+00:00 app[web.1]: c:0011 p:0066 s:0034 b:0034
l:001350 d:001350 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/backends/base.rb:57
2011-11-27T22:53:33+00:00 app[web.1]: c:0010 p:0143 s:0030 b:0030
l:000029 d:000029 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/server.rb:156
2011-11-27T22:53:33+00:00 app[web.1]: c:0009 p:0481 s:0027 b:0027
l:0003c0 d:0003c0 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80
2011-11-27T22:53:33+00:00 app[web.1]: c:0008 p:0283 s:0023 b:0023
l:000022 d:000022 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177
2011-11-27T22:53:33+00:00 app[web.1]: c:0007 p:0037 s:0018 b:0018
l:000017 d:000017 METHOD
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143
2011-11-27T22:53:33+00:00 app[web.1]: c:0005 p:---- s:0013 b:0013
l:000012 d:000012 FINISH
2011-11-27T22:53:33+00:00 app[web.1]: c:0006 p:0042 s:0015 b:0015
l:000014 d:000014 TOP
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6
2011-11-27T22:53:33+00:00 app[web.1]: c:0004 p:---- s:0011 b:0011
l:000010 d:000010 CFUNC :load
2011-11-27T22:53:33+00:00 app[web.1]: c:0003 p:0127 s:0007 b:0007
l:001988 d:001490 EVAL /usr/ruby1.9.2/bin/thin:19
2011-11-27T22:53:33+00:00 app[web.1]: c:0001 p:0000 s:0002 b:0002
l:001988 d:001988 TOP
2011-11-27T22:53:33+00:00 app[web.1]: c:0002 p:---- s:0004 b:0004
l:000003 d:000003 FINISH
2011-11-27T22:53:33+00:00 app[web.1]:
---------------------------
2011-11-27T22:53:33+00:00 app[web.1]: /usr/ruby1.9.2/bin/thin:19:in
load' 2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:inrun_command'
2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80:in
start' 2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/server.rb:156:instart'
2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/backends/base.rb:57:in
start' 2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun'
2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
run_machine' 2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:42:inreceive_data'
2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:57:in
`process'
2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:134:in
call' 2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/date_header.rb:14:incall'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:46:in
call' 2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:46:ineach'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/urlmap.rb:52:in
block in call' 2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/console.rb:41:incall'
2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/console.rb:79:in process_command'
2011-11-27T22:53:33+00:00 app[web.1]:
/usr/ruby1.9.2/lib/ruby/1.9.1/monitor.rb:201:inmon_synchronize'
2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/console.rb:80:in block in
process_command' 2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/console.rb:148:in_eval'
2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/console.rb:148:in eval'
2011-11-27T22:53:33+00:00 app[web.1]:
/home/heroku_rack/lib/console.rb:158:inblock (2 levels) in
'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/builders.rb:14:in
create' 2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/builders.rb:36:increate'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/adapters/faraday.rb:26:in
post' 2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/connection.rb:27:inpost'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/adapters/faraday.rb:63:in
rescue_json_parsing' 2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/panda-1.5.0/lib/panda/adapters/faraday.rb:27:inblock
in post'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/faraday-0.7.5/lib/faraday/connection.rb:94:in
post' 2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/faraday-0.7.5/lib/faraday/connection.rb:207:inrun_request'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/multi.rb:21:in
multi_perform' 2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/hydra.rb:243:inresponse_from_easy'
2011-11-27T22:53:33+00:00 app[web.1]:
/app/.bundle/gems/ruby/1.9.1/gems/typhoeus-0.3.3/lib/typhoeus/easy.rb:397:in
`easy_getinfo_string'
2011-11-27T22:53:33+00:00 app[web.1]:
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Vivien Schilis on 11 Jan, 2012 06:01 PM
Sorry your ticket has been gone to Spam by tender.
We have found the issue. You need to set the typhoeus version to 0.2.4
Heroku < cedar doesn't support typhoeus >= 0.3
We will push a fix on 1.5.1
Best,
Vivien
Support Staff 3 Posted by Vivien Schilis on 12 Jan, 2012 01:07 PM
We have updated our Heroku docs: http://devcenter.heroku.com/articles/pandastream. Have a look at it
Vivien Schilis closed this discussion on 24 Jan, 2012 11:24 AM.