Error While Installing amazon-cloud-watch-agent through system manager - amazon-cloudwatch

I'm facing issue while installing amazon-cloud-watch-agent through AWS system manager.Error details as follows.
install errors: & : The term 'C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1' is not recognized as the
name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At C:\ProgramData\Amazon\SSM\Packages_arnawsssmpackageamazoncloudwatchagent_2B_HP6ASKUGHXDL73H24T7UUUKNWXRDTKWGMMX5YMX
LDHWGQE2KUPXA====\1.247357.0b252275\install.ps1:23 char:3
& "${Cmd}" -Action cond-restart
+ CategoryInfo : ObjectNotFound: (C:\Program File...h-agent-ctl.ps1:String) [], ParentContainsErrorRecord
Exception
+ FullyQualifiedErrorId : CommandNotFoundException
failed to run commands: exit status 1
Failed to install package; install status Failed
I have tried install it manually.It also didn't work.

The error message you are seeing indicates that the installation script is having trouble locating the script included in the CloudWatch Agent installation package called amazon-cloudwatch-agent-ctl.ps1. This could occur if the CloudWatch Agent installation package was not downloaded completely or was downloaded to an unexpected location.

Related

How to fix invoke uiautomator from command Prompt

I want to run uiautomatorviewer from command Prompt.
But it gives an error:
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use
-classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Please guide.
Download JDK 8 version & install it
Set Environment variable as [JAVA_HOME : C:\Program Files\Java\jdk1.8.0_65]
Path = %JAVA_HOME%\bin & %JAVA_HOME%\lib
and provide uiautomatorviewer.bat command in cmd
The above scenario will work.

bazel server terminated abruptly (error code :14, error message: '',log file: 'c:\users\lee\_bazel_lee\zjiu63sl/server/jvm.out

Hi I used bazel in Windows 7
I try bazel build tensorflow/contrib/lite/toco:toco in cmd.exe
Then I got error message : server terminated abruptly (error code :14, error message: '',log file: 'c:\users\lee_bazel_lee\zjiu63sl/server/jvm.out
What can I do? Please help
enter image description here
Try in tensorflow-master folder, I got error message.enter image description here
Your current error message states that the command "patch" is not found. I gues your mingw installation has not installed this programm. See Apply a patch file in Windows using Mingw how to install it.

Extension host terminated unexpectedly with error code 3221225477 Signal: null

PS D:\> install npm
install : The term 'install' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ install npm
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (install:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
When trying to install npm in vscode version VSCodeSetup-x64-1.17.2 in windows 10 OS, I am getting the error.
Error Code from debugger is as below
3221225477 Signal: null
e._onExtensionHostCrashed # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:29
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
Please advise how to resolve this error.
Thanks and Regards
Vijay
You're typing 'install npm install' but the first 'install' is not a binary for the CMD.
Try to install node (which includes npm):
https://nodejs.org/en/download/
Goto the environment path settings, at the "Path" in both user path and system path, there is a more ";" for visual studio code, remove the ";" and restart the VS code, everything is ok now.
I think it's a Microsoft bug.

Running DNU Restore on VSO build

I am trying to get DNX projects building on VSO's host agent.
First thing is installing DNX. I have the following powershell script to do this:
dnx-upgrade.ps1:
dnvm upgrade -r clr -arch x86 -v 1.0.0-beta6
It successfully installs and PATH is updated:
Adding
C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin to
process PATH
Adding
C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin to
user PATH
Then I need to restore the solution's packages with this script:
dnu-restore.ps1:
dnu restore
But I get the following error when executing dnu-restore.ps1:
[error]dnu : The term 'dnu' is not
recognized as the name of a cmdlet, function, script file, or operable
program. Check the
[error]spelling
of the name, or if a path was included, verify that the path is
correct and try again.
[error]At
C:\a\8ac4a4f6\Root\MyProject\Development\dnu-restore.ps1:1 char:1
[error]+ dnu restore
[error]+ ~~~
[error] + CategoryInfo :
ObjectNotFound: (dnu:String) [], CommandNotFoundException
[error] + FullyQualifiedErrorId :
CommandNotFoundException
Build tasks:
Why is this happening? Surely dnu should execute? Is there a better way to restore DNX project packages?
Using the Prebuild.ps1 script from this MSDN article solved the problem.
As Victor suggested, it may be because the steps are run in different processes.

sencha build giving error stbuild exited with non-zero code : 7

I wanted to create .apk file of my sencha application so I executed below command
sencha package build packager.json
but when I executed above command,it generates error as given below.
'C:\Program' is not recognized as an internal or external command,operable program or batch file.
""D:/Android/AndroidSDKr15\tools\android" create project --target android-16 --name chartDemoApp --activity STActivity --path "../build/" --package triumphsys. mobility.chartDemoApp"
Could not run ant with error: 1
Failed to package application
[ERR] stbuild exited with non-zero code : 7
even I have attached my command prompt here and packager.json here.
please help me to resolve it.
I was able to solve the problem by uninstalling "C:\Program files\Sencha Cmd" and again re-installing it at "C:\Sencha" without any spaces in folder name. and it worked for me.