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

Open Beginner friendly
#308 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
linux, shell, typescript, ubuntu

Research direction

Start with the Chrome AppArmor section in docs/deploy-vps.md and the bwrap profile written by apps/link-service/install.sh; copy that profile and the apparmor_parser -r load command into a matching bwrap subsection. Then search the codebase for the quoted "reinstall dusk bot" message and point it at the new section. Done when a manual Ubuntu 24.04 install can follow the docs and the script-check error links there.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
277
Forks
27
Avg merge
7h 8m
Merged PRs (30d)
81

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DuskBotAI/duskbot

All issues in DuskBotAI/duskbot

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.