Failed to install MongoDB using LXC script #2272

Closed
opened 2025-11-20 05:26:31 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @dchien234 on GitHub (Nov 8, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

MongoDB

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/mongodb.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

Proxmox VE 8.4.14

📝 Provide a clear and concise description of the issue.

Hi, I'm installing MongoDB r7.0.26 using the community script here. It failed with the following errors:

Created symlink '/etc/systemd/system/multi-user.target.wants/mongod.service' → '/usr/lib/systemd/system/mongod.service'.
  ✔️   Setup MongoDB 8.0
bash: line 23: MONGO_VERSION: unbound variable

[ERROR] in line 1345: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"

🔄 Steps to reproduce the issue.

  1. Login to Proxmox VE web admin UI
  2. Open Proxmox node's Shell
  3. Run the script using bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/mongodb.sh)"
  4. Use Default Settings

Paste the full error output (if available).

    __  ___                        ____  ____ 
   /  |/  /___  ____  ____ _____  / __ \/ __ )
  / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __  |
 / /  / / /_/ / / / / /_/ / /_/ / /_/ / /_/ / 
/_/  /_/\____/_/ /_/\__, /\____/_____/_____/  
                   /____/                     
  ⚙️  Using Default Settings on node pve1 (🔍  Verbose)
  🆔  Container ID: 102
  🖥️  Operating System: debian (13)
  📦  Container Type: Unprivileged
  💾  Disk Size: 4 GB
  🧠  CPU Cores: 1
  🛠️  RAM Size: 512 MiB
  🔍  Verbose Mode: Enabled
  🚀  Creating a MongoDB LXC using the above default settings
  
  ✔️   Storage local (Free: 81.3GB  Used: 5.8GB) [Template]
  ✔️   Storage local-lvm (Free: 788.0GB  Used: 9.2GB) [Container]
  ✔️   Cluster is quorate
  ✔️   Template debian-13-standard_13.1-2_amd64.tar.zst [local]
  ✔️   LXC Container 102 was successfully created.
  ✔️   Started LXC Container
   💡   No network in LXC yet (try 1/10) – waiting...
  ✔️   Network in LXC is reachable (ping)
  ✔️   Customized LXC Container
  ✔️   Set up Container OS
  ✔️   Network Connected: 192.168.1.120 fdb5:b718:2701:81e0:be24:11ff:fe2a:e270 
  ✔️   IPv4 Internet Connected
   ✖️   IPv6 Internet Not Connected
  ✔️   Git DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) git.community-scripts.org:(✔️ )
Hit:1 http://security.debian.org trixie-security InRelease
Hit:2 http://deb.debian.org/debian trixie InRelease
Hit:3 http://deb.debian.org/debian trixie-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-dnsutils bind9-host bind9-libs
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,459 kB of archives.
After this operation, 24.6 kB of additional disk space will be used.
Get:1 http://security.debian.org trixie-security/main amd64 bind9-host amd64 1:9.20.15-1~deb13u1 [55.4 kB]
Get:2 http://security.debian.org trixie-security/main amd64 bind9-dnsutils amd64 1:9.20.15-1~deb13u1 [165 kB]
Get:3 http://security.debian.org trixie-security/main amd64 bind9-libs amd64 1:9.20.15-1~deb13u1 [1,238 kB]
Fetched 1,459 kB in 0s (42.0 MB/s)  
apt-listchanges: Reading changelogs...
(Reading database ... 20272 files and directories currently installed.)
Preparing to unpack .../bind9-host_1%3a9.20.15-1~deb13u1_amd64.deb ...
Unpacking bind9-host (1:9.20.15-1~deb13u1) over (1:9.20.11-4) ...
Preparing to unpack .../bind9-dnsutils_1%3a9.20.15-1~deb13u1_amd64.deb ...
Unpacking bind9-dnsutils (1:9.20.15-1~deb13u1) over (1:9.20.11-4) ...
Preparing to unpack .../bind9-libs_1%3a9.20.15-1~deb13u1_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.20.15-1~deb13u1) over (1:9.20.11-4) ...
Setting up bind9-libs:amd64 (1:9.20.15-1~deb13u1) ...
Setting up bind9-host (1:9.20.15-1~deb13u1) ...
Setting up bind9-dnsutils (1:9.20.15-1~deb13u1) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for libc-bin (2.41-12) ...
  ✔️   Updated Container OS
      Do you want to install MongoDB 8.0 instead of 7.0? [y/N]: y
Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://deb.debian.org/debian trixie-updates InRelease
Hit:3 http://security.debian.org trixie-security InRelease
All packages are up to date.                  
Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://security.debian.org trixie-security InRelease
Hit:3 http://deb.debian.org/debian trixie-updates InRelease
Get:4 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 InRelease [2,906 B]
Get:5 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 Packages [53.3 kB]
Fetched 56.2 kB in 1s (74.4 kB/s)
All packages are up to date.    
Installing:                     
  mongodb-org

