nil error on a gem page #653

Closed
dwradcliffe opened this Issue Feb 10, 2014 · 7 comments

Projects

None yet

4 participants

@dwradcliffe
RubyGems member

I'm getting a 500 error on a single gem page. I'm not sure if this is a code problem or a data problem.

https://rubygems.org/gems/cloak

Stack:

2014-02-10_13:12:15.33589 ActionView::Template::Error - undefined method `name' for nil:NilClass:
2014-02-10_13:12:15.33594   /applications/rubygems/releases/20140201190650/app/models/dependency.rb:62:in `name'
2014-02-10_13:12:15.33595   /applications/rubygems/releases/20140201190650/app/views/rubygems/_dependencies.html.erb:12:in `block in _app_views_rubygems__dependencies_html_erb__391117521341615264_57602400'
@dwradcliffe dwradcliffe added the bug label Feb 10, 2014
@aruzmeister

@dwradcliffe i think so you are having issue with database you, are you using heroku?Share you code so that i can help in fixing bug

@knappe

I've pushed carrierwave_securefile-0.4.2, cloak-0.0.1, encc-0.0.1 locally and all are browseable in both the API and /search. There could be a gem pushed to rubygems that I do not have locally that is causing this issue.

My guess is that it is the runtime dependency on crypt19. It is the one thing all the above gems have dependencies on.

@knappe

Further searching turns up this:

https://github.com/coffeejunk/crypt19
bundler/bundler#2300

There once was a crypt19 gem, but it has been yanked. That is likely what is causing the 500s.

@arthurnn
RubyGems member

@knappe were you able to simulate this locally? do you have a stack trace, or any way that I could simulate this, so I could work in a fix.

@knappe

@arthurnn I was never able to duplicate this locally. I suspect this has to do with not having the crypt19 gem available for upload. If you can track it down, I can try again (I don't recall being able to find it).

@arthurnn
RubyGems member

Would be nice to have access to the rubygems.org logs. @qrush can you help us providing that logs? so with a stacktrace we at least can be more sure about the error source.

@dwradcliffe
RubyGems member
@arthurnn arthurnn added a commit that referenced this issue May 16, 2014
@arthurnn arthurnn Dont raise if rubygem is nil on dependency
[fixes #653]
4314c71
@sferik sferik closed this in #688 May 17, 2014
@arthurnn arthurnn added a commit that referenced this issue Jan 29, 2015
@arthurnn arthurnn Dont raise if rubygem is nil on dependency
[fixes #653]
d7ffd88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment