2015-01-10 43 views
0

我使用的是CSC敏捷性平台,它是混合云平台,它使用cygwin在其创建的虚拟机上运行脚本。sql sever 2012安装程序在使用cygwin调用时崩溃

我有一个windows server 2012标准,我必须安装SQL server 2012 express,安装程序会使用cygwin调用。

当我使用“cmd”即命令提示符执行SQL Server安装程序时,它运行良好。但是当我使用cygwin时,安装会崩溃。如果使用cygwin安装任何其他软件,它工作正常,安装不会崩溃。它只发生在SQL服务器上,但是使用“cmd”完成安装会很好。

即使我通过cygwin打开“cmd”,问题就会出现。

安装程序没有损坏,我已经重新下载SQL服务器设置并尝试,它仍然崩溃。

Description: 
    Stopped working 

Problem signature: 
    Problem Event Name: CLR20r3 
    Problem Signature 01: scenarioengine.exe 
    Problem Signature 02: 11.0.2100.60 
    Problem Signature 03: 4f35dbe7 
    Problem Signature 04: Microsoft.SqlServer.Chainer.Infrastructure 
    Problem Signature 05: 11.0.0.0 
    Problem Signature 06: 4f35dbe6 
    Problem Signature 07: 200 
    Problem Signature 08: 179 
    Problem Signature 09: ZAGSF01GRLFWVJMY5S0U0HXSJJE2HDT4 
    OS Version: 6.2.9200.2.0.0.272.7 
    Locale ID: 1033 

enter image description here

这是例外的SQL Server安装程序的堆栈跟踪产生了:

Unhandled Exception: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInfrastructureException: Item has already been added. Key in dictionary: 'tmp' Key being added: 'tmp' ---> S 
ystem.ArgumentException: Item has already been added. Key in dictionary: 'tmp' Key being added: 'tmp' 
    at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) 
    at System.Collections.Specialized.StringDictionary.Add(String key, String value) 
    at System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputN 
ame, String& errorName, String trueCmdLine) 
    at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& e 
rrorName, String trueCmdLine) 
    at Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeRetu 
rnValue, String trueArgs) 
    at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) 
    at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources) 
    at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) 
    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources) 
    at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) 
    at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters par 
ameters, Assembly assembly, Hashtable assemblies) 
    at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) 
    at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) 
    at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) 
    at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(String rootPath, Object objectToSerialize, Boolean saveToCache) 
    --- End of inner exception stack trace --- 
    at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject(String rootPath, Object objectToSerialize, Boolean saveToCache) 
    at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SetCommonFlag(String key, Boolean value) 
    at Microsoft.SqlServer.Chainer.Setup.Setup.InitializeLogProviders(ServiceContainer context) 
    at Microsoft.SqlServer.Chainer.Setup.Setup.Run() 
    at Microsoft.SqlServer.Chainer.Setup.Setup.Start() 
    at Microsoft.SqlServer.Chainer.Setup.Setup.Main() 

回答

0

我解决了这个问题,我刚刚更新的cygwin到最新版本,和它的工作。

相关问题