Discourse: discourse-math plugin returns 404 error

Open
#548,985 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
ruby
Domain
build-system

Research direction

Locate the nixpkgs definition for the Discourse math plugin and reproduce the failure with sandboxing enabled. Trace how the discourse_math_bundle gem obtains MathJax and KaTeX files, then verify that an enabled plugin renders math expressions without browser-console 404 errors.

Written by the indexing model from the issue text.

Description

0.kind: bug
Nixpkgs version
  • Stable (26.05)
Describe the bug

The discourse-math plugin is currently non-functional due to missing mathjax and katex files. It seems that this may be due to the way nix sandboxes the build environment preventing the discourse_math_bundle gem from downloading the mathjax and katex files leading to a 404 error when it tries to use either to render the math expressions.

Steps to reproduce
  1. Enable discourse math plugin in the settings
  2. Put any math expression into a post or reply
  3. Check the browser developer console for the 404 error
Expected behaviour

The math expression evaluates and renders via mathjax or katex

Screenshots
Image Image Image
Relevant log output

Additional context

No response

System metadata
  • system: "x86_64-linux"
  • host os: Linux 6.6.141, NixOS, 26.05 (Yarara), 26.05pre-git
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.34.7
  • nixpkgs: /nix/store/w6n2k401dq77r3h2kb1gf14iqyrq3zgj-0pdi7nh83qszh1kd5gj2363if8d7m2jj-nixos-26.05-b51242d7d43689db2f3be91bd05d5b24fbb469c4
Notify maintainers

@leona-ya
@talyz


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs
Is this issue important to you?

Add a 👍 reaction to issues you find important.

Dominant language
Nix
Stars
26.2k
Forks
20.1k
Avg merge
9h 57m
Merged PRs (30d)
517

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NixOS/nixpkgs

All issues in NixOS/nixpkgs

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.