VPS install without install.sh: every read-only script check fails on Ubuntu 24.04, and the error points to a reinstall

Đang mở Phù hợp với người mới
#308 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, shell, typescript, ubuntu
Lĩnh vực
devops, documentation

Hướng nghiên cứu

Bắt đầu với phần AppArmor của Chrome trong docs/deploy-vps.md và profile bwrap do apps/link-service/install.sh ghi ra; sao chép profile đó và lệnh nạp apparmor_parser -r vào một mục con bwrap tương ứng. Sau đó, tìm trong codebase thông báo được trích dẫn "reinstall dusk bot" và trỏ nó tới mục mới. Hoàn tất khi một bản cài đặt thủ công trên Ubuntu 24.04 có thể làm theo tài liệu và lỗi script-check liên kết tới đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened

I installed dusk bot 0.2.29 on an Ubuntu 24.04 VPS from the npm package, with my own systemd user unit (one of the manual paths in docs/deploy-vps.md), not with apps/link-service/install.sh.

Every script check that runs in the read-only fence fails with:

bubblewrap is installed but this computer will not let it make the namespaces a script check runs in (on Ubuntu 24.04, reinstall dusk bot so it loads its AppArmor profile for bwrap).

The cause: Ubuntu 24.04 blocks unprivileged user namespaces through AppArmor. install.sh writes /etc/apparmor.d/duskbot-bwrap and loads it, but the manual paths in docs/deploy-vps.md never mention it. The doc covers the same AppArmor block for Chrome (/etc/apparmor.d/duskbot-chrome), so a reader follows that and still has broken script checks.

"Reinstall dusk bot" doesn't help on a manual install. There is no install step to rerun.

access: "full" script checks are not affected, because they run outside the fence.

Steps to reproduce
  1. Ubuntu 24.04, default kernel.apparmor_restrict_unprivileged_userns=1.
  2. Install dusk bot by a manual path from docs/deploy-vps.md.
  3. Create a routine with a script check (no access), and Run now.
  4. The run fails with the message above. On the same machine, bwrap --ro-bind / / --unshare-pid --share-net true fails with setting up uid map: Permission denied.
What you'd like
  • docs/deploy-vps.md: a short section for the bwrap profile next to the Chrome one, with the same profile install.sh writes and the apparmor_parser -r command.
  • The error message links to that section instead of saying "reinstall".
Version / Platform

0.2.29, Ubuntu 24.04.4 LTS (kernel 6.8), self-hosted VPS.

Anything else

I'm happy to send the docs PR.

Ngôn ngữ chính
TypeScript
Star
277
Fork
27
Merge trung bình
7 giờ 8 phút
Pull request đã merge (30 ngày)
81

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DuskBotAI/duskbot

Tất cả issue của DuskBotAI/duskbot

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.