Launchpad has imported 12 comments from the remote bug at http://issues.apache.org/bugzilla/show_bug.cgi?id=55787.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2013-11-16T17:03:49+00:00 Gravatar wrote: I have set my chroot directory as shown below. ChrootDir /var/www When started with the above chroot setting, apache2 exits with the following error [Sat Nov 16 10:20:54.241556 2013] [unixd:alert] [pid 12802] (2)No such file or directory: AH02158: Cannot chroot when not started as root NOTE: apache2 is started as 'root' user. It looks like the call to check geteuid() is made after apache2 lowers its privilege to APACHE_RUN_USER? I am not sure this is a bug or configuration issue. This directory (/var/www) mentioned above was setup with everything needed for chroot'ed environment with libapache2-mod-chroot and was working fine for many years running under apache 2.2. Recently, I upgraded to 2.4.6 and wanted to switch to apache2's native Chroot since mod_chroot is no longer maintained and I am now stuck with the above error. Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/0 ------------------------------------------------------------------------ On 2013-11-16T19:38:28+00:00 Covener-0 wrote: Dropping userid happens later in the same function. Also, works for me. Can you demonstrate with a minimal configuration and include it w/ an strace -f of startup? Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/1 ------------------------------------------------------------------------ On 2013-11-16T19:57:49+00:00 Gravatar wrote: Created attachment 31048 strace output Here you go... root@gorilla:/etc/apache2# rm /var/log/apache2/error.log root@gorilla:/etc/apache2# apachectl start >/tmp/apache2_strace.log 2>&1 I am attaching apache.conf and apache2.strace.log Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/2 ------------------------------------------------------------------------ On 2013-11-16T19:58:05+00:00 Gravatar wrote: Created attachment 31049 error log Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/3 ------------------------------------------------------------------------ On 2013-11-16T19:58:25+00:00 Gravatar wrote: Created attachment 31050 minimal apache.conf Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/4 ------------------------------------------------------------------------ On 2013-11-16T20:21:09+00:00 Covener-0 wrote: Pretty weird, the trace shows geteuid(), chdir(), chroot() which are all after the message you say was issued (assuming it hasn't changed recently) but those all follow the error. It's almost like you have a 2nd copy of the mod_unixd code loaded. can you add apachectl -l and -M output w/ the same conf from the strace? Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/5 ------------------------------------------------------------------------ On 2013-11-16T20:27:34+00:00 Gravatar wrote: Very interesting.... I do see it loaded twice!, how do I get rid of one? root@gorilla:/etc/apache2# apachectl -l -M Compiled in modules: core.c mod_so.c mod_watchdog.c http_core.c mod_log_config.c mod_logio.c mod_version.c mod_unixd.c mod_unixd.c root@gorilla:/etc/apache2# Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/6 ------------------------------------------------------------------------ On 2013-11-16T20:59:39+00:00 Covener-0 wrote: (In reply to Arul from comment #6) > Very interesting.... I do see it loaded twice!, how do I get rid of one? > > root@gorilla:/etc/apache2# apachectl -l -M > mod_unixd.c > mod_unixd.c > root@gorilla:/etc/apache2# That is an impressive bug. Can you open a bug against ubuntu/debian/wherever the build comes from? Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/7 ------------------------------------------------------------------------ On 2013-11-16T23:53:11+00:00 Stefan Fritsch wrote: Trunk fix: r1542615 . This will fixed in Debian in the next upload. If you use an already released version of Ubuntu that includes 2.4, you need to file a bug report with Ubuntu. Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/8 ------------------------------------------------------------------------ On 2013-11-17T00:57:52+00:00 Gravatar wrote: Yes, I am using the latest Ubuntu 13.10 that includes the 2.4.6 version. root@gorilla:~# apache2ctl -v Server version: Apache/2.4.6 (Ubuntu) Server built: Aug 9 2013 14:31:04 root@gorilla:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION="Ubuntu 13.10" I will file a bug report w/ Ubuntu referencing this. Thank you for your help. Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/9 ------------------------------------------------------------------------ On 2013-11-17T13:52:50+00:00 Gravatar wrote: (In reply to Arul Selvan from comment #9) > Yes, I am using the latest Ubuntu 13.10 that includes the 2.4.6 version. > > root@gorilla:~# apache2ctl -v > Server version: Apache/2.4.6 (Ubuntu) > Server built: Aug 9 2013 14:31:04 > root@gorilla:~# cat /etc/lsb-release > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=13.10 > DISTRIB_CODENAME=saucy > DISTRIB_DESCRIPTION="Ubuntu 13.10" > > I will file a bug report w/ Ubuntu referencing this. > > Thank you for your help. Bug report filed in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939 Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/11 ------------------------------------------------------------------------ On 2019-01-06T15:32:53+00:00 tititou wrote: This has been backported in 2.4.x in r1555792 and is part of 2.4.7. The ubuntu launchpad issue in comment #10 is also marked as "Fix Released" Reply at: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1251939/comments/29 ** Changed in: apache2 Status: Unknown => Fix Released ** Changed in: apache2 Importance: Unknown => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1251939 Title: Chroot fails with "Cannot chroot when not started as root" error To manage notifications about this bug go to: https://bugs.launchpad.net/apache2/+bug/1251939/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs