FreePBX / issue-tracker

The unified FreePBX issue tracker.
https://www.freepbx.org
GNU General Public License v3.0
9 stars 1 forks source link

Installation failed (groupadd command not found) #216

Closed ramarajan222 closed 4 months ago

ramarajan222 commented 4 months ago

FreePBX Version

FreePBX 17

Issue Description

Installation failed due to groupadd command not found

$path variable not setting properly

` root@debian-pbx:/home/sangoma# sudo find / -name groupadd /usr/sbin/groupadd /usr/share/bash-completion/completions/groupadd root@debian-pbx:/home/sangoma# echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games root@debian-pbx:/home/sangoma#

`

root@debian-pbx:/home/sangoma# bash /tmp/sng_freepbx_debian_install.sh --dahdi Performing version check... Perfect! You're already running the latest version. 2024-06-05 15:18:57 - Starting installation. 2024-06-05 15:18:57 - Starting FreePBX 17 installation process for debian-pbx Linux debian-pbx 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux 2024-06-05 15:18:57 - Please refer to the /var/log/pbx/freepbx17-install-2024.06.05-15.18.55.log to know the process... 2024-06-05 15:18:57 - Making sure installation is same 2024-06-05 15:19:24 - Setting up default configuration 2024-06-05 15:19:25 - Setting up repositories 2024-06-05 15:21:37 - Setting up Sangoma repository 2024-06-05 15:21:37 - Making sure we allow only proper kernel upgrade and version installtion 2024-06-05 15:21:39 - Creating kernel check script to allow proper kernel upgrades 2024-06-05 15:21:39 - Updating repository 2024-06-05 15:22:04 - Installing required packages 2024-06-05 15:22:11 - Installing at .... 2024-06-05 15:22:18 - at installed successfully.... Installing Dahdi card support... 2024-06-05 15:22:23 - Setting up MongoDB 2024-06-05 15:22:23 - Setting up libfdk 2024-06-05 15:22:23 - Removing unnecessary packages 2024-06-05 15:22:24 - Execution time to install all the dependent packages : 207 s 2024-06-05 15:22:24 - Setting up folders and asterisk config 2024-06-05 15:22:24 - Installation failed at step Setting up folders and asterisk config. Please check log /var/log/pbx/freepbx17-install-2024.06.05-15.18.55.log for details. 2024-06-05 15:22:24 - Error at line: 854 exiting with code 127 (last command was: groupadd -r asterisk) 2024-06-05 15:22:24 - Exiting script

Operating Environment

FreePBX 17

Relevant log output

root@debian-pbx:/home/sangoma# bash /tmp/sng_freepbx_debian_install.sh --dahdi
Performing version check...
Perfect! You're already running the latest version.
2024-06-05 15:18:57 - Starting installation.
2024-06-05 15:18:57 -   Starting FreePBX 17 installation process for debian-pbx Linux debian-pbx 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
2024-06-05 15:18:57 -   Please refer to the /var/log/pbx/freepbx17-install-2024.06.05-15.18.55.log to know the process...
2024-06-05 15:18:57 - Making sure installation is same
2024-06-05 15:19:24 - Setting up default configuration
2024-06-05 15:19:25 - Setting up repositories
2024-06-05 15:21:37 - Setting up Sangoma repository
2024-06-05 15:21:37 - Making sure we allow only proper kernel upgrade and version installtion
2024-06-05 15:21:39 - Creating kernel check script to allow proper kernel upgrades
2024-06-05 15:21:39 - Updating repository
2024-06-05 15:22:04 - Installing required packages
2024-06-05 15:22:11 - Installing at ....
2024-06-05 15:22:18 - at installed successfully....
Installing Dahdi card support...
2024-06-05 15:22:23 - Setting up MongoDB
2024-06-05 15:22:23 - Setting up libfdk
2024-06-05 15:22:23 - Removing unnecessary packages
2024-06-05 15:22:24 - Execution time to install all the dependent packages : 207 s
2024-06-05 15:22:24 - Setting up folders and asterisk config
2024-06-05 15:22:24 - Installation failed at step Setting up folders and asterisk config. Please check log /var/log/pbx/freepbx17-install-2024.06.05-15.18.55.log for details.
2024-06-05 15:22:24 - Error at line: 854 exiting with code 127 (last command was: groupadd -r asterisk)
2024-06-05 15:22:24 - Exiting script
root@debian-pbx:/home/sangoma# which groupadd
root@debian-pbx:/home/sangoma# sudo find / -name groupadd
/usr/sbin/groupadd
/usr/share/bash-completion/completions/groupadd
root@debian-pbx:/home/sangoma# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
root@debian-pbx:/home/sangoma#
kguptasangoma commented 4 months ago

fixed in the latest script.