From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Status: No, score=-4.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-oln040092006065.outbound.protection.outlook.com [40.92.6.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 20DA220281 for ; Tue, 23 May 2017 13:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=v2jgd803b8OiKet4w4GiOZBkUZ83jTBpSD8GVAnlV+0=; b=Rp79qQvnWVtDkbcU23+llb8s8DcAd1JRhxnyt5OYnO0tq9/65TXhZryu5sVmQEUG7OTB8qCqyh5+FetJgGrWbsMxd1qvc18pxemdtYGZjD0rpZ5uhSu2M3hfyMo2Guk++kRYKN6LuDOSPgXeLOm/dosB7Ia8Khldkz0b6l541CKIDtSFxoY1u8M7sMGeGF4D3fhn30sKquf8mjFSDYUJo1BMJWUDVGRBJBkHLcDy4PCNNqr8DJ5gIujE4R+4vMgGSzC/XAHfqe3Oow0T65pxUttSaebqpz31josHOT44QOIo/9e5KDJ8Ta4U58wWl93duGHEJ2T3KpUq9MgHMrDX9Q== Received: from BY2NAM03FT024.eop-NAM03.prod.protection.outlook.com (10.152.84.53) by BY2NAM03HT086.eop-NAM03.prod.protection.outlook.com (10.152.85.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12; Tue, 23 May 2017 13:20:30 +0000 Received: from BN6PR20MB1281.namprd20.prod.outlook.com (10.152.84.56) by BY2NAM03FT024.mail.protection.outlook.com (10.152.84.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.12 via Frontend Transport; Tue, 23 May 2017 13:20:29 +0000 Received: from BN6PR20MB1281.namprd20.prod.outlook.com ([10.173.159.151]) by BN6PR20MB1281.namprd20.prod.outlook.com ([10.173.159.151]) with mapi id 15.01.1101.019; Tue, 23 May 2017 13:20:29 +0000 From: Aakash Gupta To: "unicorn-public@bogomips.org" Subject: Master Process Reaping Worker with No message Thread-Topic: Master Process Reaping Worker with No message Thread-Index: AQHS08c46nwmyVJoCUOoZEnn7wwx4w== Date: Tue, 23 May 2017 13:20:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: bogomips.org; dkim=none (message not signed) header.d=none;bogomips.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:668752D660BD10521D159815AE3731FB520DD7336CBEB75C64016FE45EBB00F5;UpperCasedChecksum:1BA655E4ACBDED495F37C4D6AB9610A0838B5F86FCE15608E8374DE654C1BFA0;SizeAsReceived:8066;Count:42 x-tmn: [WksaILiElpywegIWFZruYcoMF2f2HgtKG0jIVOn5qMl3fqKKU396ng==] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY2NAM03HT086;24:ANkGe5JX7n962Sx6rJxTrpNBhF2FtocnR2zybYUHtPVSpxLZgFCx07XQWUiw8ooPAMP17qd8/b8QjwXzodp8w0IEpmrFSFen94VOpZrWLNA=;7:2965S9jJXzWcRCjSyb7SnJN3sziAoPj1vlW3+temhT32Sc/VTPO6Ja7+0IOZUkoz7KoflEfcmrCdyd5UskvEuPlRVYcqynCPg1f/PYwB6HSajV1Y41c569WhOEsy3MRI2umSFlBMhbe3+XRuDAcniePKdYQAelkzcjRtsPXmkvzOPhJttfy/ClV+G6nZdLfKgSnYJZVM8Xuxcc+u/gdErZTcCu2/OYs66nHGGEMPmGFcAHTfUpXkEHJnq7S+730UhledO0bd+p+vVMaooFZZRkKnexwgtuCcjhJFm6EHEyZF5dEFDLhxSRX5ZzxT5DpJ x-incomingheadercount: 42 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:BY2NAM03HT086;H:BN6PR20MB1281.namprd20.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-traffictypediagnostic: BY2NAM03HT086: x-ms-office365-filtering-correlation-id: 954c5f2c-45df-4749-8c50-08d4a1de7beb x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1601125374)(1603101448)(1701031045);SRVR:BY2NAM03HT086; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700043)(100105000095)(100000701043)(100105300095)(100000702043)(100105100095)(444000031);SRVR:BY2NAM03HT086;BCL:0;PCL:0;RULEID:(100000800043)(100110000095)(100000801043)(100110300095)(100000802043)(100110100095)(100000803043)(100110400095)(100000804043)(100110200095)(100000805039)(100110500095);SRVR:BY2NAM03HT086; x-forefront-prvs: 0316567485 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2017 13:20:29.8297 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM03HT086 List-Id: I am using unicorn server with Nginx for running my Rails app. I don't know= why but my master server is reaping workers continously while file uploads= . I have raised the timeout limit of unicorn to 20 minutes for giving suffi= cient time for uploading file. This happends mostly during file uploads on = server. For file uploads, I am using Carrierwave gem with Fog to upload the= files to S3. Server is running on AWS EC2 instance of 1GB RAM with 2GB Swa= p space.=20 Master process kills worker with message "ERROR : reaped ... SIGKILL (sign= al 9)> worker=3D1 " without any reason or message such as timeout or memory= overflow. Whenever a worker is reaped, Nginx also logs an error for each reaping inst= ance with message: " upstream prematurely closed connection while reading response header from= upstream ..." I need help to figure out the problem and the reason why this is happening.= I don't think this is happening because of timeout issue because whenever = I try to test my server by uploading a file, this error appears even before= 20 minutes which is the timeout limit. Any help regarding this would be ap= preciated. =