View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017047 | CentOS-8 | dnf | public | 2020-02-13 09:21 | 2022-02-03 22:09 |
Reporter | sffc | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
OS | Centos | OS Version | 8.0 | ||
Product Version | 8.0.1905 | ||||
Summary | 0017047: Node.js from AppStream common channel should not be built with "--debug-nghttp2" | ||||
Description | Node.js appears to be configured to print noisy debug output from http2 to stderr, and there is no way to suppress these messages. I originally filed this bug as https://github.com/googleapis/nodejs-logging/issues/668, which got thrown around a couple of times before eventually figuring out the root cause of the problem. As found by mscdex in https://github.com/nodejs/node/issues/31763#issuecomment-585613734, the rpm file for nodejs has the following flags: #%if ! 0%%{?bootstrap} %if %{with bootstrap} ./configure --prefix=%{_prefix} --shared-openssl --shared-zlib --without-dtrace --with-intl=small-icu --debug-nghttp2 --openssl-use-def-ca-store %else ./configure --prefix=%{_prefix} --shared-openssl --shared-zlib --shared-libuv --shared-http-parser --shared-nghttp2 --with-dtrace --with-intl=%{icu_flag} --debug-nghttp2 --openssl-use-def-ca-store %endif The flag "--debug-nghttp2" appears to be what is causing these noisy messages to be printed. This would be acceptable in the development channel, but in the common channel, I expect Node.js to not print these messages. | ||||
Steps To Reproduce | Run "sudo yum install nodejs", then run "node demo.js" with the following script: const http2 = require('http2'); const client = http2.connect('https://www.google.com'); client.on('error', (err) => console.error(err)); const req = client.request({ ':path': '/' }); req.on('response', (headers, flags) => { for (const name in headers) { console.log(`${name}: ${headers[name]}`); } }); req.setEncoding('utf8'); let data = ''; req.on('data', (chunk) => { data += chunk; }); req.on('end', () => { console.log(`\nReceived ${data.length} bytes of data.`); client.close(); }); req.end(); | ||||
Tags | nodejs | ||||
Any updates? | |
Any word on changing this build flag? This applies to CentOS 8 Stream as well and makes it necessary to use nodejs from source instead of the repo. | |
For reporting CentOS Stream bugs, please see: https://wiki.centos.org/ReportBugs |
|
CentOS Linux 8 ended its life on December 31, 2021 and, therefore, is no longer supported. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-02-13 09:21 | sffc | New Issue | |
2020-02-13 09:21 | sffc | Tag Attached: nodejs | |
2020-04-05 21:39 | sffc | Note Added: 0036651 | |
2021-10-29 13:59 | timaw | Note Added: 0038695 | |
2021-10-30 08:52 | toracat | Note Added: 0038698 | |
2022-01-08 19:18 | toracat | Note Added: 0038793 | |
2022-02-03 22:09 | toracat | Status | new => closed |
2022-02-03 22:09 | toracat | Resolution | open => won't fix |