Trinity Attach Not Working (root vs user?)
See original GitHub issue- py-evm Version: 0.1.0a11
- OS: Ubuntu 17.04
- Python Version (python --version): Python 3.6.3
- Environment (output of
pip freeze
):
aiohttp==2.3.10
asn1crypto==0.24.0
async-lru==0.1.0
async-timeout==3.0.0
attrdict==2.0.0
backcall==0.1.0
bumpversion==0.5.3
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
coincurve==7.1.0
command-not-found==0.3
cryptography==2.2.2
cytoolz==0.9.0.1
decorator==4.3.0
distro-info==0.17
eth-abi==1.1.1
eth-account==0.2.3
eth-bloom==1.0.0
eth-hash==0.1.4
eth-keyfile==0.5.1
eth-keys==0.2.0b3
eth-pm==0.1.0a17
eth-rlp==0.1.2
eth-tester==0.1.0b26
eth-utils==1.0.3
hexbytes==0.1.0
idna==2.7
idna-ssl==1.0.1
ipython==6.4.0
ipython-genutils==0.2.0
jedi==0.12.0
jsonschema==2.6.0
keyring==10.4.0
keyrings.alt==2.2
language-selector==0.1
lru-dict==1.1.6
lxml==4.2.1
multidict==4.3.1
netdisco==1.5.0
netifaces==0.10.7
parsimonious==0.8.0
parso==0.2.1
pexpect==4.6.0
pickleshare==0.7.4
pkginfo==1.4.2
plyvel==1.0.4
prompt-toolkit==1.0.15
ptyprocess==0.6.0
py-ecc==1.4.2
py-evm==0.2.0a26
py-solc==2.2.0
pycparser==2.18
pycrypto==2.6.1
pycryptodome==3.6.3
pyethash==0.1.27
Pygments==2.2.0
pygobject==3.24.1
pysha3==1.0.2
python-apt==1.4.0b3
python-dateutil==2.7.3
pyxdg==0.25
PyYAML==3.12
requests==2.19.1
requests-toolbelt==0.8.0
rlp==1.0.1
SecretStorage==2.3.1
semantic-version==2.6.0
simplegeneric==0.8.1
six==1.11.0
ssh-import-id==5.7
toolz==0.9.0
tqdm==4.23.4
traitlets==4.3.2
trie==1.3.7
trinity==0.1.0a11
twine==1.11.0
ufw==0.35
unattended-upgrades==0.1
uPnPClient==0.0.8
urllib3==1.23
wcwidth==0.1.7
web3==4.4.0
websockets==5.0.1
yarl==1.2.6
zeroconf==0.20.0
What is wrong?
I’m running Trinity as root via Supervisor. I’m using sudo -i
to elevate to root with root environment. I then run trinity attach
and the first thing that I notice is that it starts logging to my user account home directory /home/chase/.local/
instead of /root/.local/
and none of the commands seem to work.
Is this due to how I’m running Trinity and trying to attach with sudo -i
? or something else?
root@trinity01:~# trinity attach
INFO 06-23 09:01:40 logging Trinity DEBUG log file is created at /home/chase/.local/share/trinity/mainnet/logs/trinity.log
Trinity Console
---------------
An instance of Web3 connected to the running chain is available as the `w3` variable
In [1]: w3.admin
Out[1]: <web3.admin.Admin at 0x7f0ab3f66be0>
In [2]: w3.admin.nodeInfo
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-2-06ccd98facbe> in <module>()
----> 1 w3.admin.nodeInfo
/usr/local/lib/python3.6/dist-packages/web3/admin.py in nodeInfo(self)
16 @property
17 def nodeInfo(self):
---> 18 return self.web3.manager.request_blocking("admin_nodeInfo", [])
19
20 @property
/usr/local/lib/python3.6/dist-packages/web3/manager.py in request_blocking(self, method, params)
105 Make a synchronous request using the provider
106 """
--> 107 response = self._make_request(method, params)
108
109 if "error" in response:
/usr/local/lib/python3.6/dist-packages/web3/manager.py in _make_request(self, method, params)
88 self.logger.debug("Making request. Method: %s", method)
89 try:
---> 90 return request_func(method, params)
91 except CannotHandleRequest:
92 continue
/usr/local/lib/python3.6/dist-packages/web3/middleware/gas_price_strategy.py in middleware(method, params)
16 transaction = assoc(transaction, 'gasPrice', generated_gas_price)
17 return make_request(method, [transaction])
---> 18 return make_request(method, params)
19 return middleware
/usr/local/lib/python3.6/dist-packages/cytoolz/functoolz.pyx in cytoolz.functoolz.curry.__call__()
/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py in apply_formatters(method, params, make_request, request_formatters, result_formatters, error_formatters)
48 response = make_request(method, formatted_params)
49 else:
---> 50 response = make_request(method, params)
51
52 if 'result' in response and method in result_formatters:
/usr/local/lib/python3.6/dist-packages/web3/middleware/attrdict.py in middleware(method, params)
16 """
17 def middleware(method, params):
---> 18 response = make_request(method, params)
19
20 if 'result' in response:
/usr/local/lib/python3.6/dist-packages/cytoolz/functoolz.pyx in cytoolz.functoolz.curry.__call__()
/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py in apply_formatters(method, params, make_request, request_formatters, result_formatters, error_formatters)
48 response = make_request(method, formatted_params)
49 else:
---> 50 response = make_request(method, params)
51
52 if 'result' in response and method in result_formatters:
/usr/local/lib/python3.6/dist-packages/web3/middleware/normalize_errors.py in middleware(method, params)
7 def normalize_errors_middleware(make_request, web3):
8 def middleware(method, params):
----> 9 result = make_request(method, params)
10
11 # As of v1.8, Geth returns errors when you request a
/usr/local/lib/python3.6/dist-packages/cytoolz/functoolz.pyx in cytoolz.functoolz.curry.__call__()
/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py in apply_formatters(method, params, make_request, request_formatters, result_formatters, error_formatters)
48 response = make_request(method, formatted_params)
49 else:
---> 50 response = make_request(method, params)
51
52 if 'result' in response and method in result_formatters:
/usr/local/lib/python3.6/dist-packages/cytoolz/functoolz.pyx in cytoolz.functoolz.curry.__call__()
/usr/local/lib/python3.6/dist-packages/web3/middleware/formatting.py in apply_formatters(method, params, make_request, request_formatters, result_formatters, error_formatters)
48 response = make_request(method, formatted_params)
49 else:
---> 50 response = make_request(method, params)
51
52 if 'result' in response and method in result_formatters:
/usr/local/lib/python3.6/dist-packages/web3/providers/ipc.py in make_request(self, method, params)
201 request = self.encode_rpc_request(method, params)
202
--> 203 with self._lock, self._socket as sock:
204 try:
205 sock.sendall(request)
/usr/local/lib/python3.6/dist-packages/web3/providers/ipc.py in __enter__(self)
43
44 if not self.sock:
---> 45 self.sock = self._open()
46 return self.sock
47
/usr/local/lib/python3.6/dist-packages/web3/providers/ipc.py in _open(self)
56
57 def _open(self):
---> 58 return get_ipc_socket(self.ipc_path)
59
60 def reset(self):
/usr/local/lib/python3.6/dist-packages/web3/providers/ipc.py in get_ipc_socket(ipc_path, timeout)
27 else:
28 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
---> 29 sock.connect(ipc_path)
30 sock.settimeout(timeout)
31 return sock
FileNotFoundError: [Errno 2] No such file or directory
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Problem installing Trinity - Google Groups
to trinityrnaseq-users. I try install both trinity 2.3.2 and 2.4.0 and with both I get the same error. [trinityrnaseq-Trinity-v2.4.0] make.
Read more >Re: "...error setting up inter-proocess communications for TDE
Attach failed Authentication Rejected, reason : None of the authentication ... Is logging in as a normal user (not root) working properly?
Read more >TRINITY F90+ USER MANUAL V2.3.0.49 - Quantum-Systems
Do not fly without a properly attached payload compartment. 2.2 BATTERY SAFETY. To avoid fire, serious injury and property damage observe the following...
Read more >Trinity Facial Toning Device ELE Attachment - Nuface
A NuFACE Trinity Device Attachment to easily target hard-to-reach eyebrow furrows, crow's feet and smile lines with microcurrent to improve eye and lip...
Read more >TRINITY+ and Effective Lip & Eye Attachment - NuFACE
I have the NuFace Trinity Pro and use it regularly. Other than being a smart device that connects via the app, how exactly...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
👍 Probably even just exit out with a failure message if the pipe is missing
@MysticRyuujin Thanks again for reporting this. I opened up #959 to improve on the user experience for this case.
I’m closing this issue here. If you feel there’s anything unaddressed please feel free to comment and reopen.