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

Aperta Adatta ai principianti
#308 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
linux, shell, typescript, ubuntu

Direzione di ricerca

Parti dalla sezione AppArmor per Chrome in docs/deploy-vps.md e dal profilo bwrap scritto da apps/link-service/install.sh; copia quel profilo e il comando di caricamento apparmor_parser -r in una sottosezione bwrap corrispondente. Poi cerca nel codice il messaggio citato "reinstall dusk bot" e fai in modo che punti alla nuova sezione. Fine quando un'installazione manuale su Ubuntu 24.04 può seguire la documentazione e l'errore di script-check rimanda lì.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
277
Fork
27
Merge medio
7h 8m
PR unite (30g)
81

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DuskBotAI/duskbot

Tutte le issue di DuskBotAI/duskbot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.