sha*_*e87 9 cruisecontrol.net service tcp
我正在设置CruiseControl.NET,我在webdashboard上收到以下错误消息:
No connection could be made because the target machine actively refused it 127.0.0.1:21234
它正在寻找的Url是:tcp://localhost:21234/CruiseManager.rem
但是IIS中的ccnet网站将其tcp端口设置为82.
因此我使用以下Url导航到webdashboardhttp://127.0.0.1:82/ccnet/ViewFarmReport.aspx
我尝试将IIS中的Tcp端口更改为21234,并在webdashboard上收到以下错误消息:
Tcp channel protocol violation: expecting preamble.
我也尝试使用以下命令打开端口:
netsh firewall add portopening TCP 21234 CCNET
当我尝试启动CCNET服务时,我收到以下消息
The CruiseControl.NET Server service started then stopped. Some services stop automatically if they have no work to do....
有谁能帮我解决这个问题吗?
编辑 - 添加配置文件
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<cb:define PublishDir="C:\Deploy\Portal2.0Build"/>
<project name="Portal2.0">
<workingDirectory>C:\PortalCruiseControl\Working</workingDirectory>
<artifactDirectory>C:\PortalCruiseControl\Artifacts</artifactDirectory>
<webURL>http://192.168.17.59:82/ccnet</webURL>
<triggers>
<intervalTrigger name="continuous" seconds="10"
buildCondition="IfModificationExists"/>
</triggers>
<sourcecontrol type="svn">
<trunkUrl>https://portal2003.local:8443/svn/portalv2.0/trunk</trunkUrl>
<executable>C:\Program Files (x86)\VisualSVN Server\bin\svn.exe</executable>
<username>ccnet</username>
<password>***</password>
<cleanCopy>true</cleanCopy>
</sourcecontrol>
<tasks>
<msbuild>
<executable>
C:\WINDOWS\microsoft.net\Framework64\v3.5\MSBuild.exe
</executable>
<projectFile>Portal2.0.sln</projectFile>
<buildArgs>
/target:build;publish /p:Configuration=Release /p:MSBuildExtensionsPath=C:\Progra~2\MSBuild /p:MSBuildEmitSolution=1 /p:publishdir=C:\Deploy\Portal2.0Build /verbosity:diag
</buildArgs>
<logger>
C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll
</logger>
</msbuild>
</tasks>
<labeller type="assemblyVersionLabeller">
<major>2</major>
<minor>0</minor>
<incrementOnFailure>false</incrementOnFailure>
</labeller>
<publishers>
<statistics />
<xmllogger />
<package>
<name>ZipFilePublish</name>
<compression>9</compression>
<always>false</always>
<flatten>false</flatten>
<baseDirectory>$(PublishDir)</baseDirectory>
<dynamicValues>
<replacementValue property="name">
<format>C:\Deploy\Builds\PortalBuild{0}.zip</format>
<parameters>
<namedValue name="$CCNetLabel" value="Default" />
</parameters>
</replacementValue>
</dynamicValues>
<files>
<file>*.*</file>
<file>**\*</file>
</files>
</package>
<email from="bla" mailhost="bla" port="25" userName="bla"
password="bla" includeDetails="TRUE" useSSL="FALSE">
<users>
<user name="User1" group="Portal" address=""/>
</users>
<groups>
<group name="Portal">
<notifications>
<notificationType>change</notificationType>
</notifications>
</group>
</groups>
</email>
</publishers>
</project>
Run Code Online (Sandbox Code Playgroud)
Dam*_*Arh 17
第一条错误消息可能是由于CCNET服务未运行导致的,因为Web仪表板无法连接到该服务.一旦修复ccnet.config就应该消失,以便服务开始运行.
第二个问题("路径中的非法字符";您似乎已经找到了丢失的节点部分)是由msbuild/executable元素引起的.似乎CC.NET不喜欢空格,特别是它内部的新行字符的价值.更换:
<executable>
C:\WINDOWS\microsoft.net\Framework64\v3.5\MSBuild.exe
</executable>
Run Code Online (Sandbox Code Playgroud)
有:
<executable>C:\WINDOWS\microsoft.net\Framework64\v3.5\MSBuild.exe</executable>
Run Code Online (Sandbox Code Playgroud)
应该解决问题.
另一个提示:当您遇到ccnet.config文件的有效性问题时,请尝试使用CCValidator.exe(它位于CruiseControl.NET\server文件夹中).它通常很好地指出了配置文件中有问题的部分(虽然不是"路径中的非法字符"问题的情况 - 我不得不注释掉配置的特定部分以找到有问题的节点).
归档时间: |
|
查看次数: |
11873 次 |
最近记录: |