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

Unable to import gems because of write_gem failure #293

Closed
ognevsky opened this issue May 29, 2011 · 3 comments · Fixed by #335 or #394
Closed

Unable to import gems because of write_gem failure #293

ognevsky opened this issue May 29, 2011 · 3 comments · Fixed by #335 or #394
Labels
Milestone

Comments

@ognevsky
Copy link
Contributor

Another issue about importing gems locally:
This rake task rake gemcutter:import:process ~/code/gemcutter/vendor/cache aborted when write_gem method is invoked.

This is because this method https://github.com/rubygems/gemcutter/blob/master/app/models/vault.rb#L17-19 returns nil. So, the next step is directory.files, which raises undefined method 'files' for nil:NilClass.

So, based on my prev. issue I see this picture:
— if some gem has dep's, it's failure here: https://github.com/rubygems/gemcutter/blob/master/app/models/pusher.rb#L50 and then next gem's turn.
— if some gem hasn't any dep's, it failures with nil.files as I showed above. And it saved to rubygems table, too. So, the next time I started this rake task, this gem will be skipped (because no version update).

No gems are imported to /server/cache dir, but gems w/o dependencies save themselfs to DB (linksets, ownerships, versions and rubygems tables).

Sorry for my English, I hope you will understand me.

@phoet
Copy link
Contributor

phoet commented Dec 13, 2011

i came accross the same issue and created a gist with the output here: https://gist.github.com/1473589

the funny thing is that the import process continues gem by gem after each call to the rake task.

since i have no idea what is happening with the indexer and fog, i have no clue where to look for a fix :(

@ognevsky
Copy link
Contributor Author

@phoet there was some pull request about this, but is still unmerged and i don't actually know if it solves this problem. Here it is: #294

@phoet phoet mentioned this issue Dec 13, 2011
avescodes pushed a commit to avescodes/rubygems.org that referenced this issue Jan 26, 2012
cmeiklejohn added a commit that referenced this issue Jan 26, 2012
Fix Issue #293 and Issue #294. All credits to mirell.
@cmeiklejohn
Copy link
Contributor

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants