Skip to content

[Scanopy] Scanopy LXC: cargo build fails with OOM (SIGKILL) on default 4GB RAM #16697

Description

@frontend-report

Script: Scanopy

Guidelines

  • Read and understood guidelines: yes
  • Verbose mode used: yes

Issue occurs during: Initial Creation / Installation

Environment

  • Linux distribution: Debian
  • Proxmox version: 9.1
  • Default settings: Yes
  • Advanced settings: No
  • Exact command: bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/scanopy.sh)"

Description

The Scanopy LXC installation script fails during the Rust backend compilation stage when using the script's default 4 GB RAM (4096 MiB) allocation. Compiling heavy dependencies with Link-Time Optimization (LTO) causes memory usage to exceed 4 GB (~5.7 GB virtual memory allocated), triggering the Linux cgroup OOM killer to terminate rustc with SIGKILL (signal 9).

Steps to reproduce

Run the Scanopy LXC setup script using default settings (4 GB RAM, unprivileged).
Allow the installation to progress to the Rust backend setup phase (cargo build --release).
The build process gets killed mid-compilation by the kernel.

Error output

Caused by:
process didn't exit successfully: /root/.rustup/toolchains/1.90.0-x86_64-unknown-linux-gnu/bin/rustc ... (signal: 9, SIGKILL: kill)
[2026-08-23 17:45:01] [ERROR] in line 32: exit code 101 (APT: Configuration error (bad sources.list, malformed config)): while executing command cargo build --release --bin server --bin generate-fixtures

Additional context

[Sun Aug 23 17:45:13 2026] rustc invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
[Sun Aug 23 17:45:13 2026] oom_kill_process.cold+0x8/0x87
[Sun Aug 23 17:45:13 2026] [ pid ] uid tgid total_vm rss rss_anon rss_file rss_shmem pgtables_bytes swapents oom_score_adj name
[Sun Aug 23 17:45:13 2026] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=ns,mems_allowed=0,oom_memcg=/lxc/104,task_memcg=/lxc/104/ns/.lxc,task=rustc,pid=2307216,uid=100000
[Sun Aug 23 17:45:13 2026] Memory cgroup out of memory: Killed process 2307216 (rustc) total-vm:5763820kB, anon-rss:3858176kB, file-rss:8kB, shmem-rss:0kB, UID:100000 pgtables:9740kB oom_score_adj:0


Reporter has no GitHub username. Issue may be closed after 7 days without response.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions