[tor-dev] how to simulate TOR network through chutney?

teor teor2345 at gmail.com
Sun Jan 11 13:43:04 UTC 2015


> Date: Sun, 11 Jan 2015 14:09:56 +0100
> From: Mohiuddin Ebna Kawsar <mohiuddin.kawsar at gmail.com>
> 
> Hi teor,
> 
> Thanks for quick reply. i just download new chutney from github and able to
> run chutney for nodes = a(3) + r(1) + c(1) but when i set nodes = a(3) +
> c(1) i got following message
> ##############################################################
> ./chutney start networks/basic-min
> Starting nodes
> <type 'exceptions.IOError'>
> Python 2.7.8: /usr/bin/python2
> Sun Jan 11 14:00:27 2015
> 

<snip>

> 
> /home/raboon/chutney-master/lib/chutney/TorNet.py in
> waitOnLaunch(self=<__main__.LocalNodeController object>)
>  636         # RunAsDaemon default is 0
>  637         runAsDaemon = False
>  638         with open(self._getTorrcFname(), 'r') as f:
>  639             for line in f.readlines():
>  640                 stline = line.strip()
> builtinopen = <built-in function open>
> self = <__main__.LocalNodeController object>
> self._getTorrcFname = <bound method LocalNodeController._getTorrcFname of
> <__main__.LocalNodeController object>>
> f undefined
> <type 'exceptions.IOError'>: [Errno 2] No such file or directory:
> '/home/raboon/chutney-master/net/nodes/003c/torrc'

<snip>

Hi kawsar,

chutney is complaining that you have 4 nodes in your new network, not 5 as it was expecting.

Every time you change the torrc_templates or network files, you must run:
chutney configure
and perhaps some other commands.

You may find it easiest to use:
tor/src/test/test-network.sh
or
chutney/tools/bootstrap-network.sh
to do this for you.

In particular,
tor/src/test/test-network.sh
will bootstrap and verify the entire network for you, and let you choose:
a network --flavour (e.g. basic-min)
a --delay before verifying the network (default 18 seconds in 0.2.6.2-alpha)
It will also let you configure chutney and tor paths, or you can:
set the CHUTNEY_PATH environmental variable to the chutney directory
use the default tor/src/or/tor in the build directory, or set the TOR_DIR environmental variable.

teor

teor2345 at gmail dot com
pgp 0xABFED1AC
https://gist.github.com/teor2345/d033b8ce0a99adbc89c5

teor at blah dot im
OTR C3C57B23 349825DE 929A1DEF C3531C25 A32287ED

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20150112/dfbc7faa/attachment.sig>


More information about the tor-dev mailing list