chef solo prepare command does not work - windows

I'm trying to using chef solo on a remote windows machine.
My "chef solo prepare" command works fine on a linux remote machine but on a windows remote machine with cygwin openssh running, when I run:
knife solo prepare guy#64.231.175.27 -i ~/.ssh/my-rsa -V
I get the following error:
Bootstrapping Chef...
ERROR: SyntaxError: (eval):1: syntax error, unexpected $end
KnifeSolo::Bootstraps::
^
I've already tested the ssh which works fine. Does anyone have a clue what I can do to fix this?

knife solo prepare does not work on Windows. You could wait until the maintainer can add Windows support or open a Pull Request on GitHub to add this functionality.

Related

Error: No such file or directory # rb_sysopen - C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt

In my windows 10, after I installed
​vagrant plugin install vagrant-vmware-desktop
then i execute vagrant up I get error:1
>vagrant up
Vagrant encountered an error while attempting to load the utility
service key file. This error can occur if the Vagrant VMware Utility
has not yet been installed, or if it was installed incorrectly. If
this error persists after running the Vagrant VMware Utility installer
again, please contact support at: support#hashicorp.com
Information about the Vagrant VMware Utility, including installation
instruction, can be found here:
https://www.vagrantup.com/docs/vmware/vagrant-vmware-utility.html
Path: C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
Error: No such file or directory # rb_sysopen - C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
It seems the Vagrant Vmware utility is missing, you can run the following command and check if the Vmware utility service is running or not
net start vagrant-vmware-utility
If it is not present, install it from here for windows. you can look for other links for different platforms.
Once installed re-install the utility -
vagrant plugin install vagrant-vmware-desktop
After installation is complete you should have a folder similar to this:
C:\HashiCorp\VagrantVMwareUtility

Install Ejabberd XMPP Server on AWS failing

I am trying to install Ejabberd on EC2.
I tried doing the following
sudo Downloads/ejabberd-16.09-linux-x86_64-installer.run
ran this command,getting this error
Downloads/ejabberd-16.09-linux-x86_64-installer.run: line 1: syntax error near unexpected token newline'.
Downloads/ejabberd-16.09-linux-x86_64-installer.run: line 1:'
The message indicates a syntax error. You can use the following code to install the downloaded file.
cd Downloads
sudo ./ejabberd-16.09-linux-x86_64-installer.run

Vagrant access is denied

I'm using Windows 8.1. I get "access is denied" when i execute
vagrant
using windows command prompt, but it works well using Git Bash (msysgit)
I reinstall vagrant, but still access denied.
Any suggestions?
I was also facing the same issue.
How I solved the problem is by assigning/setting VAGRANT_HOME
It was not present by default because as i had installed vagrant in other directory, in my case it was D.
Just run this command on powershell/cmd and make sure you have administrator rights
setx VAGRANT_HOME "D:\your\path\vagrant.exe"
After executing the command sign out and sign in
Link for reference
There is a chance that things might not properly and you may get ERRNO:EXISTS kind of error. To solve this error make sure the user on which you have installed virtualbox is the one who using vagrant commands are SAME.
Link for reference
use vagrant --debug to print stacktrace log.
You dont have permission to run powershell because vagrant use powershell to execute commands.
you can also check powershell status with vagrant powershell
Make sure you have the rights permission on powershell

Knife Solo Cook Error

I installed Vagrant, Virtualbox, Chef-solo and Knife in my local environment (Ubuntu 14.04). Everything was installed properly. But when I run this command "knife solo cook my.dev", it's returning an error:
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/MDB2-2.5.0b5.tgz"
Download of "pear/MDB2" succeeded, but it is not a valid package archive
Error: cannot download "pear/MDB2"
Download failed
install failed
These are the commands i did before that:
vagrant up
vagrant ssh-config --host my.dev >> ~/.ssh/config
knife solo cook my.dev //Error occurs here//
ssh my.dev
If I had to guess (and this is the internet so I do) something is interfering with the download of metadata from PEAR. Try installing by hand and see what the error looks like there.

error when starting virtual machine (vagrant/ virtualbox)

I'm following the installation tutorial from Data Science at the Command Line which includes the following steps:
$ mkdir MyDataScienceToolbox
$ cd MyDataScienceToolbox
$ vagrant init data-science-toolbox/data-science-at-the-command-line
$ vagrant up
When I try the vagrant up step, my virtual machine goes into the "Power off" state, giving the following error, in a dialog box illustrated below:
The virtual machine 'MyDataScienceToolbox_default_1410032122266_73421' has terminated unexpectedly during startup with exit code 1.
Details:
Error code: E_FAIL (0x80004005)
Component: Machine
Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}
I'm new to the command line, so if you have the patience, please talk like you talk to a 5 year old.
Are you using VirtualBox 4.3.14? Release 4.3.14 has a known issue with starting VMs whilst certain security suites are installed on Windows.
You can either try the experimental fix 4.3.15 from here, or roll back to 4.3.12 which you can download from here, although bear in mind that older builds may have security vulnerabilities.

Resources