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

Continuous Deployment with VSTS #115

Open
lgmorand opened this issue Jan 25, 2017 · 2 comments
Open

Continuous Deployment with VSTS #115

lgmorand opened this issue Jan 25, 2017 · 2 comments

Comments

@lgmorand
Copy link

Hi, thanks for the document, it's pretty clear and fluent until...CD

  • The task "Powershell" does not seem to exists anymore, you have to choose between "Azure Powershell" or "Powershell to Remote machine", which do not have the same fields to fill.

  • If I use a "Azure Powershell", I just need to configure the azure endpoint and everything seems ok, until I try a deployment. Then I get an error (which is truncated by VSTS/powershell..)

2017-01-25T15:27:47.3856706Z` ##[command]Import-Module -Name C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\AzureRM.Profile.psd1 -Global

2017-01-25T15:27:48.5958861Z ##[command]Add-AzureRMAccount -ServicePrincipal -Tenant ******** -Credential System.Management.Automation.PSCredential

2017-01-25T15:27:50.4787406Z ##[command]Select-AzureRMSubscription -SubscriptionId 6c9dc160-dca4-47cb-9e76-ed16a4b4edb1 -TenantId ********

2017-01-25T15:27:51.7085035Z ##[command]& 'D:\a\r1\a\PartsUnlimitedMRP.CI\deploy\SSH-MRP-Artifacts.ps1' -sshUser azureuser -sshPassword Microsoft01! -sshTarget mrpdemo.westeurope.cloudapp.azure.com

2017-01-25T15:27:54.1979768Z ##[error]The server's host key is not cached in the registry. You

I think, it's related to this wellknown error

The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.

So i'm still looking why it does not seem to connect to the VM

@cornyachtsorry
Copy link

cornyachtsorry commented Apr 5, 2017

@lgmorand The task "Powershell" can be found in the Utility section
task powershell

For me, I have followed the tutorial closely, but after making changes, triggering CI+CD, I got the following errors.

The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's ssh-xxxxx fingerprint is: ssh-xxxxx
If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the connection.
Store key in cache? (y/n) Using username "xxx".

The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's ssh-xxxxx key fingerprint is: ssh-xxxxx
If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the connection.
Store key in cache? (y/n) E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
bash: line 2: dos2unix: command not found
sudo: mongo: command not found
sed: can't read /etc/tomcat7/server.xml: No such file or directory
cp: cannot create regular file '/var/lib/tomcat7/webapps': No such file or directory
sudo: /etc/init.d/tomcat7: command not found

Any idea how to fix this? I have been enjoying the tutorial until I hit these errors...

@pavankumar9491
Copy link

@andreajeka I am facing the same issue which u had faced. Have you found the solution on how to fix it ?

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