I am getting an error on "make clean all install" as shown below I am running debian stable x86-64 on VPS at 123systems.net with python2.6.6 (custom compile, fabric script available is needed) I've installed all prior dependencies successfully. Since this is a throwaway vps, I can grant root access to willing troubleshooter! ---- RUNNING: ./tests/superpoll_tests ALL TESTS PASSED Tests run: 7 ---- RUNNING: ./tests/tst_tests ALL TESTS PASSED Tests run: 7 ---- RUNNING: ./tests/unixy_tests FAILED: We shouldn't be able to chroot unless running as root. Tests run: 2 make: *** [tests] Error 1 node4:~/mongrel2_2010-08-28_073756_f837a14c6a# Chris Mahan (818) 671-1709 http://christophermahan.com/ chris.mahan@gmail.com http://twitter.com/chris_mahan
On Sun, Aug 29, 2010 at 10:36:31AM -0700, Christopher Mahan wrote: > I am getting an error on "make clean all install" as shown below > RUNNING: ./tests/unixy_tests > FAILED: We shouldn't be able to chroot unless running as root. > Tests run: 2 > make: *** [tests] Error 1 > node4:~/mongrel2_2010-08-28_073756_f837a14c6a# You're probably running as root. Don't do sudo make, or build as root since that can screw you up if there's a hack in there somewhere. I designed it so that you can build it without being root and it tests some security things that shouldn't happen. Did you find some instructions that had you do that? -- Zed A. Shaw http://zedshaw.com/
Indeed i am running as root. I am building automated deployment scripts (fabric) for vps deployment. I can set up a user to build mongrel as but i'd rather not. This script is designed to provision the vps with stock debian stable then setup a fully working server automatically. What should i do? I can patch to ignore unixy_tests if needed... Christopher Mahan 818.671.1709 christophermahan.com On Aug 29, 2010 11:28 AM, "Zed A. Shaw" <zedshaw@zedshaw.com> wrote: On Sun, Aug 29, 2010 at 10:36:31AM -0700, Christopher Mahan wrote: > I am getting an error on "make ... > RUNNING: ./tests/unixy_tests > FAILED: We shouldn't be able to chroot unless running as root. > Te... You're probably running as root. Don't do sudo make, or build as root since that can screw you up if there's a hack in there somewhere. I designed it so that you can build it without being root and it tests some security things that shouldn't happen. Did you find some instructions that had you do that? -- Zed A. Shaw http://zedshaw.com/
On Sun, Aug 29, 2010 at 11:38:01AM -0700, Christopher Mahan wrote: > Indeed i am running as root. I am building automated deployment scripts > (fabric) for vps deployment. I can set up a user to build mongrel as but i'd > rather not. This script is designed to provision the vps with stock debian > stable then setup a fully working server automatically. What should i do? I > can patch to ignore unixy_tests if needed... In that case just ignore the failure for now and I'll fix the test so it runs a root: http://mongrel2.org/tktview/0160e1d727b9816a1e040f3f4fc6c1c00173410b -- Zed A. Shaw http://zedshaw.com/
Great, thanks. Chris Mahan (818) 671-1709 http://christophermahan.com/ chris.mahan@gmail.com http://twitter.com/chris_mahan On Sun, Aug 29, 2010 at 11:43 AM, Zed A. Shaw <zedshaw@zedshaw.com> wrote: > On Sun, Aug 29, 2010 at 11:38:01AM -0700, Christopher Mahan wrote: >> Indeed i am running as root. I am building automated deployment scripts >> (fabric) for vps deployment. I can set up a user to build mongrel as but i'd >> rather not. This script is designed to provision the vps with stock debian >> stable then setup a fully working server automatically. What should i do? I >> can patch to ignore unixy_tests if needed... > > In that case just ignore the failure for now and I'll fix the test so it runs a > root: > > http://mongrel2.org/tktview/0160e1d727b9816a1e040f3f4fc6c1c00173410b > > -- > Zed A. Shaw > http://zedshaw.com/ >