Public bug reported: Upstream fixed this in April: https://github.com/nginx/njs/pull/1047/files#diff-c5afa98509a953673a25d63c4b603b8e88a35a0b49af6ac447dcdeff886ebc10L4213
In some versions of nginx there's a spurious debug print from the njs system. This is merely annoying most times, but with certbot (LetsEncrypt) it feels misleading even. I consider this a bug because `nginx -t -q` should _not_ output anything if there are no issues, from nginx(8): -q Suppress non-error messages during configuration testing. This is an issue on Ubuntu 26.04, it is not an issue on Ubuntu 26.10. I have not tested other versions. Distributor ID: Ubuntu Description: Ubuntu 26.04.1 LTS Release: 26.04 Codename: resolute Package: libnginx-mod-http-js Version: 0.9.4-1build2 Source: libnginx-mod-js Origin: Ubuntu Package: nginx Version: 1.28.3-2ubuntu1.12 Origin: Ubuntu nginx -t behavior ----------------- This is annoying: # nginx -t 2026/11/04 16:45:25 [notice] 1696420#1696420: js vm init njs: 00005E57802D6E00 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful This is worse: # nginx -t -q 2026/11/04 16:59:37 [notice] 1701861#1701861: js vm init njs: 00005AEF990D1E00 certbot behavior ---------------- Because of the `nginx -t -q` behavior you can a big red piece of text during a certificate renewal / request: https://ytec.nl/media/tmp/2026-11-03_njs_certbot_hook_failure.png (It can be filtered out with a negative grep) how to recreate --------------- $ sudo apt install nginx-light libnginx-mod-http-js $ cat /etc/nginx/conf.d/njs.conf js_import /etc/nginx/demo.js; $ cat /etc/nginx/demo.js function demofunc(r) { } export default { demofunc }; ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: libnginx-mod-http-js 0.9.4-1build2 ProcVersionSignature: Ubuntu 7.0.0-34.34-generic 7.0.14 Uname: Linux 7.0.0-34-generic x86_64 ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 CasperMD5CheckResult: unknown CloudBuildName: server CloudSerial: 20260520 Date: Wed Nov 4 17:18:01 2026 ProcEnviron: LANG=C.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> RebootRequiredPkgs: Error: path contained symlinks. SourcePackage: libnginx-mod-js UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: libnginx-mod-js (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cloud-image resolute -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2172992 Title: debug print of njs leads to misinformation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libnginx-mod-js/+bug/2172992/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
