Permission problem Sense Hat node
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, nodejs, python, raspberry-pi
- Lĩnh vực
- embedded-iot
Hướng nghiên cứu
Bắt đầu với hardware/sensehat/sensehat, đặc biệt là dòng 18 được liên kết, và theo dõi cách node Sense Hat khởi chạy sensehat.py. Tái tạo flow node-red-node-pi-sense-hat trên Raspberry Pi OS và kiểm tra các nhật ký xác thực của sudo. Hoàn tất có nghĩa là node kết nối và hiển thị ba đường dọc màu tím như mong đợi mà không yêu cầu quyền truy cập sudoers rộng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Which node are you reporting an issue on?
node-red-node-pi-sense-hat
What are the steps to reproduce?
- Install node-red-node-pi-sense-hat
- Use the Sense Hat node (out) in a flow
- Connect the node to inject with [4-6,*,purple]
- Deploy the flow
What happens?
- The Sense Hat node is [disconnected]
- Log shows:
pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [nodered] - The Sense Hat LED array is blank
Seems like the node is trying to sudo a certain command and cannot without the user passwd. Since I can't find what the node is trying to access using sudo I can't specify that very command in /etc/sudoers as a NOPASSWD. The current workaround basically gives all access to all and any command to the dedicated user I created named nodered.
What do you expect to happen?
- The Sense Hat node is [connected]
- The Sense Hat LED array shows 3 vertical purple lines
Please tell us about your environment:
- Node-RED version: 3.0
- node.js version: 18
- npm version: 9.5
- Platform/OS: Raspberry Pi OS 64 bit latest
- Browser: Chrome
(Sub-optimal) first workaround
I put this line in /etc/sudoers: nodered ALL=(ALL) NOPASSWD: ALL
Better (current) workaround (March 12)
sudo is not needed when calling the sensehat Python script.
sensehat Python script (Line 18)
Replaced by (no $SUDO):
$python_cmd -u $BASEDIR/sensehat.py $@
My Python installation is pretty much run-of-the-mill (as the configuration of the SenseHat module) and does not require sudo when running the script linked above.
Thanks for your help.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 610
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 2
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 42/100
node-red/node-red-nodes#1151 · 4 bình luận ·
-
Độ 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 ·
Tất cả issue của node-red/node-red-nodes
Issue tương tự
-
ACK_WAITING HELP_WANTED UPDATE_CS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OWASP/CheatSheetSeries#2781 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Hermes: /ponytail off never reaches the model, the ruleset stays activeCó thể đã có người làm @szsunyuan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DietrichGebert/ponytail#1121 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
integrations plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
mem0ai/mem0#7622 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug package:vitest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
cloudflare/workers-sdk#16238 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày