Unifi script does not work "./unifi.sh: line 31: variables: command not found" #22

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

Originally created by @balk77 on GitHub (Nov 9, 2024).

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

When I run bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/unifi.sh)" (per instructions) nothing happens; I get dropped to the prompt after some seconds. When the script is downloaded and exectuted locally I am getting this:

   __  __      _ _____ 
  / / / /__   (_) __(_)
 / / / / __ \/ / /_/ / 
/ /_/ / / / / / __/ /  
\____/_/ /_/_/_/ /_/   
 
Loading...
./unifi.sh: line 31: variables: command not found
./unifi.sh: line 32: color: command not found
./unifi.sh: line 33: catch_errors: command not found
./unifi.sh: line 69: start: command not found
./unifi.sh: line 70: build_container: command not found
./unifi.sh: line 71: description: command not found
./unifi.sh: line 73: msg_ok: command not found
Unifi should be reachable by going to the following URL.
         https://:8443 

(and the LXC is not created).

What settings are you currently utilizing?

Default 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.

PVE 8.2.7 / 6.8.12-3, CPU with AVX support

Originally created by @balk77 on GitHub (Nov 9, 2024). ### Please verify that you have read and understood the guidelines. yes ### A clear and concise description of the issue. When I run `bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/unifi.sh)"` (per instructions) nothing happens; I get dropped to the prompt after some seconds. When the script is downloaded and exectuted locally I am getting this: ``` __ __ _ _____ / / / /__ (_) __(_) / / / / __ \/ / /_/ / / /_/ / / / / / __/ / \____/_/ /_/_/_/ /_/ Loading... ./unifi.sh: line 31: variables: command not found ./unifi.sh: line 32: color: command not found ./unifi.sh: line 33: catch_errors: command not found ./unifi.sh: line 69: start: command not found ./unifi.sh: line 70: build_container: command not found ./unifi.sh: line 71: description: command not found ./unifi.sh: line 73: msg_ok: command not found Unifi should be reachable by going to the following URL. https://:8443 ``` (and the LXC is not created). ### What settings are you currently utilizing? Default 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. PVE 8.2.7 / 6.8.12-3, CPU with AVX support
Author
Owner

@Mellowlynx commented on GitHub (Nov 9, 2024):

Runs fine here:

   __  __      _ _____
  / / / /__   (_) __(_)
 / / / / __ \/ / /_/ /
/ /_/ / / / / / __/ /
\____/_/ /_/_/_/ /_/

Using Default Settings
Using Distribution: debian
Using debian Version: 12
Using Container Type: 1
Using Root Password: Automatic Login
Using Container ID: 121
Using Hostname: unifi
Using Disk Size: 8GB
Allocated Cores 2
Allocated Ram 2048
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 Unifi LXC using the above default settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 121 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: 10.0.0.209
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 140.82.121.4
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Installed Eclipse Temurin JRE
 ✓ Installed MongoDB
 ✓ Installed UniFi Network Server
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!

Unifi should be reachable by going to the following URL.
         https://10.0.0.209:8443
@Mellowlynx commented on GitHub (Nov 9, 2024): Runs fine here: ``` __ __ _ _____ / / / /__ (_) __(_) / / / / __ \/ / /_/ / / /_/ / / / / / __/ / \____/_/ /_/_/_/ /_/ Using Default Settings Using Distribution: debian Using debian Version: 12 Using Container Type: 1 Using Root Password: Automatic Login Using Container ID: 121 Using Hostname: unifi Using Disk Size: 8GB Allocated Cores 2 Allocated Ram 2048 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 Unifi LXC using the above default settings ✓ Using local for Template Storage. ✓ Using local-lvm for Container Storage. ✓ Updated LXC Template List ✓ LXC Container 121 was successfully created. ✓ Started LXC Container ✓ Set up Container OS ✓ Network Connected: 10.0.0.209 ✓ IPv4 Internet Connected ✗ IPv6 Internet Not Connected ✓ DNS Resolved github.com to 140.82.121.4 ✓ Updated Container OS ✓ Installed Dependencies ✓ Installed Eclipse Temurin JRE ✓ Installed MongoDB ✓ Installed UniFi Network Server ✓ Customized Container ✓ Cleaned ✓ Completed Successfully! Unifi should be reachable by going to the following URL. https://10.0.0.209:8443 ```
Author
Owner

@balk77 commented on GitHub (Nov 9, 2024):

strange, I tried another script (PhotoPrism) which also does not run. Not sure what I did on my system.....

@balk77 commented on GitHub (Nov 9, 2024): strange, I tried another script (PhotoPrism) which also does not run. Not sure what I did on my system.....
Author
Owner

@balk77 commented on GitHub (Nov 9, 2024):

okay, nevermind. My DNS was broken.

@balk77 commented on GitHub (Nov 9, 2024): okay, nevermind. My DNS was broken.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#22