Topic on Extension talk:Score

After upgrading my wiki to 1.35 lilypond not working

4
Lwangaman (talkcontribs)

I have just updated my wiki from 1.34 to 1.35. I have everything working except Lilypond. When adding a <nowiki><score></nowiki> element to a page I am seeing this error:

Unable to obtain LilyPond version:

Warning: an existing sandbox was detected. /usr/bin/lilypond --version  will run without any additional sandboxing features in a /bin/sh shell
GNU LilyPond 2.18.2

Here is my configuration:


wfLoadExtension( 'Score' );

$wgScoreTrim = true;

$wgShellRestrictionMethod = 'firejail';

$wgScoreLilyPond = "/usr/bin/lilypond";

$wgScoreAbc2Ly = '/usr/bin/abc2ly';

$wgScoreFluidsynth = '/usr/bin/fluidsynth';

$wgScoreSoundfont = '/usr/share/sounds/sf2/FluidR3_GM.sf2';

$wgScoreTimidity = '/usr/bin/timidity';

$wgScoreLame = '/usr/bin/lame';

MarkAHershberger (talkcontribs)

since it is saying something about sandboxing, what happens if you comment out $wgShellRestrictionMethod?

Lwangaman (talkcontribs)

I tried that but to no avail, same error message. I wonder if it has anything to do with Lilypond being generally disabled?

Lwangaman (talkcontribs)

I was still having trouble after upgrading to MediaWiki 1.36. The only solution was to explicitly set $sgShellRestrictionMethod to false. For some reason, firejail is just causing problems. It was preventing both pygmentize from working such that SyntaxHighlighting was failing, and lilypond from working such that Score tags were failing.

Reply to "After upgrading my wiki to 1.35 lilypond not working"