Page MenuHomePhabricator

Failed to convert audio to MP3: /bin/bash: /usr/bin/lame: No such file or directory on Beta Cluster
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The error Failed to convert audio to MP3: /bin/bash: /usr/bin/lame: No such file or directory is shown, and the file cannot be played

What should have happened instead?:
The file can be played

Software version (skip for WMF-hosted wikis like Wikipedia):

  • Beta cluster

Other information (browser name/version, screenshots, etc.):

image.png (363×711 px, 60 KB)

Event Timeline

Implemented in T315119: Use MP3 instead of WAV for all engines except Larnyx CC @MusikAnimal, is this similar to the error you were getting @dom_walden?

No. I definitely have lame installed locally. The error message I get is T315119#8201952.

The reason lame is not installed in production appservers is that it uses a remote shellbox instance for security reasons.

Given we don't have the same concerns with the beta cluster, we should add a class that is beta-specific allowing installation of all the needed packages.

Change 830629 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/puppet@production] deployment-prep: Add C:mediawiki::packages::beta

https://gerrit.wikimedia.org/r/830629

There's an instance called deployment-shellbox.deployment-prep.eqiad1.wikimedia.cloud - is that not used to run shellbox for beta?

There's an instance called deployment-shellbox.deployment-prep.eqiad1.wikimedia.cloud - is that not used to run shellbox for beta?

$wgShellboxUrl is commented out in deployment-prep's PrivateSettings referencing T176312: Don’t check format constraint via SPARQL (safely evaluating user-provided regular expressions)

There's an instance called deployment-shellbox.deployment-prep.eqiad1.wikimedia.cloud - is that not used to run shellbox for beta?

It is, but only for shellbox-constraints: https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/345597219998dc259de4550187031ba17a76ad7f/wmf-config/LabsServices.php#77

IIRC that is a very by-hand setup Shellbox, maybe we switch it to the :score image which has everything for constraints (just needs PHP), Phonos (has lame) and Score. Note that (I think I said this elsewhere), Phonos should have its own shellbox deployment for production.

Change 830629 merged by Clément Goubert:

[operations/puppet@production] deployment-prep: Add P:beta::mediawiki_packages

https://gerrit.wikimedia.org/r/830629

Change 831076 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/puppet@production] beta: don't duplicate fonts install

https://gerrit.wikimedia.org/r/831076

Change 831076 merged by Clément Goubert:

[operations/puppet@production] beta: don't duplicate fonts install

https://gerrit.wikimedia.org/r/831076

Screenshot 2022-09-09 at 15.20.08.png (796×2 px, 157 KB)

Following installation of the packages locally on beta, we now hit a different error.

Resolving this as

samtar@deployment-mediawiki11:~$ which lame
/usr/bin/lame

T317195: Failed to create storage directory on Beta Cluster prevents testing this exact issue is resolved, but I trust that it is 😄 thank you for your help @Clement_Goubert!