FreePBX / sng_freepbx_debian_install

FreePBX 17 Installation Script
125 stars 42 forks source link

[bug]: Installation script requires multiple runs to complete #136

Open joele89 opened 4 days ago

joele89 commented 4 days ago

FreePBX Version

FreePBX 16

Issue Description

It has taken 3 attempts at running the script to get it to complete on 3 separate systems for me.

Operating Environment

Debian 12

Relevant log output

No response

JoseGoncalves commented 3 days ago

@joele89 If you want that someone will take a look into your issue, you need to provide more details. What happened when it failed on the first and second attempts? You should also provide relevant snippets of the log file on the failed attempts.

joele89 commented 3 days ago

First Run

Console output:

admin@FreePBX:/$ sudo bash /tmp/sng_freepbx_debian_install.sh
[sudo] password for admin:
2024-10-29 22:58:13 - Performing version check...
Perfect! You're already running the latest version.
2024-10-29 22:58:14 - Starting installation.
2024-10-29 22:58:14 -   Starting FreePBX 17 installation process for FreePBX Linux FreePBX 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
2024-10-29 22:58:14 -   Please refer to the /var/log/pbx/freepbx17-install-2024.10.29-22.58.13.log to know the process...
2024-10-29 22:58:14 - Making sure installation is sane
2024-10-29 22:58:17 - Setting up default configuration
2024-10-29 22:58:17 - Installing software-properties-common ....
2024-10-29 22:58:27 - Exiting script
admin@FreePBX:/$

Log: freepbx17-install-2024.10.29-22.58.13.log

joele89 commented 3 days ago

Second Run:

Console output:

admin@FreePBX:/$ sudo bash /tmp/sng_freepbx_debian_install.sh
2024-10-29 23:04:05 - Performing version check...
Perfect! You're already running the latest version.
2024-10-29 23:04:06 - Starting installation.
2024-10-29 23:04:06 -   Starting FreePBX 17 installation process for FreePBX Linux FreePBX 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
2024-10-29 23:04:06 -   Please refer to the /var/log/pbx/freepbx17-install-2024.10.29-23.04.05.log to know the process...
2024-10-29 23:04:06 - Making sure installation is sane
2024-10-29 23:04:14 - Setting up default configuration
2024-10-29 23:04:15 - Setting up repositories
2024-10-29 23:04:34 - Setting up Sangoma repository
2024-10-29 23:04:35 -  You are installing FreePBX 17 on kernel 6.1.0-26.
2024-10-29 23:04:35 -  Please note that if you have plan to use DAHDI then:
2024-10-29 23:04:35 -  Ensure that you either choose DAHDI option so script will configure DAHDI
2024-10-29 23:04:35 -                                   OR
2024-10-29 23:04:35 -  Ensure you are running a DAHDI supported Kernel. Current latest supported kernel version is 6.1.0-25.
2024-10-29 23:04:35 - Updating repository
2024-10-29 23:04:38 - Installing required packages
2024-10-29 23:04:38 - Installing redis-server ....
2024-10-29 23:04:42 - redis-server installed successfully....
2024-10-29 23:04:42 - Installing libsnmp-dev ....
2024-10-29 23:04:54 - libsnmp-dev installed successfully....
2024-10-29 23:04:54 - Installing libtonezone-dev ....
2024-10-29 23:04:56 - libtonezone-dev installed successfully....
2024-10-29 23:04:56 - Installing libpq-dev ....
2024-10-29 23:04:58 - libpq-dev installed successfully....
2024-10-29 23:04:58 - Installing liblua5.2-dev ....
2024-10-29 23:05:10 - liblua5.2-dev installed successfully....
2024-10-29 23:05:10 - Installing libpri-dev ....
2024-10-29 23:05:11 - libpri-dev installed successfully....
2024-10-29 23:05:11 - Installing libbluetooth-dev ....
2024-10-29 23:05:13 - libbluetooth-dev installed successfully....
2024-10-29 23:05:13 - Installing libunbound-dev ....
2024-10-29 23:05:15 - libunbound-dev installed successfully....
2024-10-29 23:05:15 - Installing libsybdb5 ....
2024-10-29 23:05:17 - libsybdb5 installed successfully....
2024-10-29 23:05:17 - Installing libspeexdsp-dev ....
2024-10-29 23:05:19 - libspeexdsp-dev installed successfully....
2024-10-29 23:05:19 - Installing libiksemel-dev ....
2024-10-29 23:05:21 - libiksemel-dev installed successfully....
2024-10-29 23:05:21 - Installing libresample1-dev ....
2024-10-29 23:05:22 - libresample1-dev installed successfully....
2024-10-29 23:05:22 - Installing libgmime-3.0-dev ....
2024-10-29 23:05:27 - libgmime-3.0-dev installed successfully....
2024-10-29 23:05:27 - Installing libc-client2007e-dev ....
2024-10-29 23:05:31 - libc-client2007e-dev installed successfully....
2024-10-29 23:05:31 - Installing dpkg-dev ....
2024-10-29 23:05:37 - dpkg-dev installed successfully....
2024-10-29 23:05:37 - Installing ghostscript ....
2024-10-29 23:05:49 - ghostscript installed successfully....
2024-10-29 23:05:49 - Installing libtiff-tools ....
2024-10-29 23:05:51 - libtiff-tools installed successfully....
2024-10-29 23:05:51 - Installing iptables-persistent ....
2024-10-29 23:05:56 - iptables-persistent installed successfully....
2024-10-29 23:05:56 - Installing net-tools ....
2024-10-29 23:05:59 - net-tools installed successfully....
2024-10-29 23:05:59 - Installing rsyslog ....
2024-10-29 23:06:02 - rsyslog installed successfully....
2024-10-29 23:06:02 - Installing nmap ....
2024-10-29 23:06:06 - nmap installed successfully....
2024-10-29 23:06:06 - Installing apache2 ....
2024-10-29 23:06:16 - apache2 installed successfully....
2024-10-29 23:06:16 - Installing zip ....
2024-10-29 23:06:18 - zip installed successfully....
2024-10-29 23:06:18 - Installing incron ....
2024-10-29 23:06:22 - incron installed successfully....
2024-10-29 23:06:22 - Installing vim ....
2024-10-29 23:06:26 - vim installed successfully....
2024-10-29 23:06:26 - Installing mariadb-server ....
2024-10-29 23:06:41 - mariadb-server installed successfully....
2024-10-29 23:06:41 - Installing bison ....
2024-10-29 23:06:43 - bison installed successfully....
2024-10-29 23:06:43 - Installing flex ....
2024-10-29 23:06:45 - flex installed successfully....
2024-10-29 23:06:45 - Installing flite ....
2024-10-29 23:06:51 - flite installed successfully....
2024-10-29 23:06:51 - Installing php8.2 ....
2024-10-29 23:07:14 - php8.2 installed successfully....
2024-10-29 23:07:14 - Installing php8.2-curl ....
2024-10-29 23:07:17 - php8.2-curl installed successfully....
2024-10-29 23:07:17 - Installing php8.2-zip ....
2024-10-29 23:07:22 - php8.2-zip installed successfully....
2024-10-29 23:07:22 - Installing php8.2-redis ....
2024-10-29 23:07:24 - php8.2-redis installed successfully....
2024-10-29 23:07:24 - Installing php8.2-mysql ....
2024-10-29 23:07:29 - php8.2-mysql installed successfully....
2024-10-29 23:07:29 - Installing php8.2-gd ....
2024-10-29 23:07:32 - php8.2-gd installed successfully....
2024-10-29 23:07:32 - Installing php8.2-mbstring ....
2024-10-29 23:07:35 - php8.2-mbstring installed successfully....
2024-10-29 23:07:35 - Installing php8.2-intl ....
2024-10-29 23:07:39 - php8.2-intl installed successfully....
2024-10-29 23:07:39 - Installing php8.2-xml ....
2024-10-29 23:07:45 - php8.2-xml installed successfully....
2024-10-29 23:07:45 - Installing php8.2-bz2 ....
2024-10-29 23:07:48 - php8.2-bz2 installed successfully....
2024-10-29 23:07:48 - Installing php8.2-ldap ....
2024-10-29 23:07:51 - php8.2-ldap installed successfully....
2024-10-29 23:07:51 - Installing php8.2-sqlite3 ....
2024-10-29 23:07:54 - php8.2-sqlite3 installed successfully....
2024-10-29 23:07:54 - Installing php8.2-bcmath ....
2024-10-29 23:07:56 - php8.2-bcmath installed successfully....
2024-10-29 23:07:56 - Installing php8.2-soap ....
2024-10-29 23:07:59 - php8.2-soap installed successfully....
2024-10-29 23:07:59 - Installing php8.2-ssh2 ....
2024-10-29 23:08:01 - php8.2-ssh2 installed successfully....
2024-10-29 23:08:01 - Installing php-pear ....
2024-10-29 23:08:03 - php-pear installed successfully....
2024-10-29 23:08:03 - Installing curl ....
2024-10-29 23:08:05 - curl installed successfully....
2024-10-29 23:08:06 - Installing sox ....
2024-10-29 23:08:09 - sox installed successfully....
2024-10-29 23:08:09 - Installing libncurses5-dev ....
2024-10-29 23:08:10 - libncurses5-dev installed successfully....
2024-10-29 23:08:10 - Installing mpg123 ....
2024-10-29 23:08:13 - mpg123 installed successfully....
2024-10-29 23:08:13 - Installing libxml2-dev ....
2024-10-29 23:08:18 - libxml2-dev installed successfully....
2024-10-29 23:08:18 - Installing libnewt-dev ....
2024-10-29 23:08:21 - libnewt-dev installed successfully....
2024-10-29 23:08:21 - Installing sqlite3 ....
2024-10-29 23:08:23 - sqlite3 installed successfully....
2024-10-29 23:08:23 - Installing libsqlite3-dev ....
2024-10-29 23:08:25 - libsqlite3-dev installed successfully....
2024-10-29 23:08:25 - Installing git ....
2024-10-29 23:08:32 - git installed successfully....
2024-10-29 23:08:32 - Installing unixodbc-dev ....
2024-10-29 23:08:34 - unixodbc-dev installed successfully....
2024-10-29 23:08:34 - Installing uuid ....
2024-10-29 23:08:36 - uuid installed successfully....
2024-10-29 23:08:37 - Installing libasound2-dev ....
2024-10-29 23:08:38 - libasound2-dev installed successfully....
2024-10-29 23:08:38 - Installing libogg-dev ....
2024-10-29 23:08:40 - libogg-dev installed successfully....
2024-10-29 23:08:40 - Installing libvorbis-dev ....
2024-10-29 23:08:47 - libvorbis-dev installed successfully....
2024-10-29 23:08:47 - Installing libcurl4-openssl-dev ....
2024-10-29 23:08:49 - libcurl4-openssl-dev installed successfully....
2024-10-29 23:08:49 - Installing odbc-mariadb ....
2024-10-29 23:08:52 - odbc-mariadb installed successfully....
2024-10-29 23:08:52 - Installing libical-dev ....
2024-10-29 23:08:54 - libical-dev installed successfully....
2024-10-29 23:08:54 - Installing libneon27-dev ....
2024-10-29 23:08:57 - libneon27-dev installed successfully....
2024-10-29 23:08:57 - Installing libsrtp2-dev ....
2024-10-29 23:08:59 - libsrtp2-dev installed successfully....
2024-10-29 23:08:59 - Installing libspandsp-dev ....
2024-10-29 23:09:04 - libspandsp-dev installed successfully....
2024-10-29 23:09:04 - Installing subversion ....
2024-10-29 23:09:07 - subversion installed successfully....
2024-10-29 23:09:07 - Installing python-dev-is-python3 ....
2024-10-29 23:09:13 - python-dev-is-python3 installed successfully....
2024-10-29 23:09:13 - Installing unixodbc ....
2024-10-29 23:09:16 - unixodbc installed successfully....
2024-10-29 23:09:16 - Installing libjansson-dev ....
2024-10-29 23:09:17 - libjansson-dev installed successfully....
2024-10-29 23:09:17 - Installing nodejs ....
2024-10-29 23:09:23 - nodejs installed successfully....
2024-10-29 23:09:23 - Installing npm ....
2024-10-29 23:10:03 - Exiting script
admin@FreePBX:/$

Log: freepbx17-install-2024.10.29-23.04.05.log

JoseGoncalves commented 3 days ago

The first run failure cause seems an issue with the Debian mirror that you are using (mirror.aarnet.edu.au). Have you tried other Australian Debian mirrors (e.g. ftp.au.debian.org) ?

JoseGoncalves commented 3 days ago

Same for the second failure... I would try other(s) Debian mirror(s).

joele89 commented 3 days ago

Third run (appears finished?) Console output:

admin@FreePBX:/$ sudo bash /tmp/sng_freepbx_debian_install.sh
[sudo] password for admin:
2024-10-29 22:58:13 - Performing version check...
Perfect! You're already running the latest version.
2024-10-29 22:58:14 - Starting installation.
2024-10-29 22:58:14 -   Starting FreePBX 17 installation process for FreePBX Linux FreePBX 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
2024-10-29 22:58:14 -   Please refer to the /var/log/pbx/freepbx17-install-2024.10.29-22.58.13.log to know the process...
2024-10-29 22:58:14 - Making sure installation is sane
2024-10-29 22:58:17 - Setting up default configuration
2024-10-29 22:58:17 - Installing software-properties-common ....
2024-10-29 22:58:27 - Exiting script
admin@FreePBX:/$ sudo bash /tmp/sng_freepbx_debian_install.sh
2024-10-29 23:04:05 - Performing version check...
Perfect! You're already running the latest version.
2024-10-29 23:04:06 - Starting installation.
2024-10-29 23:04:06 -   Starting FreePBX 17 installation process for FreePBX Linux FreePBX 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
2024-10-29 23:04:06 -   Please refer to the /var/log/pbx/freepbx17-install-2024.10.29-23.04.05.log to know the process...
2024-10-29 23:04:06 - Making sure installation is sane
2024-10-29 23:04:14 - Setting up default configuration
2024-10-29 23:04:15 - Setting up repositories
2024-10-29 23:04:34 - Setting up Sangoma repository
2024-10-29 23:04:35 -  You are installing FreePBX 17 on kernel 6.1.0-26.
2024-10-29 23:04:35 -  Please note that if you have plan to use DAHDI then:
2024-10-29 23:04:35 -  Ensure that you either choose DAHDI option so script will configure DAHDI
2024-10-29 23:04:35 -                                   OR
2024-10-29 23:04:35 -  Ensure you are running a DAHDI supported Kernel. Current latest supported kernel version is 6.1.0-25.
2024-10-29 23:04:35 - Updating repository
2024-10-29 23:04:38 - Installing required packages
2024-10-29 23:04:38 - Installing redis-server ....
2024-10-29 23:04:42 - redis-server installed successfully....
2024-10-29 23:04:42 - Installing libsnmp-dev ....
2024-10-29 23:04:54 - libsnmp-dev installed successfully....
2024-10-29 23:04:54 - Installing libtonezone-dev ....
2024-10-29 23:04:56 - libtonezone-dev installed successfully....
2024-10-29 23:04:56 - Installing libpq-dev ....
2024-10-29 23:04:58 - libpq-dev installed successfully....
2024-10-29 23:04:58 - Installing liblua5.2-dev ....
2024-10-29 23:05:10 - liblua5.2-dev installed successfully....
2024-10-29 23:05:10 - Installing libpri-dev ....
2024-10-29 23:05:11 - libpri-dev installed successfully....
2024-10-29 23:05:11 - Installing libbluetooth-dev ....
2024-10-29 23:05:13 - libbluetooth-dev installed successfully....
2024-10-29 23:05:13 - Installing libunbound-dev ....
2024-10-29 23:05:15 - libunbound-dev installed successfully....
2024-10-29 23:05:15 - Installing libsybdb5 ....
2024-10-29 23:05:17 - libsybdb5 installed successfully....
2024-10-29 23:05:17 - Installing libspeexdsp-dev ....
2024-10-29 23:05:19 - libspeexdsp-dev installed successfully....
2024-10-29 23:05:19 - Installing libiksemel-dev ....
2024-10-29 23:05:21 - libiksemel-dev installed successfully....
2024-10-29 23:05:21 - Installing libresample1-dev ....
2024-10-29 23:05:22 - libresample1-dev installed successfully....
2024-10-29 23:05:22 - Installing libgmime-3.0-dev ....
2024-10-29 23:05:27 - libgmime-3.0-dev installed successfully....
2024-10-29 23:05:27 - Installing libc-client2007e-dev ....
2024-10-29 23:05:31 - libc-client2007e-dev installed successfully....
2024-10-29 23:05:31 - Installing dpkg-dev ....
2024-10-29 23:05:37 - dpkg-dev installed successfully....
2024-10-29 23:05:37 - Installing ghostscript ....
2024-10-29 23:05:49 - ghostscript installed successfully....
2024-10-29 23:05:49 - Installing libtiff-tools ....
2024-10-29 23:05:51 - libtiff-tools installed successfully....
2024-10-29 23:05:51 - Installing iptables-persistent ....
2024-10-29 23:05:56 - iptables-persistent installed successfully....
2024-10-29 23:05:56 - Installing net-tools ....
2024-10-29 23:05:59 - net-tools installed successfully....
2024-10-29 23:05:59 - Installing rsyslog ....
2024-10-29 23:06:02 - rsyslog installed successfully....
2024-10-29 23:06:02 - Installing nmap ....
2024-10-29 23:06:06 - nmap installed successfully....
2024-10-29 23:06:06 - Installing apache2 ....
2024-10-29 23:06:16 - apache2 installed successfully....
2024-10-29 23:06:16 - Installing zip ....
2024-10-29 23:06:18 - zip installed successfully....
2024-10-29 23:06:18 - Installing incron ....
2024-10-29 23:06:22 - incron installed successfully....
2024-10-29 23:06:22 - Installing vim ....
2024-10-29 23:06:26 - vim installed successfully....
2024-10-29 23:06:26 - Installing mariadb-server ....
2024-10-29 23:06:41 - mariadb-server installed successfully....
2024-10-29 23:06:41 - Installing bison ....
2024-10-29 23:06:43 - bison installed successfully....
2024-10-29 23:06:43 - Installing flex ....
2024-10-29 23:06:45 - flex installed successfully....
2024-10-29 23:06:45 - Installing flite ....
2024-10-29 23:06:51 - flite installed successfully....
2024-10-29 23:06:51 - Installing php8.2 ....
2024-10-29 23:07:14 - php8.2 installed successfully....
2024-10-29 23:07:14 - Installing php8.2-curl ....
2024-10-29 23:07:17 - php8.2-curl installed successfully....
2024-10-29 23:07:17 - Installing php8.2-zip ....
2024-10-29 23:07:22 - php8.2-zip installed successfully....
2024-10-29 23:07:22 - Installing php8.2-redis ....
2024-10-29 23:07:24 - php8.2-redis installed successfully....
2024-10-29 23:07:24 - Installing php8.2-mysql ....
2024-10-29 23:07:29 - php8.2-mysql installed successfully....
2024-10-29 23:07:29 - Installing php8.2-gd ....
2024-10-29 23:07:32 - php8.2-gd installed successfully....
2024-10-29 23:07:32 - Installing php8.2-mbstring ....
2024-10-29 23:07:35 - php8.2-mbstring installed successfully....
2024-10-29 23:07:35 - Installing php8.2-intl ....
2024-10-29 23:07:39 - php8.2-intl installed successfully....
2024-10-29 23:07:39 - Installing php8.2-xml ....
2024-10-29 23:07:45 - php8.2-xml installed successfully....
2024-10-29 23:07:45 - Installing php8.2-bz2 ....
2024-10-29 23:07:48 - php8.2-bz2 installed successfully....
2024-10-29 23:07:48 - Installing php8.2-ldap ....
2024-10-29 23:07:51 - php8.2-ldap installed successfully....
2024-10-29 23:07:51 - Installing php8.2-sqlite3 ....
2024-10-29 23:07:54 - php8.2-sqlite3 installed successfully....
2024-10-29 23:07:54 - Installing php8.2-bcmath ....
2024-10-29 23:07:56 - php8.2-bcmath installed successfully....
2024-10-29 23:07:56 - Installing php8.2-soap ....
2024-10-29 23:07:59 - php8.2-soap installed successfully....
2024-10-29 23:07:59 - Installing php8.2-ssh2 ....
2024-10-29 23:08:01 - php8.2-ssh2 installed successfully....
2024-10-29 23:08:01 - Installing php-pear ....
2024-10-29 23:08:03 - php-pear installed successfully....
2024-10-29 23:08:03 - Installing curl ....
2024-10-29 23:08:05 - curl installed successfully....
2024-10-29 23:08:06 - Installing sox ....
2024-10-29 23:08:09 - sox installed successfully....
2024-10-29 23:08:09 - Installing libncurses5-dev ....
2024-10-29 23:08:10 - libncurses5-dev installed successfully....
2024-10-29 23:08:10 - Installing mpg123 ....
2024-10-29 23:08:13 - mpg123 installed successfully....
2024-10-29 23:08:13 - Installing libxml2-dev ....
2024-10-29 23:08:18 - libxml2-dev installed successfully....
2024-10-29 23:08:18 - Installing libnewt-dev ....
2024-10-29 23:08:21 - libnewt-dev installed successfully....
2024-10-29 23:08:21 - Installing sqlite3 ....
2024-10-29 23:08:23 - sqlite3 installed successfully....
2024-10-29 23:08:23 - Installing libsqlite3-dev ....
2024-10-29 23:08:25 - libsqlite3-dev installed successfully....
2024-10-29 23:08:25 - Installing git ....
2024-10-29 23:08:32 - git installed successfully....
2024-10-29 23:08:32 - Installing unixodbc-dev ....
2024-10-29 23:08:34 - unixodbc-dev installed successfully....
2024-10-29 23:08:34 - Installing uuid ....
2024-10-29 23:08:36 - uuid installed successfully....
2024-10-29 23:08:37 - Installing libasound2-dev ....
2024-10-29 23:08:38 - libasound2-dev installed successfully....
2024-10-29 23:08:38 - Installing libogg-dev ....
2024-10-29 23:08:40 - libogg-dev installed successfully....
2024-10-29 23:08:40 - Installing libvorbis-dev ....
2024-10-29 23:08:47 - libvorbis-dev installed successfully....
2024-10-29 23:08:47 - Installing libcurl4-openssl-dev ....
2024-10-29 23:08:49 - libcurl4-openssl-dev installed successfully....
2024-10-29 23:08:49 - Installing odbc-mariadb ....
2024-10-29 23:08:52 - odbc-mariadb installed successfully....
2024-10-29 23:08:52 - Installing libical-dev ....
2024-10-29 23:08:54 - libical-dev installed successfully....
2024-10-29 23:08:54 - Installing libneon27-dev ....
2024-10-29 23:08:57 - libneon27-dev installed successfully....
2024-10-29 23:08:57 - Installing libsrtp2-dev ....
2024-10-29 23:08:59 - libsrtp2-dev installed successfully....
2024-10-29 23:08:59 - Installing libspandsp-dev ....
2024-10-29 23:09:04 - libspandsp-dev installed successfully....
2024-10-29 23:09:04 - Installing subversion ....
2024-10-29 23:09:07 - subversion installed successfully....
2024-10-29 23:09:07 - Installing python-dev-is-python3 ....
2024-10-29 23:09:13 - python-dev-is-python3 installed successfully....
2024-10-29 23:09:13 - Installing unixodbc ....
2024-10-29 23:09:16 - unixodbc installed successfully....
2024-10-29 23:09:16 - Installing libjansson-dev ....
2024-10-29 23:09:17 - libjansson-dev installed successfully....
2024-10-29 23:09:17 - Installing nodejs ....
2024-10-29 23:09:23 - nodejs installed successfully....
2024-10-29 23:09:23 - Installing npm ....
2024-10-29 23:10:03 - Exiting script
admin@FreePBX:/$ sudo bash /tmp/sng_freepbx_debian_install.sh
2024-10-29 23:12:55 - Performing version check...
Perfect! You're already running the latest version.
2024-10-29 23:12:57 - Starting installation.
2024-10-29 23:12:57 -   Starting FreePBX 17 installation process for FreePBX Linux FreePBX 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
2024-10-29 23:12:57 -   Please refer to the /var/log/pbx/freepbx17-install-2024.10.29-23.12.55.log to know the process...
2024-10-29 23:12:57 - Making sure installation is sane
2024-10-29 23:13:02 - Setting up default configuration
2024-10-29 23:13:03 - Setting up repositories
2024-10-29 23:13:12 - Setting up Sangoma repository
2024-10-29 23:13:13 -  You are installing FreePBX 17 on kernel 6.1.0-26.
2024-10-29 23:13:13 -  Please note that if you have plan to use DAHDI then:
2024-10-29 23:13:13 -  Ensure that you either choose DAHDI option so script will configure DAHDI
2024-10-29 23:13:13 -                                   OR
2024-10-29 23:13:13 -  Ensure you are running a DAHDI supported Kernel. Current latest supported kernel version is 6.1.0-25.
2024-10-29 23:13:13 - Updating repository
2024-10-29 23:13:16 - Installing required packages
2024-10-29 23:13:19 - Installing ipset ....
2024-10-29 23:13:21 - ipset installed successfully....
2024-10-29 23:13:21 - Installing fail2ban ....
2024-10-29 23:13:26 - fail2ban installed successfully....
2024-10-29 23:13:26 - Installing htop ....
2024-10-29 23:13:29 - htop installed successfully....
2024-10-29 23:13:29 - Installing liburiparser-dev ....
2024-10-29 23:13:31 - liburiparser-dev installed successfully....
2024-10-29 23:13:31 - Installing postfix ....
2024-10-29 23:13:44 - postfix installed successfully....
2024-10-29 23:13:44 - Installing tcpdump ....
2024-10-29 23:13:46 - tcpdump installed successfully....
2024-10-29 23:13:46 - Installing sngrep ....
2024-10-29 23:13:48 - sngrep installed successfully....
2024-10-29 23:13:48 - Installing libavdevice-dev ....
2024-10-29 23:14:16 - libavdevice-dev installed successfully....
2024-10-29 23:14:16 - Installing tftpd-hpa ....
2024-10-29 23:14:19 - tftpd-hpa installed successfully....
2024-10-29 23:14:19 - Installing xinetd ....
2024-10-29 23:14:23 - xinetd installed successfully....
2024-10-29 23:14:23 - Installing lame ....
2024-10-29 23:14:25 - lame installed successfully....
2024-10-29 23:14:25 - Installing haproxy ....
2024-10-29 23:14:29 - haproxy installed successfully....
2024-10-29 23:14:29 - Installing screen ....
2024-10-29 23:14:33 - screen installed successfully....
2024-10-29 23:14:33 - Installing easy-rsa ....
2024-10-29 23:14:38 - easy-rsa installed successfully....
2024-10-29 23:14:38 - Installing openvpn ....
2024-10-29 23:14:42 - openvpn installed successfully....
2024-10-29 23:14:42 - Installing sysstat ....
2024-10-29 23:14:49 - sysstat installed successfully....
2024-10-29 23:14:49 - Installing apt-transport-https ....
2024-10-29 23:14:51 - apt-transport-https installed successfully....
2024-10-29 23:14:51 - Installing python3-mysqldb ....
2024-10-29 23:14:53 - python3-mysqldb installed successfully....
2024-10-29 23:14:53 - Installing default-libmysqlclient-dev ....
2024-10-29 23:14:56 - default-libmysqlclient-dev installed successfully....
2024-10-29 23:14:56 - Installing at ....
2024-10-29 23:15:00 - at installed successfully....
2024-10-29 23:15:00 - Installing avahi-daemon ....
2024-10-29 23:15:03 - avahi-daemon installed successfully....
2024-10-29 23:15:03 - Installing avahi-utils ....
2024-10-29 23:15:06 - avahi-utils installed successfully....
2024-10-29 23:15:06 - Installing mailutils ....
2024-10-29 23:15:10 - mailutils installed successfully....
2024-10-29 23:15:11 - Installing chrony ....
2024-10-29 23:15:17 - chrony installed successfully....
2024-10-29 23:15:20 - Installing libfdk-aac2 ....
2024-10-29 23:15:23 - libfdk-aac2 installed successfully....
2024-10-29 23:15:23 - Removing unnecessary packages
2024-10-29 23:15:24 - Execution time to install all the dependent packages : 147 s
2024-10-29 23:15:24 - Setting up folders and asterisk config
2024-10-29 23:15:25 - Installing Asterisk packages.
2024-10-29 23:15:25 - Installing asterisk21 ....
2024-10-29 23:15:27 - asterisk21 installed successfully....
2024-10-29 23:15:27 - Installing asterisk21-addons ....
2024-10-29 23:15:29 - asterisk21-addons installed successfully....
2024-10-29 23:15:29 - Installing asterisk21-addons-bluetooth ....
2024-10-29 23:15:32 - asterisk21-addons-bluetooth installed successfully....
2024-10-29 23:15:32 - Installing asterisk21-addons-core ....
2024-10-29 23:15:35 - asterisk21-addons-core installed successfully....
2024-10-29 23:15:35 - Installing asterisk21-addons-mysql ....
2024-10-29 23:15:37 - asterisk21-addons-mysql installed successfully....
2024-10-29 23:15:38 - Installing asterisk21-addons-ooh323 ....
2024-10-29 23:15:41 - asterisk21-addons-ooh323 installed successfully....
2024-10-29 23:15:41 - Installing asterisk21-core ....
2024-10-29 23:15:48 - asterisk21-core installed successfully....
2024-10-29 23:15:48 - Installing asterisk21-curl ....
2024-10-29 23:15:50 - asterisk21-curl installed successfully....
2024-10-29 23:15:50 - Installing asterisk21-dahdi ....
2024-10-29 23:15:54 - asterisk21-dahdi installed successfully....
2024-10-29 23:15:54 - Installing asterisk21-doc ....
2024-10-29 23:15:56 - asterisk21-doc installed successfully....
2024-10-29 23:15:57 - Installing asterisk21-odbc ....
2024-10-29 23:15:59 - asterisk21-odbc installed successfully....
2024-10-29 23:16:00 - Installing asterisk21-ogg ....
2024-10-29 23:16:02 - asterisk21-ogg installed successfully....
2024-10-29 23:16:02 - Installing asterisk21-flite ....
2024-10-29 23:16:04 - asterisk21-flite installed successfully....
2024-10-29 23:16:04 - Installing asterisk21-g729 ....
2024-10-29 23:16:07 - asterisk21-g729 installed successfully....
2024-10-29 23:16:07 - Installing asterisk21-resample ....
2024-10-29 23:16:10 - asterisk21-resample installed successfully....
2024-10-29 23:16:10 - Installing asterisk21-snmp ....
2024-10-29 23:16:13 - asterisk21-snmp installed successfully....
2024-10-29 23:16:13 - Installing asterisk21-speex ....
2024-10-29 23:16:15 - asterisk21-speex installed successfully....
2024-10-29 23:16:15 - Installing asterisk21-sqlite3 ....
2024-10-29 23:16:18 - asterisk21-sqlite3 installed successfully....
2024-10-29 23:16:18 - Installing asterisk21-res-digium-phone ....
2024-10-29 23:16:24 - asterisk21-res-digium-phone installed successfully....
2024-10-29 23:16:24 - Installing asterisk21-voicemail ....
2024-10-29 23:16:26 - asterisk21-voicemail installed successfully....
2024-10-29 23:16:27 - Installing asterisk21.0-freepbx-asterisk-modules ....
2024-10-29 23:16:29 - asterisk21.0-freepbx-asterisk-modules installed successfully....
2024-10-29 23:16:29 - Installing asterisk-version-switch ....
2024-10-29 23:16:31 - asterisk-version-switch installed successfully....
2024-10-29 23:16:31 - Installing asterisk-sounds-* ....
2024-10-29 23:20:27 - asterisk-sounds-* installed successfully....
2024-10-29 23:20:27 - Installing FreePBX packages
2024-10-29 23:20:28 - Installing sysadmin17 ....
2024-10-29 23:20:35 - sysadmin17 installed successfully....
2024-10-29 23:20:35 - Installing sangoma-pbx17 ....
2024-10-29 23:20:42 - sangoma-pbx17 installed successfully....
2024-10-29 23:20:42 - Installing ffmpeg ....
2024-10-29 23:20:48 - ffmpeg installed successfully....
2024-10-29 23:20:48 - Enabling modules.
2024-10-29 23:20:48 - Restarting fail2ban
2024-10-29 23:20:48 - Installing FreePBX 17
2024-10-29 23:20:48 - Installing ioncube-loader-82 ....
2024-10-29 23:20:52 - ioncube-loader-82 installed successfully....
2024-10-29 23:20:52 - Installing freepbx17 ....
2024-10-29 23:25:09 - freepbx17 installed successfully....
2024-10-29 23:25:09 - Installing all local modules
2024-10-29 23:27:22 - Upgrading FreePBX 17 modules
2024-10-29 23:30:31 - Reloading and restarting FreePBX 17
2024-10-29 23:31:30 - Wrapping up the installation process
2024-10-29 23:31:32 - Holding Packages
2024-10-29 23:32:08 - Setting up logrotate.conf
2024-10-29 23:32:10 - Creating script to run post every apt command is finished executing
2024-10-29 23:32:10 - Refreshing modules signatures.
2024-10-29 23:33:47 - FreePBX 17 Installation finished successfully.
2024-10-29 23:33:47 - Post-installation validation
2024-10-29 23:33:47 - Apache2 service is running on port 80.
2024-10-29 23:33:47 - Installed PHP version 8.2.24 is compatible with FreePBX.
2024-10-29 23:33:49 - All Modules are Enabled.
2024-10-29 23:33:49 - restapps module is assigned to its default port.
2024-10-29 23:33:50 - restapi module is assigned to its default port.
2024-10-29 23:33:50 - ucp module is assigned to its default port.
2024-10-29 23:33:51 - acp module is assigned to its default port.
2024-10-29 23:33:51 - hpro module is assigned to its default port.
2024-10-29 23:33:51 - leport module is assigned to its default port.
2024-10-29 23:33:52 - sslrestapps module is assigned to its default port.
2024-10-29 23:33:52 - sslrestapi module is assigned to its default port.
2024-10-29 23:33:53 - sslucp module is assigned to its default port.
2024-10-29 23:33:53 - sslacp module is assigned to its default port.
2024-10-29 23:33:53 - sslhpro module is assigned to its default port.
2024-10-29 23:33:54 - sslsngphone module is assigned to its default port.
2024-10-29 23:33:55 - No Offline Processes found.
2024-10-29 23:33:55 - Job list : +----+----------------------+-----------------------------------+--------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------+---------+
| ID | Module               | Job                               | Cron         | Next Run            | Action                                                                                                                                 | Enabled |
+----+----------------------+-----------------------------------+--------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------+---------+
| 6  | pbxmfa               | checkUserTrustedDevicesAndLicense | 0 0 * * *    | 2024-10-30 00:00:00 | Class: FreePBX\modules\Pbxmfa\Job                                                                                                      | Yes     |
| 14 | cdrpro               | livecallsync                      | */5 * * * *  | 2024-10-29 12:35:00 | Class: FreePBX\modules\Cdrpro\Job                                                                                                      | Yes     |
| 34 | pagingpro            | scheduler                         | * * * * *    | 2024-10-29 12:34:00 | Class: FreePBX\modules\Pagingpro\Job                                                                                                   | Yes     |
| 3  | calendar             | sync                              | * * * * *    | 2024-10-29 12:34:00 | Class: FreePBX\modules\Calendar\Job                                                                                                    | Yes     |
| 7  | sipstation           | check                             | @daily       | 2024-10-30 00:00:00 | Command: [ -x /var/lib/asterisk/bin/freepbx_sipstation_check ] && /var/lib/asterisk/bin/freepbx_sipstation_check 2>&1 > /dev/null      | Yes     |
| 8  | timeconditions       | schedtc                           | * * * * *    | 2024-10-29 12:34:00 | Class: FreePBX\modules\Timeconditions\Job                                                                                              | Yes     |
| 9  | dashboard            | scheduler                         | * * * * *    | 2024-10-29 12:34:00 | Class: FreePBX\modules\Dashboard\Job                                                                                                   | Yes     |
| 10 | sysadmin             | checkportal                       | @daily       | 2024-10-30 00:00:00 | Command: [ -e /var/www/html/admin/modules/sysadmin/bin/check_portal.php ] && /var/www/html/admin/modules/sysadmin/bin/check_portal.php | Yes     |
| 11 | sysadmin             | ddnsupdate                        | @daily       | 2024-10-30 00:00:00 | Class: FreePBX\modules\Sysadmin\Job\DdnsUpdate                                                                                         | Yes     |
| 12 | sysadmin             | checkstorage                      | @hourly      | 2024-10-29 13:00:00 | Command: [ -x /var/lib/asterisk/bin/storage.php ] && /var/lib/asterisk/bin/storage.php                                                 | Yes     |
| 13 | endpoint             | clearcdr                          | 5 * * * *    | 2024-10-29 13:05:00 | Class: FreePBX\modules\Endpoint\Job                                                                                                    | Yes     |
| 15 | cdr                  | cleanTransientCDRData             | @monthly     | 2024-11-01 00:00:00 | Class: FreePBX\modules\Cdr\Job                                                                                                         | Yes     |
| 16 | restapps             | deletesymlinks                    | 0 1 * * *    | 2024-10-30 01:00:00 | Command: /usr/sbin/fwconsole phoneapps --deletesymlinks                                                                                | Yes     |
| 19 | oc                   | health                            | @daily       | 2024-10-30 00:00:00 | Command: /usr/sbin/fwconsole oracle health --logs > /dev/null 2>&1                                                                     | Yes     |
| 22 | qxact_reports        | sync                              | */5 * * * *  | 2024-10-29 12:35:00 | Command: /usr/sbin/fwconsole qxactreports --sync -q 2>&1 > /dev/null                                                                   | Yes     |
| 23 | qxact_reports        | queuelogretention                 | 1 0 * * *    | 2024-10-30 00:01:00 | Class: FreePBX\modules\Qxact_reports\Job                                                                                               | Yes     |
| 24 | recording_report     | clean                             | 30 22 * * *  | 2024-10-29 22:30:00 | Command: /usr/sbin/fwconsole recordingreports -s -c                                                                                    | Yes     |
| 25 | recording_report     | backup                            | 0 0 1 * *    | 2024-11-01 00:00:00 | Command: php /var/lib/asterisk/agi-bin/backuprecordings.php                                                                            | Yes     |
| 26 | sangomaconnect       | sync                              | */5 * * * *  | 2024-10-29 12:35:00 | Command: /var/www/html/admin/modules/sangomaconnect/bin/keep_alive.php 2>&1 >/dev/null                                                 | Yes     |
| 27 | sangomaconnect       | checkSSL                          | 0 2 * * *    | 2024-10-30 02:00:00 | Command: /var/www/html/admin/modules/sangomaconnect/bin/check_certificates_sc.php 2>&1 >/dev/null                                      | Yes     |
| 28 | sangomaconnect       | checkLicense                      | 0 1 * * *    | 2024-10-30 01:00:00 | Command: /var/www/html/admin/modules/sangomaconnect/bin/check_license_sc.php                                                           | Yes     |
| 29 | sangomaconnect       | clean                             | @daily       | 2024-10-30 00:00:00 | Command: /usr/sbin/fwconsole sc cleanGarbageDeviceData 2>&1 > /dev/null                                                                | Yes     |
| 30 | sangomaconnect       | cleanupOldChats                   | @daily       | 2024-10-30 00:00:00 | Command: /var/www/html/admin/modules/sangomaconnect/bin/cleanup_sangoma_phone_chats.php 2>&1 >/dev/null                                | Yes     |
| 31 | vqplus_callback_logs | sync                              | 59 23 * * *  | 2024-10-29 23:59:00 | Command: /usr/sbin/fwconsole vqplus daemonlog -q 2>&1 > /dev/null                                                                      | Yes     |
| 32 | firewall             | firewall                          | */15 * * * * | 2024-10-29 12:45:00 | Command: [ -e /etc/asterisk/firewall.enabled ] && touch /var/spool/asterisk/incron/firewall.firewall                                   | Yes     |
| 33 | firewall             | syncIDetection                    | */5 * * * *  | 2024-10-29 12:35:00 | Command: [ -e /usr/sbin/fwconsole ] && /usr/sbin/fwconsole firewall sync                                                               | Yes     |
| 35 | pms                  | wu_alert                          | * * * * *    | 2024-10-29 12:34:00 | Class: FreePBX\modules\Pms\Job                                                                                                         | Yes     |
| 36 | pms                  | mk_dirty                          | @daily       | 2024-10-30 00:00:00 | Command: /usr/sbin/fwconsole pms mk_dirty > /dev/null 2>&1                                                                             | Yes     |
+----+----------------------+-----------------------------------+--------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------+---------+
2024-10-29 23:33:55 - Asterisk 21.4.3
2024-10-29 23:33:55 - Installed Digium Phones module version: (21.0_3.6.8)
2024-10-29 23:33:55 - Total script Execution Time: 1258
2024-10-29 23:33:55 - Finished FreePBX 17 installation process for FreePBX Linux FreePBX 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
2024-10-29 23:33:55 - Join us on the FreePBX Community Forum: https://community.freepbx.org/
______                   ______ ______ __   __
|  ___|                  | ___ \| ___ \\ \ / /
| |_    _ __   ___   ___ | |_/ /| |_/ / \ V /
|  _|  | '__| / _ \ / _ \|  __/ | ___ \ /   \
| |    | |   |  __/|  __/| |    | |_/ // /^\ \
\_|    |_|    \___| \___|\_|    \____/ \/   \/

NOTICE! You have 4 notifications! Please log into the UI to see them!
Current Network Configuration
+-----------+-------------------+--------------------------+
| Interface | MAC Address       | IP Addresses             |
+-----------+-------------------+--------------------------+
| ens160    | 00:0C:29:09:27:10 | 172.16.3.20              |
|           |                   | fe80::20c:29ff:fe09:2710 |
+-----------+-------------------+--------------------------+

Please note most tasks should be handled through the GUI.
You can access the GUI by typing one of the above IPs in to your web browser.
For support please visit:
    http://www.freepbx.org/support-and-professional-services

+---------------------------------------------------------------------+
| This machine is not activated.  Activating your system ensures that |
| your machine is eligible for support and that it has the ability to |
| install Commercial Modules.                                         |
|                                                                     |
| If you already have a Deployment ID for this machine, simply run:   |
|                                                                     |
|    fwconsole sysadmin activate deploymentid                         |
|                                                                     |
| to assign that Deployment ID to this system. If this system is new, |
| please go to Activation (which is on the System Admin page in the   |
| Web UI) and create a new Deployment there.                          |
+---------------------------------------------------------------------+

2024-10-29 23:33:56 - Exiting script

Log: freepbx17-install-2024.10.29-23.12.55.log

joele89 commented 3 days ago

