使用java.lang.InterruptedException从属的Jenkins构建失败

时间:2017-09-13 14:26:40

标签: jenkins

Jenkins构建失败并显示Cannot contact XXXXXXXXXXXX: java.lang.InterruptedException

不时。如果它是一个现场实例或一个按需实例

并不重要
Jenkins ver. 2.60.3 
Amazon EC2 plugin 1.36

2 个答案:

答案 0 :(得分:3)

我监视了奴隶统计数据并发现奴隶像1200那样负载很重。奴隶建立了很多码头图像。负载是由于保存是I / O限制的事实。 docker卷public partial class StructuredRelationships : DbMigration { public override void Up() { CreateTable( "dbo.Campaigns", c => new { Id = c.Int(nullable: false, identity: true), Name = c.String(), Client = c.String(), EmailAddress = c.String(), PhoneNumber = c.String(), FaxNumber = c.String(), PhysicalAddress = c.String(), PostalAddress = c.String(), DateSent = c.DateTime(), SmtpServerAddress = c.String(), SmtpServerPort = c.Int(nullable: false), SmtpServerUser = c.String(), SmtpServerPassword = c.String(), Deleted = c.Boolean(nullable: false), SendInterval = c.Int(nullable: false), }) .PrimaryKey(t => t.Id); CreateTable( "dbo.ContactGroups", c => new { Id = c.Int(nullable: false, identity: true), Name = c.String(), Deleted = c.Boolean(nullable: false), }) .PrimaryKey(t => t.Id); CreateTable( "dbo.Contacts", c => new { Id = c.Int(nullable: false, identity: true), ContactGroupId = c.Int(nullable: false), CompanyName = c.String(), Salutation = c.String(), FirstName = c.String(), LastName = c.String(), EmailAddress = c.String(), Telephone = c.String(), DirectTel = c.String(), Mobile = c.String(), BroadDesignation = c.String(), Designation = c.String(), EmployeeCount = c.Int(nullable: false), EmployeeCountBand = c.String(), SaTelProvince = c.String(), SaBroadArea = c.String(), Town = c.String(), Suburb = c.String(), Type = c.String(), SpecificBusinessClassification = c.String(), ReferenceNumber = c.String(), Deleted = c.Boolean(nullable: false), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.ContactGroups", t => t.ContactGroupId, cascadeDelete: true) .Index(t => t.ContactGroupId); CreateTable( "dbo.Emails", c => new { Id = c.Int(nullable: false, identity: true), CampaignId = c.Int(nullable: false), TemplateId = c.Int(nullable: false), Sender = c.String(), From = c.String(), FromAddress = c.String(), ReplyTo = c.String(), ReplyToAddress = c.String(), Subject = c.String(), Body = c.String(), Footer = c.String(), DateCreated = c.DateTime(nullable: false), Deleted = c.Boolean(nullable: false), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Campaigns", t => t.CampaignId, cascadeDelete: true) .Index(t => t.CampaignId); CreateTable( "dbo.EmailSends", c => new { Id = c.Int(nullable: false, identity: true), CampaignId = c.Int(nullable: false), EmailId = c.Int(nullable: false), ContactGroupId = c.Int(nullable: false), SendDate = c.DateTime(nullable: false), TotalRecipients = c.Int(nullable: false), TotalSent = c.Int(nullable: false), TotalFailed = c.Int(nullable: false), Status = c.String(), CompletedDate = c.DateTime(), Deleted = c.Boolean(nullable: false), TrackerUrl = c.String(), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Campaigns", t => t.CampaignId, cascadeDelete: true) .ForeignKey("dbo.ContactGroups", t => t.ContactGroupId, cascadeDelete: true) .ForeignKey("dbo.Emails", t => t.EmailId, cascadeDelete: true) .Index(t => t.CampaignId) .Index(t => t.EmailId) .Index(t => t.ContactGroupId); CreateTable( "dbo.EmailTemplates", c => new { Id = c.Int(nullable: false, identity: true), Name = c.String(), Markup = c.String(), Deleted = c.Boolean(nullable: false), }) .PrimaryKey(t => t.Id); } public override void Down() { DropForeignKey("dbo.EmailSends", "EmailId", "dbo.Emails"); DropForeignKey("dbo.EmailSends", "ContactGroupId", "dbo.ContactGroups"); DropForeignKey("dbo.EmailSends", "CampaignId", "dbo.Campaigns"); DropForeignKey("dbo.Emails", "CampaignId", "dbo.Campaigns"); DropForeignKey("dbo.Contacts", "ContactGroupId", "dbo.ContactGroups"); DropIndex("dbo.EmailSends", new[] { "ContactGroupId" }); DropIndex("dbo.EmailSends", new[] { "EmailId" }); DropIndex("dbo.EmailSends", new[] { "CampaignId" }); DropIndex("dbo.Emails", new[] { "CampaignId" }); DropIndex("dbo.Contacts", new[] { "ContactGroupId" }); DropTable("dbo.EmailTemplates"); DropTable("dbo.EmailSends"); DropTable("dbo.Emails"); DropTable("dbo.Contacts"); DropTable("dbo.ContactGroups"); DropTable("dbo.Campaigns"); } } /var/lib/docker分别为workspaceEBS次。升级linux内核并将docker卷更改为EFS解决了这个问题。

答案 1 :(得分:0)

在发生上述错误的情况下,我检查了特定的节点控制台日志,并出现了以下错误:

java.util.concurrent.TimeoutException: Ping started on XXXX hasn't completed at XXX

詹金斯奴隶可能已损坏。只需重新启动从属设备即可解决此jenkins issue

中所述的问题
相关问题