Skip to content
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

VirtualBox: Setting Up a Test Sovrin Network in VMs #10

Open
Rupertredding opened this issue Jun 16, 2017 · 8 comments
Open

VirtualBox: Setting Up a Test Sovrin Network in VMs #10

Rupertredding opened this issue Jun 16, 2017 · 8 comments

Comments

@Rupertredding
Copy link

I'm following the steps here (https://github.com/evernym/sovrin-environments/blob/master/vagrant/training/vb-multi-vm/TestSovrinClusterSetup.md) to setup test sovrin network (MacOS, VirtualBox, vagrant). I'm able to successfully ssh to an agent but then it's not able to understand 'sovrin' command.

$ vagrant ssh agent04
vagrant@agent04:~$ sovrin
sovrin: command not found

@dhh1128
Copy link
Contributor

dhh1128 commented Jun 17, 2017

Rupert: first, double-check to see if sovrin's client package is installed (dpkg -l | grep sovrin). (When using vagrant, I've seen a few cases where timing in the vagrant startup has been unusual, and a command hasn't run as expected.) If the package is not installed, try doing so: apt install sovrin-client. If the package is installed, test which user you are and whether sovrin is in your path. You might try uninstalling (apt remove sovrin-client) and then re-installing (apt install sovrin-client).

@Rupertredding
Copy link
Author

Rupertredding commented Jun 18, 2017

The document does not mention installation of sovrin-client. I was expecting already built in the VMs. What you are suggesting makes complete sense.

However, 'apt install sovrin-client' fails...
vagrant@agent04:~$ sudo apt-get install sovrin-client
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package sovrin-client

Can't find the package on Ubuntu portal either

screen shot 2017-06-18 at 10 31 00 am

@dhh1128
Copy link
Contributor

dhh1128 commented Jun 19, 2017

If you can't install sovrin-client with apt, then it means you don't have /etc/apt/sources.lst configured correctly inside the VM. You will need to add a public key for signed .deb files, and then add https://repo.evernym.com and https://repo.sovrin.org. These steps are performed by the vagrant scripts, which is why I am so puzzled. @mgbailey or @trevharmon, do you have any suggestions?

@dhh1128
Copy link
Contributor

dhh1128 commented Jun 19, 2017

BTW, the instructions for adding a public signing key and modifying /etc/apt/sources.lst are mentioned here: https://docs.google.com/document/d/1Da6adGCoRhCntQwPQPzz1H1dJRHAmgyyDi0k01ncvuw/edit

@mgbailey
Copy link
Contributor

mgbailey commented Jun 19, 2017 via email

@dhh1128
Copy link
Contributor

dhh1128 commented Jun 19, 2017

@mgbailey What is the path to the vagrant script inside the VM? And should this script's commands be run as root?

@trevharmon
Copy link
Contributor

These Vagrant files mount /vagrant as part of startup. The startup scripts are found in a sub-directory there. Because of how Vagrant works, the initialization scripts are always run as root, so at times one needs to drop privileges in order to get things to work.

@trevharmon
Copy link
Contributor

@Rupertredding Has this issue been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants