Hi Pat! Thanks for the response. We couldn't figure out what the problem was, but we avoided it by setting updates_enabled to false. The only change we had made was switching to Bundler, and I know it loads things in a slightly different order, but I can't figure out why this would be causing these problems.
Anyway, I'm glad we got this sorted out. We don't need or want those updates, so I guess the silver lining is we found out how to disable them. :) -Steve On Aug 19, 7:08 pm, Pat Allan <[email protected]> wrote: > Hi Steve > > The reason this error is happening only after searches is because the indexes > are only loaded when you search - so prior to then, nothing will happen. > > You've mentioned the Sphinx instance is running on a different server, but > you've got localhost in your sphinx.yml file, which doesn't help. Also, you > may want to explicitly set the version to avoid the warnings: > > version: 0.9.9 > > As for disabling updates altogether, set ThinkingSphinx.updates_enabled - > this needs to be done at the end of environment.rb (not in qa.rb - Thinking > Sphinx hasn't been loaded, so this causes double-loading, and the setting is > ignored). > > ThinkingSphinx.updates_enabled = false > > While you're at it, it's probably worth telling Thinking Sphinx the daemon is > remote (so it doesn't look for the pid file): > > ThinkingSphinx.remote_sphinx = true > > All that said, I've no idea why this issue has cropped up now but not in > other environments... > > -- > Pat > > On 20/08/2010, at 8:55 AM, Steve H wrote: > > > > > > > > > Hi Pat! > > > I'm sad to report that our problem actually continues... earlier I > > thought we had fixed the problem, because what I was doing before to > > reproduce ("Address.first.save") no longer caused an error. > > > What I just discovered is that *now* this will still cause an error, > > if you've done a search first. I'm just about at my wit's end. > > Observe my reproduction of this error: > > > $ script/console qa > > Loading qa environment (Rails 2.3.2) > > > Sphinx cannot be found on your system. You may need to configure the > > following > > settings in your config/sphinx.yml file: > > * bin_path > > * searchd_binary_name > > * indexer_binary_name > > > For more information, read the documentation: > >http://freelancing-god.github.com/ts/en/advanced_config.html > > > Sphinx cannot be found on your system. You may need to configure the > > following > > settings in your config/sphinx.yml file: > > * bin_path > > * searchd_binary_name > > * indexer_binary_name > > > For more information, read the documentation: > >http://freelancing-god.github.com/ts/en/advanced_config.html > > /ip/releases/20100818064707/config/initializers/jrails.rb:1: warning: > > already initialized constant JQUERY_VAR > > WARNING: As of 2.3, a breaking change has been in the naming of sub- > > objects. ROXML now considers the xml_name of the sub-object before > > falling back to the accessor name of the parent. Use :from on the > > parent declaration to override this behavior. Set > > ROXML::SILENCE_XML_NAME_WARNING to avoid this message. > >>> review = IpReview.find 10305283487 > > => #<IpReview id: 10305283487, created_at: "2010-08-19 21:57:00", > > updated_at: "2010-08-19 21:57:00", rating: 4, title: "Best thin crust > > in the east bay", review_text: "Great New York style pizza (ie, thin > > crust), great ...", member_id: 5357794233, business_id: 10319935094, > > helpful_count: 0, not_helpful_count: 0, is_anonymous: false, > > is_first_review: false, ip_address: "10.9.0.26", type: "IpReview", > > cs_author: nil, cs_pros: nil, cs_cons: nil, cs_id: nil, external_url: > > nil> > >>> atts = {"rating"=>"4", "title"=>"Best thin crust in the east bay", > >>> "review_text"=>"Great New York style pizza (ie, thin crust), great beers > >>> on tap. What more could a guy ask for?\r\n\r\nAlthough, I guess I would > >>> be remiss not to mention that occasionally service leaves something to be > >>> desired...\r\n\r\nBut as long as you're not in a big hurry, I would > >>> highly recommend this place. It's my \"go-to\" thin-crust pizza place."} > > => {"rating"=>"4", "title"=>"Best thin crust in the east bay", > > "review_text"=>"Great New York style pizza (ie, thin crust), great > > beers on tap. What more could a guy ask for?\r\n\r\nAlthough, I guess > > I would be remiss not to mention that occasionally service leaves > > something to be desired...\r\n\r\nBut as long as you're not in a big > > hurry, I would highly recommend this place. It's my \"go-to\" thin- > > crust pizza place."} > >>> review.update_attributes atts > > => true > >>> Address.search "pizza" > > => [#<Address id: 1499, business_id: 2514770805, phone: "4155643900", > > address_1: "1825 Irving Street", address_2: nil, city_id: 2638, > > state_code: "CA", country_code: "USA", zip_code: "94122", lat: > > 37.763429, lon: -122.477588, created_at: "2010-08-04 18:48:00", > > updated_at: "2010-08-04 18:48:00">, #<Address id: 1634, business_id: > > 2521630805, phone: "2067834061", address_1: "5327 Ballard Ave NW", > > address_2: nil, city_id: 27992, state_code: "WA", country_code: "USA", > > zip_code: "98107", lat: 47.666744, lon: -122.383787, created_at: > > "2010-08-04 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address > > id: 1809, business_id: 2529780805, phone: "6269189545", address_1: > > "16423 Maplegrove St", address_2: nil, city_id: 2234, state_code: > > "CA", country_code: "USA", zip_code: "91744", lat: 34.044139, lon: > > -117.925275, created_at: "2010-08-04 18:48:00", updated_at: > > "2010-08-04 18:48:00">, #<Address id: 2029, business_id: 2532560941, > > phone: "5628684100", address_1: "11033 Rosecrans Ave # C", address_2: > > nil, city_id: 2440, state_code: "CA", country_code: "USA", zip_code: > > "90650", lat: 33.902199, lon: -118.099126, created_at: "2010-08-04 > > 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address id: 2046, > > business_id: 2532565983, phone: "5629201234", address_1: "10040 > > ROSECRANS AVE", address_2: nil, city_id: 1757, state_code: "CA", > > country_code: "USA", zip_code: "90706", lat: 33.9019, lon: -118.1192, > > created_at: "2010-08-04 18:48:00", updated_at: "2010-08-10 09:51:00">, > > #<Address id: 2054, business_id: 2532569207, phone: "7145278749", > > address_1: "11122 Los Alamitos Blvd", address_2: nil, city_id: 2297, > > state_code: "CA", country_code: "USA", zip_code: "90720", lat: > > 33.801274, lon: -118.071798, created_at: "2010-08-04 18:48:00", > > updated_at: "2010-08-04 18:48:00">, #<Address id: 2372, business_id: > > 2536917340, phone: "4158213949", address_1: "3489 Mission St", > > address_2: nil, city_id: 2638, state_code: "CA", country_code: "USA", > > zip_code: "94110", lat: 37.741044, lon: -122.422445, created_at: > > "2010-08-04 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address > > id: 2486, business_id: 2540747340, phone: "6263013565", address_1: > > "1804 Buena Vista st.", address_2: nil, city_id: 1986, state_code: > > "CA", country_code: "USA", zip_code: "91010", lat: 34.132033, lon: > > -117.977333, created_at: "2010-08-04 18:48:00", updated_at: > > "2010-08-04 18:48:00">, #<Address id: 2641, business_id: 2545877340, > > phone: "2259367077", address_1: "9609 Plank Road", address_2: nil, > > city_id: 9662, state_code: "LA", country_code: "USA", zip_code: > > "70722", lat: 30.852456, lon: -91.007224, created_at: "2010-08-04 > > 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address id: 2980, > > business_id: 3535277340, phone: "3018164800", address_1: "11638 > > ROCKVILLE PIKE", address_2: nil, city_id: 10904, state_code: "MD", > > country_code: "USA", zip_code: "20852", lat: 39.0472, lon: -77.1132, > > created_at: "2010-08-04 18:48:00", updated_at: "2010-08-04 18:48:00">, > > #<Address id: 2997, business_id: 3535947340, phone: "3012777722", > > address_1: "4509 College Ave", address_2: nil, city_id: 10661, > > state_code: "MD", country_code: "USA", zip_code: "20740", lat: > > 38.981875, lon: -76.937176, created_at: "2010-08-04 18:48:00", > > updated_at: "2010-08-04 18:48:00">, #<Address id: 2998, business_id: > > 3535957340, phone: "3014745350", address_1: "6160 Greenbelt Rd", > > address_2: nil, city_id: 10749, state_code: "MD", country_code: "USA", > > zip_code: "20770", lat: 38.997538, lon: -76.908103, created_at: > > "2010-08-04 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address > > id: 3646, business_id: 3559597340, phone: "2537598334", address_1: > > "5114 6th Ave", address_2: nil, city_id: 28033, state_code: "WA", > > country_code: "USA", zip_code: "98406", lat: 47.255263, lon: > > -122.505979, created_at: "2010-08-04 18:48:00", updated_at: > > "2010-08-04 18:48:00">, #<Address id: 3997, business_id: 3572697340, > > phone: "2545626999", address_1: "1322 E. Mialm", address_2: nil, > > city_id: 25611, state_code: "TX", country_code: "USA", zip_code: > > "76667", lat: 31.685486, lon: -96.462385, created_at: "2010-08-04 > > 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address id: 4158, > > business_id: 3579227340, phone: "9108643587", address_1: "113 E. > > Blackstock Road", address_2: nil, city_id: 23783, state_code: "SC", > > country_code: "USA", zip_code: "29301", lat: 34.935373, lon: > > -81.99012, created_at: "2010-08-04 18:48:00", updated_at: "2010-08-04 > > 18:48:00">, #<Address id: 4339, business_id: 3586317340, phone: > > "6613755000", address_1: "4200 Stine Rd Ste A", address_2: nil, > > city_id: 1741, state_code: "CA", country_code: "USA", zip_code: > > "93313", lat: 35.317046, lon: -119.056531, created_at: "2010-08-04 > > 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address id: 4419, > > business_id: 3589037340, phone: "7066290295", address_1: "613 West > > Belmont Drive", address_2: nil, city_id: 4253, state_code: "GA", > > country_code: "USA", zip_code: "30701", lat: 34.481293, lon: > > -84.949321, created_at: "2010-08-04 18:48:00", updated_at: "2010-08-04 > > 18:48:00">, #<Address id: 4494, business_id: 3591707340, phone: > > "2036391000", address_1: "43 Colony St.", address_2: nil, city_id: > > 3433, state_code: "CT", country_code: "USA", zip_code: "06450", lat: > > 41.536636, lon: -72.802648, created_at: "2010-08-04 18:48:00", > > updated_at: "2010-08-04 18:48:00">, #<Address id: 4552, business_id: > > 3593617340, phone: "7708528282", address_1: "5550 Peachtree INdustrial > > Blvd.", address_2: nil, city_id: 4195, state_code: "GA", country_code: > > "USA", zip_code: "30341", lat: 33.899774, lon: -84.300639, created_at: > > "2010-08-04 18:48:00", updated_at: "2010-08-04 18:48:00">, #<Address > > id: 4567, business_id: 3594037340, phone: "7062089552", address_1: > > "122 Alps Road", address_2: nil, city_id: 4194, state_code: "GA", > > country_code: "USA", zip_code: "30606", lat: 33.94857, lon: > > -83.409668, created_at: "2010-08-04 18:48:00", updated_at: "2010-08-04 > > ... > > read more » -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
