Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 11517 invoked from network); 15 Jan 2010 09:08:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2010 09:08:43 -0000 Received: (qmail 62113 invoked by uid 500); 15 Jan 2010 09:08:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 62044 invoked by uid 500); 15 Jan 2010 09:08:42 -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 62034 invoked by uid 99); 15 Jan 2010 09:08:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 09:08:42 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.85.130.166] (HELO smtp.atwork.nl) (195.85.130.166) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 09:08:36 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.atwork.nl (Postfix) with ESMTP id F308739C1C5 for ; Fri, 15 Jan 2010 10:08:11 +0100 (CET) Received: from waldo.buyways.nl (atwork-154.r-212.178.116.atwork.nl [212.178.116.154]) by smtp.atwork.nl (Postfix) with ESMTP id C928639C1EB for ; Fri, 15 Jan 2010 10:07:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by waldo.buyways.nl (Postfix) with ESMTP id 9552D3A1691 for ; Fri, 15 Jan 2010 10:07:59 +0100 (CET) Received: from waldo.buyways.nl ([127.0.0.1]) by localhost (waldo.buyways.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Je8DEMYZtPmQ for ; Fri, 15 Jan 2010 10:07:59 +0100 (CET) Received: from [192.168.218.87] (beauregard.buyways.nl [192.168.217.1]) by waldo.buyways.nl (Postfix) with ESMTP id 66B193A168F for ; Fri, 15 Jan 2010 10:07:59 +0100 (CET) Subject: Re: Lounge is trouble From: Markus Jelsma Reply-To: markus@buyways.nl To: user@couchdb.apache.org In-Reply-To: <23c535ff1001141143ge7a2919g749dd4fce20336c3@mail.gmail.com> References: <1263490616.14711.621.camel@zelda.buyways.nl> <23c535ff1001141143ge7a2919g749dd4fce20336c3@mail.gmail.com> Content-Type: multipart/alternative; boundary="=-GoUmeo0uGeVBHHlyIo3p" Organization: Buyways Date: Fri, 15 Jan 2010 10:09:19 +0100 Message-Id: <1263546559.14711.628.camel@zelda.buyways.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-Virus-Scanned: by @Work --=-GoUmeo0uGeVBHHlyIo3p Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello Kevin, Not as i know of, i'm practicing the setup and had no databases on the system (i have two independant couch-N nodes). I installed and configured as well as i could using the wiki and common sense and some luck. Then i simply created a new database (using the old google wiki as a reference) but nothing happened, not even the problem described by futon not being able to handle database creation correctly. What did happen is what you see in the log, of course i could only see it after doing several operations at first because of the imposed limit in the python replicator. It smells like an error in my shards.conf but it shouldn't be! It's the simple [0,1],[1,0] + [couch-1, couch-2] thing! Thanks so far On Thu, 2010-01-14 at 11:43 -0800, Kevin Ferguson wrote: > Hi Markus, let's look at the replicator first, I think it will be easier to > fix :) Do you have any non-sharded databases on your Couch? I'm guessing > the replicator is not expecting updates to such databases. It should be > simple to make the replicator just ignore them. > > Thanks for taking the time to write up your problems. > > Kevin > > On Thu, Jan 14, 2010 at 9:36 AM, Markus Jelsma wrote: > > > Hello, > > > > > > I had a more than unpleasant afternoon with CouchDB-Lounge! Patching and > > compiling was quite easy on Debian but properly configuring the whole > > bunch of programs is more than painful! I have two problems remaining... > > > > Smartproxy: > > More than tough to configure and i still keep running into problems (see > > log below). The main issue was that i first got the error's immediately > > after starting the daemon. Due to unknown reasons (i might even have > > properly configured something i don't know of :D) it suddenly ran, but > > now i got similar messages in the log file. > > > > > > Replicator: > > The python-pycurl dependancy was not mentioned anywhere and when it > > misses, the couch.log fills with countless unreadable messages that > > there is a problem with the replicator. The replicator itself did not > > write its log file, perhaps the installer did not set appropriate > > permissions. After doing so, i still did not have log file! Until i > > finally, in a complete frenzy, accidentally executed the replicator > > manually; it told me about the dependency and i fixed it. Now i still > > have trouble using it, see below for the log. > > I've decreased the update threshold from 10 to 1, that works fine > > because now i get the error for each modifcation. > > > > > > Any help is more than appreciated! > > Regards, > > > > > > Smartproxy: > > ---------- > > > > 2010-01-14 17:38:34+0100 [-] Log opened. > > 2010-01-14 17:38:34+0100 [-] twistd 8.2.0 (/usr/bin/python 2.5.2) > > starting up. > > 2010-01-14 17:38:34+0100 [-] reactor class: > > twisted.internet.epollreactor.EPollReactor. > > 2010-01-14 17:38:34+0100 [-] Traceback (most recent call last): > > 2010-01-14 17:38:34+0100 [-] File "/usr/bin/twistd", line 21, in > > > > 2010-01-14 17:38:34+0100 [-] run() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/scripts/twistd.py", line 27, > > in run > > 2010-01-14 17:38:34+0100 [-] app.run(runApp, ServerOptions) > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/application/app.py", line 694, > > in run > > 2010-01-14 17:38:34+0100 [-] runApp(config) > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/scripts/twistd.py", line 23, > > in runApp > > 2010-01-14 17:38:34+0100 [-] _SomeApplicationRunner(config).run() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/application/app.py", line 423, > > in run > > 2010-01-14 17:38:34+0100 [-] self.postApplication() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/scripts/_twistd_unix.py", line > > 206, in postApplication > > 2010-01-14 17:38:34+0100 [-] self.startApplication(self.application) > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/scripts/_twistd_unix.py", line > > 311, in startApplication > > 2010-01-14 17:38:34+0100 [-] > > service.IService(application).privilegedStartService() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/application/service.py", line > > 273, in privilegedStartService > > 2010-01-14 17:38:34+0100 [-] service.privilegedStartService() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/application/internet.py", line > > 85, in privilegedStartService > > 2010-01-14 17:38:34+0100 [-] self._port = self._getPort() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/application/internet.py", line > > 116, in _getPort > > 2010-01-14 17:38:34+0100 [-] *self.args, **self.kwargs) > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line > > 356, in listenTCP > > 2010-01-14 17:38:34+0100 [-] p.startListening() > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py", line 858, in > > startListening > > 2010-01-14 17:38:34+0100 [-] raise CannotListenError, > > (self.interface, self.port, le) > > 2010-01-14 17:38:34+0100 [-] twisted.internet.error.CannotListenError: > > Couldn't listen on 0.0.0.0:2008: (98, 'Address already in use'). > > 2010-01-14 17:38:34+0100 [-] Error in atexit._run_exitfuncs: > > 2010-01-14 17:38:34+0100 [-] Traceback (most recent call last): > > 2010-01-14 17:38:34+0100 [-] File "/usr/lib/python2.5/atexit.py", line > > 24, in _run_exitfuncs > > 2010-01-14 17:38:34+0100 [-] func(*targs, **kargs) > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/smartproxy/proxy.py", line 197, in > > _persistCache > > 2010-01-14 17:38:34+0100 [-] log.err("Failed to persist the view > > cache to %s" % self.cache_file_path) > > 2010-01-14 17:38:34+0100 [-] AttributeError: HTTPProxy instance has no > > attribute 'cache_file_path' > > 2010-01-14 17:38:34+0100 [-] Error in sys.exitfunc: > > 2010-01-14 17:38:34+0100 [-] Traceback (most recent call last): > > 2010-01-14 17:38:34+0100 [-] File "/usr/lib/python2.5/atexit.py", line > > 24, in _run_exitfuncs > > 2010-01-14 17:38:34+0100 [-] func(*targs, **kargs) > > 2010-01-14 17:38:34+0100 [-] File > > "/usr/lib/python2.5/site-packages/smartproxy/proxy.py", line 197, in > > _persistCache > > 2010-01-14 17:38:34+0100 [-] log.err("Failed to persist the view > > cache to %s" % self.cache_file_path) > > 2010-01-14 17:38:34+0100 [-] AttributeError: HTTPProxy instance has no > > attribute 'cache_file_path' > > > > Replicator: > > ---------- > > > > INFO:root:Starting up > > ERROR:root:error in main loop > > Traceback (most recent call last): > > File "/var/lib/lounge/replication_notifier.py", line 149, in main > > replicate(db) > > File "/var/lib/lounge/replication_notifier.py", line 92, in replicate > > for target in shard_map.nodes(source): > > File "/usr/lib/python2.5/site-packages/lounge/__init__.py", line 46, > > in nodes > > shard_index = int(shard.strip(dbname)) > > ValueError: invalid literal for int() with base 10: '' > > > > --=-GoUmeo0uGeVBHHlyIo3p--