[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #27067 [Core Tor/Chutney]: test-network can't find tor binaries on tor master



#27067: test-network can't find tor binaries on tor master
----------------------------------+--------------------------------
     Reporter:  catalyst          |      Owner:  (none)
         Type:  defect            |     Status:  new
     Priority:  Medium            |  Milestone:  Tor: 0.3.5.x-final
    Component:  Core Tor/Chutney  |    Version:
     Severity:  Normal            |   Keywords:
Actual Points:                    |  Parent ID:
       Points:                    |   Reviewer:
      Sponsor:                    |
----------------------------------+--------------------------------
 `make test-network` doesn't work on master even when given explicit paths
 for `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`.  This seems to be due to the
 0.3.5 source tree reorganization.

 chutney should learn about the new source tree layout (and also probably
 keep looking for the old layout for backward compatibility).

 There is a child ticket for dealing with `TOR_DIR` overriding
 `CHUTNEY_TOR` and `CHUTNEY_TOR_GENCERT`.

 Example failure when setting only `CHUTNEY_PATH`:
 {{{
 $ CHUTNEY_PATH=../../chutney make test-network
 ../src/test/test-network.sh --hs-multi-client 1
 test-network.sh: using CHUTNEY_DNS_CONF '/dev/null'
 test-network.sh: no $TOR_DIR, chutney will use $PATH for tor binaries
 Using Python 2.7.12
 Sending SIGINT to nodes
 Waiting for nodes to finish.
 bootstrap-network.sh: bootstrapping network: bridges+hs
 Using Python 2.7.12
 NOTE: creating '/home/tlyu/src/tor/build-
 norust/../../chutney/net/nodes.1533677645', linking to '/home/tlyu/src/tor
 /build-norust/../../chutney/net/nodes'
 Creating identity key
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key for
 test000a with tor-gencert --create-identity-key --passphrase-fd 0 -i
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a
 127.0.0.1:7000
 Cannot find the tor-gencert binary tor-gencert for the command line 'tor-
 gencert --create-identity-key --passphrase-fd 0 -i
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a
 127.0.0.1:7000'. Use the CHUTNEY_TOR_GENCERT environment variable to set
 the path, or put the binary into $PATH:
 '/home/tlyu/.cargo/bin:/home/tlyu/bin:/home/tlyu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'.
 If your $PATH contains ~, use $HOME instead.
 sed: can't read /home/tlyu/src/tor/build-
 norust/../../chutney/net/nodes/*a/torrc: No such file or directory
 Using Python 2.7.12
 Starting nodes
 Cannot find tor binary 'tor'. Use CHUTNEY_TOR environment variable to set
 the path, or put the binary into $PATH.
 Using Python 2.7.12
 0/12 nodes are running
 Makefile:15762: recipe for target 'test-network' failed
 make: *** [test-network] Error 3
 }}}

 Example failure when setting `CHUTNEY_TOR`, `CHUTNEY_TOR_GENCERT`, and
 `CHUTNEY_PATH`:
 {{{
 $ CHUTNEY_TOR=`pwd`/src/app/tor CHUTNEY_TOR_GENCERT=`pwd`/src/tools/tor-
 gencert CHUTNEY_PATH=../../chutney make test-network
 ../src/test/test-network.sh --hs-multi-client 1
 test-network.sh: using CHUTNEY_DNS_CONF '/dev/null'
 test-network.sh: no $TOR_DIR, chutney will use $PATH for tor binaries
 Using Python 2.7.12
 Sending SIGINT to nodes
 Waiting for nodes to finish.
 bootstrap-network.sh: bootstrapping network: bridges+hs
 Using Python 2.7.12
 NOTE: creating '/home/tlyu/src/tor/build-
 norust/../../chutney/net/nodes.1533677759', linking to '/home/tlyu/src/tor
 /build-norust/../../chutney/net/nodes'
 Creating identity key
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key for
 test000a with tor-gencert --create-identity-key --passphrase-fd 0 -i
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a
 127.0.0.1:7000
 Cannot find the tor-gencert binary tor-gencert for the command line 'tor-
 gencert --create-identity-key --passphrase-fd 0 -i
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_identity_key -s
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_signing_key -c
 /home/tlyu/src/chutney/net/nodes/000a/keys/authority_certificate -m 12 -a
 127.0.0.1:7000'. Use the CHUTNEY_TOR_GENCERT environment variable to set
 the path, or put the binary into $PATH:
 '/home/tlyu/.cargo/bin:/home/tlyu/bin:/home/tlyu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'.
 If your $PATH contains ~, use $HOME instead.
 sed: can't read /home/tlyu/src/tor/build-
 norust/../../chutney/net/nodes/*a/torrc: No such file or directory
 Using Python 2.7.12
 Starting nodes
 Cannot find tor binary 'tor'. Use CHUTNEY_TOR environment variable to set
 the path, or put the binary into $PATH.
 Using Python 2.7.12
 0/12 nodes are running
 Makefile:15762: recipe for target 'test-network' failed
 make: *** [test-network] Error 3
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27067>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs