Upgrading to 0.10 using debs: chef-solr-installer can't find solr-home.tar.gz

Hello,

I just upgraded our 0.9.16 using the lucid-0.10 repo (“apt-get install
chef chef-server”), which seems to have worked great. However, when I
try to run chef-solr-installer per the upgrade instructions, it bombs
out with this error:

tar: /usr/lib/ruby/solr/solr-home.tar.gz: Cannot open: No such file or directory

The /usr/lib/ruby/solr directory seems not to exist. What’s the best
path to creating what the upgrader needs to complete? Thank you in
advance.

-J

Got a little further by manually downloading solr-home.tar.gz and
solr-jetty.tar.gz from the Chef Github repo and placing them in
/usr/lib/ruby/solr. Now chef-solr-installer completes but starting
chef.solr errors out with:

[Tue, 17 May 2011 18:02:56 +0000] INFO: Starting Solr with java
-Xmx256M -Xms256M -Dsolr.data.dir=/var/cache/chef/solr/data
-Dsolr.solr.home=/var/lib/chef/solr
-DSTART=/var/lib/chef/solr/solr-jetty/etc/start.config -jar
/var/lib/chef/solr/solr-jetty/start.jar
java.io.FileNotFoundException:
/var/lib/chef/solr/solr-jetty/etc/start.config (No such file or
directory)

Can I just use a default jetty start.config or is there a chef
specific one that has to be used?

-J

On Tue, May 17, 2011 at 10:59 AM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

Hello,

I just upgraded our 0.9.16 using the lucid-0.10 repo ("apt-get install
chef chef-server"), which seems to have worked great. However, when I
try to run chef-solr-installer per the upgrade instructions, it bombs
out with this error:

tar: /usr/lib/ruby/solr/solr-home.tar.gz: Cannot open: No such file or directory

The /usr/lib/ruby/solr directory seems not to exist. What's the best
path to creating what the upgrader needs to complete? Thank you in
advance.

-J

On Tue, May 17, 2011 at 9:59 AM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

I just upgraded our 0.9.16 using the lucid-0.10 repo ("apt-get install
chef chef-server"), which seems to have worked great. However, when I
try to run chef-solr-installer per the upgrade instructions, it bombs
out with this error:

The contents of solr-home.tar.gz are installed to /var/lib/chef/solr
as part of the debian package. You shouldn't need chef-solr-installer
for the debian packages. I've created a ticket to remove it. [1] Did
you try starting solr before using the solr installer?

I would run:

sudo dpkg --force-depends -P chef-solr
sudo apt-get install -f

This should recreate the links that the chef-solr package uses on
debian that were probably overwritten when you installed the archive.

Bryan

[1] http://tickets.opscode.com/browse/CHEF-2351

The contents of solr-home.tar.gz are installed to /var/lib/chef/solr
as part of the debian package. You shouldn't need chef-solr-installer
for the debian packages. I've created a ticket to remove it. [1] Did
you try starting solr before using the solr installer?

I would run:

sudo dpkg --force-depends -P chef-solr
sudo apt-get install -f

That fixed it. Thank you. :slight_smile: Perhaps a note also on
http://wiki.opscode.com/display/chef/Upgrading+Chef+0.9.x+to+Chef+0.10.x
noting that you should skip the Solr upgrade step if installing from
debs.

Purging the solr.rb file so it was recreated also cleared it looking
for the jetty start.config file.

-J

Can you update the wiki, please?

The jetty file is found via a link, I believe.

Bryan

On May 17, 2011 11:36 AM, "Jason J. W. Williams" jasonjwwilliams@gmail.com
wrote:

The contents of solr-home.tar.gz are installed to /var/lib/chef/solr
as part of the debian packa...
That fixed it. Thank you. :slight_smile: Perhaps a note also on
http://wiki.opscode.com/display/chef/Upgrading+Chef+0.9.x+to+Chef+0.10.x
noting that you should skip the Solr upgrade step if installing from
debs.

Purging the solr.rb file so it was recreated also cleared it looking
for the jetty start.config file.

-J

On Tue, May 17, 2011 at 12:39 PM, Bryan McLellan btm@loftninjas.org wrote:

Can you update the wiki, please?

Done.

The jetty file is found via a link, I believe.

Actually the regenerated solr.rb clears the reference to start.config,
so that it is no longer passed to the java start options.

-J