Description of problem: Try to install find mime-types-1.19 for a ruby app with local lib mirror by modifying source to http://mirror1.prod.rhcloud.com/mirror/ruby/, it will fail with error: remote: Fetching source index for http://mirror1.prod.rhcloud.com/mirror/ruby/ remote: Could not find mime-types-1.19 in any of the sources Version-Release number of selected component (if applicable): current prod local lib mirror repo How reproducible: Always Steps to Reproduce: 1. could reproduce by just gem install mime-types -v 1.19 --source http://mirror1.prod.rhcloud.com/mirror/ruby/ from a devenv instance or with the following steps 2.create a rubyapp 3. rake new rubyapp 4. add mime-types (1.19) to Gemfile 5. git push Actual results: Could not find mime-types-1.19 in local lib mirrors Expected results: We could install it from the local mirrors Additional info:
It's possible that this hadn't been pulled down to our mirror, or maybe hadn't been indexed yet. But it is working for me now on a dev machine. [root@ip-10-62-90-197 ~]# gem install mime-types -v 1.19 --source http://mirror1.prod.rhcloud.com/mirror/ruby/ Fetching: mime-types-1.19.gem (100%) Successfully installed mime-types-1.19 1 gem installed Installing ri documentation for mime-types-1.19... Installing RDoc documentation for mime-types-1.19... [root@ip-10-62-90-197 ~]# Can you please try again and see if it is now working for you.
Strange, I could only find these: [root@ip-10-118-86-221 ~]# gem search mime-types -r --source http://mirror1.prod.rhcloud.com/mirror/ruby/ *** REMOTE GEMS *** mime-types (1.18, 1.17.2)
This issue is also reproduced when creating ruby framework on Fedora 17 with gem 0.95.4. The error message "Can't find rake-0.9.2.2" is shown . Please refer to the reproducible steps as below: 1. Install ruby-devel package and latest rails 3.2.6 on client. 2. create a domain 3. create a ruby app ruby1 4. Create a new Ruby application on new created local repo #rails new ./ruby1 5. switch to app repo ruby1 6. Generate controller #rails generate controller home index 7. create index.html.erb file under ./app/views/home dir #cat ./app/views/home/index.html.erb <h1>Hello, Rails!</h1> 8.remove public/index.html #rm public/index.html 9. add new line to file ./config/routes.rb root :to => "home#index" 10. bundle install #bundle install --deployment 11. git add all new and modified files #git add . #git add -f .bundle 12. git commit changes #git commit -m "comment" 13. git push #git push Actual result: Git push failed as it can't find rake-0.9.2.2.
I am getting very confused. Are the images you are testing on in AWS or on a local machine. When this is called "local mirror" it is local to Amazon Cloud, not for local installs. If this machine is in the Amazon Cloud (AWS) please let me know which instance it is so I can look at it. If this machine is not in the Amazon Cloud (AWS) then the mirror is working as it should.
OK, I am now able to reproduce the error on your machine, and now mine as well. I'm looking into the issue again. Troy
I found the problem we were having. Although the fix is simple, it might take all day to finish. I'll let you know when it is completely fixed. Troy
Just an update. Technically, the fix is simple. I have to rerun the gem generate_index (the full index and not an update) on the directory were we put the gems from rubygems.org. But I've ran into several scaling problems that I forgot about last time I had to do this. It should hopefully be done tomorrow.
OK, It's fixed for all the mirror nodes. It's also completely fixed so that it shouldn't happen again. root@ip-10-72-13-217 ~]# gem list mime-types -V -r -s http://mirror1.prod.rhcloud.com/mirror/ruby/ *** REMOTE GEMS *** GET http://mirror1.prod.rhcloud.com/mirror/ruby/latest_specs.4.8.gz 200 OK mime-types (1.19) [root@ip-10-72-13-217 ~]# gem list mime-types -V -r -s http://mirror2.prod.rhcloud.com/mirror/ruby/ *** REMOTE GEMS *** GET http://mirror2.prod.rhcloud.com/mirror/ruby/latest_specs.4.8.gz 200 OK mime-types (1.19) [root@ip-10-72-13-217 ~]# gem search mime-types -r -s http://mirror1.prod.rhcloud.com/mirror/ruby/ *** REMOTE GEMS *** mime-types (1.19)
Verified it on devenv_1876, it;s fixed # gem list mime-types -V -r -s http://mirror1.prod.rhcloud.com/mirror/ruby/ *** REMOTE GEMS *** GET http://mirror1.prod.rhcloud.com/mirror/ruby/latest_specs.4.8.gz 200 OK mime-types (1.19