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 9B5239879 for ; Mon, 23 Jul 2012 08:44:51 +0000 (UTC) Received: (qmail 33393 invoked by uid 500); 23 Jul 2012 08:44:50 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 33353 invoked by uid 500); 23 Jul 2012 08:44:49 -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 33325 invoked by uid 99); 23 Jul 2012 08:44:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 08:44:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.52] (HELO mail-bk0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 08:44:43 +0000 Received: by bkcjf3 with SMTP id jf3so4587638bkc.11 for ; Mon, 23 Jul 2012 01:44:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:x-gm-message-state; bh=aFjTf2opDwo53p3d4GwKtMi+CxkdzSPyohys+OLsXVs=; b=E3pthWGTB4jH/lZ7Qc1YZMlXRnS9DXpicmyJwqsUABXnkrCgpUJXEH2+OwmVsO4POy SPIBIPfaF3u4hs7KT5WvwSbxahGQxtdlJBWSppmmNAagBGqBxgO85Ynx3VFErwnLII1w wSyWE6tMNnfrKzJ089OyCvup6O4SL2EAo0Y0lLW6d/F5UYHYFrgyWT3c6UDnzfZk2D9P hUas2I0PvAExECrXORAadujmjiMOlk/r8G96W/8rjtJj8uWsmaO+p+Zxmot7qUsvfMCt 6iUJ7/MWLVsvXo+By9/nMc7VboGHRoXjO/ktLbpciinnZfmgPPan6uTEdAcAbCEFVOC3 O9+w== MIME-Version: 1.0 Received: by 10.204.156.10 with SMTP id u10mr7250070bkw.11.1343033061372; Mon, 23 Jul 2012 01:44:21 -0700 (PDT) Sender: ian.cox@releaseconsulting.co.uk Received: by 10.205.112.137 with HTTP; Mon, 23 Jul 2012 01:44:21 -0700 (PDT) Date: Mon, 23 Jul 2012 09:44:21 +0100 X-Google-Sender-Auth: nWVmZZn4VzNkylkYeTAbm1GYR6E Message-ID: Subject: Sporadic unauthorized error From: Ian Cox To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlzjeeoPAzqQhGjE6mML5xMRoU52fQgIrTP+4pxDcdU2ocW5uEie2nYdMTPQsw2YjwpxRvT X-Virus-Checked: Checked by ClamAV on apache.org Yes, using cookies. That is the only thing I can think of as well, but can't find any issue in the client and it works ok straight after. Here's what I see in the log (note the 401) [Tue, 17 Jul 2012 13:32:07 GMT] [info] [<0.3985.117>] 127.0.0.1 - - POST /_session 200 [Tue, 17 Jul 2012 13:32:07 GMT] [info] [<0.3985.117>] 127.0.0.1 - - GET /acme/TEMP__demofile2_1.0 404 [Tue, 17 Jul 2012 13:32:07 GMT] [info] [<0.3985.117>] 127.0.0.1 - - GET /acme/_design/TEMP__demofile2_1.0 404 [Tue, 17 Jul 2012 13:32:07 GMT] [info] [<0.3985.117>] 127.0.0.1 - - PUT /acme/_design/TEMP__demofile2_1.0 401 [Tue, 17 Jul 2012 13:32:12 GMT] [info] [<0.3985.117>] 127.0.0.1 - - POST /_session 200 [Tue, 17 Jul 2012 13:32:12 GMT] [info] [<0.3985.117>] 127.0.0.1 - - GET /acme/TEMP__demofile3_1.0 404 [Tue, 17 Jul 2012 13:32:12 GMT] [info] [<0.3985.117>] 127.0.0.1 - - GET /acme/_design/TEMP__demofile3_1.0 404 [Tue, 17 Jul 2012 13:32:12 GMT] [info] [<0.3985.117>] 127.0.0.1 - - PUT /acme/_design/TEMP__demofile3_1.0 201 and here it is working ok the next day on the same file [Wed, 18 Jul 2012 10:50:03 GMT] [info] [<0.8761.138>] 127.0.0.1 - - POST /_session 200 [Wed, 18 Jul 2012 10:50:03 GMT] [info] [<0.8761.138>] 127.0.0.1 - - GET /acme/TEMP__demofile2_1.0 404 [Wed, 18 Jul 2012 10:50:03 GMT] [info] [<0.8761.138>] 127.0.0.1 - - GET /acme/TEMP__demofile2_1.0 404 [Wed, 18 Jul 2012 10:50:03 GMT] [info] [<0.8761.138>] 127.0.0.1 - - GET /acme/_design/TEMP__demofile2_1.0 404 [Wed, 18 Jul 2012 10:50:03 GMT] [info] [<0.8761.138>] 127.0.0.1 - - PUT /acme/_design/TEMP__demofile2_1.0 201 Cheers Ian > On 20 July 2012 12:00, Ian Cox wrote: >> Hi, >> >> I have been using couchdb for a short while, hopefully going live with >> our project later in the year. >> I have one issue which I can seem to work out. >> I have a process that submits documents to couchdb plus design documents. >> Once in a while a certain design document will fail to submit with >> {"error":"unauthorized","reason":"You are not a db or server admin."} >> The same design document worked before, and works again after this >> problem though I do seem to get this error message for a short while, >> I am not sure what makes it go away. >> >> I wondered if it was cookie related, and possibly an issue with my >> client (LoveSeat) but everything looks ok. >> I am not using any validation functions. >> >> Any idea what might else cause this sporadic behaviour? >> >> Many thanks >> >> Ian Cox > > Without any details (e.g. information from the log file), is it possible that > your authentication is cookie based and that your session has timed out? > > Likely depends on how the auth is handled within the client. > > A+ > Dave > >