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

Internal server error #35

Closed
sbreble opened this issue Aug 5, 2014 · 2 comments
Closed

Internal server error #35

sbreble opened this issue Aug 5, 2014 · 2 comments

Comments

@sbreble
Copy link

sbreble commented Aug 5, 2014

Hi,
Please, I have installed Wallop but I must have done something wrong.
When I run script/start I get "Internal server error" in the browser.
When I run script/server I get "OpenURI::HTTPError at /channels 404 Not Found".
selection_001

I have installed gem, ffmpeg and ruby first and then Wallop.
I changed config file to point to corret host and ffmpeg path.
PS: I have a PRIME.
Could you please shed some light on what could be the issue?
Thanks
Sbre

Terminal output:

Maximum connections set to 1024
Listening on 0.0.0.0:8888, CTRL+C to stop
194.168.0.15 - - [05/Aug/2014 08:37:08] "GET / HTTP/1.1" 302 - 0.0013
OpenURI::HTTPError - 404 Not Found:
/usr/lib/ruby/1.9.1/open-uri.rb:346:in open_http' /usr/lib/ruby/1.9.1/open-uri.rb:775:inbuffer_open'
/usr/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop' /usr/lib/ruby/1.9.1/open-uri.rb:201:incatch'
/usr/lib/ruby/1.9.1/open-uri.rb:201:in open_loop' /usr/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri'
/usr/lib/ruby/1.9.1/open-uri.rb:677:in open' /usr/lib/ruby/1.9.1/open-uri.rb:33:inopen'
/home/gordo/apps/wallop/lib/wallop.rb:121:in lineup' /home/gordo/apps/wallop/lib/wallop.rb:139:infavorite_lineup'
app/app.rb:45:in block in <class:App>' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1541:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1541:in block in compile!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in[]'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in block (3 levels) in route!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:966:inroute_eval'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in block (2 levels) in route!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:987:inblock in process_route'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in catch' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:inprocess_route'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:948:in block in route!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:ineach'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in route!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1059:inblock in dispatch!'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in block in invoke' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:incatch'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in invoke' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1056:indispatch!'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in block in call!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:inblock in invoke'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in catch' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:ininvoke'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in call!' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:870:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:212:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-1.5.2/lib/rack/logger.rb:15:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:212:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:205:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/showexceptions.rb:21:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:175:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1949:incall'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1449:in block in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1726:insynchronize'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1449:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:81:inblock in pre_process'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in catch' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:inpre_process'
/home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in call' /home/gordo/apps/wallop/vendor/gems/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:inblock in spawn_threadpool'

Log:

Logfile created on 2014-08-05 08:36:48 -0400 by logger.rb/31641

I, [2014-08-05T08:36:48.544000 #20018] INFO -- : Starting up
194.168.0.15 - - [05/Aug/2014 08:37:08] "GET / HTTP/1.1" 302 - 0.0010
194.168.0.15 - - [05/Aug/2014 08:37:08] "GET /sinatra/500.png HTTP/1.1" 304 - 0.0100
194.168.0.15 - - [05/Aug/2014 11:44:49] "GET /sinatra/500.png HTTP/1.1" 304 - 0.0023

@maddox
Copy link
Owner

maddox commented Aug 5, 2014

It looks like it's not getting anything back from the HDHomeRun when it tries to query the channels.

what happens when you try to fetch the channels manually. Use this url: http://YOURHDHOMERUNIP/lineup.json. You can use CURL at the command line or just open it in your browser.

If it's returning something, then something else is wrong. But I suspect it's not.

here's the important line in the stack track

/home/gordo/apps/wallop/lib/wallop.rb:121:in lineup' /home/gordo/apps/wallop/lib/wallop.rb:139:infavorite_lineup'

Here's the line of code being executed.

Are you sure your HDHomeRun has it's firm ware up to date? Off the shelf ones usually have pretty old firmware. Make sure it's up to date and has the functionality that is required to talk to it over HTTP.

@sbreble
Copy link
Author

sbreble commented Aug 5, 2014

Firmware upgrade did it. Now I can see the channel list.
I can play because I'm on firefox but when I get home I'll try on Roku.
Thanks for the quick reply. Great program.

@sbreble sbreble closed this as completed Aug 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants