Node._startService failed: got stderr: 'ifconfig: en6: no media types?\n' #1064

Closed
opened 2010-06-03 18:19:29 +00:00 by guyzmo · 13 comments
guyzmo commented 2010-06-03 18:19:29 +00:00
Owner

Hi,

I configured successfully an introducer node on a debian box. Now I want to configure a client on my OSX box. So I've done :

  • % tahoe create-client
  • then ~/.tahoe got created
  • % tahoe start
  • then it outputs :
STARTING /Users/guyzmo/.tahoe
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Removing stale pidfile /Users/guyzmo/.tahoe/twistd.pid
client node probably started

I'm running :

  • allmydata-tahoe: 1.6.1-r4328, foolscap: 0.5.1, pycryptopp: 0.5.17-r683, zfec: 1.4.7, Twisted: 8.2.0, Nevow: 0.10.0, zope.interface: 3.5.1, python: 2.6.1, platform: Darwin-10.3.0-i386-64bit, sqlite: 3.6.12, simplejson: 2.1.1, argparse: 1.1, pyOpenSSL: 0.7, pyutil: 1.7.7, zbase32: 1.1.1, setuptools: 0.6c15dev, pysqlite: 2.4.1
  • (Snow Leopard) Darwin myhost 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386

And the log twistd.log is joined with the ticket.

Just a hint : it fails with en6 in the error log, and en6 has been created by PDAnet to do mobile network tethering.

Hi, I configured successfully an introducer node on a debian box. Now I want to configure a client on my OSX box. So I've done : * % tahoe create-client * then ~/.tahoe got created * % tahoe start * then it outputs : ``` STARTING /Users/guyzmo/.tahoe /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Removing stale pidfile /Users/guyzmo/.tahoe/twistd.pid client node probably started ``` I'm running : * allmydata-tahoe: 1.6.1-r4328, foolscap: 0.5.1, pycryptopp: 0.5.17-r683, zfec: 1.4.7, Twisted: 8.2.0, Nevow: 0.10.0, zope.interface: 3.5.1, python: 2.6.1, platform: Darwin-10.3.0-i386-64bit, sqlite: 3.6.12, simplejson: 2.1.1, argparse: 1.1, pyOpenSSL: 0.7, pyutil: 1.7.7, zbase32: 1.1.1, setuptools: 0.6c15dev, pysqlite: 2.4.1 * (Snow Leopard) Darwin myhost 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 And the log twistd.log is joined with the ticket. Just a hint : it fails with en6 in the error log, and en6 has been created by PDAnet to do mobile network tethering.
tahoe-lafs added the
unknown
major
defect
1.6.1
labels 2010-06-03 18:19:29 +00:00
tahoe-lafs added this to the undecided milestone 2010-06-03 18:19:29 +00:00
guyzmo commented 2010-06-03 18:20:16 +00:00
Author
Owner

Attachment twistd.log (11432 bytes) added

twistd log file

**Attachment** twistd.log (11432 bytes) added twistd log file

Thanks for the bug report. I don't recognize this and I'm just guessing, but could you try upgrading to the latest release of Twisted? It shows there that you are using Twisted 8.2.0. The current release is Twisted 10.0.0. Thanks!

Thanks for the bug report. I don't recognize this and I'm just guessing, but could you try upgrading to the latest release of Twisted? It shows there that you are using Twisted 8.2.0. The current release is Twisted 10.0.0. Thanks!
guyzmo commented 2010-06-04 16:11:23 +00:00
Author
Owner

