git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: t5539 fails on ubuntu for v2.0.0-rc2

From
Jeff King <peff@peff.net>
Date
May 9, 2014, 15:59 UTC
Message-ID
<20140509155945.GG18197@sigill.intra.peff.net>
In-Reply-To
<536B1DF4.5080109@fabiodalfonso.com>
On Thu, May 08, 2014 at 08:02:28AM +0200, Fabio D'Alfonso wrote:
Show 16 quoted lines
> this is the error in httpd error.log
> 
>  [Wed May 07 20:44:10 2014] [alert] getpwuid: couldn't determine user name
> from  uid 4294967295, you probably need to modify the User directive
>  [Wed May 07 20:44:10 2014] [notice] Apache/2.2.17 (Ubuntu) configured --
> resuming normal operations
>  [Wed May 07 20:44:10 2014] [alert] getpwuid: couldn't determine user name
> from  uid 4294967295, you probably need to modify the User directive
>  [Wed May 07 20:44:10 2014] [alert] getpwuid: couldn't determine user name
> from  uid 4294967295, you probably need to modify the User directive
>  [Wed May 07 20:44:10 2014] [alert] getpwuid: couldn't determine user name
> from  uid 4294967295, you probably need to modify the User directive
>  [Wed May 07 20:44:10 2014] [alert] getpwuid: couldn't determine user name
> from  uid 4294967295, you probably need to modify the User directive
>  [Wed May 07 20:44:11 2014] [alert] Child 12037 returned a Fatal error...
> Apache is exiting!
Hmm.  Some googling turned up a similar case:
  http://www.linuxquestions.org/questions/linux-server-73/apache-won%27t-start-because-490312/

It looks like apache is trying to getpwuid (probably as part of doing a setuid on its children), failing, and then crashing. I suspect that this is related to you running as root, as a non-root apache would not want to (nor be able to) call setuid.

Does running the tests as a non-root user fix it? If so, I think we have a few options in git:

  1. Add a User directive to our httpd.conf. I doubt this is a good
     idea to do unconditionally, as a non-root apache would probably be
     unhappy with it.
  2. Add a User directive when we detect that the tests are running as
     root.  This might work, but I'm a bit iffy, as we do not know the
     appropriate username for the system (e.g., "nobody" versus
     "www-data" versus something else).
  3. Just disable the http tests when run as root.

I think I'd favor 3. But I'd like to be sure that being root is the problem.

-Peff
Previous: Fabio D'AlfonsoNext: Fabio D'Alfonso
Message 6 of 15 in “t5539 fails on ubuntu for v2.0.0-rc2”
  1. Fabio D'AlfonsoMay 7, 2014
  2. Junio C HamanoMay 7, 2014
  3. Jeff KingMay 8, 2014
  4. Fabio D'AlfonsoMay 8, 2014
  5. Fabio D'AlfonsoMay 8, 2014
  6. Jeff KingMay 9, 2014
  7. Fabio D'AlfonsoMay 9, 2014
  8. Junio C HamanoMay 9, 2014
  9. Jeff KingMay 10, 2014
  10. Jeff KingMay 14, 2014
  11. Junio C HamanoMay 14, 2014
  12. Jeff KingMay 14, 2014
  13. Fabio D'AlfonsoMay 8, 2014
  14. Fabio D'AlfonsoMay 9, 2014
  15. Jeff KingMay 9, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.