<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; vagrant</title>
	<atom:link href="https://tech.yipp.ca/category/vagrant/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>[SOLVED] Fix Puppet pip install failure</title>
		<link>https://tech.yipp.ca/vagrant/solved-fix-puppet-pip-install-failure/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solved-fix-puppet-pip-install-failure</link>
		<comments>https://tech.yipp.ca/vagrant/solved-fix-puppet-pip-install-failure/#comments</comments>
		<pubDate>Mon, 14 Mar 2016 05:00:59 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[vagrant]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2296</guid>
		<description><![CDATA[<p>Problem ==&#62; machine1: Error: Execution of '/usr/local/bin/pip install -q pycrypto' returned 1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uN48ao/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p66n7t-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/solved-fix-puppet-pip-install-failure/">[SOLVED] Fix Puppet pip install failure</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Problem</h2>
<pre>==&gt; machine1: Error: Execution of '/usr/local/bin/pip install -q pycrypto' returned 1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uN48ao/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p66n7t-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-uN48ao/pycrypto/
==&gt; machine1: Error: /Stage[main]/Puphpet_python/Package[pycrypto]/ensure: change from absent to present failed: Execution of '/usr/local/bin/pip install -q pycrypto' returned 1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-uN48ao/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p66n7t-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-uN48ao/pycrypto/
==&gt; machine1: Error: Execution of '/usr/local/bin/pip install -q paramiko' returned 1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-D_feRt/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-89hDGU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-D_feRt/pycrypto/
==&gt; machine1: Error: /Stage[main]/Puphpet_python/Package[paramiko]/ensure: change from absent to present failed: Execution of '/usr/local/bin/pip install -q paramiko' returned 1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-D_feRt/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-89hDGU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-D_feRt/pycrypto/
==&gt; machine1: Error: Execution of '/usr/local/bin/pip install -q robotframework-sshlibrary' returned 1: /usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
==&gt; machine1:   SNIMissingWarning
==&gt; machine1: /usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
==&gt; machine1:   InsecurePlatformWarning
==&gt; machine1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-UDSczk/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xzM9Tb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-UDSczk/pycrypto/
==&gt; machine1: Error: /Stage[main]/Puphpet_python/Package[robotframework-sshlibrary]/ensure: change from absent to present failed: Execution of '/usr/local/bin/pip install -q robotframework-sshlibrary' returned 1: /usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
==&gt; machine1:   SNIMissingWarning
==&gt; machine1: /usr/local/lib/python2.7/dist-packages/pip-8.1.0-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
==&gt; machine1:   InsecurePlatformWarning
==&gt; machine1: Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-UDSczk/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xzM9Tb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-UDSczk/pycrypto/
</pre>
<h2>Solution</h2>
<p>In <strong>Python.pp</strong> found in puphpet/puppet/manifests/Python.pp, add <strong>require =&gt; Package['build-essential'] :</strong></p>
<pre>if ! defined(Package[$package_name]) {
      notify{"(PYTHON) Installing package ${package_name}" :}
      package { $package_name:
        ensure   =&gt; $package_ensure,
        provider =&gt; pip,
        <strong><span style="color: #339966;">require =&gt; Package['build-essential']</span></strong>
      }
    }
</pre>
<p>And in <strong>config.yaml</strong>, make sure you have python-dev, libssl-dev and <strong>build-essentials</strong></p>
<pre>(...)
server:
 install: '1'
 packages:
 - python-dev
 - libssl-dev
 <span style="color: #339966;"><strong>- build-essential</strong></span>
 - libffi-dev
 - libxml2-dev
 - libxslt-dev
 - expect
 - cifs-utils
 - libfontconfig1
(...)</pre>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/solved-fix-puppet-pip-install-failure/">[SOLVED] Fix Puppet pip install failure</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/vagrant/solved-fix-puppet-pip-install-failure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[HELP NEEDED]  private_key_path file must exist: H://.vagrant.d/insecure_private_key</title>
		<link>https://tech.yipp.ca/vagrant/help-needed-private_key_path-file-must-exist-h-vagrant-dinsecure_private_key/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=help-needed-private_key_path-file-must-exist-h-vagrant-dinsecure_private_key</link>
		<comments>https://tech.yipp.ca/vagrant/help-needed-private_key_path-file-must-exist-h-vagrant-dinsecure_private_key/#comments</comments>
		<pubDate>Fri, 11 Mar 2016 14:37:59 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[vagrant]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2290</guid>
		<description><![CDATA[<p>D:\vagrant\vagrant-puppet-phantomjs-python&#62;vagrant destroy machine1: Are you sure you want to destroy the 'machine1' VM? [y/N] y There are errors in the configuration of this machine. Please fix the following errors and try again: SSH: *&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/help-needed-private_key_path-file-must-exist-h-vagrant-dinsecure_private_key/">[HELP NEEDED]  private_key_path file must exist: H://.vagrant.d/insecure_private_key</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>D:\vagrant\vagrant-puppet-phantomjs-python&gt;vagrant destroy<br />
machine1: Are you sure you want to destroy the 'machine1' VM? [y/N] y<br />
There are errors in the configuration of this machine. Please fix<br />
the following errors and try again:</p>
<p>SSH:<br />
* `private_key_path` file must exist: H://.vagrant.d/insecure_private_key</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/help-needed-private_key_path-file-must-exist-h-vagrant-dinsecure_private_key/">[HELP NEEDED]  private_key_path file must exist: H://.vagrant.d/insecure_private_key</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/vagrant/help-needed-private_key_path-file-must-exist-h-vagrant-dinsecure_private_key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phantomjs: The guest additions on this VM do not match the installed version</title>
		<link>https://tech.yipp.ca/vagrant/phantomjs-guest-additions-vm-match-installed-version-o/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=phantomjs-guest-additions-vm-match-installed-version-o</link>
		<comments>https://tech.yipp.ca/vagrant/phantomjs-guest-additions-vm-match-installed-version-o/#comments</comments>
		<pubDate>Wed, 09 Mar 2016 01:09:32 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[vagrant]]></category>
		<category><![CDATA[phantomjs]]></category>
		<category><![CDATA[puphpet]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2267</guid>
		<description><![CDATA[<p>==&#62; phantomjs: Checking for guest additions in VM... phantomjs: The guest additions on this VM do not match the installed version of phantomjs: VirtualBox! In most cases this is fine, but in rare cases&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/phantomjs-guest-additions-vm-match-installed-version-o/">phantomjs: The guest additions on this VM do not match the installed version</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>==&gt; phantomjs: Checking for guest additions in VM...<br />
phantomjs: The guest additions on this VM do not match the installed version of<br />
phantomjs: VirtualBox! In most cases this is fine, but in rare cases it can<br />
phantomjs: prevent things such as shared folders from working properly. If you see<br />
phantomjs: shared folder errors, please make sure the guest additions within the<br />
phantomjs: virtual machine match the version of VirtualBox you have installed on<br />
phantomjs: your host and reload your VM.<br />
phantomjs:<br />
phantomjs: Guest Additions Version: 5.0.10<br />
phantomjs: VirtualBox Version: 4.3</p>
<h2>Solution</h2>
<pre>C:\dev\&gt;vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.11.0)'!</pre>
<pre>C:\dev\vagrant\supervm&gt;vagrant reload</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/phantomjs-guest-additions-vm-match-installed-version-o/">phantomjs: The guest additions on this VM do not match the installed version</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/vagrant/phantomjs-guest-additions-vm-match-installed-version-o/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix Vagrant machine index has become corrupt</title>
		<link>https://tech.yipp.ca/vagrant/fix-vagrant-machine-index-become-corrupt/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-vagrant-machine-index-become-corrupt</link>
		<comments>https://tech.yipp.ca/vagrant/fix-vagrant-machine-index-become-corrupt/#comments</comments>
		<pubDate>Mon, 17 Aug 2015 10:30:35 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[vagrant]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1968</guid>
		<description><![CDATA[<p>The machine index which stores all required information about running Vagrant environments has become corrupt. This is usually caused by external tampering of the Vagrant data folder. Vagrant cannot manage any Vagrant environments if&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/fix-vagrant-machine-index-become-corrupt/">How to fix Vagrant machine index has become corrupt</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://tech.yipp.ca/files/2015/08/Screen-Shot-2015-08-17-at-5.43.33-AM.png"><img class="alignnone size-full wp-image-1969" src="http://tech.yipp.ca/files/2015/08/Screen-Shot-2015-08-17-at-5.43.33-AM.png" alt="The machine index which stores all required information about running Vagrant environments has become corrupt. This is usually caused by external tampering of the Vagrant data folder. Vagrant cannot manage any Vagrant environments if the index is corrupt. Please attempt to manually correct it. If you are unable to manually correct it, then remove the data file at the path below. This will leave all existing Vagrant environments orphaned and they'll have to be destroyed manually." width="808" height="302" /></a></p>
<p>The machine index which stores all required information about<br />
running Vagrant environments has become corrupt. This is usually<br />
caused by external tampering of the Vagrant data folder.</p>
<p>Vagrant cannot manage any Vagrant environments if the index is<br />
corrupt. Please attempt to manually correct it. If you are unable<br />
to manually correct it, then remove the data file at the path below.<br />
This will leave all existing Vagrant environments "orphaned" and<br />
they'll have to be destroyed manually.</p>
<p>Path: /Users/flemieux/.vagrant.d/data/machine-index/index</p>
<p>We are very lucky because removing both the <strong>index</strong> and <strong>index.lock</strong> files resolves the problem!</p>
<h2>Solution</h2>
<p>Delete index.lock from ~/.vagrant.d/data/machine-index/<br />
Move index =&gt; index.bkp<br />
Run again $&gt; make product-dev (or whatever your custom command is to launch)<br />
<a href="http://tech.yipp.ca/files/2015/08/Screen-Shot-2015-08-17-at-6.31.37-AM.png"><img class="alignnone size-full wp-image-1974" src="http://tech.yipp.ca/files/2015/08/Screen-Shot-2015-08-17-at-6.31.37-AM.png" alt="Screen Shot 2015-08-17 at 6.31.37 AM" width="1046" height="643" /></a></p>
<p>On stackoverflow: http://stackoverflow.com/questions/24911021/vagrant-corrupted-index-file-c-users-username-vagrant-d-data-machine-index-ind</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/vagrant/fix-vagrant-machine-index-become-corrupt/">How to fix Vagrant machine index has become corrupt</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/vagrant/fix-vagrant-machine-index-become-corrupt/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
