cannot start stats gatherer #2940

Closed
opened 2018-08-26 16:35:02 +00:00 by kisiel · 2 comments
kisiel commented 2018-08-26 16:35:02 +00:00
Owner

Hi.

running tahoe 1.13.0 on ubuntu 16.04.5 LTS

I've created stats gatherer with command
tahoe create-stats-gatherer --hostname=HOSTNAME $BASEDIR
my $BASEDIR contains now three files
location
port
tahoe-stats-gatherer.tac

port is open

but when I do
tahoe start $BASEDIR

I get following set of lines with error

2018-08-26T18:17:58+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 18.7.0 (/home/tahoe-user/venv/bin/python2 2.7.12) starting up.
2018-08-26T18:17:58+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor.
2018-08-26T18:17:58+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'

could you please help?

Hi. running tahoe 1.13.0 on ubuntu 16.04.5 LTS I've created stats gatherer with command tahoe create-stats-gatherer --hostname=HOSTNAME $BASEDIR my $BASEDIR contains now three files location port tahoe-stats-gatherer.tac port is open but when I do tahoe start $BASEDIR I get following set of lines with error ``` 2018-08-26T18:17:58+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] twistd 18.7.0 (/home/tahoe-user/venv/bin/python2 2.7.12) starting up. 2018-08-26T18:17:58+0200 [twisted.scripts._twistd_unix.UnixAppLogger#info] reactor class: twisted.internet.epollreactor.EPollReactor. 2018-08-26T18:17:58+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' ``` could you please help?
tahoe-lafs added the
unknown
normal
defect
1.12.1
labels 2018-08-26 16:35:02 +00:00
tahoe-lafs added this to the undecided milestone 2018-08-26 16:35:02 +00:00
tahoe-lafs changed title from cannot start status gatherer to cannot start stats gatherer 2018-08-31 22:02:59 +00:00
kisiel commented 2018-09-03 16:05:12 +00:00
Author
Owner

Anyone out there?

I noticed that documentation suggests using "run" instead of "start"
But it does not work either

The message says
"Custom logging options; can't monitor logs for proper startup messages"

when reading the code I found that it will be issued if the started node is neither "client" nor "introducer"
It makes sense, the node I try to start is "stats-gatherer" so it will never work.

is there a way to actually make stats gatherer working?

Anyone out there? I noticed that documentation suggests using "run" instead of "start" But it does not work either The message says "Custom logging options; can't monitor logs for proper startup messages" when reading the code I found that it will be issued if the started node is neither "client" nor "introducer" It makes sense, the node I try to start is "stats-gatherer" so it will never work. is there a way to actually make stats gatherer working?

Going to remove the stats gatherer and related code: ticket:3549

Going to remove the stats gatherer and related code: ticket:3549
exarkun added the
wontfix
label 2020-12-09 15:01:08 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2940
No description provided.