Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: add cgroup memory troubleshooting to install doc#16920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
EdwardAngert merged 7 commits intomainfrom3-cgroup-mem
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletionsdocs/admin/templates/troubleshooting.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -170,3 +170,59 @@ See our
to optimize your templates based on this data.

![Workspace build timings UI](../../images/admin/templates/troubleshooting/workspace-build-timings-ui.png)

## Docker Workspaces on Raspberry Pi OS

### Unable to query ContainerMemory

When you query `ContainerMemory` and encounter the error:

```shell
open /sys/fs/cgroup/memory.max: no such file or directory
```

This error mostly affects Raspberry Pi OS, but might also affect older Debian-based systems as well.

<details><summary>Add cgroup_memory and cgroup_enable to cmdline.txt:</summary>

1. Confirm the list of existing cgroup controllers doesn't include `memory`:

```console
$ cat /sys/fs/cgroup/cgroup.controllers
cpuset cpu io pids

$ cat /sys/fs/cgroup/cgroup.subtree_control
cpuset cpu io pids
```

1. Add cgroup entries to `cmdline.txt` in `/boot/firmware` (or `/boot/` on older Pi OS releases):

```text
cgroup_memory=1 cgroup_enable=memory
```

You can use `sed` to add it to the file for you:

```bash
sudo sed -i '$s/$/ cgroup_memory=1 cgroup_enable=memory/' /boot/firmware/cmdline.txt
```

1. Reboot:

```bash
sudo reboot
```

1. Confirm that the list of cgroup controllers now includes `memory`:

```console
$ cat /sys/fs/cgroup/cgroup.controllers
cpuset cpu io memory pids

$ cat /sys/fs/cgroup/cgroup.subtree_control
cpuset cpu io memory pids
```

Read more about cgroup controllers in [The Linux Kernel](https://docs.kernel.org/admin-guide/cgroup-v2.html#controlling-controllers) documentation.

</details>
Binary file removeddocs/images/install/coder-setup.png
View file
Open in desktop
Binary file not shown.
Binary file modifieddocs/images/screenshots/welcome-create-admin-user.png
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletiondocs/install/cli.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,7 +49,7 @@ To start the Coder server:
coder server
```

![Coder install](../images/install/coder-setup.png)
![Coder install](../images/screenshots/welcome-create-admin-user.png)

To log in to an existing Coder deployment:

Expand Down
2 changes: 1 addition & 1 deletiondocs/install/index.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -60,7 +60,7 @@ To start the Coder server:
coder server
```

![Coder install](../images/install/coder-setup.png)
![Coder install](../images/screenshots/welcome-create-admin-user.png)

To log in to an existing Coder deployment:

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp