Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1182D145 for ; Thu, 16 Aug 2012 06:27:00 +0000 (UTC) Received: (qmail 67522 invoked by uid 500); 16 Aug 2012 06:26:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67375 invoked by uid 500); 16 Aug 2012 06:26:57 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 67339 invoked by uid 99); 16 Aug 2012 06:26:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 06:26:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of will.heger@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 06:26:49 +0000 Received: by obceq6 with SMTP id eq6so3212105obc.11 for ; Wed, 15 Aug 2012 23:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4AraLZib3HQSlObV47Hj+S00OelYz+z5f+sSGKqxl4g=; b=uO9PqNTZ4lBGXOEL5Q4Fy20kZEvk13ZVp8rZuNk1WX9z/Anuz+tw35rrYWhlL6Mb2O Zpj3SVbQfoq8OVMHVkTimdrMW2Q1J87aUD69+n6wjgJSW8JD5u87Dj/D9C88NhWSG0gY L3xsoIFryqsqRhJ3K5sH/R14NpIobqhCEH7/UCi/5cLqsHxbPdkNI5T5WoHjCPvv0nBR klEfw8cwDdBn+n3BvbiZOTByvPYbQIQvOXpEAfDLf8DB/exPHuVUECLxEJPI+WTd1J0o KEFfzZtCKjseQ0rCHthO/nsHMEV0WFMWAMuuI0HNwHu9IDYSErZGrCf+5R1YoBcNXRVc d3tQ== MIME-Version: 1.0 Received: by 10.60.29.228 with SMTP id n4mr97945oeh.27.1345098388042; Wed, 15 Aug 2012 23:26:28 -0700 (PDT) Received: by 10.76.96.174 with HTTP; Wed, 15 Aug 2012 23:26:27 -0700 (PDT) In-Reply-To: References: <9ED9A116-1C4B-4BA2-A122-DFF4646E03AF@apache.org> Date: Thu, 16 Aug 2012 02:26:27 -0400 Message-ID: Subject: Re: JavaScript 1.8.5 and Upgrades From: Will Heger To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So, I pulled a couchjs I had built on a similar machine (distro and architecture) and the reduce worked, the 1.8.5 Date() behaved correctly. But sadly, I ran the test suite and it produced all kinds of crazy failures, more than I'm comfortable ignoring. So I think a full upgrade is recommended. Is this guy's process accurate? http://blog.cliffano.com/2010/09/10/couchdb-upgrade-from-0-11-0-to-1-0-1/ Is there an official page on the couchdb upgrade process? Thanks and best regards, -Will On Wed, Aug 15, 2012 at 3:56 PM, Will Heger wrote: > I'm going to try this tonight when I can take the DB offline and > report back because the results may be interesting. > > This was exactly the piece of terrible advice I was looking for! > > Thanks Adam, > -Will > > > On Wed, Aug 15, 2012 at 3:38 PM, Adam Kocoloski wro= te: >> On Aug 15, 2012, at 9:32 AM, Will Heger wrote: >> >>> After pushing some UTC Date() containing reduce code to a server, I >>> discovered that the server was using 1.8.0 SpiderMonkey rather than >>> 1.8.5, balls! >>> >>> So, my impression from the docs is that CouchDB needs to be compiled >>> with a JavaScript engine, there is no swapping up to 1.8.5 from 1.8.0 >>> (but please correct this if I'm wrong, I'd much rather swap the engine >>> than rebuild a running couchdb). >>> >>> So here's my question: What is the a typical or best practice for >>> performing an upgrade to CouchDb? Luckily, the server isn't a 24/7 >>> instance, so I have some time to take it down. But is it: >>> >>> 0. doubtful, but is there a way to ugrade the SpiderMonkey in situ? >>> 1. Is there a upgrade process or 'upgrader' in couchdb somewhere? >>> 2. If not, do I backup replicate, stop, and build, and "make install" >>> overtop? Or... >>> 3. Is it option 2, but I need to eradicate the existing installation, >>> and if so, how does one eradicate completely couchdb (one installed >>> from source, IIRC)? >>> >>> Apologies in advance if these are answered through Googling, but I >>> didn't find a succinct explanation. >>> >>> And thanks in advance for any assistance. >>> >>> Best regards, >>> -Will >> >> Hi Will, if you were so inclined you could install SM185, drop in a new = couchjs binary that links against it, do a killall to knock out any running= couchjs processes, and the server should start using your new build of cou= chjs for all new requests. The core database isn't linked to SpiderMonkey = in any way. You'll lose any requests that were using a JS process (_show/_= list/_update, blocking on a _view build, etc.), but that's about it. >> >> I probably made a hundred sysadmins spill their coffee just now, but I t= hought I'd throw it out there anyway. Cheers, >> >> Adam