Skip to content

Instantly share code, notes, and snippets.

@samleb
Created November 2, 2012 16:34
Show Gist options
  • Select an option

  • Save samleb/4002490 to your computer and use it in GitHub Desktop.

Select an option

Save samleb/4002490 to your computer and use it in GitHub Desktop.
Error 500 when browsing SexyScopes documentation on rubydoc.info
% curl -i http://rubydoc.info/gems/sexy_scopes/0.5.0
HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Fri, 02 Nov 2012 16:31:20 GMT
Content-Type: text/plain
Connection: keep-alive
Status: 500 Internal Server Error
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
Content-Length: 7407
Vary: Accept-Encoding
undefined method `source_type' for nil:NilClass/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/helpers/html_helper.rb:579:in `block in parse_codeblocks'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/helpers/html_helper.rb:575:in `gsub'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/helpers/html_helper.rb:575:in `parse_codeblocks'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/helpers/html_helper.rb:48:in `htmlify'
/usr/local/lib/ruby/gems/1.9.1/gems/yard-sd-0.0.2/lib/yard-sd/sequence_diagram_mixin.rb:3:in `htmlify'
/var/www/apps/rubydoc.info/releases/yard/templates/default/layout/html/setup.rb:49:in `diskfile'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:355:in `render_section'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:251:in `block (2 levels) in run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:248:in `each'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:248:in `block in run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:386:in `add_options'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:247:in `run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:269:in `block in yieldall'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:400:in `with_section'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:269:in `yieldall'
/var/www/apps/rubydoc.info/releases/yard/templates/default/layout/html/layout.erb:18:in `_erb_cache_0'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:279:in `erb'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:357:in `render_section'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:251:in `block (2 levels) in run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:248:in `each'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:248:in `block in run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:386:in `add_options'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:247:in `run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/template.rb:135:in `run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/templates/engine.rb:88:in `render'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/base.rb:143:in `render'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/display_file_command.rb:18:in `run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/base.rb:95:in `call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/library_command.rb:65:in `call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:135:in `route_docs'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:110:in `route'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/display_object_command.rb:12:in `run'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/base.rb:95:in `call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/commands/library_command.rb:65:in `call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:135:in `route_docs'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:110:in `route'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/router.rb:54:in `call'
/var/www/apps/rubydoc.info/releases/yard/lib/yard/server/rack_adapter.rb:51:in `call'
/var/www/apps/rubydoc.info/releases/20100829162740/app.rb:333:in `block in <class:DocServer>'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `block in compile!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/deflater.rb:13:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/logger.rb:15:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
<internal:prelude>:10:in `synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1414:in `synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:531:in `process_client'
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:606:in `worker_loop'
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:487:in `spawn_missing_workers'
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:498:in `maintain_worker_count'
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/lib/unicorn/http_server.rb:272:in `join'
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.3.1/bin/unicorn:121:in `<top (required)>'
/usr/local/bin/unicorn:19:in `load'
/usr/local/bin/unicorn:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment