Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 257E7752E for ; Wed, 7 Dec 2011 14:51:22 +0000 (UTC) Received: (qmail 94154 invoked by uid 500); 7 Dec 2011 14:51:18 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 94127 invoked by uid 500); 7 Dec 2011 14:51:18 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 94119 invoked by uid 99); 7 Dec 2011 14:51:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 14:51:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trawick@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 14:51:10 +0000 Received: by eaai10 with SMTP id i10so796355eaa.18 for ; Wed, 07 Dec 2011 06:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=oQcElloolvw8z4nNH9J9pUeRDEenBxHLqHFadVehyTg=; b=eOPWwJgg6z6mlDFkITDQwM58VAH56v0nBhDmC3yU6dVFbCXI9SXC4S0ZyPNP0Iyx9J qzBVKPwZ3AAxJqVWaK6Lc4cwxo0HpYnbgzdqA3Xst4QSE9i/ih3nFf2BcimTLIHB1JBG 9wXhIJYuw/noi9i8y6eAIRLE9yj8GRUt+wGgs= MIME-Version: 1.0 Received: by 10.213.12.194 with SMTP id y2mr3505745eby.86.1323269450642; Wed, 07 Dec 2011 06:50:50 -0800 (PST) Received: by 10.205.112.193 with HTTP; Wed, 7 Dec 2011 06:50:50 -0800 (PST) In-Reply-To: References: Date: Wed, 7 Dec 2011 09:50:50 -0500 Message-ID: From: Jeff Trawick To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] piped logs problem on sco 6.0.0 On Wed, Dec 7, 2011 at 9:15 AM, Rob Landrito wrote: > Thanks for your suggestions. =A0httpd starts cleanly with nouser and > nogroup fine as long as I'm not trying to pipe logs. =A0If I only try to > pipe access_log and not error_log, httpd starts but no access logs are > created (I'm sending requests to the servers). =A0The only difference I > see in error_log are the following two lines: > > piped log program '/opt/httpd/bin/rotatelogs -fl > /opt/httpd/logs/access_log.%d-%b 86400' failed unexpectedly Run strace/truss/whatever against a running rotatelogs process before it has to handle an access log entry, see what is happening at syscall level. > [Wed Dec 07 06:08:13 2011] [error] (22)Invalid argument: setting of group= failed Weird. That's from apr_proc_create(), which might be called for a piped logger. The implication seems to be that apr_procattr_user_set() or apr_procattr_group_set() has been called, but I don't see that in 2.2.x. Perhaps this httpd has some custom/vendor patches? Perhaps I didn't look carefully enough at one bit of code or another? > > They pop up a number of times throughout the error_log, presumably > every time it's trying to write to access_log. =A0I should note that I > can run rotatelogs just fine from the command line as nouser or root. > > > 2011/12/6 Jeff Trawick : >> On Tue, Dec 6, 2011 at 1:47 PM, Rob Landrito wrote= : >>> Greetings, >>> >>> I'm trying to used piped logs as described here: >>> http://httpd.apache.org/docs/2.2/logs.html#piped. =A0The environment is >>> httpd 2.2.11 on sco 6.0.0 (SCO_SV system 5 6.0.0 i386). =A0I'm using >>> User nouser >>> Group nogroup >>> >>> Apache is unable to start, printing the following to stderr on startup: >>> [Tue Dec 06 13:09:59 2011] [error] (22)Invalid argument: setting of >>> group failedBroken Pipe >> >> That's the concatenation of two different error messages. >> >> Switch your error log temporarily to a file instead of to a piped >> logger, and make sure everything starts up cleanly. =A0(It looks like >> you'll have to modify the Group directive.) >> >> Then try using a piped logger for the access log, again with a simpler >> logging mechanism for the error log. >> >> >>> >>> It doesn't seem to matter what program I use on the other end of the >>> pipe. =A0I'm actually trying to use rotatelogs but echo seems to have >>> the same problem. =A0I've tried various setuid tricks just to see if I >>> could pinpoint the issue. =A0I suid'd the rotatelogs binary to root as >>> well as nouser and neither seemed to help. =A0I suspect that this >>> problem is isolated to SCO. =A0Any ideas would be appreciated. >>> >>> --------------------------------------------------------------------- >>> The official User-To-User support forum of the Apache HTTP Server Proje= ct. >>> See for more info. >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org >>> For additional commands, e-mail: users-help@httpd.apache.org >>> >> >> >> >> -- >> Born in Roswell... married an alien... >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP Server Projec= t. >> See for more info. >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> > > > > -- > :wq! > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project= . > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > --=20 Born in Roswell... married an alien... --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org