Mongodb LXC not working #106

Closed
opened 2026-02-04 16:39:09 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @przemoch-dev on GitHub (Nov 27, 2024).

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

Hello,

I'm trying to install MongoDB LXC using script.
On default settings, it creates the container, but the mognod service keeps failing.

root@mongodb:~# systemctl status mongod
× mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; preset: enabled)
     Active: failed (Result: signal) since Wed 2024-11-27 15:05:07 CET; 6min ago
   Duration: 261ms
       Docs: https://docs.mongodb.org/manual
    Process: 4181 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=killed, signal=ILL)
   Main PID: 4181 (code=killed, signal=ILL)
        CPU: 17ms

Nov 27 15:05:06 mongodb systemd[1]: Started mongod.service - MongoDB Database Server.
Nov 27 15:05:07 mongodb systemd[1]: mongod.service: Main process exited, code=killed, status=4/ILL
Nov 27 15:05:07 mongodb systemd[1]: mongod.service: Failed with result 'signal'.

I test both community and tteck version of the script. Both with the same result.

Here is the installation log:

root@proxmox:~#   bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/mongodb.sh)"
    __  ___                        ____  ____
   /  |/  /___  ____  ____ _____  / __ \/ __ )
  / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __  |
 / /  / / /_/ / / / / /_/ / /_/ / /_/ / /_/ /
/_/  /_/\____/_/ /_/\__, /\____/_____/_____/
                   /____/
Loading...
    __  ___                        ____  ____
   /  |/  /___  ____  ____ _____  / __ \/ __ )
  / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __  |
 / /  / / /_/ / / / / /_/ / /_/ / /_/ / /_/ /
/_/  /_/\____/_/ /_/\__, /\____/_____/_____/
                   /____/
    __  ___                        ____  ____
   /  |/  /___  ____  ____ _____  / __ \/ __ )
  / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __  |
 / /  / / /_/ / / / / /_/ / /_/ / /_/ / /_/ /
/_/  /_/\____/_/ /_/\__, /\____/_____/_____/
                   /____/
Using Default Settings
Using Distribution: debian
Using debian Version: 12
Using Container Type: 1
Using Root Password: Automatic Login
Using Container ID: 104
Using Hostname: mongodb
Using Disk Size: 4GB
Allocated Cores 1
Allocated Ram 512
Using Bridge: vmbr0
Using Static IP Address: dhcp
Using Gateway IP Address: Default
Using Apt-Cacher IP Address: Default
Disable IPv6: No
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server Address: Host
Using MAC Address: Default
Using VLAN Tag: Default
Enable Root SSH Access: No
Enable Verbose Mode: No
Creating a MongoDB LXC using the above default settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 104 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.55.112
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 140.82.121.4
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Installed MongoDB
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!

I also tried on Debian 11 and with higher memory and disk (1GB memory and 10 GB disk space) with the same result.

What settings are you currently utilizing?

  • Default Settings
  • Advanced Settings

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

Just a regular installation flow:

  1. Open proxmox shell
  2. Enter command bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/mongodb.sh)"
  3. Choose default settings
  4. Open mongo container shell
  5. Type systemctl status mongod
Originally created by @przemoch-dev on GitHub (Nov 27, 2024). ### Please verify that you have read and understood the guidelines. yes ### A clear and concise description of the issue. Hello, I'm trying to install MongoDB LXC using script. On default settings, it creates the container, but the mognod service keeps failing. ```bash root@mongodb:~# systemctl status mongod × mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; preset: enabled) Active: failed (Result: signal) since Wed 2024-11-27 15:05:07 CET; 6min ago Duration: 261ms Docs: https://docs.mongodb.org/manual Process: 4181 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=killed, signal=ILL) Main PID: 4181 (code=killed, signal=ILL) CPU: 17ms Nov 27 15:05:06 mongodb systemd[1]: Started mongod.service - MongoDB Database Server. Nov 27 15:05:07 mongodb systemd[1]: mongod.service: Main process exited, code=killed, status=4/ILL Nov 27 15:05:07 mongodb systemd[1]: mongod.service: Failed with result 'signal'. ``` I test both community and tteck version of the script. Both with the same result. Here is the installation log: ```bash root@proxmox:~# bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/mongodb.sh)" __ ___ ____ ____ / |/ /___ ____ ____ _____ / __ \/ __ ) / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __ | / / / / /_/ / / / / /_/ / /_/ / /_/ / /_/ / /_/ /_/\____/_/ /_/\__, /\____/_____/_____/ /____/ Loading... __ ___ ____ ____ / |/ /___ ____ ____ _____ / __ \/ __ ) / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __ | / / / / /_/ / / / / /_/ / /_/ / /_/ / /_/ / /_/ /_/\____/_/ /_/\__, /\____/_____/_____/ /____/ __ ___ ____ ____ / |/ /___ ____ ____ _____ / __ \/ __ ) / /|_/ / __ \/ __ \/ __ `/ __ \/ / / / __ | / / / / /_/ / / / / /_/ / /_/ / /_/ / /_/ / /_/ /_/\____/_/ /_/\__, /\____/_____/_____/ /____/ Using Default Settings Using Distribution: debian Using debian Version: 12 Using Container Type: 1 Using Root Password: Automatic Login Using Container ID: 104 Using Hostname: mongodb Using Disk Size: 4GB Allocated Cores 1 Allocated Ram 512 Using Bridge: vmbr0 Using Static IP Address: dhcp Using Gateway IP Address: Default Using Apt-Cacher IP Address: Default Disable IPv6: No Using Interface MTU Size: Default Using DNS Search Domain: Host Using DNS Server Address: Host Using MAC Address: Default Using VLAN Tag: Default Enable Root SSH Access: No Enable Verbose Mode: No Creating a MongoDB LXC using the above default settings ✓ Using local for Template Storage. ✓ Using local-lvm for Container Storage. ✓ Updated LXC Template List ✓ LXC Container 104 was successfully created. ✓ Started LXC Container ✓ Set up Container OS ✓ Network Connected: 192.168.55.112 ✓ IPv4 Internet Connected ✗ IPv6 Internet Not Connected ✓ DNS Resolved github.com to 140.82.121.4 ✓ Updated Container OS ✓ Installed Dependencies ✓ Installed MongoDB ✓ Customized Container ✓ Cleaned ✓ Completed Successfully! ``` I also tried on Debian 11 and with higher memory and disk (1GB memory and 10 GB disk space) with the same result. ### What settings are you currently utilizing? - [X] Default Settings - [X] Advanced Settings ### Which Linux distribution are you employing? Debian 12 ### If relevant, including screenshots or a code block can be helpful in clarifying the issue. _No response_ ### Please provide detailed steps to reproduce the issue. Just a regular installation flow: 1. Open proxmox shell 2. Enter command `bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/mongodb.sh)"` 3. Choose default settings 4. Open mongo container shell 5. Type `systemctl status mongod`
OVERLORD added the not a script issue label 2026-02-04 16:39:09 +03:00
Author
Owner

@tjcomserv commented on GitHub (Nov 27, 2024):

Hello @przemoch-dev, the installation log you sent shows you are using the old tteck repo. Have you tried with the new repo as this works fine for me.

https://community-scripts.github.io/ProxmoxVE/scripts?id=mongodb

@tjcomserv commented on GitHub (Nov 27, 2024): Hello @przemoch-dev, the installation log you sent shows you are using the old tteck repo. Have you tried with the new repo as this works fine for me. https://community-scripts.github.io/ProxmoxVE/scripts?id=mongodb
Author
Owner

@havardthom commented on GitHub (Nov 28, 2024):

Works fine here aswell

image

Does your cpu have AVX support? cat /proc/cpuinfo | grep avx

@havardthom commented on GitHub (Nov 28, 2024): Works fine here aswell ![image](https://github.com/user-attachments/assets/30dd447b-8ebd-4562-b213-f5e305981bdd) Does your cpu have AVX support? `cat /proc/cpuinfo | grep avx`
Author
Owner

@przemoch-dev commented on GitHub (Nov 28, 2024):

Hello @przemoch-dev, the installation log you sent shows you are using the old tteck repo. Have you tried with the new repo as this works fine for me.

https://community-scripts.github.io/ProxmoxVE/scripts?id=mongodb

Hello, I tried both with the same result.

Works fine here aswell

image

Does your cpu have AVX support? cat /proc/cpuinfo | grep avx

It seems it does not support it

root@proxmox:~# cat /proc/cpuinfo | grep avx
root@proxmox:~#

CPU is Intel Pentium CPU G4560

This seems to explain the cause of the problem. Thank you.

@przemoch-dev commented on GitHub (Nov 28, 2024): > Hello @przemoch-dev, the installation log you sent shows you are using the old tteck repo. Have you tried with the new repo as this works fine for me. > > https://community-scripts.github.io/ProxmoxVE/scripts?id=mongodb Hello, I tried both with the same result. > Works fine here aswell > > ![image](https://private-user-images.githubusercontent.com/34199185/390575383-30dd447b-8ebd-4562-b213-f5e305981bdd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzI3ODQwNDgsIm5iZiI6MTczMjc4Mzc0OCwicGF0aCI6Ii8zNDE5OTE4NS8zOTA1NzUzODMtMzBkZDQ0N2ItOGViZC00NTYyLWIyMTMtZjVlMzA1OTgxYmRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTI4VDA4NDkwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhMzg4MTk3MGRkODM2MGM0MmJiNjAxNmEwZmYxMzBkMWQ1MTVhZDVkYjMzNjQ4OWY1ZjZjNGVmODU0YzhlOWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qiWPaFl5l2fzePxk9-eLtEbkfu4E2nsWWm8M53xXQSI) > > Does your cpu have AVX support? `cat /proc/cpuinfo | grep avx` It seems it does not support it ```bash root@proxmox:~# cat /proc/cpuinfo | grep avx root@proxmox:~# ``` CPU is Intel Pentium CPU G4560 This seems to explain the cause of the problem. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#106