running stats gatherer - please help - tahoe 1.13.0

Marcin Ciesielski tahoe at kisiel.net.pl
Mon Sep 3 17:08:39 UTC 2018


Hi

Could someone please help me with info on how to start stats-gatherer?

I am playing with tahoe 1.13.0 on ubuntu 16.04.5 LTS (but I get the same on
OSX)

I was able to execute tahoe create-stats-gatherer
it created basedir with three files in it: location, port
and tahoe-stats-gatherer.tac

the problem is that I cannot start the gatherer now.
if I do tahoe run I get a message
"Custom logging options; can't monitor logs for proper startup messages"
when reading the code of tahoe_start.py (line 79), I found that it will be
issued if the started node is neither "client" nor "introducer" It makes
sense, the node I try to run is "stats-gatherer" so it will never work.

if I go with tahoe start I get quite an elaborate list with an error

2018-09-03T17:21:09+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info]
> twistd 18.7.0 (/home/tahoe-user/venv/bin/python2 2.7.12) starting up.
> 2018-09-03T17:21:09+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info]
> reactor class: twisted.internet.epollreactor.EPollReactor.
> 2018-09-03T17:21:09+0200 [-] Unhandled Error
>         Traceback (most recent call last):
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/twisted/internet/base.py",
> line 428, in fireEvent
>             DeferredList(beforeResults).addCallback(self._continueFiring)
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 322, in addCallback
>             callbackKeywords=kw)
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 311, in addCallbacks
>             self._runCallbacks()
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py",
> line 654, in _runCallbacks
>             current.result = callback(current.result, *args, **kw)
>         --- <exception caught here> ---
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/twisted/internet/base.py",
> line 441, in _continueFiring
>             callable(*args, **kwargs)
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/allmydata/scripts/tahoe_daemonize.py",
> line 128, in start
>             srv = service_factory()
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/allmydata/scripts/tahoe_daemonize.py",
> line 119, in <lambda>
>             u"stats-gatherer": lambda:
> namedAny("allmydata.stats.StatsGathererService")(read_config(self.basedir,
> None), self.basedir, verbose=True),
>           File
> "/home/tahoe-user/venv/local/lib/python2.7/site-packages/allmydata/node.py",
> line 139, in read_config
>             portnumfile = os.path.join(basedir, portnumfile)
>           File "/home/tahoe-user/venv/lib/python2.7/posixpath.py", line
> 68, in join
>             if b.startswith('/'):
>         exceptions.AttributeError: 'NoneType' object has no attribute
> 'startswith'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20180903/ef1f27c1/attachment.html>


More information about the tahoe-dev mailing list