asylumexp / Proxmox

Proxmox VE Helper-Scripts - Ported to ARM64
https://pimox-scripts.com
MIT License
28 stars 1 forks source link

Unable to create frigate cleanly #64

Closed tom0010 closed 1 month ago

tom0010 commented 1 month ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

Script is failing:

 ✓ Cleaned
 \400 Parameter verification failed.rces   
memory: unable to hotplug memory: trying to change memory cgroup values: container not running

pct set <vmid> [OPTIONS]
 |
[ERROR] in line 67: exit code 0: while executing command pct set $CTID -memory 1024

What settings are you currently utilizing?

Default Settings

Which Linux distribution are you employing?

Debian 11

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

Running this command on proxmox shell: bash -c "$(wget -qLO - https://github.com/asylumexp/Proxmox/raw/main/ct/frigate.sh)" On Raspberry Pi 4B 8GB, using proxmox 8.2.4.

Default settings:

    ______     _             __
   / ____/____(_)___ _____ _/ /____
  / /_  / ___/ / __ `/ __ `/ __/ _ \
 / __/ / /  / / /_/ / /_/ / /_/  __/
/_/   /_/  /_/\__, /\__,_/\__/\___/
             /____/

Using Default Settings
Using Distribution: debian
Using debian Version: 11
Using Container Type: 0
Using Root Password: Automatic Login
Using Container ID: 100
Using Hostname: frigate
Using Disk Size: 20GB
Allocated Cores 4
Allocated Ram 4096
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 Frigate LXC using the above default settings

 ✓ Using local for Template Storage.
 ✓ Using local for Container Storage.
 ✓ LXC Container 100 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.0.50 xxxxxxxxxxxxxxxxxxxxxxx
 ✓ IPv4 Internet Connected
 ✓ IPv6 Internet Connected
 ✓ DNS Resolved github.com to 20.26.156.215
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Installed Python3 Dependencies
 ✓ Installed Node.js
 ✓ Installed go2rtc
 ✓ Set Up Hardware Acceleration
 ✓ Stop spinner to prevent segmentation fault
 ✓ Installed Frigate v0.13.2
 ✓ Installed Coral Object Detection Model
 ✓ Built Nginx
 ✓ Configured Services
 ✓ Customized Container
 ✓ Cleaned
 \400 Parameter verification failed.rces   
memory: unable to hotplug memory: trying to change memory cgroup values: container not running

pct set <vmid> [OPTIONS]
 |
[ERROR] in line 67: exit code 0: while executing command pct set $CTID -memory 1024

With advanced settings (verbose):

    ______     _             __
   / ____/____(_)___ _____ _/ /____
  / /_  / ___/ / __ `/ __ `/ __/ _ \
 / __/ / /  / / /_/ / /_/ / /_/  __/
/_/   /_/  /_/\__, /\__,_/\__/\___/
             /____/

Using Advanced Settings
Using Distribution: debian
Using debian Version: 11
Using Container Type: 0
Using Root Password: ********
Container ID: 103
Using Hostname: frigate2222
Using Disk Size: 20
Allocated Cores: 4
Allocated RAM: 3075
Using Bridge: vmbr0
Using IP Address: 192.168.0.103/24
Using Gateway IP Address: 192.168.0.1
Using APT-Cacher IP Address: Default
Disable IPv6: yes
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using Vlan: Default
Enable Root SSH Access: yes
Enable Verbose Mode: yes
Creating a Frigate LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using local for Container Storage.
 ✓ LXC Container 103 was successfully created.
 ✓ Started LXC Container
net.ipv6.conf.all.disable_ipv6 = 1
 ✓ Set up Container OS
 ✓ Network Connected: 192.168.0.103 
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 20.26.156.215
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 Packages [7,956 kB]
Get:5 http://deb.debian.org/debian bullseye/main Translation-en [6,236 kB]
Get:6 http://deb.debian.org/debian-security bullseye-security/main arm64 Packages [276 kB]
Get:7 http://deb.debian.org/debian-security bullseye-security/main Translation-en [180 kB]
Fetched 14.9 MB in 6s (2,309 kB/s)                                                                                                                                                                                 
Reading package lists... Done
 \N: Repository 'http://deb.debian.org/debian bullseye InRelease' changed its 'Version' value from '11.9' to '11.10'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
 |The following packages will be upgraded:
  base-files libgnutls30 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libnss-systemd libpam-systemd libsystemd0 libudev1 systemd systemd-sysv systemd-timesyncd udev
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,827 kB of archives.
After this operation, 24.6 kB disk space will be freed.
Get:1 http://deb.debian.org/debian bullseye/main arm64 base-files arm64 11.1+deb11u10 [70.2 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 libsystemd0 arm64 247.3-7+deb11u5 [355 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 systemd-timesyncd arm64 247.3-7+deb11u5 [130 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 libpam-systemd arm64 247.3-7+deb11u5 [275 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 libnss-systemd arm64 247.3-7+deb11u5 [196 kB]

....

 ✓ Built Nginx
 ✓ Configured Services
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
 -0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
 ✓ Cleaned
 -400 Parameter verification failed.rces   
memory: unable to hotplug memory: trying to change memory cgroup values: container not running

pct set <vmid> [OPTIONS]
 \
[ERROR] in line 67: exit code 0: while executing command pct set $CTID -memory 1024

root@pi:/home/tom# 

Please provide detailed steps to reproduce the issue.

Run frigate using bash -c "$(wget -qLO - https://github.com/asylumexp/Proxmox/raw/main/ct/frigate.sh)"

asylumexp commented 1 month ago

I'll add a fix for this later when I have got some time