Same for the second failure... I would try other(s) Debian mirror(s).

There are a couple of issues here, one may be mirror related (I will try a build from another mirror shortly)

Second, the script doesn't appear to have any internal resiliancy to potentially automatically recover from this kind of error. Third, the console output is quite silent on issues, not making it clear that any "fatal" error has occured at all.

Whilst the platform as a whole is not for beginners, many untrained admins may not understand why their install doesn't work when the script appears to have completed successfully.

corrosive4354 commented 2 days ago

There may be a problem with the Debian mirror (mirror.aarnet.edu.au) used, which makes some packages unable to be downloaded or installed.

You can try using servbay, which currently supports one-click deployment of mongoDB/php/nodejs/mariadb

JoseGoncalves commented 2 days ago

There are a couple of issues here, one may be mirror related (I will try a build from another mirror shortly)

Second, the script doesn't appear to have any internal resiliancy to potentially automatically recover from this kind of error. Third, the console output is quite silent on issues, not making it clear that any "fatal" error has occured at all.

Hi @joele89. Hi agree with you regarding your last comment, i.e., it would be desirable that errors that causes the script to abort to be displayed also in the console. Even if the script notifies at the beginning that a log file should be consulted for further info on why the script could abort (message ignored by several users), it would be desirable that instead of a simple Exiting script message is displayed on the console, something more explicit that an error has hapening would be presented.

Regarding your previous point (failure recovery), I don't think that is feasible, because errors could arise from several sources and most of the times they are not recoverable. As you also pointed out, this is not a script targeted for standard users, some minimal expertize dealing with Linux in command line is required.