Freepbx instalation error #1588

Closed
opened 2026-02-05 01:41:21 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @lotohov on GitHub (Sep 6, 2025).

Have you read and understood the above guidelines?

yes

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

Freepbx

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve)

📝 Provide a clear and concise description of the issue.

[ERROR] in line 1353: 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.

run instalation script

Paste the full error output (if available).

[ERROR] in line 1353: 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).

No response

Originally created by @lotohov on GitHub (Sep 6, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Freepbx ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/freepbx.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve) ### 📝 Provide a clear and concise description of the issue. `[ERROR] in line 1353: 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. run instalation script ### ❌ Paste the full error output (if available). [ERROR] in line 1353: 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). _No response_
OVERLORD added the bugexternal labels 2026-02-05 01:41:21 +03:00
Author
Owner

@lotohov commented on GitHub (Sep 6, 2025):

freepbx look installed but i dont get annny acces info to login, i think it was generated but lost between scripts )

@lotohov commented on GitHub (Sep 6, 2025): freepbx look installed but i dont get annny acces info to login, i think it was generated but lost between scripts )
Author
Owner

@MickLesk commented on GitHub (Sep 6, 2025):

Post in verbose, or Screenshot. Your issue say nothing (its only the supressed subshell Error - its Always the Same Line in all Scripts)

@MickLesk commented on GitHub (Sep 6, 2025): Post in verbose, or Screenshot. Your issue say nothing (its only the supressed subshell Error - its Always the Same Line in all Scripts)
Author
Owner

@lotohov commented on GitHub (Sep 6, 2025):

`+ printf '%s %b\n' ' ✔️ ' '\033[1;92mCustomized LXC Container\033[m'
✔️ Customized LXC Container

source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os

msg_info "Installing FreePBX (Patience)"
curl -fsSL https://github.com/FreePBX/sng_freepbx_debian_install/raw/master/sng_freepbx_debian_install.sh -o /opt/sng_freepbx_debian_install.sh
$STD bash /opt/sng_freepbx_debian_install.sh
msg_ok "Installed FreePBX"

motd_ssh
customize

msg_info "Cleaning up"
rm /opt/sng_freepbx_debian_install.sh
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"'
✔️ Set up Container OS
✔️ Network Connected: 172.16.15.190
✔️ IPv4 Internet Connected
✖️ IPv6 Internet Not Connected
✔️ Git DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) git.community-scripts.org:(✔️ )
✔️ Updated Container OS
⠧ Installing FreePBX (Patience)
[ERROR] in line 159: exit code 0: while executing command "$@" > /dev/null 2>&1
⠋ Installing FreePBX (Patience)++ error_handler 1353 'lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"'
++ source /dev/stdin
+++ curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func
+++ POST_UPDATE_DONE=false
++ printf '\e[?25h'
++ local exit_code=0
++ local line_number=1353
++ local 'command=lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"'
++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m1353\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mlxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"\033[m'
++ post_update_to_api failed 'lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"'
++ command -v curl
++ '[' false = true ']'
++ local API_URL=http://api.community-scripts.org/upload/updatestatus
++ local status=failed
++ local 'error=lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"'
+++ cat
++ JSON_PAYLOAD='{
"status": "failed",
"error": "lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"",
"random_id": "5c2934d5-8fb8-42f3-82a5-ec8393b15dea"
}'
++
+++ curl -s -w '%{http_code}' -L -X POST http://api.community-scripts.org/upload/updatestatus --post301 --post302 -H 'Content-Type: application/json' -d '{
"status": "failed",
"error": "lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"",
"random_id": "5c2934d5-8fb8-42f3-82a5-ec8393b15dea"
}'
++ RESPONSE='invalid character '''$''' after object key:value pair
400'
++ POST_UPDATE_DONE=true
++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m1353\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mlxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"\033[m\n'

[ERROR] in line 1353: 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)"

  • api_exit_script
  • exit_code=100
  • '[' 100 -ne 0 ']'
  • case $exit_code in
  • post_update_to_api failed '100: Unexpected error in create_lxc.sh'
  • command -v curl
  • '[' true = true ']'
  • return 0`
@lotohov commented on GitHub (Sep 6, 2025): `+ printf '%s %b\n' ' ✔️ ' '\033[1;92mCustomized LXC Container\033[m' ✔️ Customized LXC Container + unset 'MSG_INFO_SHOWN[Customized LXC Container]' ++ curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/freepbx-install.sh + lxc-attach -n 108 -- bash -c '#!/usr/bin/env bash source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors setting_up_container network_check update_os msg_info "Installing FreePBX (Patience)" curl -fsSL https://github.com/FreePBX/sng_freepbx_debian_install/raw/master/sng_freepbx_debian_install.sh -o /opt/sng_freepbx_debian_install.sh $STD bash /opt/sng_freepbx_debian_install.sh msg_ok "Installed FreePBX" motd_ssh customize msg_info "Cleaning up" rm /opt/sng_freepbx_debian_install.sh $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned"' ✔️ Set up Container OS ✔️ Network Connected: 172.16.15.190 ✔️ IPv4 Internet Connected ✖️ IPv6 Internet Not Connected ✔️ Git DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) git.community-scripts.org:(✔️ ) ✔️ Updated Container OS ⠧ Installing FreePBX (Patience) [ERROR] in line 159: exit code 0: while executing command "$@" > /dev/null 2>&1 ⠋ Installing FreePBX (Patience)++ error_handler 1353 'lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"' ++ source /dev/stdin +++ curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func +++ POST_UPDATE_DONE=false ++ printf '\e[?25h' ++ local exit_code=0 ++ local line_number=1353 ++ local 'command=lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"' ++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m1353\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mlxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"\033[m' ++ post_update_to_api failed 'lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"' ++ command -v curl ++ '[' false = true ']' ++ local API_URL=http://api.community-scripts.org/upload/updatestatus ++ local status=failed ++ local 'error=lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"' +++ cat ++ JSON_PAYLOAD='{ "status": "failed", "error": "lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"", "random_id": "5c2934d5-8fb8-42f3-82a5-ec8393b15dea" }' ++ [[ yes == \y\e\s ]] +++ curl -s -w '%{http_code}' -L -X POST http://api.community-scripts.org/upload/updatestatus --post301 --post302 -H 'Content-Type: application/json' -d '{ "status": "failed", "error": "lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"", "random_id": "5c2934d5-8fb8-42f3-82a5-ec8393b15dea" }' ++ RESPONSE='invalid character '\''$'\'' after object key:value pair 400' ++ POST_UPDATE_DONE=true ++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m1353\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mlxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"\033[m\n' [ERROR] in line 1353: 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)" + api_exit_script + exit_code=100 + '[' 100 -ne 0 ']' + case $exit_code in + post_update_to_api failed '100: Unexpected error in create_lxc.sh' + command -v curl + '[' true = true ']' + return 0`
Author
Owner

@MickLesk commented on GitHub (Sep 6, 2025):

Whats that? An set?

We deliver verbose mode in whiptail, thats enough. I dont see anything relevant Here

@MickLesk commented on GitHub (Sep 6, 2025): Whats that? An set? We deliver verbose mode in whiptail, thats enough. I dont see anything relevant Here
Author
Owner

@lotohov commented on GitHub (Sep 7, 2025):

2025-09-07 11:11:04 - libsnmp40 installed successfully....
2025-09-07 11:11:04 - ###############################
2025-09-07 11:11:04 - ###############################
2025-09-07 11:11:04 - Installing libtonezone ....
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libtonezone
2025-09-07 11:11:04 - Exiting script

[ERROR] in line 18: exit code 0: while executing command $STD bash /opt/sng_freepbx_debian_install.sh

[ERROR] in line 1353: 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)"

@lotohov commented on GitHub (Sep 7, 2025): 2025-09-07 11:11:04 - libsnmp40 installed successfully.... 2025-09-07 11:11:04 - ############################### 2025-09-07 11:11:04 - ############################### 2025-09-07 11:11:04 - Installing libtonezone .... Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package libtonezone 2025-09-07 11:11:04 - Exiting script [ERROR] in line 18: exit code 0: while executing command $STD bash /opt/sng_freepbx_debian_install.sh [ERROR] in line 1353: 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)"
Author
Owner

@MickLesk commented on GitHub (Sep 7, 2025):

Allright, i think you should report this to freepbx himself, its breaking on there own installer "sng_freepbx_debian_install" with missing / undefined package "libtonezone" (never heard this package)

@MickLesk commented on GitHub (Sep 7, 2025): Allright, i think you should report this to freepbx himself, its breaking on there own installer "sng_freepbx_debian_install" with missing / undefined package "libtonezone" (never heard this package)
Author
Owner

@MickLesk commented on GitHub (Sep 23, 2025):

Install working again

Image Image
@MickLesk commented on GitHub (Sep 23, 2025): Install working again <img width="868" height="276" alt="Image" src="https://github.com/user-attachments/assets/2d64009f-0254-46f5-914f-5859e220f0e6" /> <img width="1497" height="639" alt="Image" src="https://github.com/user-attachments/assets/3e6556c7-e2fd-4f17-9de8-64b89e577e7c" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1588