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

Vagrant provision step failed #6

Open
sowm2006 opened this issue Apr 24, 2018 · 4 comments
Open

Vagrant provision step failed #6

sowm2006 opened this issue Apr 24, 2018 · 4 comments

Comments

@sowm2006
Copy link

Hi

I have been trying to set up the environment to try the examples in the Mining the Social Web 2E book. In my original install, I cam across errors in the chef install of the python environment. In looking for solutions in the forum, I came across the basket4py solution you put together and following that, I came to step with running vagrant provision. I have now errors in that step. extract of output shown below. Can you please help me!!

My environment:

macOS sierra 10.12.16
virtualbox version : 5.2.10r122088

I cloned the git repository https://github.com/rreben/basket4py

ased on your discussion, the procedure I did as following.

Go to https://github.com/rreben/basket4py
Download this repo
do a vagrant up
vagrant provision get the python stack installed.


", "", "The following NEW packages will be INSTALLED:", "", " mkl_fft: 1.0.1-py36h3010b51_0 ", " mkl_random: 1.0.1-py36h629b387_0 ", "", "The following packages will be UPDATED:", "", " intel-openmp: 2018.0.0-hc7b2577_8 --> 2018.0.0-8 ", " libgcc-ng: 7.2.0-h7cc24e2_2 --> 7.2.0-hdf63c60_3 ", " libgfortran-ng: 7.2.0-h9f7466a_2 --> 7.2.0-hdf63c60_3 ", " libstdcxx-ng: 7.2.0-h7a57d05_2 --> 7.2.0-hdf63c60_3 ", " mkl: 2018.0.1-h19d6760_4 --> 2018.0.2-1 ", " numpy: 1.14.0-py36h3dfced4_1 --> 1.14.2-py36hdbf6ddf_1", " pip: 9.0.1-py36h6c6f9ce_4 --> 9.0.3-py36_0 ", " python: 3.6.4-hc3d631a_1 --> 3.6.5-hc3d631a_0 ", " scipy: 1.0.0-py36hbf646e7_0 --> 1.0.1-py36hfc37229_0 ", " setuptools: 38.4.0-py36_0 --> 39.0.1-py36_0 ", " sqlite: 3.22.0-h1bed415_0 --> 3.23.1-he433501_0 ", " wheel: 0.30.0-py36hfd4bba0_1 --> 0.31.0-py36_0 ", " xz: 5.2.3-h55aa19d_2 --> 5.2.3-h5e939de_4 ", "", "", "Downloading and Extracting Packages", "Preparing transaction: ...working... done", "Verifying transaction: ...working... done", "Executing transaction: ...working... done"]}

TASK [andrewrothstein.anaconda : remove conda-curl since it conflicts with the system curl] ***
fatal: [default]: FAILED! => {"changed": true, "cmd": ["/usr/local/anaconda/bin/conda", "remove", "-y", "curl"], "delta": "0:00:19.022614", "end": "2018-04-24 21:13:07.160621", "msg": "non-zero return code", "rc": 1, "start": "2018-04-24 21:12:48.138007", "stderr": "\nPackagesNotFoundError: The following packages are missing from the target environment:\n - curl", "stderr_lines": ["", "PackagesNotFoundError: The following packages are missing from the target environment:", " - curl"], "stdout": "Solving environment: ...working... failed", "stdout_lines": ["Solving environment: ...working... failed"]}
to retry, use: --limit @/vagrant/provision/playbook.retry

PLAY RECAP *********************************************************************
default : ok=9 changed=1 unreachable=0 failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

@rreben
Copy link
Owner

rreben commented Apr 25, 2018

Which version of vagrant are you using?

@rreben
Copy link
Owner

rreben commented Apr 25, 2018

use vagrant -v to get the version number. 2.0.4 is the newest version

@rreben
Copy link
Owner

rreben commented Apr 25, 2018

Hmm, I tried to reproduce your problem. But everything is working fine on my Mac macOS 10.13.4, vagrant 2.0.4 and virtutal box 5.2.10.

So I guess same evironment as yours.

Please do as follows:

go to your basket4py folder in your shell (the folder that contains the Vagrantfile
do a vagrant destroy
this will reset your whole environment.
then use vagrant up

once this is done open http://192.168.33.12:8888 in your web browser.
and by the way, the default password to login to Jupyter is 'password'

You should now see the default notebook of basket4py. Try these out.

Only if this has been successful go to the next steps and install twitter lib and copy the social web 2 e notebooks.

Please post any problems / steps to this issue log.

@nmodi007
Copy link

nmodi007 commented Jul 7, 2018

I am also getting this error... Ansible failed to complete successfully.
vagrant version 2.1.2
VirtualBox 5.2.14
macOS 10.13.5

default: Installing Ansible...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.6.1).

Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode

default: Running ansible-galaxy...

cd /vagrant && ansible-galaxy install --role-file='/vagrant/provision/requirements.yml' --roles-path='/vagrant/provision/roles' --force
[WARNING]: - andrewrothstein.anaconda was NOT installed successfully: Failed
to get data from the API server (https://galaxy.ansible.com/api/): Failed to
validate the SSL certificate for galaxy.ansible.com:443. Make sure your managed
systems have a valid CA certificate installed. If the website serving the url
uses SNI you need python >= 2.7.9 on your managed machine (the python
executable used (/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017,
15:49:48) [GCC 4.8.4]) or you can install the urllib3, pyOpenSSL, ndg- httpsclient, and pyasn1 python modules to perform SNI verification in python

= 2.6. You can use validate_certs=False if you do not need to confirm the
servers identity but this is unsafe and not recommended. Paths checked for this
platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs,
/usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was:
hostname u'galaxy.ansible.com' doesn't match either of
'*.c1e4.galaxy.openshiftapps.com', 'c1e4.galaxy.openshiftapps.com'.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

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

3 participants