<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">17482</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2008-05-20T00:33:16-07:00</created-at>
  <creator-id type="integer">17482</creator-id>
  <milestone-due-on type="datetime">2009-08-25T00:00:00-07:00</milestone-due-on>
  <milestone-id type="integer">48581</milestone-id>
  <number type="integer">5</number>
  <permalink>sometimes-installing-fails</permalink>
  <priority type="integer">1</priority>
  <project-id type="integer">11580</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag>from_rubyforge high_priority</tag>
  <title>Sometimes installing fails</title>
  <updated-at type="datetime">2009-08-25T17:15:40-07:00</updated-at>
  <user-id type="integer">17482</user-id>
  <user-name>Chad Woolley</user-name>
  <creator-name>Chad Woolley</creator-name>
  <assigned-user-name>Chad Woolley</assigned-user-name>
  <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
  <milestone-title>0.5.3 Release</milestone-title>
  <original-body>Especially when installing a lot of gems.  Probably due to timeout.  Should retry a couple times before failing.</original-body>
  <latest-body>Especially when installing a lot of gems.  Probably due to timeout.  Should retry a couple times before failing.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;
Especially when installing a lot of gems.  Probably due to timeout.  Should retry a couple times before failing.
&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Especially when installing a lot of gems.  Probably due to timeout.  Should retry a couple times before failing.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Especially when installing a lot of gems. Probably due to
timeout. Should retry a couple times before failing.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-05-20T00:33:16-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">11364</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Sometimes installing fails due to RubyGems cache not being cleared between multiple API calls</title>
      <updated-at type="datetime">2009-08-25T17:12:02-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>1.0 Release</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Not sure if multiple retries would cause more problems, since this error can also occur if the gem or server actually doesn't exist.

As a compromise, a much more verbose error message is now printed, with instructions on how to run the 'gem list' command manually to see if the gem actually does exist on the remote server.  Look at gem_list_checker.rb for details.

Please provide more info on how to reproduce this problem if you can.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Not sure if multiple retries would cause more problems, since
this error can also occur if the gem or server actually doesn't
exist.&lt;/p&gt;
&lt;p&gt;As a compromise, a much more verbose error message is now
printed, with instructions on how to run the 'gem list' command
manually to see if the gem actually does exist on the remote
server. Look at gem_list_checker.rb for details.&lt;/p&gt;
&lt;p&gt;Please provide more info on how to reproduce this problem if you
can.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-02-23T01:15:51-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
:tag: 
</diffable-attributes>
      <milestone-id type="integer">11364</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>hold</state>
      <tag>from_rubyforge high_priority</tag>
      <title>Sometimes installing fails</title>
      <updated-at type="datetime">2009-02-23T01:15:55-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>1.0 Release</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>AHA!  This seems to only happen when the previous gem specified a different source.  For example:

    - name: mislav-will_paginate
      version: &gt;= 2.3.6
      install_options: --source=http://gems.github.com
    - name: flvtool2
      version: 1.0.6


This will work on the next GemInstaller run, since mislav-will_paginage is already installed, and no Gem.install command is specified for the different source.

To fix it, you can hardcode the source on the second gem:

    - name: mislav-will_paginate
      version: &gt;= 2.3.6
      install_options: --source=http://gems.github.com
    - name: flvtool2
      version: 1.0.6
      install_options: --source=http://gems.rubyforge.org


This is probably a bug in RubyGems related to caching last-used source or something, need to investigate...</body>
      <body-html>&lt;div&gt;&lt;p&gt;AHA! This seems to only happen when the previous gem specified a
different source. For example:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;- name: mislav-will_paginate
  version: &amp;gt;= 2.3.6
  install_options: --source=http://gems.github.com
- name: flvtool2
  version: 1.0.6
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;This will work on the next GemInstaller run, since
mislav-will_paginage is already installed, and no Gem.install
command is specified for the different source.&lt;/p&gt;
&lt;p&gt;To fix it, you can hardcode the source on the second gem:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;- name: mislav-will_paginate
  version: &amp;gt;= 2.3.6
  install_options: --source=http://gems.github.com
- name: flvtool2
  version: 1.0.6
  install_options: --source=http://gems.rubyforge.org
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;This is probably a bug in RubyGems related to caching last-used
source or something, need to investigate...&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-02-25T19:50:51-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- 
:state: hold
</diffable-attributes>
      <milestone-id type="integer">11364</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>open</state>
      <tag>from_rubyforge high_priority</tag>
      <title>Sometimes installing fails</title>
      <updated-at type="datetime">2009-02-25T19:50:52-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>1.0 Release</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Eric Hodel says this is because of the say Gem::GemRunner works - it stores the source.  As a workaround, every install call to GemRunner can be prefixed with this:

    Gem.sources.replace Gem.default_sources</body>
      <body-html>&lt;div&gt;&lt;p&gt;Eric Hodel says this is because of the say Gem::GemRunner works
- it stores the source. As a workaround, every install call to
GemRunner can be prefixed with this:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;Gem.sources.replace Gem.default_sources
&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-18T17:09:24-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">11364</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>open</state>
      <tag>from_rubyforge high_priority</tag>
      <title>Sometimes installing fails</title>
      <updated-at type="datetime">2009-03-18T17:09:29-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>1.0 Release</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-25T11:32:25-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- 
:milestone: 11364
</diffable-attributes>
      <milestone-id type="integer">48581</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>open</state>
      <tag>from_rubyforge high_priority</tag>
      <title>Sometimes installing fails</title>
      <updated-at type="datetime">2009-08-25T11:34:23-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>0.5.3 Release</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Fix committed and manually tested:  http://github.com/thewoolleyman/geminstaller/commit/a807985d745c232ce164f8671eec6c6c9c8ef60e</body>
      <body-html>&lt;div&gt;&lt;p&gt;Fix committed and manually tested: &lt;a href=
&quot;http://github.com/thewoolleyman/geminstaller/commit/a807985d745c232ce164f8671eec6c6c9c8ef60e&quot;&gt;
http://github.com/thewoolleyman/geminstaller/commit/a807985d745c232...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-08-25T12:49:15-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">48581</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>open</state>
      <tag>from_rubyforge high_priority</tag>
      <title>Sometimes installing fails</title>
      <updated-at type="datetime">2009-08-25T12:49:19-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>0.5.3 Release</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">17482</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-08-25T12:56:17-07:00</created-at>
      <creator-id type="integer">17482</creator-id>
      <diffable-attributes type="yaml">--- 
:state: open
</diffable-attributes>
      <milestone-id type="integer">48581</milestone-id>
      <number type="integer">5</number>
      <permalink>sometimes-installing-fails</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">11580</project-id>
      <state>resolved</state>
      <tag>from_rubyforge high_priority</tag>
      <title>Sometimes installing fails</title>
      <updated-at type="datetime">2009-08-25T12:56:21-07:00</updated-at>
      <user-id type="integer">17482</user-id>
      <user-name>Chad Woolley</user-name>
      <creator-name>Chad Woolley</creator-name>
      <assigned-user-name>Chad Woolley</assigned-user-name>
      <url>http://thewoolleyweb.lighthouseapp.com/projects/11580/tickets/5</url>
      <milestone-title>0.5.3 Release</milestone-title>
    </version>
  </versions>
</ticket>
