小编Gla*_*oon的帖子

Teamcity无法发布工件并停止构建

我遇到了TeamCity的一个问题,由于多种原因,这个问题很难解决.到目前为止,我环顾四周,找不到任何有用的答案.

我们有一个在端口8080上运行的teamcity服务器,两个代理分别在端口9090和9091上连接到它.代理注册成功,可以接受新版本.构建完成后,测试已经过去,日志状态"发送工件"停止,工件永远不会到达服务器.离开这个过夜,我提出要求停止失败的构建.

我们最近切换到了一个新的防火墙,但是在设置了8080,9090和9091所需的端口规则之后,事情一直在进行.自从我们开始工作以来,没有进行任何更改,但现在情况不起作用.

到日志...服务器知道失败,因为我可以看到几个地方的日志说明:

jetbrains.buildServer.SERVER - Failed to upload artifact, due to error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out

代理也有日志说明类似的原因:

jetbrains.buildServer.AGENT - Failed to publish artifacts because of error: java.net.SocketException: Connection reset by peer: socket write error, will try again.

在此期间,防火墙日志显示允许通过预期端口上的所有流量.奇怪的是,有些日志看起来像这样:

2016-04-01 10:45:00 Deny [sourceIp] [targetIP] 49426/tcp 8080 49426 0-External Firebox tcp syn checking failed (expecting SYN packet for new TCP connection, but received ACK, FIN, or RST instead). 558 113 (Internal Policy) proc_id="firewall" rc="101" msg_id="3000-0148" tcp_info="offset …

sockets teamcity port networking teamcity-7.1

6
推荐指数
1
解决办法
794
查看次数

启动/停止虚拟机的Azure Runbook提示“已完成”,但没有任何反应

我对Azure还是很陌生,但是我正在努力应对似乎很简单的事情。我已经阅读了大量的资源,这些建议表明这应该很容易,但是我根本无法在新门户(ARM)中获得运行手册来启动特定的VM。它运行并指出“已完成”,但没有任何反应。

这是脚本:

继曾杰克(Jack Zeng)的评论(不幸的是改变不大)后进行了更新。

workflow StartDEVTC1
{
$VerbosePreference = "Continue"
$ErrorActionPreference = "Stop"
$WarnPreference = "Continue"

Write-Output "Getting credential..."
$cred = Get-AutomationPSCredential -Name 'AutomationPowershellCred1'
Write-Output "Adding account..."
Add-AzureRmAccount -Credential $cred

Write-Output "Getting VM..."
$VM = Get-AzureRmVM -ResourceGroupName "myResourceGroup" -Name "DEVTC1" -Status

$vmName = $VM.Name
$vmRG = $VM.ResourceGroupName
Write-Output "Checking state of $vmName from $vmRG..."
$VMDetail = $VM | Select-Object -ExpandProperty StatusesText | convertfrom-json
$vmPowerstate = $VMDetail[1].Code

if($vmPowerstate -like "PowerState/deallocated")
{  
    Write-Output "$vmName powerstate is $vmPowerstate, starting VM..."
    $res = $VM …
Run Code Online (Sandbox Code Playgroud)

powershell automation azure runbook

2
推荐指数
1
解决办法
783
查看次数