Installing dependencies:
  mongodb-database-tools  mongodb-org-database              mongodb-org-mongos  mongodb-org-shell
  mongodb-mongosh         mongodb-org-database-tools-extra  mongodb-org-server  mongodb-org-tools

Summary:
  Upgrading: 0, Installing: 9, Removing: 0, Not Upgrading: 0
  Download size: 186 MB
  Space needed: 677 MB / 3,104 MB available

Get:1 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-database-tools amd64 100.13.0 [58.9 MB]
Get:2 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-mongosh amd64 2.5.9 [57.9 MB]
Get:3 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-shell amd64 8.0.15 [2,720 B]
Get:4 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-server amd64 8.0.15 [39.6 MB]
Get:5 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-mongos amd64 8.0.15 [29.8 MB]
Get:6 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-database-tools-extra amd64 8.0.15 [7,392 B]
Get:7 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-database amd64 8.0.15 [3,180 B]
Get:8 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-tools amd64 8.0.15 [2,528 B]
Get:9 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org amd64 8.0.15 [2,564 B]
Fetched 186 MB in 5s (33.9 MB/s)
Selecting previously unselected package mongodb-database-tools.
(Reading database ... 20272 files and directories currently installed.)
Preparing to unpack .../0-mongodb-database-tools_100.13.0_amd64.deb ...
Unpacking mongodb-database-tools (100.13.0) ...
Selecting previously unselected package mongodb-mongosh.
Preparing to unpack .../1-mongodb-mongosh_2.5.9_amd64.deb ...
Unpacking mongodb-mongosh (2.5.9) ...
Selecting previously unselected package mongodb-org-shell.
Preparing to unpack .../2-mongodb-org-shell_8.0.15_amd64.deb ...
Unpacking mongodb-org-shell (8.0.15) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../3-mongodb-org-server_8.0.15_amd64.deb ...
Unpacking mongodb-org-server (8.0.15) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../4-mongodb-org-mongos_8.0.15_amd64.deb ...
Unpacking mongodb-org-mongos (8.0.15) ...
Selecting previously unselected package mongodb-org-database-tools-extra.
Preparing to unpack .../5-mongodb-org-database-tools-extra_8.0.15_amd64.deb ...
Unpacking mongodb-org-database-tools-extra (8.0.15) ...
Selecting previously unselected package mongodb-org-database.
Preparing to unpack .../6-mongodb-org-database_8.0.15_amd64.deb ...
Unpacking mongodb-org-database (8.0.15) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../7-mongodb-org-tools_8.0.15_amd64.deb ...
Unpacking mongodb-org-tools (8.0.15) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../8-mongodb-org_8.0.15_amd64.deb ...
Unpacking mongodb-org (8.0.15) ...
Setting up mongodb-mongosh (2.5.9) ...
Setting up mongodb-org-server (8.0.15) ...
Setting up mongodb-org-shell (8.0.15) ...
Setting up mongodb-database-tools (100.13.0) ...
Setting up mongodb-org-mongos (8.0.15) ...
Setting up mongodb-org-database-tools-extra (8.0.15) ...
Setting up mongodb-org-database (8.0.15) ...
Setting up mongodb-org-tools (8.0.15) ...
Setting up mongodb-org (8.0.15) ...
Processing triggers for man-db (2.13.1-1) ...
Created symlink '/etc/systemd/system/multi-user.target.wants/mongod.service' → '/usr/lib/systemd/system/mongod.service'.
  ✔️   Setup MongoDB 8.0
bash: line 23: MONGO_VERSION: unbound variable

[ERROR] in line 1345: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"

🖼️ Additional context (optional).

It also failed when I ran using the Advance Settings.

