CNTK 2.0 beta 7 installation error - install.ps1 not digitally signed - cntk

I downloaded cntk 2.0 beta 7. when executing .\install.ps1, got this error for install.ps1 not digitally signed:
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:> cd .\local\cntk\Scripts\install\windows\
PS C:\local\cntk\Scripts\install\windows> .\install.ps1
.\install.ps1 : File C:\local\cntk\Scripts\install\windows\install.ps1 cannot be loaded. The file
C:\local\cntk\Scripts\install\windows\install.ps1 is not digitally signed. You cannot run this script on the current
system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\install.ps1
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
and if I start powershell -executionpolicy unrestricted
install.ps1 is able to run but nothing got installed, here is the output:
This script will setup the CNTK prequisites and the CNTK Python environment onto the machine.
More help is given by calling 'get-help .\install.ps1' in your powershell environment.
The script will analyse your machine and will determine which components are required.
The required components will be downloaded in [C:\local\cntk\Scripts\install\windows\InstallCache]
Repeated operation of this script will reuse already downloaded components.
- If required VS2012 Runtime and VS2013 Runtime will be installed
- If required MSMPI will be installed
- Anaconda3 will be installed into [C:\local\Anaconda3-4.1.1-Windows-x86_64]
- A CNTK-PY34 environment will be created or updated in [C:\local\Anaconda3-4.1.1-Windows-x86_64\envs]
- CNTK will be installed or updated in the CNTK-PY34 environment
The parameter '-Execute' hasn't be supplied to the script.
The script will execute withouth making any actual changes to the machine.
1 - I agree and want to continue
Q - Quit the installation process
1
Determining Operations to perform. This will take a moment...
The following operations will be performed:
* Install Anaconda3-4.1.10
* Setup CNTK PythonEnvironment 3.4
* Setup/Update CNTK Wheel
* Create CNTKPY34 batch file
Do you want to continue? (y/n)
y
Performing download operations
Downloading [https://repo.continuum.io/archive/Anaconda3-4.1.1-Windows-x86_64.exe], please be patient....
** Running in DEMOMODE - no download performed
Download operations finished
Performing install operations
Installing Anaconda3-4.1.1. This will take several minutes. Please be patient ....
** Running in DEMOMODE - setting Exit Code **: 0
** Running in DEMOMODE - setting Exit Code **: 0
Setup/Update of CNTK Wheel environment. Please be patient....
** Running in DEMOMODE - setting Exit Code **: 0
Create-Batch [C:\local\cntk\scripts\cntkpy34.bat]:No-Execute flag. No file created
Install operations finished

Please read the output or the documentation on the wiki!
"The parameter '-Execute' hasn't be supplied to the script. The script will execute withouth making any actual changes to the machine"
Run the script as .\install.ps1 -Execute

I had the same error and used the sign-tool from Microsoft to digitally sign the files. After signing, this error vanished.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa387764(v=vs.85).aspx
"SignTool is available as part of the Windows SDK ..."

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Just run this command
Try this easy fix!

Related

DbMigrator Issues

I tried to register an account on the abp.io site to post about this but I keep getting an internal 500 server error. (Not a good sign when that's one of the intended uses of the framework).
I'm running through the Getting Started tutorial and the DbMigrator gives me the following error -
[14:14:30 INF] ABP CLI (https://abp.io)
[14:14:31 INF] Version 4.2.1 (Stable)
[14:14:31 ERR] Migrations failed: Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
System.Exception: Migrations failed: Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
at Volo.Abp.Cli.Commands.CreateMigrationAndRunMigrator.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\CreateMigrationAndRunMigrator.cs:line 37
at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 59
C:\Test\src\Xams.DbMigrator\bin\Debug\net5.0\Xams.DbMigrator.exe (process 35324) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .
I've verified the connection string is correct and working.

Osquery MsBuild error msb1009

While building the Windows environment for OsQuery (on my Windows 10 VM) from their website(link: https://osquery.readthedocs.io/en/stable/development/windows-provisioning/), I am getting the msb1009 error during the phase where I have to run the tools\make-win64-binaries.bat command. I get the following result after running that command:
CMake Error at CMakeLists.txt:402 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: VCTargetsPath.vcxproj
Exit code: 1
-- Configuring incomplete, errors occurred!
See also "C:/Windows/System32/osquery/build/windows10/CMakeFiles/CMakeOutput.log".
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: osquery.sln
[-] osquery build failed.
I have been trying to make the osquery.sln file using that command and have looked online for solutions but without any success. Any help would be much appreciated!
Thanks in advance
Edit: Here is the output of running tools\make-win64-dev-env.bat and tools\make-win64-binaries.bat
tools\make-win64-dev-env.bat
tools\make-win64-dev-env.bat (contd..)
tools\make-win64-binaries.bat
Could you paste the full output of running the tools\make-win64-dev-env.bat and tools\make-win64-binaries.bat? Also have you tried closing out your shell and re-opening, or even worse -- reboot the system?
I ask because, as you note, it seems like the solution file never gets generated, which usually means there was either a missing dependency during provision, or some other issue when the script first ran. On first provision it's typically the case that a system reboot is needed, as Visual Studio community typically requires one. Further, we set a few shell environment variables that are leveraged during the build process, however those are supposed to be set at the end of the provisioning script.
Also feel free to hit us up in our Slack and check out the #windows channel :)
After a lot of code reading, researching online and trial and error, I found out that after a clean OS install, one would need to install git and then immediately clone the osquery repository on the user desktop rather than System32. This worked fine, at least for me. Just make sure to switch directories when opening command line with administrator mode.

Access denied error using vsts

I'm trying to create a wcf service in a lab using vsts.
I have created a build definition that works using a msbuild task. It then uses robocopy to copy the relevant dlls to a remote directory inside a lab using the Publish Artifacts step.
However, I need the content to be created as a windows service, and started after it has been published. It seems like something is running since I see a created log file about 9 minutes after a successful publish, but i cannot see my service inside the services menu, or in IIS.
When I try to run a bat script (using the run script step) that does an sc create, I get an access denied error even though on the vsts build definition I have given the step permission to modify the environment.
This is the full error:
2018-05-17T13:00:13.7702615Z ##[section]Starting: Run script GloBill/InstallBackEnd.bat
2018-05-17T13:00:13.7705444Z ==============================================================================
2018-05-17T13:00:13.7705561Z Task : Batch Script
2018-05-17T13:00:13.7705655Z Description : Run a windows cmd or bat script and optionally allow it to change the environment
2018-05-17T13:00:13.7705748Z Version : 1.1.3
2018-05-17T13:00:13.7705824Z Author : Microsoft Corporation
2018-05-17T13:00:13.7705924Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613733)
2018-05-17T13:00:13.7706023Z ==============================================================================
2018-05-17T13:00:13.7775377Z ##[command]C:\agent\_work\1\s\GloBill\InstallBackEnd.bat
2018-05-17T13:00:13.8030595Z
2018-05-17T13:00:13.8031049Z C:\agent\_work\1\s>sc create GloBillBackEnd ../Services/GloBill.WS.exe
2018-05-17T13:00:13.8048684Z [SC] OpenSCManager FAILED 5:
2018-05-17T13:00:13.8048781Z
2018-05-17T13:00:13.8048901Z Access is denied.
2018-05-17T13:00:13.8048957Z
2018-05-17T13:00:13.8064609Z ##[error]Process completed with exit code 5.
2018-05-17T13:00:13.8073202Z ##[section]Finishing: Run script GloBill/InstallBackEnd.bat
I'm running out of ideas.
The problem was that I was trying to deploy a release from a hosted agent that resided on another machine.
I had to configure a new agent solely for deploying, then i had to tweak my installation script a little by adding the -executionpolicy bypass command.
Here is the new script:
(%1 is the file path)
Powershell.exe -executionpolicy bypass -File %1 -username Username -password ****** -exepath *exe* -serviceName *svcName*

dnvm upgrade command not working for ASP.NET 5 command line tools

While trying step 3 of Installing ASP.NET 5 on Windows, I am getting the following error on the command prompt of Windows 7. I have VS2015 Professional installed: PowerShell' is not recognized as an internal or external command, operable program or batch file.
After I restarted my Windows 7, the command worked. Following is the output:
C:\Windows\system32>dnvm upgrade
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-rc1-update1 from https://www.nuget.org/api/v2
Installing to C:\Users\myUserName\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1
Adding C:\Users\myUserName\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin to pr
ocess PATH
Adding C:\Users\myUserName\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin to us
er PATH
Setting alias 'default' to 'dnx-clr-win-x86.1.0.0-rc1-update1'

NServiceBus Platform Installer - Failing To Install ServiceInsight - Chocolatey exit code 1638

Team,
I am installing the Platform Installer and selected NServiceBus, ServiceControl, ServicePulse, and ServiceInsight. I am receiving the following error when it goes to install ServiceInsight (see error below)
I had the beta's version installed prior to this and uninstalled it and even rebooted my machine prior to kicking off the Platform Installer.
I found this url https://github.com/Particular/PlatformInstaller/issues/133 that indicates that there are similar issues with previous users who used the beta versions, but it does not identify a solution for us early adopters.
Any assistance you can provide would be greatly appreciated.
Error executing powershell: [ERROR] Running C:\Users\jmiller.MPSRX\AppData\Local\Temp\chocolatey\ServiceInsight\ServiceInsightInstall.exe with /quiet /L*V "C:\Users\jmiller.MPSRX\AppData\Local\Temp\chocolatey\ServiceInsight\msiexe.log" was not successful. Exit code was '1638'.
Error executing powershell: ServiceInsight did not finish successfully. Boo to the chocolatey gods!
[ERROR] [ERROR] Running C:\Users\jmiller.MPSRX\AppData\Local\Temp\chocolatey\ServiceInsight\ServiceInsightInstall.exe with /quiet /L*V "C:\Users\jmiller.MPSRX\AppData\Local\Temp\chocolatey\ServiceInsight\msiexe.log" was not successful. Exit code was '1638'.
Error executing powershell: Package 'ServiceInsight.install v1.0.0' did not install successfully: [ERROR] Running C:\Users\jmiller.MPSRX\AppData\Local\Temp\chocolatey\ServiceInsight\ServiceInsightInstall.exe with /quiet /L*V "C:\Users\jmiller.MPSRX\AppData\Local\Temp\chocolatey\ServiceInsight\msiexe.log" was not successful. Exit code was '1638'.
I wrote a simple PS script to find and remove versions of the Service Insight, Service Control and ServicePulse products based on the MSI product code. This has successfully fixed up others in the same situation.
Script can be found here - https://gist.github.com/gbiellem/11394812