In a schroot+debootstrap environment using Ubuntu 10.04 x86_64, I can
extract and run the binary of Sage 4.7 as root. I can also extract,
build, and run sage from source as root. Both of these fail in the
same way when I chown a built sage to my sageserver user, or when I
extract, build and run as sageserver. At the end of a build, I get:
File "/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.py",
line 912, in _start
raise RuntimeError, msg
RuntimeError: Unable to start gap because the command 'gap -r -b -p -T
-o 9999G /opt/sage/data//extcode/gap/sage.g' failed.
Some info:
- All of the dependencies for building sage are installed within my
10.04 chroot.
- Both the binary and the source build do function normally under the
root user in the chroot.
- The sageserver user is a fresh account (.e.g, no gaprc that could be
messing things up) and the schroot mounts are functioning fine
(allowing sage to read/write to /home/sageserver/.sage outside of the
chroot).
What am I missing?
--
Jason B. Hill
http://math.jasonbhill.com | Jason....@Colorado.edu
What if you do "sage -sh" and try to run "gap -r -b -p -T -o 9999G
/opt/sage/data//extcode/gap/sage.g" manually? What error does it
give?
--Mike
... stuff + gap version + stuff ... 62+@&67542+@ngap>
prompt.
> What if you do "sage -sh" and try to run "gap -r -b -p -T -o 9999G
> /opt/sage/data//extcode/gap/sage.g" manually? What error does it
> give?
> --Mike
/dev/pts was indeed mounted. But, the generic mount-defaults file in
schroot mounted it as:
/dev/pts (chroot_path)/dev/pts none defaults 0 0
and this (a bit curiously) mounts it with permissions 0600. So, the
script you posted (along with a bunch of other stuff) works perfectly
under root, but returns an error for my sageserver user.
Do you see any problem with using the mount defaults for /dev/pts
(rw,noexec,nosuid,gid=5,mode=0620) from the container system inside
the chroot system?
Thanks!
Jason
>
> http://trac.sagemath.org/sage_trac/raw-attachment/ticket/5965/sage-check-ptys-semaphore.py
Just tested it. It indeed works. My sageserver user can now run Sage
(plus other pts stuff... sshd and so on) within my chroot using the
schroot mount defaults.
Thanks for pointing me in the pts direction!
Jason