2016-04-22 44 views
2

由於很快,我在運行構建任務「發佈工件」時收到「任務被取消」。 tfs服務器現在運行數週,我從來沒有遇到過這些任務的問題。TFS 2015:發佈工件 - 「任務被取消」

我修復了這個問題一次刪除生成輸出文件夾,但不幸的是這個「解決方法」不再工作。我試圖改變神器的名字,希望這可以改變一些事情......沒有什麼幫助。

日誌文件輸出:

2016-04-22T13:04:55.6060280Z Set workingFolder to default: C:\agent\tasks\PublishBuildArtifacts\1.0.26

2016-04-22T13:04:56.0896280Z ##[debug]check path :

C:\agent\tasks\PublishBuildArtifacts\1.0.26\task.json

2016-04-22T13:04:56.0896280Z ##[debug]set resource file to:

C:\agent\tasks\PublishBuildArtifacts\1.0.26\task.json

2016-04-22T13:04:56.0896280Z ##[debug]system.culture=en-US

2016-04-22T13:04:56.0896280Z ##[debug]load strings from:

C:\agent\tasks\PublishBuildArtifacts\1.0.26\task.json

2016-04-22T13:04:56.0896280Z ##[debug]load loc strings from:

C:\agent\tasks\PublishBuildArtifacts\1.0.26\strings\resources.resjson\en- US\resources.resjson 2016-04-22T13:04:56.0896280Z ##[debug]system.hosttype=build

2016-04-22T13:04:56.0896280Z ##[debug]PathtoPublish=C:\agent_work\3\a

2016-04-22T13:04:56.0896280Z ##[debug]check path : C:\agent_work\3\a

2016-04-22T13:04:56.1052280Z ##[debug]ArtifactName=MyArtifact

2016-04-22T13:04:56.1052280Z ##[debug]ArtifactType=Container

2016-04-22T13:04:56.1052280Z ##[debug]TargetPath=\my\share\My Artifact\My Artifact_2.3.16113.06 2016-04-22T13:04:56.2456280Z

Max Concurrent Uploads 2, Max Creators 1

2016-04-22T13:04:56.3392280Z Found 61 files to upload.

2016-04-22T13:04:56.3704280Z Files found locally 61,

2016-04-22T13:04:56.3704280Z Files evaluated 0,

2016-04-22T13:04:56.3704280Z Files left to evaluate 61.,

2016-04-22T13:04:56.3704280Z Files created without upload 0,

2016-04-22T13:04:56.3704280Z Files uploaded 0

2016-04-22T13:04:56.3704280Z Files left to process 61

2016-04-22T13:04:56.3704280Z ---------------------------

2016-04-22T13:04:57.7588280Z Start: UploadArtifact

2016-04-22T13:04:57.7588280Z ##[error]A task was canceled.

2016-04-22T13:04:57.7588280Z End: UploadArtifact

任何人都經歷這樣的事情?有沒有人有一個想法如何解決這個問題?

非常感謝任何

回答

0

再次增加相同的任務,並刪除「始終運行」檢查後,我得到了一個有用的錯誤消息:

TF30042: The log file for the database is full. Contact your Team Foundation Server ************ to back up the transaction log for the database to free up some log space. Server: TheServer, Error: 9002, Message: 'The transaction log for database 'Tfs_DefaultCollection' is full due to 'ACTIVE_TRANSACTION'.'.

這解決了問題。

+0

我有同樣的問題,但還沒有能夠解決它。你是如何得到上述錯誤信息的。您是否添加了第二個「發佈工件」步驟?或者你用新的替換了舊的? – Henrik

+0

我想我剛剛添加了第二個「發佈工件」步驟。雖然這可能是爲了解決問題,但我沒有真正瞭解就做了更多的步驟。但是,由於我得到的錯誤信息表明文件大小,磁盤空間或類似的關鍵問題 - 你檢查了你的tfs服務器嗎?看起來一切都好嗎?你可以在一個較小的(沙箱)項目中執行任務嗎?事件日誌中可能還有東西嗎?對不起,不幸的是只是在我身邊猜測工作。祝你好運!如果我能記得更多,我會回到這裏。 – timtos