Closed gauchoux closed 5 years ago
Hi @gauchoux , it appears that you downloaded InstallKinesisAgent.ps1 first and ran it, right?
In Windows Explorer, right-click InstallKinesisAgent.ps1, select properties. If it is blocked, unblock it and run InstallKinesisAgent.ps1 again. Let me know if this is the issue.
Hi @aspcompiler ,
First, thanks for your fast response, much appreciated ! So it was indeed blocked but unblocking it hasn't solved the problem... Output:
It seems to be the same error as before it was unblocked.
@gauchoux , do you know if your environment uses a proxy server to access the internet? You can usually find out from your browser proxy configuration. Which browser did you use to download InstallKinesisAgent.ps1?
If InstallKinesisAgent.ps1 is not able to download files from the internet, an alternative is to follow the "Download Manually" section on the download page: https://s3-us-west-2.amazonaws.com/kinesis-agent-windows/downloads/index.html.
Hi @aspcompiler ,
I don't think my environment uses a proxy server and even if it does I have the highest privileges possible. I used Chrome to download InstallKinesisAgent.ps1.
I've already tried the "Download Manually" section and it doesn't seem to work either. (I'll still try again just in case !) Error...
The output: Error.txt
@gauchoux - Can you confirm which version of the .NET Framework is installed on your system? Based on the error you're seeing, my guess is you're still running an older version of the .NET Framework.
The "[System.IO.Path]::Combine()" method in .NET Framework 3.5 only includes a single overload, "Combine(String, String)". In .NET Framework 4.0 and above there are additional overloads on the method (like the one the installer script is using).
For reference, the Amazon Kinesis Agent for Windows requires a minimum of .NET Framework 4.6 to start.
I have Microsoft .NET Framework 4.7.2 installed on my system, so that can't be the problem... :/
Hi @gauchoux, we would like to get more information about your system. Could you run the following Powershell commands and tell us the outputs?
$PSVersionTable This will return the Powershell and CLR versions, etc.
[environment]::OSVersion.Version This will return your OS version.
gwmi win32_operatingsystem | % caption This will return your OS string.
Also, if your Powershell is running .net 3.5 framework, see if you can switch to .net 4.x by following this thread: https://stackoverflow.com/questions/2094694/how-can-i-run-powershell-with-the-net-4-runtime.
Thanks.
Here are the results of these commands: Error.txt
For the thread you sent me, I can't seem to find a powershell_ise.exe.config file in my $psHome...
Thanks again for all your help.
Update,
I tried to install with chocolatey after doing the first step of the thread and I got a different error and the service was installed.
I managed to install it through the "InstallKinesisAgent.ps1" way after updating PowerShell to v5.1 and doing the first step of the thread you posted. Hope this helps other people. Thanks again for all your help !
Hi gauchoux@ Thank you for your timely responses to our questions regarding this issue. We greatly appreciate your effort for diving deep to find the root cause for this failure. We are working to implement dependency check and improve logging. We are also working on MSI installer to reduce install related failures. We will reach out to you once these changes become available. Thanks,
Hi,
I just can't install the agent I have tried every method and I keep getting errors. I've tried digging into them but I can't find anything...
Could you help me out ? Thanks !