Originally created by @dchien234 on GitHub (Nov 8, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? MongoDB ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/mongodb.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? Proxmox VE 8.4.14 ### 📝 Provide a clear and concise description of the issue. Hi, I'm installing MongoDB r7.0.26 using the community script here. It failed with the following errors: ``` Created symlink '/etc/systemd/system/multi-user.target.wants/mongod.service' → '/usr/lib/systemd/system/mongod.service'. ✔️ Setup MongoDB 8.0 bash: line 23: MONGO_VERSION: unbound variable [ERROR] in line 1345: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)" ``` ### 🔄 Steps to reproduce the issue. 1. Login to Proxmox VE web admin UI 2. Open Proxmox node's Shell 3. Run the script using `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/mongodb.sh)"` 4. Use `Default Settings` ### ❌ Paste the full error output (if available). ``` __ ___ ____ ____ / |/ /___ ____ ____ _____ / __ \/ __ ) / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __ | / / / / /_/ / / / / /_/ / /_/ / /_/ / /_/ / /_/ /_/\____/_/ /_/\__, /\____/_____/_____/ /____/ ⚙️ Using Default Settings on node pve1 (🔍 Verbose) 🆔 Container ID: 102 🖥️ Operating System: debian (13) 📦 Container Type: Unprivileged 💾 Disk Size: 4 GB 🧠 CPU Cores: 1 🛠️ RAM Size: 512 MiB 🔍 Verbose Mode: Enabled 🚀 Creating a MongoDB LXC using the above default settings ✔️ Storage local (Free: 81.3GB Used: 5.8GB) [Template] ✔️ Storage local-lvm (Free: 788.0GB Used: 9.2GB) [Container] ✔️ Cluster is quorate ✔️ Template debian-13-standard_13.1-2_amd64.tar.zst [local] ✔️ LXC Container 102 was successfully created. ✔️ Started LXC Container 💡 No network in LXC yet (try 1/10) – waiting... ✔️ Network in LXC is reachable (ping) ✔️ Customized LXC Container ✔️ Set up Container OS ✔️ Network Connected: 192.168.1.120 fdb5:b718:2701:81e0:be24:11ff:fe2a:e270 ✔️ IPv4 Internet Connected ✖️ IPv6 Internet Not Connected ✔️ Git DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) git.community-scripts.org:(✔️ ) Hit:1 http://security.debian.org trixie-security InRelease Hit:2 http://deb.debian.org/debian trixie InRelease Hit:3 http://deb.debian.org/debian trixie-updates InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bind9-dnsutils bind9-host bind9-libs 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1,459 kB of archives. After this operation, 24.6 kB of additional disk space will be used. Get:1 http://security.debian.org trixie-security/main amd64 bind9-host amd64 1:9.20.15-1~deb13u1 [55.4 kB] Get:2 http://security.debian.org trixie-security/main amd64 bind9-dnsutils amd64 1:9.20.15-1~deb13u1 [165 kB] Get:3 http://security.debian.org trixie-security/main amd64 bind9-libs amd64 1:9.20.15-1~deb13u1 [1,238 kB] Fetched 1,459 kB in 0s (42.0 MB/s) apt-listchanges: Reading changelogs... (Reading database ... 20272 files and directories currently installed.) Preparing to unpack .../bind9-host_1%3a9.20.15-1~deb13u1_amd64.deb ... Unpacking bind9-host (1:9.20.15-1~deb13u1) over (1:9.20.11-4) ... Preparing to unpack .../bind9-dnsutils_1%3a9.20.15-1~deb13u1_amd64.deb ... Unpacking bind9-dnsutils (1:9.20.15-1~deb13u1) over (1:9.20.11-4) ... Preparing to unpack .../bind9-libs_1%3a9.20.15-1~deb13u1_amd64.deb ... Unpacking bind9-libs:amd64 (1:9.20.15-1~deb13u1) over (1:9.20.11-4) ... Setting up bind9-libs:amd64 (1:9.20.15-1~deb13u1) ... Setting up bind9-host (1:9.20.15-1~deb13u1) ... Setting up bind9-dnsutils (1:9.20.15-1~deb13u1) ... Processing triggers for man-db (2.13.1-1) ... Processing triggers for libc-bin (2.41-12) ... ✔️ Updated Container OS Do you want to install MongoDB 8.0 instead of 7.0? [y/N]: y Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 http://security.debian.org trixie-security InRelease All packages are up to date. Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://security.debian.org trixie-security InRelease Hit:3 http://deb.debian.org/debian trixie-updates InRelease Get:4 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 InRelease [2,906 B] Get:5 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 Packages [53.3 kB] Fetched 56.2 kB in 1s (74.4 kB/s) All packages are up to date. Installing: mongodb-org Installing dependencies: mongodb-database-tools mongodb-org-database mongodb-org-mongos mongodb-org-shell mongodb-mongosh mongodb-org-database-tools-extra mongodb-org-server mongodb-org-tools Summary: Upgrading: 0, Installing: 9, Removing: 0, Not Upgrading: 0 Download size: 186 MB Space needed: 677 MB / 3,104 MB available Get:1 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-database-tools amd64 100.13.0 [58.9 MB] Get:2 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-mongosh amd64 2.5.9 [57.9 MB] Get:3 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-shell amd64 8.0.15 [2,720 B] Get:4 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-server amd64 8.0.15 [39.6 MB] Get:5 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-mongos amd64 8.0.15 [29.8 MB] Get:6 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-database-tools-extra amd64 8.0.15 [7,392 B] Get:7 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-database amd64 8.0.15 [3,180 B] Get:8 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org-tools amd64 8.0.15 [2,528 B] Get:9 https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0/main amd64 mongodb-org amd64 8.0.15 [2,564 B] Fetched 186 MB in 5s (33.9 MB/s) Selecting previously unselected package mongodb-database-tools. (Reading database ... 20272 files and directories currently installed.) Preparing to unpack .../0-mongodb-database-tools_100.13.0_amd64.deb ... Unpacking mongodb-database-tools (100.13.0) ... Selecting previously unselected package mongodb-mongosh. Preparing to unpack .../1-mongodb-mongosh_2.5.9_amd64.deb ... Unpacking mongodb-mongosh (2.5.9) ... Selecting previously unselected package mongodb-org-shell. Preparing to unpack .../2-mongodb-org-shell_8.0.15_amd64.deb ... Unpacking mongodb-org-shell (8.0.15) ... Selecting previously unselected package mongodb-org-server. Preparing to unpack .../3-mongodb-org-server_8.0.15_amd64.deb ... Unpacking mongodb-org-server (8.0.15) ... Selecting previously unselected package mongodb-org-mongos. Preparing to unpack .../4-mongodb-org-mongos_8.0.15_amd64.deb ... Unpacking mongodb-org-mongos (8.0.15) ... Selecting previously unselected package mongodb-org-database-tools-extra. Preparing to unpack .../5-mongodb-org-database-tools-extra_8.0.15_amd64.deb ... Unpacking mongodb-org-database-tools-extra (8.0.15) ... Selecting previously unselected package mongodb-org-database. Preparing to unpack .../6-mongodb-org-database_8.0.15_amd64.deb ... Unpacking mongodb-org-database (8.0.15) ... Selecting previously unselected package mongodb-org-tools. Preparing to unpack .../7-mongodb-org-tools_8.0.15_amd64.deb ... Unpacking mongodb-org-tools (8.0.15) ... Selecting previously unselected package mongodb-org. Preparing to unpack .../8-mongodb-org_8.0.15_amd64.deb ... Unpacking mongodb-org (8.0.15) ... Setting up mongodb-mongosh (2.5.9) ... Setting up mongodb-org-server (8.0.15) ... Setting up mongodb-org-shell (8.0.15) ... Setting up mongodb-database-tools (100.13.0) ... Setting up mongodb-org-mongos (8.0.15) ... Setting up mongodb-org-database-tools-extra (8.0.15) ... Setting up mongodb-org-database (8.0.15) ... Setting up mongodb-org-tools (8.0.15) ... Setting up mongodb-org (8.0.15) ... Processing triggers for man-db (2.13.1-1) ... Created symlink '/etc/systemd/system/multi-user.target.wants/mongod.service' → '/usr/lib/systemd/system/mongod.service'. ✔️ Setup MongoDB 8.0 bash: line 23: MONGO_VERSION: unbound variable [ERROR] in line 1345: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)" ``` ### 🖼️ Additional context (optional). It also failed when I ran using the `Advance Settings`.
saavagebueno added the bug label 2025-11-20 05:26:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#2272