Just a hint : it fails with en6 in the error log, and en6 has been created by vmware-fusion to connect to virtual machines (but it's not running).

well, after some investigations, it has not been created by vmware fusion, it's been created by PDAnet, a tool that does mobile phone tethering through USB... basically it's like a point-to-point tun interface, so I shall report the bug to them. Meanwhile, I'm gonna try to find out if I can't work out a patch to just catch that exception and make it ignore it (as that network interface is not meant to be used by tahoe-lafs)

> Just a hint : it fails with en6 in the error log, and en6 has been created by vmware-fusion to connect to virtual machines (but it's not running). well, after some investigations, it has not been created by vmware fusion, it's been created by PDAnet, a tool that does mobile phone tethering through USB... basically it's like a point-to-point tun interface, so I shall report the bug to them. Meanwhile, I'm gonna try to find out if I can't work out a patch to just catch that exception and make it ignore it (as that network interface is not meant to be used by tahoe-lafs)
tahoe-lafs added
code-network
and removed
unknown
labels 2010-06-12 23:50:01 +00:00

Just so people don't have to click through to the twistd.log to see, here is the fatal error:

12	2010-05-31 17:15:34+0200 [-] Unhandled Error
13	        Traceback (most recent call last):
14	        Failure: twisted.internet.utils._UnexpectedErrorOutput: got stderr: 'ifconfig: en6: no media types?\n'
15	       
16	2010-05-31 17:15:34+0200 [-] Node._startService failed, aborting
17	2010-05-31 17:15:34+0200 [-] [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.utils._UnexpectedErrorOutput'>: got stderr: 'ifconfig: en6: no media types?\n'
18	2010-05-31 17:15:34+0200 [-] ]
19	2010-05-31 17:15:34+0200 [-] calling os.abort()
20	2010-05-31 17:15:34+0200 [-] calling os.abort()
Just so people don't have to click through to the twistd.log to see, here is the fatal error: ``` 12 2010-05-31 17:15:34+0200 [-] Unhandled Error 13 Traceback (most recent call last): 14 Failure: twisted.internet.utils._UnexpectedErrorOutput: got stderr: 'ifconfig: en6: no media types?\n' 15 16 2010-05-31 17:15:34+0200 [-] Node._startService failed, aborting 17 2010-05-31 17:15:34+0200 [-] [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.utils._UnexpectedErrorOutput'>: got stderr: 'ifconfig: en6: no media types?\n' 18 2010-05-31 17:15:34+0200 [-] ] 19 2010-05-31 17:15:34+0200 [-] calling os.abort() 20 2010-05-31 17:15:34+0200 [-] calling os.abort() ```
zooko changed title from error launching tahoe on mac osx to Node._startService failed: got stderr: 'ifconfig: en6: no media types?\n' 2010-08-02 16:08:19 +00:00
zooko modified the milestone from undecided to soon 2010-08-02 16:09:19 +00:00
guyzmo commented 2010-08-02 16:39:43 +00:00
Author
Owner

The only way I got around this bug is to launch PDAnet while lauching tahoe.

If someone can tell me how can I get full tracebacks in the twistd.log when launching tahoe, I may write a patch that ignores that kind of errors (as all is needed is to have at least one interface working, not all interfaces)... having it around may be useful for a future user that gets into the same kind of troubles I went into.

The only way I got around this bug is to launch PDAnet while lauching tahoe. If someone can tell me how can I get full tracebacks in the twistd.log when launching tahoe, I may write a patch that ignores that kind of errors (as all is needed is to have at least one interface working, not all interfaces)... having it around may be useful for a future user that gets into the same kind of troubles I went into.

Replying to guyzmo:

The only way I got around this bug is to launch PDAnet while lauching tahoe.

What do you mean? Launching PDAnet while launching Tahoe-LAFS causes this bug to occur? Or does it cause this bug to stop occurring?

If someone can tell me how can I get full tracebacks in the twistd.log when launching tahoe,

source:docs/logging.txt

Replying to [guyzmo](/tahoe-lafs/trac-2024-07-25/issues/1064#issuecomment-77668): > The only way I got around this bug is to launch PDAnet while lauching tahoe. What do you mean? Launching PDAnet while launching Tahoe-LAFS causes this bug to occur? Or does it cause this bug to stop occurring? > If someone can tell me how can I get full tracebacks in the twistd.log when launching tahoe, source:docs/logging.txt

See #1988

See #1988
daira commented 2013-05-27 21:00:10 +00:00
Author
Owner

guyzmo: on your system, in the configuration that previously failed, does the command ip addr appear to work?

guyzmo: on your system, in the configuration that previously failed, does the command `ip addr` appear to work?
Daira Hopwood <david-sarah@jacaranda.org> commented 2013-06-25 18:15:57 +00:00
Author
Owner

In /tahoe-lafs/trac-2024-07-25/commit/a493ee0bb641175ecf918e28fce4d25df15994b6:

iputil.py: add tests for recent changes. refs #1381, #1988, #982, #1064, #1536, #1935, #898, #1707, #1918

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
In [/tahoe-lafs/trac-2024-07-25/commit/a493ee0bb641175ecf918e28fce4d25df15994b6](/tahoe-lafs/trac-2024-07-25/commit/a493ee0bb641175ecf918e28fce4d25df15994b6): ``` iputil.py: add tests for recent changes. refs #1381, #1988, #982, #1064, #1536, #1935, #898, #1707, #1918 Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org> ```
daira commented 2013-06-27 02:16:26 +00:00
Author
Owner

guyzmo, please try to reproduce this with current Tahoe-LAFS trunk.

guyzmo, please try to reproduce this with current Tahoe-LAFS trunk.
daira commented 2015-03-27 10:49:02 +00:00
Author
Owner

Note that as a side-effect of the fix to #754 (which will be released in Tahoe-LAFS 1.10.1), setting tub.location without including "AUTO" will skip the local IP auto-detection code entirely, thus allowing a workaround for this problem if the other changes on trunk didn't fix it.

Note that as a side-effect of the fix to #754 (which will be released in Tahoe-LAFS 1.10.1), setting `tub.location` without including "`AUTO`" will skip the local IP auto-detection code entirely, thus allowing a workaround for this problem if the other changes on trunk didn't fix it.

(https://github.com/tahoe-lafs/tahoe-lafs/pull/872) removed the use if ifconfig entirely

(https://github.com/tahoe-lafs/tahoe-lafs/pull/872) removed the use if ifconfig entirely
pull 872 merged in <https://github.com/tahoe-lafs/tahoe-lafs/commit/25ee76104ad15e78b33a15643e330d2ec285dc89>
exarkun added the
fixed
label 2020-10-26 16:12:29 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 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#1064
No description provided.