[tahoe-dev] Problems on ArchLinux w/ v1.8.3

Zooko O'Whielacronx zooko at zooko.com
Thu Sep 15 10:49:03 PDT 2011


On Wed, Sep 14, 2011 at 6:10 PM, Kill Your TV <killyourtv at i2pmail.org> wrote:
>
> [Failure instance: Traceback: <type 'exceptions.OSError'>: [Errno 2] No such file or directory
...
> /home/kytv/tahoe/allmydata-tahoe-1.8.3/src/allmydata/util/iputil.py:222:_synchronously_find_addresses_via_config
> /home/kytv/tahoe/allmydata-tahoe-1.8.3/src/allmydata/util/iputil.py:236:_query
> /usr/lib/python2.7/subprocess.py:679:__init__
> /usr/lib/python2.7/subprocess.py:1228:_execute_child

This is due to Tahoe-LAFS not finding ifconfig.

Hey, we ought to make this error message clearer and ask the person
seeing it to describe their platform's "ifconfig" to us. There: #1536


> An ArchLinux user on I2P reported receiving the following when
> trying to start tahoe after setting up a storage node:
...
>          File "/home/ksid/experiments/tahoe/tahoe-lafs-i2p/src/allmydata/util/iputil.py", line 212, in _synchronously_find_addresses_via_config
>            raise UnsupportedPlatformError(sys.platform)
>        allmydata.util.iputil.UnsupportedPlatformError: linux3

This is due to Linux's major version number going from 2 to 3. Here is
a patch to let tahoe-lafs handle with this correctly.

--- old-trunk/src/allmydata/util/iputil.py      2011-09-15
09:06:52.396117764 -0600
+++ new-trunk/src/allmydata/util/iputil.py      2011-09-15
09:06:53.219384426 -0600
@@ -139,6 +139,7 @@
     "linux-i386": "linux", # redhat
     "linux-ppc": "linux",  # redhat
     "linux2": "linux",     # debian
+    "linux3": "linux",     # debian
     "win32": "win32",
     "irix6-n32": "irix",
     "irix6-n64": "irix",

In addition there are a couple of tests which need to be updated:

diff -rN -u old-trunk/src/allmydata/test/test_system.py
new-trunk/src/allmydata/test/test_system.py
--- old-trunk/src/allmydata/test/test_system.py 2011-09-15
09:08:39.395384497 -0600
+++ new-trunk/src/allmydata/test/test_system.py 2011-09-15
09:08:40.567384440 -0600
@@ -1398,7 +1398,7 @@
             self.failUnlessEqual(data, expected_data)
         d.addCallback(_check)
         d.addCallback(lambda res: rref.callRemote("speed_test", 1, 200, False))
-        if sys.platform == "linux2":
+        if sys.platform in ("linux2", "linux3"):
             d.addCallback(lambda res: rref.callRemote("get_memory_usage"))
         d.addCallback(lambda res:
rref.callRemote("measure_peer_response_time"))
         return d
diff -rN -u old-trunk/src/allmydata/util/iputil.py
new-trunk/src/allmydata/util/iputil.py
--- old-trunk/src/allmydata/util/iputil.py      2011-09-15
09:08:39.594384594 -0600
+++ new-trunk/src/allmydata/util/iputil.py      2011-09-15
09:08:40.572384141 -0600
@@ -139,6 +139,7 @@
     "linux-i386": "linux", # redhat
     "linux-ppc": "linux",  # redhat
     "linux2": "linux",     # debian
+    "linux3": "linux",     # debian
     "win32": "win32",
     "irix6-n32": "irix",
     "irix6-n64": "irix",


http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1536# nicely report any
errors involving finding and using ifconfig


More information about the tahoe-dev mailing list