Question Authors' Forum

unshare: unshare failed: Operation not permitted

 
Picture of Paul Martin
unshare: unshare failed: Operation not permitted
by Paul Martin - Tuesday, 23 January 2018, 4:48 AM
 

Hi,

I'm experiencing this error when checking code with Coderunner in Moodle. 

unshare: unshare failed: Operation not permitted

Code Runner server: Debian 7.6

Moodle(3.3.1) running on Debian 8.

Any advice would be greatly appreciated 

Thanks

P




Picture of Richard Lobb
Re: unshare: unshare failed: Operation not permitted
by Richard Lobb - Tuesday, 23 January 2018, 8:01 AM
 

I've never seen this error, which appears to be coming from the Jobe server. A web search for your error brings up a bug report that on Debian stretch:

unshare -r, when executed as normal user (uid=1000) fails with 'operation not permitted'

However, why the unshare program is being called at all I have no idea. It's not used anywhere in the source code for Moodle, CodeRunner or Jobe.

You appear to be running a Lisp program which isn't part of the standard CodeRunner or Jobe installs, so my guess is that the message relates to your install of Lisp. Alternatively I see some web discussion around the use of unshare in lxc containers. Are you using a standard Jobe install or have you tried to containerise it yourself? Can you confirm please that the CodeRunner built-in question types work OK?

Tell me more about your Jobe server. You say "Code Runner server: Debian 7.6", is that the Jobe server? Does you Jobe server run the standard test program, testsubmit.py, ok? What tests have you done to ensure that the lisp you've (presumably) installed on Jobe works ok?

Richard