ENOENT error in azure vm docker create (on windows) #1340
Comments
@babumuralidharan @eduardkoller can you guys take a look? |
yes, I suffered same problem on China Azure. I wonder if it's China Azure specific, or it also happens on global Azure. |
I also experienced the same problem using the xplat CLI tools installed fresh today. In AzureCloud, NOT China. Any ideas on how to fix? |
I got support from Azure who still looking into this issue. as workaround xplat CLI on linux works well (my issue was on win8.1). |
I have the same problem under virtualized Windows Server 2012 R2 azure.err
|
I too facing the same issue while creating the docker vm azure vm docker create --location 'North Europe' -e 22 --vm-size 'small' --vm-name 'myvm' docker
|
I have same problem. My Win version is Windows Technical Preview Evaluation copy. Build 9841.
azure.err
|
I think it may be linked to https://github.com/joyent/node/issues/2318 azure-xplat-cli/lib/commands/asm/vm/vmclient.js Line 3683 in 3214fc5
openssl.exec and more specifically in https://github.com/mgcrea/node-openssl-wrapper/blob/master/lib/openssl-wrapper.js#L63 For short term solving:
This bug needs to be fixed in openssl-wrapper. |
openssl.exe needs to be in PATH, if you download OpenSSL for Win32 and do something like set PATH=%PATH%;c:\users\foo\downloads\openssl-x.y.z\bin the error goes away - yet now you get:
|
Ah, the joys of OpenSSL in Windows. So, in my specific distribution of OpenSSL (which happens to be the gnuwin32.sf.net one) here's the two set's I needed. azure-cli should test() for openssl and openssl.cfg before creating Docker's certificates (or ship OpenSSL? chan chan chaaaan)
|
@guangyang @chanezon Thank you your comments! It was a great help to me. |
Added a check for OpenSSL in "create docker vm" command: https://github.com/MSOpenTech/azure-sdk-tools-xplat/commit/34deb1f8952599078bc87b20a0fb32d42f0a6304. Change will be part of PR from MSOpenTech. |
@hopetobelievein can't see where it's fixed with a friendly error message or a pre-check for openssl.exe in 34deb1f. |
I had the problem that Openssl was not finding a conf file. My installation is from the git bash on Windows. I fixed by setting OPENSSL_CONF to point at the openssl.cnf file in git/ssl. The check that openssl is installed by asking for version is not enough. |
@amarzavery Can you please assign this to the right owner? |
@sauryadas - you are the right owner. It's an issue with the vm command and falls in your lap. |
Looks like the command works.
|
I just made a clean installation of Node.js on Windows and azure-cli through npm.
azure.err:
The command creates the
.docker
folder under my home directory (c:\users\ahmetb) but it is empty.The text was updated successfully, but these errors were encountered: