node-red-node-serialport node makes the Docker container infinite boot cycle
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- docker, javascript
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện npm install cho node-red-node-serialport 1.0.4 bên trong Docker container với các phiên bản Node.js và npm đã được báo cáo, sau đó kiểm tra toàn bộ đầu ra của quá trình cài đặt và khởi động. Được xem là hoàn tất khi package được cài đặt mà không kích hoạt vòng lặp khởi động container vô hạn; payload không nêu tên tệp nguồn hoặc test nào cần nhắm đến.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm having the same problem with 1.0.4.
Install log:
901e3f2035fd:/usr/src/node-red# npm i node-red-node-serialport --loglevel verbose
npm info it worked if it ends with ok
npm verb cli [
npm verb cli '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'i',
npm verb cli 'node-red-node-serialport',
npm verb cli '--loglevel',
npm verb cli 'verbose'
npm verb cli ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 1a2b8f09188d40b6
npm http fetch GET 200 https://registry.npmjs.org/node-red-node-serialport 125ms (from cache)
npm timing stage:loadCurrentTree Completed in 2109ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 10ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 1191ms
npm http fetch GET 200 https://registry.npmjs.org/serialport 17ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-cctalk 69ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fbindings-cpp 76ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-byte-length 79ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-inter-byte-timeout 77ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-delimiter 86ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-packet-length 89ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fbinding-mock 103ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-readline 95ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-ready 109ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-regex 110ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-slip-encoder 24ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fparser-spacepacket 28ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fstream 29ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/@serialport%2fbindings-interface 6ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 24ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/node-gyp-build 29ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 1732ms
npm timing stage:loadIdealTree Completed in 3287ms
npm timing stage:generateActionsToTake Completed in 130ms
npm verb correctMkdir /data/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /data/.npm/_locks/staging-4c3c7748ae1d116d.lock for /usr/src/node-red/node_modules/.staging
npm timing action:extract Completed in 551ms
npm timing action:finalize Completed in 92ms
npm timing action:refresh-package-json Completed in 200ms
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle @serialport/[email protected]~preinstall: @serialport/[email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm info lifecycle [email protected]~preinstall: [email protected]
npm timing action:preinstall Completed in 33ms
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff [email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff @serialport/[email protected]
npm info linkStuff [email protected]
npm verb linkBins [
npm verb linkBins {
npm verb linkBins 'node-gyp-build': 'bin.js',
npm verb linkBins 'node-gyp-build-optional': 'optional.js',
npm verb linkBins 'node-gyp-build-test': 'build-test.js'
npm verb linkBins },
npm verb linkBins '/usr/src/node-red/node_modules/.bin',
npm verb linkBins false
npm verb linkBins ]
npm timing audit submit Completed in 1097ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 1098ms
npm timing audit body Completed in 5ms
npm info linkStuff @serialport/[email protected]
npm info linkStuff [email protected]
npm info linkStuff [email protected]
npm timing action:build Completed in 96ms
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle @serialport/[email protected]~install: @serialport/[email protected]
> @serialport/[email protected] install /usr/src/node-red/node_modules/@serialport/bindings-cpp
> node-gyp-build
npm verb lifecycle @serialport/[email protected]~install: unsafe-perm in lifecycle false
npm verb lifecycle @serialport/[email protected]~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/src/node-red/node_modules/@serialport/bindings-cpp/node_modules/.bin:/usr/src/node-red/node_modules/.bin:/usr/src/node-red/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
npm verb lifecycle @serialport/[email protected]~install: CWD: /usr/src/node-red/node_modules/@serialport/bindings-cpp
npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~install: [email protected]
npm timing action:install Completed in 507ms
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle @serialport/[email protected]~postinstall: @serialport/[email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm timing action:postinstall Completed in 43ms
npm verb unlock done using /data/.npm/_locks/staging-4c3c7748ae1d116d.lock for /usr/src/node-red/node_modules/.staging
npm timing stage:executeActions Completed in 1705ms
npm timing stage:rollbackFailedOptional Completed in 2ms
npm timing stage:runTopLevelLifecycles Completed in 7543ms
npm verb saving [
npm verb saving {
npm verb saving name: 'node-red-node-serialport',
npm verb saving spec: '^1.0.4',
npm verb saving save: 'dependencies'
npm verb saving }
npm verb saving ]
npm info lifecycle [email protected]~preshrinkwrap: [email protected]
npm info lifecycle [email protected]~shrinkwrap: [email protected]
npm info lifecycle [email protected]~postshrinkwrap: [email protected]
+ [email protected]
added 20 packages from 100 contributors and audited 310 packages in 8.192s
55 packages are looking for funding
run `npm fund` for details
found 13 vulnerabilities (3 low, 10 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
node-red:
Welcome to Node-RED
===================
30 Aug 20:13:15 - [info] Node-RED version: v3.0.2
30 Aug 20:13:15 - [info] Node.js version: v14.21.3
30 Aug 20:13:15 - [info] Linux 5.10.92-v7l+ arm LE
30 Aug 20:13:16 - [info] Loading palette nodes
30 Aug 20:13:18 - [info] Worldmap version 2.42.2
30 Aug 20:13:18 - [info] Dashboard version 3.5.0 started at /ui
30 Aug 20:13:18 - [info] Settings file : /data/settings.js
30 Aug 20:13:18 - [info] Context store : 'default' [module=memory]
30 Aug 20:13:18 - [info] User directory : /data
30 Aug 20:13:18 - [warn] Projects disabled : editorTheme.projects.enabled=false
30 Aug 20:13:18 - [info] Flows file : /data/flows.json
30 Aug 20:13:18 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
30 Aug 20:13:18 - [warn] Encrypted credentials not found
30 Aug 20:13:18 - [info] Server now running at http://127.0.0.1:1880/
30 Aug 20:13:18 - [info] Starting flows
./entrypoint.sh: line 14: 9 Segmentation fault (core dumped) /usr/local/bin/node $NODE_OPTIONS node_modules/node-red/red.js --userDir /data $FLOWS "${@}"
Flow:
cat /usr/blueos/userdata/node-red/flows.json
[
{
"id": "a645a811594eb0f0",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "e1649fb4f7544b2b",
"type": "serial-port",
"serialport": "/dev/ttyACM2",
"serialbaud": "115200",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"dtr": "none",
"rts": "none",
"cts": "none",
"dsr": "none",
"newline": "\\n",
"bin": "false",
"out": "char",
"addchar": "",
"responsetimeout": "10000"
},
{
"id": "d64a0f61d894d39e",
"type": "serial in",
"z": "a645a811594eb0f0",
"name": "",
"serial": "e1649fb4f7544b2b",
"x": 530,
"y": 740,
"wires": [
[
"12d22d769a98c1b1"
]
]
},
{
"id": "12d22d769a98c1b1",
"type": "debug",
"z": "a645a811594eb0f0",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 700,
"y": 720,
"wires": []
}
]
Originally posted by @patrickelectric in https://github.com/node-red/node-red-nodes/issues/894#issuecomment-1699778378
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 610
- Merge trung bình
- 18 giờ 41 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của node-red/node-red-nodes
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
node-red/node-red-nodes#1142 · 11 bình luận ·
-
XMPP node issue (follow #1135)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
node-red/node-red-nodes#1141 · 15 bình luận ·
-
email-in node crashed node-redĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
node-red/node-red-nodes#1130 · 4 bình luận ·
-
dependencies
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
node-red/node-red-nodes#1121 · 5 bình luận ·
-
upstream
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
node-red/node-red-nodes#1116 · 5 bình luận ·
Tất cả issue của node-red/node-red-nodes
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
capricorn86/happy-dom#2485 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 74/100
siyuan-note/siyuan#20429 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
yjh051108/dsh-routing-suite#216 ·
-
[Bug] Completion info popup (.cm-completionInfo) ignores the configured editor fontCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug user-priority/P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
t8y2/dbx#11718 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày