Game: Windows farm sandbox check fails AppContainer write permission test #1118

Open
opened 2026-11-16 11:49:31 +00:00 by BeanBot · 4 comments
Member

Reported on Discord

Version and system

Beanstack agent nightly-110-002bc3fb on Microsoft Windows 10.0.26200; Intel UHD Graphics, driver 0.405.2992 (Intel Corporation), Vulkan 1.4.323; 16 GB RAM, 4 threads.

What happened

The AppContainer sandbox check failed because the probe could write to a folder expected to be read-only. The low-rights-user mode did not run because its runner account password file is missing. The check also reported failures for the two plain pipe checks, while its summary only identifies write_granted as failed/missing and says the current local-name pipe works.

Steps

Run beanstack-agent sandbox-check on the Windows test-farm machine. The maintainer was asked to run beanstack-agent setup-windows-user and retest, but no refreshed result or setup error has been provided yet.

Exact check output

FAIL  write_granted    WROTE a file in the read-only granted folder
FAIL  pipe_today_plain the game's side could not make the pipe: CreateNamedPipeW (\\.\pipe\beanstack-check-74dc15680462): error 5 (0x5, Access is denied)
FAIL  pipe_proposed_plain the game's side could not make the pipe: CreateNamedPipeW (\\.\pipe\beanstack-check-2a065e17a69e): error 5 (0x5, Access is denied)
PASS  pipe             works with Longshot as it is (today's DACL, the local name)
=> failed or missing: write_granted

--- mode lowuser ---
  not tried: the sandbox could not be made: the runner account's password is not in <home>\\runner.dpapi: run beanstalk-agent setup-windows-user again

recommended mode: none (appcontainer: failed or missing: write_granted; lowuser: the sandbox could not be made: the runner account's password is not in <home>\\runner.dpapi: run beanstalk-agent setup-windows-user again)

Fix already merged

Longshot PR #544 adds AppContainer and farm-user control-pipe grants. It is included since v3.0.0-rc.4 (and nightly-171-b80a68f1). This does not establish a fix for the separate write_granted read-only-folder check.

Still needed

A refreshed sandbox-check.txt after running beanstalk-agent setup-windows-user and retesting, or the exact setup error; clarification whether the pipe failures are expected/related; and the Beanstalk agent version/source or repository owner for tracking the runner-side checks. The full original sandbox-check.txt is attached for context.

Related: PR #544 adds the AppContainer and farm-user control-pipe grants and calls for Windows farm testing; this report includes a separate failed read-only-folder permission check and is not assumed to be a fix for that PR.

Reported on [Discord](https://discord.com/channels/1569849200047427645/1570851074334793829/1571853850170884166) ### Version and system Beanstack agent nightly-110-002bc3fb on Microsoft Windows 10.0.26200; Intel UHD Graphics, driver 0.405.2992 (Intel Corporation), Vulkan 1.4.323; 16 GB RAM, 4 threads. ### What happened The AppContainer sandbox check failed because the probe could write to a folder expected to be read-only. The low-rights-user mode did not run because its runner account password file is missing. The check also reported failures for the two plain pipe checks, while its summary only identifies `write_granted` as failed/missing and says the current local-name pipe works. ### Steps Run `beanstack-agent sandbox-check` on the Windows test-farm machine. The maintainer was asked to run `beanstack-agent setup-windows-user` and retest, but no refreshed result or setup error has been provided yet. ### Exact check output ```text FAIL write_granted WROTE a file in the read-only granted folder FAIL pipe_today_plain the game's side could not make the pipe: CreateNamedPipeW (\\.\pipe\beanstack-check-74dc15680462): error 5 (0x5, Access is denied) FAIL pipe_proposed_plain the game's side could not make the pipe: CreateNamedPipeW (\\.\pipe\beanstack-check-2a065e17a69e): error 5 (0x5, Access is denied) PASS pipe works with Longshot as it is (today's DACL, the local name) => failed or missing: write_granted --- mode lowuser --- not tried: the sandbox could not be made: the runner account's password is not in <home>\\runner.dpapi: run beanstalk-agent setup-windows-user again recommended mode: none (appcontainer: failed or missing: write_granted; lowuser: the sandbox could not be made: the runner account's password is not in <home>\\runner.dpapi: run beanstalk-agent setup-windows-user again) ``` ### Fix already merged Longshot PR #544 adds AppContainer and farm-user control-pipe grants. It is included since `v3.0.0-rc.4` (and nightly-171-b80a68f1). This does not establish a fix for the separate `write_granted` read-only-folder check. ### Still needed A refreshed `sandbox-check.txt` after running `beanstalk-agent setup-windows-user` and retesting, or the exact setup error; clarification whether the pipe failures are expected/related; and the Beanstalk agent version/source or repository owner for tracking the runner-side checks. The full original `sandbox-check.txt` is attached for context. Related: PR #544 adds the AppContainer and farm-user control-pipe grants and calls for Windows farm testing; this report includes a separate failed read-only-folder permission check and is not assumed to be a fix for that PR.
Author
Member

Files from the Discord report:

Files from the Discord report: - [sandbox-check.txt](https://git.magicbean.dev/attachments/e7b06770-cfc0-4f2a-a582-80d31466d641)
Author
Member

Updated with more from Discord: Recorded that PR #544's pipe-permission change is included since v3.0.0-rc.4, without treating it as a fix for the separate read-only-folder failure.

Updated with more from [Discord](https://discord.com/channels/1569849200047427645/1571853850170884166/1571855505037594756): Recorded that PR #544's pipe-permission change is included since v3.0.0-rc.4, without treating it as a fix for the separate read-only-folder failure.
Owner

Thanks for the report. This is on Beanstalk's side, not Longshot's.

  • write_granted is the one that matters. The sandbox could write a file in a folder it was only given to read, so the check refuses the sandbox on this PC, and the farm sends it no jobs, as it should. The usual causes are a data folder on a drive that keeps no permissions (FAT32 or exFAT, for example a USB stick or an SD card), or a parent folder whose permissions let every app write.
  • The two *_plain pipe failures are expected. The sandbox can't make pipes with plain names; Longshot uses the local name, and the pipe line says that one works.
  • The lowuser mode needs beanstalk-agent setup-windows-user first. It's optional if AppContainer passes.

Beanstalk#63 makes the check explain a write_granted failure: the drive's file system, plus the folder permissions (with account ids cut). Once the next nightly arrives (the app updates itself), please run beanstalk-agent sandbox-check again and attach the new sandbox-check.txt. If it says the drive keeps no permissions, choose a data folder on an NTFS drive in Settings, and the check should pass.

Thanks for the report. This is on Beanstalk's side, not Longshot's. - **`write_granted`** is the one that matters. The sandbox could write a file in a folder it was only given to read, so the check refuses the sandbox on this PC, and the farm sends it no jobs, as it should. The usual causes are a data folder on a drive that keeps no permissions (FAT32 or exFAT, for example a USB stick or an SD card), or a parent folder whose permissions let every app write. - **The two `*_plain` pipe failures are expected.** The sandbox can't make pipes with plain names; Longshot uses the local name, and the `pipe` line says that one works. - **The `lowuser` mode** needs `beanstalk-agent setup-windows-user` first. It's optional if AppContainer passes. [Beanstalk#63](https://git.magicbean.dev/MagicBeanDev/Beanstalk/pulls/63) makes the check explain a `write_granted` failure: the drive's file system, plus the folder permissions (with account ids cut). Once the next nightly arrives (the app updates itself), please run `beanstalk-agent sandbox-check` again and attach the new `sandbox-check.txt`. If it says the drive keeps no permissions, choose a data folder on an NTFS drive in Settings, and the check should pass.
Author
Member

From Discord:

The reporter asks whether files need to be deleted before replacing/updating. No new diagnostic output or system details were provided.

From [Discord](https://discord.com/channels/1569849200047427645/1570851074334793829/1571853850170884166): The reporter asks whether files need to be deleted before replacing/updating. No new diagnostic output or system details were provided.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#1118
No description provided.