FreePBX / sng_freepbx_debian_install

FreePBX 17 Installation Script
100 stars 35 forks source link

[bug]: Does not install on debian 12 #31

Closed TonyHoyle closed 4 months ago

TonyHoyle commented 5 months ago

FreePBX Version

FreePBX 17

Issue Description

Install script run on minimal install of debian 12 (bookworm) updated to latest today.

Terminates with an error, does not install. `

Operating Environment

cat /etc/issue

Debian GNU/Linux 12 \n \l

cat /etc/apt/sources.list

deb http://deb.debian.org/debian bookworm main contrib

deb http://deb.debian.org/debian bookworm-updates main contrib

deb http://security.debian.org bookworm-security main contrib

Script downloaded today (2nd May)

Relevant log output

Configuration file '/etc/asterisk/smdi.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
 ==> Using new file as you requested.
Installing new version of config file /etc/asterisk/smdi.conf ...

Configuration file '/etc/asterisk/statsd.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
 ==> Using new file as you requested.
Installing new version of config file /etc/asterisk/statsd.conf ...
2024-05-02 14:57:51 - freepbx17 installed successfully....
2024-05-02 14:57:51 - ############################### 
2024-05-02 14:57:51 - Installing Sysadmin module
Updating tables sysadmin_options, sysadmin_update_log, sysadmin_fail2ban, sysadmin_expiry_notifications...Done
Sangoma PnP Server activated
Generating CSS...Done
Module sysadmin version 17.0.1.62 successfully installed
Updating Hooks...Done
Chowning directories...Done
2024-05-02 14:58:01 - Installing sangomaconnectmodule
Updating tables sangomaconnect_user_pre_setup, sangomaconnect_user_setup, sangomaconnect_user_device, sangomaconnect_sngphone_sms_routing, sangomaconnect_phone_locations, sangomaconnect_account_phone_locations...Done
No PBXID file found, not registering module to cloud.
Checking module cloud activation status
System not activated, cannot perform cloud activation
Initializing node dependencies
Running installation..
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.

up to date, audited 90 packages in 645ms

15 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Finished updating libraries!

In Network.class.php line 141:

  Undefined array key "config"  

moduleadmin [-f|--force] [-d|--debug] [--edge] [--ignorecache] [--stable] [--color] [--skipchown] [-e|--autoenable] [--skipdisabled] [--snapshot SNAPSHOT] [--format FORMAT] [-R|--repo REPO] [-t|--tag TAG] [--skipbreakingcheck] [--sendemail] [--onlystdout] [--] [<args>...]

2024-05-02 14:58:03 - ****** INSTALLATION FAILED *****
2024-05-02 14:58:03 - Installation failed at step Installing sangomaconnectmodule. Please check log /var/log/pbx/freepbx17-install-2024.05.02-13.37.37.log for details.
2024-05-02 14:58:03 - Error at line: 699 exiting with code 2 (last command was: fwconsole ma install sangomaconnect >> $log 2>&1)
2024-05-02 14:58:03 - Exiting script
kguptasangoma commented 4 months ago

Hi @TonyHoyle please restart the script execution. thanks

kguptasangoma commented 4 months ago

we have fixed the issue in the sangomaconnect or latest freepbx17 rpm so if you are done with script installation then just update your sangomaconnect module or if you like to re-try then remove your freepbx17 rpm and try again. thanks