-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Connecting to Test #20
Comments
@howardkitto , I just wanted to let you know that we've seen the error and are scratching our heads. It's not something we've seen before. You seem to be having a lot of adventures; sorry about that. We'll get back to you after some analysis. (You happened to post this error right while I was in the middle of merging pull requests in some repos that sovrin depends on, and doing corresponding pypi publication. That should not have affected anything, but depending on how you installed your code, there's a tiny chance that something glitched. Anything interesting about your environment or about the steps that you took just before the error?) |
@howardkitto This error comes if you do not have the file
|
@dhh1128 Thanks for the swift response. @lovesh
Here is what's in ~/.sovrin
I did
just in case, but that didn't fix it |
@howardkitto I don't think you want to run sovrin via sudo. At least, I never have run it that way, and I'm guessing it might create some problems. Certainly it will change the meaning of ~/, which would explain this particular problem. If you have done this (sudo sovrin) once, it may create some state files that are confusing to the install; maybe @lovesh can tell you if you need to do anything special to clean up for experimenting without sudo. |
Ok, laziness on my part ;) I changed the permissions to this:
|
Those permissions look okay, but it's still going to be a problem to run sovrin with sudo, because sudo changes ~/ to mean "the home directory of the root user" instead of "the home directory of howardkitto". Did you try running sovrin without sudo now? |
@howardkitto Installing a package in your system wide packages is not a good idea as it can lead to conflicts among different package versions. We recommend using a virtual environment. The instructions for using a virtual environment are mentioned here. Please try it in a virtual environment, it should be good then. |
This is weird. Can you try copying your |
@howardkitto did this get resolved? |
No I'm afraid not |
@howardkitto The file |
@lovesh I'm now running on an Ubuntu VM I ran:
I get this:
|
@howardkitto Is your VM using bridged networking, or NAT? If NAT, I recommend that you try bridged. I'm not sure that this is necessary, but it eliminates one possible translation layer that might have gotchas. |
Hi @howardkitto
BTW: I've instantly reproduced your problem with empty pool_transactions_sandbox file. But it was once in docker image. In virtual environment it works fine. |
Hi I got new error this morning:
sovrin> connect test
New keyring Default created
Active keyring set to "Default"
Client sovrin9IwKVH initialized with the following node registry:
Error while running coroutine shell: IndexError('tuple index out of range',)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/sovrin", line 76, in
run_cli()
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/sovrin", line 54, in run_cli
looper.run(cli.shell(*commands))
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/common/looper.py", line 240, in run
return self.loop.run_until_complete(what)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
return future.result()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/common/looper.py", line 231, in wrapper
raise ex
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/common/looper.py", line 219, in wrapper
results.append(await coro)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/cli/cli.py", line 977, in shell
self.parse(c)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/cli/cli.py", line 1291, in parse
r = action(matchedVars)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sovrin/cli/cli.py", line 1499, in _connectTo
self._buildClientIfNotExists(config)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/cli/cli.py", line 467, in _buildClientIfNotExists
self.newClient(clientName=name, config=config)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sovrin/cli/cli.py", line 353, in newClient
client = super().newClient(clientName, config=config)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/cli/cli.py", line 895, in newClient
config=config)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sovrin/client/client.py", line 49, in init
config)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/plenum/client/client.py", line 131, in init
*lengths)
IndexError: tuple index out of range
The text was updated successfully, but these errors were encountered: