Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C Chutney
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 46
    • Issues 46
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • Chutney
  • Issues
  • #27067
Closed
Open
Issue created Aug 07, 2018 by Taylor Yu@catalyst

test-network can't find tor binaries on tor master

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking