{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/150","repository_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP","labels_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/150/comments","events_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/150/events","html_url":"https://github.com/Microsoft/PartsUnlimitedMRP/issues/150","id":358629615,"node_id":"MDU6SXNzdWUzNTg2Mjk2MTU=","number":150,"title":"Release Error: deploy_mrp_app.sh: No such file or directory","user":{"login":"Hoyg","id":13269013,"node_id":"MDQ6VXNlcjEzMjY5MDEz","avatar_url":"https://avatars3.githubusercontent.com/u/13269013?v=4","gravatar_id":"","url":"https://api.github.com/users/Hoyg","html_url":"https://github.com/Hoyg","followers_url":"https://api.github.com/users/Hoyg/followers","following_url":"https://api.github.com/users/Hoyg/following{/other_user}","gists_url":"https://api.github.com/users/Hoyg/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoyg/subscriptions","organizations_url":"https://api.github.com/users/Hoyg/orgs","repos_url":"https://api.github.com/users/Hoyg/repos","events_url":"https://api.github.com/users/Hoyg/events{/privacy}","received_events_url":"https://api.github.com/users/Hoyg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-10T13:44:27Z","updated_at":"2018-09-20T12:03:21Z","closed_at":null,"author_association":"NONE","body":"Unable to proceed beyond this issue..\r\n\r\nThe release logs are as below - \r\n\r\n ##[debug]Evaluating condition for step: 'PowerShell Script'\r\n2018-09-10T06:43:40.5222453Z ##[debug]Evaluating: succeeded()\r\n2018-09-10T06:43:40.5222647Z ##[debug]Evaluating succeeded:\r\n2018-09-10T06:43:40.5222961Z ##[debug]=> True\r\n2018-09-10T06:43:40.5223374Z ##[debug]Result: True\r\n2018-09-10T06:43:40.5223615Z ##[section]Starting: PowerShell Script\r\n2018-09-10T06:43:40.5229333Z ==============================================================================\r\n2018-09-10T06:43:40.5229823Z Task         : PowerShell\r\n2018-09-10T06:43:40.5229923Z Description  : Run a PowerShell script on Windows, macOS, or Linux.\r\n2018-09-10T06:43:40.5230030Z Version      : 2.136.0\r\n2018-09-10T06:43:40.5230113Z Author       : Microsoft Corporation\r\n2018-09-10T06:43:40.5230211Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613736)\r\n2018-09-10T06:43:40.5230318Z ==============================================================================\r\n2018-09-10T06:43:42.0631216Z ##[debug]VstsTaskSdk 0.9.0 commit 6c48b16164b9a1c9548776ad2062dad5cd543352\r\n2018-09-10T06:43:42.3118284Z ##[debug]Entering D:\\a\\_tasks\\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\\2.136.0\\powershell.ps1.\r\n2018-09-10T06:43:42.3230935Z ##[debug]Loading resource strings from: D:\\a\\_tasks\\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\\2.136.0\\task.json\r\n2018-09-10T06:43:42.3790454Z ##[debug]Loaded 11 strings.\r\n2018-09-10T06:43:42.3862610Z ##[debug]SYSTEM_CULTURE: 'en-US'\r\n2018-09-10T06:43:42.3871372Z ##[debug]Loading resource strings from: D:\\a\\_tasks\\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\\2.136.0\\Strings\\resources.resjson\\en-US\\resources.resjson\r\n2018-09-10T06:43:42.4157001Z ##[debug]Loaded 11 strings.\r\n2018-09-10T06:43:42.5039729Z ##[debug]INPUT_ERRORACTIONPREFERENCE: 'continue'\r\n2018-09-10T06:43:42.5121801Z ##[debug]INPUT_FAILONSTDERR: 'false'\r\n2018-09-10T06:43:42.5122608Z ##[debug] Converted to bool: False\r\n2018-09-10T06:43:42.5160072Z ##[debug]INPUT_IGNORELASTEXITCODE: 'false'\r\n2018-09-10T06:43:42.5927712Z ##[debug] Converted to bool: False\r\n2018-09-10T06:43:42.5954142Z ##[debug]INPUT_WORKINGDIRECTORY: 'D:\\a\\r1\\a\\_MRP-CI\\drop\\deploy'\r\n2018-09-10T06:43:42.6087302Z ##[debug]Asserting container path exists: 'D:\\a\\r1\\a\\_MRP-CI\\drop\\deploy'\r\n2018-09-10T06:43:42.6113605Z ##[debug]INPUT_TARGETTYPE: 'filePath'\r\n2018-09-10T06:43:42.6149950Z ##[debug]INPUT_FILEPATH: 'D:\\a\\r1\\a\\_MRP-CI\\drop\\deploy\\SSH-MRP-Artifacts.ps1'\r\n2018-09-10T06:43:42.6173316Z ##[debug]Asserting leaf path exists: 'D:\\a\\r1\\a\\_MRP-CI\\drop\\deploy\\SSH-MRP-Artifacts.ps1'\r\n2018-09-10T06:43:42.6219819Z ##[debug]INPUT_ARGUMENTS: '-sshUser puladmin -sshPassword P2ssw0rd@12345 -sshTarget pulmrp.southeastasia.cloudapp.azure.com'\r\n2018-09-10T06:43:42.6500003Z Generating script.\r\n2018-09-10T06:43:42.6555630Z Formatted command: . 'D:\\a\\r1\\a\\_MRP-CI\\drop\\deploy\\SSH-MRP-Artifacts.ps1' -sshUser puladmin -sshPassword P2ssw0rd@12345 -sshTarget pulmrp.southeastasia.cloudapp.azure.com\r\n2018-09-10T06:43:42.6686190Z ##[debug]AGENT_VERSION: '2.140.0'\r\n2018-09-10T06:43:42.6787901Z ##[debug]AGENT_TEMPDIRECTORY: 'D:\\a\\_temp'\r\n2018-09-10T06:43:42.6811030Z ##[debug]Asserting container path exists: 'D:\\a\\_temp'\r\n2018-09-10T06:43:42.7337387Z ##[debug]Asserting leaf path exists: 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe'\r\n2018-09-10T06:43:42.7491300Z ##[debug]Entering Invoke-VstsTool.\r\n2018-09-10T06:43:42.7610956Z ##[debug] Arguments: '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command \". 'D:\\a\\_temp\\48d02684-2b75-4d9a-88d8-9e5c5c89376c.ps1'\"'\r\n2018-09-10T06:43:42.7630048Z ##[debug] FileName: 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe'\r\n2018-09-10T06:43:42.7650777Z ##[debug] WorkingDirectory: 'D:\\a\\r1\\a\\_MRP-CI\\drop\\deploy'\r\n2018-09-10T06:43:42.7698681Z ##[command]\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command \". 'D:\\a\\_temp\\48d02684-2b75-4d9a-88d8-9e5c5c89376c.ps1'\"\r\n2018-09-10T06:43:49.2237077Z The server's host key is not cached in the registry. You\r\n2018-09-10T06:43:49.2238650Z have no guarantee that the server is the computer you\r\n2018-09-10T06:43:49.2238733Z think it is.\r\n2018-09-10T06:43:49.2238833Z The server's ssh-ed25519 key fingerprint is:\r\n2018-09-10T06:43:49.2238923Z ssh-ed25519 256 36:97:00:47:3a:7c:b3:9b:f9:1f:5c:83:33:a8:e2:09\r\n2018-09-10T06:43:49.2239476Z If you trust this host, enter \"y\" to add the key to\r\n2018-09-10T06:43:49.2239581Z PuTTY's cache and carry on connecting.\r\n2018-09-10T06:43:49.2239765Z If you want to carry on connecting just once, without\r\n2018-09-10T06:43:49.2239864Z adding the key to the cache, enter \"n\".\r\n2018-09-10T06:43:49.2239969Z If you do not trust this host, press Return to abandon the\r\n2018-09-10T06:43:49.2240057Z connection.\r\n2018-09-10T06:43:54.1448149Z Store key in cache? (y/n) Using username \"puladmin\".\r\n2018-09-10T06:43:54.1448355Z Remote working directory is /home/puladmin\r\n2018-09-10T06:43:54.1449590Z mkdir /tmp/mrpdeploy_73ec0524-af4e-42bf-b00e-ec763b206a93: OK\r\n2018-09-10T06:43:54.1449879Z Remote directory is now /tmp/mrpdeploy_73ec0524-af4e-42bf-b00e-ec763b206a93\r\n2018-09-10T06:43:54.1450109Z mkdir /tmp/mrpdeploy_73ec0524-af4e-42bf-b00e-ec763b206a93/deploy: OK\r\n2018-09-10T06:43:54.1450296Z Remote directory is now /tmp/mrpdeploy_73ec0524-af4e-42bf-b00e-ec763b206a93/deploy\r\n2018-09-10T06:43:54.1450638Z local: unable to open ./MRP-CI/deploy/MongoRecords.js\r\n2018-09-10T06:43:55.3527035Z The server's host key is not cached in the registry. You\r\n2018-09-10T06:43:55.3527669Z have no guarantee that the server is the computer you\r\n2018-09-10T06:43:55.3527900Z think it is.\r\n2018-09-10T06:43:55.3528180Z The server's ssh-ed25519 key fingerprint is:\r\n2018-09-10T06:43:55.3528344Z ssh-ed25519 256 36:97:00:47:3a:7c:b3:9b:f9:1f:5c:83:33:a8:e2:09\r\n2018-09-10T06:43:55.3528459Z If you trust this host, enter \"y\" to add the key to\r\n2018-09-10T06:43:55.3528569Z PuTTY's cache and carry on connecting.\r\n2018-09-10T06:43:55.3528659Z If you want to carry on connecting just once, without\r\n2018-09-10T06:43:55.3528751Z adding the key to the cache, enter \"n\".\r\n2018-09-10T06:43:55.3528878Z If you do not trust this host, press Return to abandon the\r\n2018-09-10T06:43:55.3528976Z connection.\r\n2018-09-10T06:43:57.2203723Z Reading package lists...\r\n2018-09-10T06:43:57.3682534Z Building dependency tree...\r\n2018-09-10T06:43:57.3684669Z Reading state information...\r\n2018-09-10T06:43:57.4638739Z dos2unix is already the newest version (6.0.4-1).\r\n2018-09-10T06:43:57.4639031Z 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\r\n2018-09-10T06:43:57.4653529Z Store key in cache? (y/n) dos2unix: deploy_mrp_app.sh: No such file or directory\r\n2018-09-10T06:43:57.4653686Z dos2unix: Skipping deploy_mrp_app.sh, not a regular file.\r\n2018-09-10T06:43:57.4703066Z bash: ./deploy_mrp_app.sh: No such file or directory\r\n2018-09-10T06:43:57.4755272Z ##[debug]$LASTEXITCODE: 127\r\n2018-09-10T06:43:58.3526561Z ##[debug]Exit code: 1\r\n2018-09-10T06:43:58.3530519Z ##[debug]Leaving Invoke-VstsTool.\r\n2018-09-10T06:43:58.3583504Z ##[error]PowerShell exited with code '1'.\r\n2018-09-10T06:43:58.3592568Z ##[debug]Processed: ##vso[task.logissue type=error]PowerShell exited with code '1'.\r\n2018-09-10T06:43:58.3593789Z ##[debug]Processed: ##vso[task.complete result=Failed]Error detected\r\n2018-09-10T06:43:58.3593974Z ##[debug]Leaving D:\\a\\_tasks\\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\\2.136.0\\powershell.ps1.\r\n2018-09-10T06:43:58.3595166Z ##[section]Finishing: PowerShell Script\r\n\r\n\r\nEven lab - \"https://github.com/Microsoft/PartsUnlimitedMRP/blob/gh-pages/_posts/2018-01-08-200.3x-CICD-CDwithLocalAgent.md\"  fails with \"There was an error loading the template from URI 'https://raw.githubusercontent.com/Microsoft/PartsUnlimitedMRP/master/docs/HOL_Continuous-Deployment-Using-Custom-Agent/env/ContinuousDeploymentCustomAgentPartsUnlimitedMRP.json'. Ensure that the template is publicly accessible and does not have any comments.\"\r\n\r\nQuick help would be appreciated!\r\n\r\nHoysala"},"comment":{"url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/comments/423157786","html_url":"https://github.com/Microsoft/PartsUnlimitedMRP/issues/150#issuecomment-423157786","issue_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/150","id":423157786,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzE1Nzc4Ng==","user":{"login":"eamonnk","id":25678634,"node_id":"MDQ6VXNlcjI1Njc4NjM0","avatar_url":"https://avatars2.githubusercontent.com/u/25678634?v=4","gravatar_id":"","url":"https://api.github.com/users/eamonnk","html_url":"https://github.com/eamonnk","followers_url":"https://api.github.com/users/eamonnk/followers","following_url":"https://api.github.com/users/eamonnk/following{/other_user}","gists_url":"https://api.github.com/users/eamonnk/gists{/gist_id}","starred_url":"https://api.github.com/users/eamonnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eamonnk/subscriptions","organizations_url":"https://api.github.com/users/eamonnk/orgs","repos_url":"https://api.github.com/users/eamonnk/repos","events_url":"https://api.github.com/users/eamonnk/events{/privacy}","received_events_url":"https://api.github.com/users/eamonnk/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T12:03:21Z","updated_at":"2018-09-20T12:03:21Z","author_association":"COLLABORATOR","body":"Hi, \r\n\r\nThis back up and running now and the steps for the [Continuous Integration with Visual Studio Team Services ](http://microsoft.github.io/PartsUnlimitedMRP/cicd/200.3x-CICD-CI.html) and [Continuous Deployment with VSTS and VSTS Hosted Agent ](http://microsoft.github.io/PartsUnlimitedMRP/cicd/200.3x-CICD-CDwithHostedAgent.html) have both been updated and tested as working. \r\n\r\n\r\nThere were two issues which caused the lab to break, \r\n\r\n- firstly the default build source alias name value changed. The default value now places an underscore at the start of the default value, and this was breaking the .ps1 script logic. \r\n- The second issue was changes in the dos2unix package, which was called in the release pipeline during deployment.\r\n \r\nTwo files have been updated to address these issues the [SSH-MRP-Artifacts.ps1](https://github.com/Microsoft/PartsUnlimitedMRP/blob/master/deploy/SSH-MRP-Artifacts.ps1) and the [install_mrp_dependencies.sh](https://github.com/Microsoft/PartsUnlimitedMRP/blob/master/Labfiles/DevOps200.3x-CIandCD/CDwithHostedAgent/env/install_mrp_dependencies.sh) \r\n\r\nThe copy and publish artifact, while deprecated, is still functioning fine, but we have removed it from the lab and replaced with two separate copy and publish artifact tasks as recommended.\r\n\r\nAnyway, apologies it took longer than expected. Both these labs have been updated and should be working fine now, but if you encounter any problems just let us know.\r\n\r\n\r\nThanks,\r\nEamonn"}}
{"actor":{"display_login":"eamonnk"}}