[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set asterisk_rpi_patch: False & mandate MySQL / MariaDB [as we wait for FreePBX 17 pre-releases to support Asterisk 21, which was released 2023-10-18] #3674

Merged
merged 15 commits into from
Nov 20, 2023

Conversation

holta
Copy link
Member
@holta holta commented Nov 19, 2023

@holta holta added this to the 8.1 milestone Nov 19, 2023
@holta holta changed the title Try Asterisk 21 and FreePBX pre-releases, with asterisk_rpi_patch: False Try Asterisk 21 and FreePBX 17 pre-releases, with asterisk_rpi_patch: False Nov 19, 2023
@holta holta marked this pull request as draft November 19, 2023 21:44
@holta
Copy link
Member Author
holta commented Nov 19, 2023

Initial test results of this PR on Ubuntu 22.04:

TASK [pbx : Asterisk - Do a bit of menuselect configuration] *******************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["menuselect/menuselect", "--enable", "app_macro", "--enable", "format_mp3", "menuselect.makeopts"], "delta": "0:00:00.009869", "end": "2023-11-19 16:39:38.448334", "msg": "non-zero return code", "rc": 1, "start": "2023-11-19 16:39:38.438465", "stderr": "'app_macro' not found", "stderr_lines": ["'app_macro' not found"], "stdout": "", "stdout_lines": []}

@holta
Copy link
Member Author
holta commented Nov 19, 2023

This PR might work in a few weeks — when FreePBX 17 officially acknowledges / supports Asterisk 21: (released back on 2023-10-18, by the very same company!)

TASK [pbx : FreePBX - INTERIM USE OF 'systemctl start asterisk' TIL ANSIBLE FIXES 2.15.x REGRESSION ansible/ansible#80863 -- AS EVEN 'nohup ./start_asterisk start' DOESN'T WORK WITH 2.15.0 AND 2.15.1] ***
changed: [127.0.0.1]

TASK [pbx : FreePBX - WAIT 5 SECONDS TO SIMULATE './start_asterisk start' (REQUIRED DUE TO ABOVE ANSIBLE BUG) THEN... install FreePBX to /var/www/html/freepbx - FAST W/ GITHUB (OR freepbx-16.0-latest.tgz CAN TAKE 3-12 MIN OR LONGER!)] ***
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "sleep 5 && ./install -n --webroot /var/www/html/freepbx --dbuser asterisk --dbpass asterisk", "delta": "0:00:05.169466", "end": "2023-11-19 17:22:21.863896", "msg": "non-zero return code", "rc": 1, "start": "2023-11-19 17:22:16.694430", "stderr": "", "stderr_lines": [], "stdout": "Checking if SELinux is enabled...Its not (good)!\nReading /etc/asterisk/asterisk.conf...Done\nChecking if Asterisk is running and we can talk to it as the 'asterisk' user...Error!\nUnsupported Version of 21.0.0\nSupported Asterisk versions: 13, 14, 15, 16, 17, 18, 19, 20", "stdout_lines": ["Checking if SELinux is enabled...Its not (good)!", "Reading /etc/asterisk/asterisk.conf...Done", "Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Error!", "Unsupported Version of 21.0.0", "Supported Asterisk versions: 13, 14, 15, 16, 17, 18, 19, 20"]}

@holta
Copy link
Member Author
holta commented Nov 19, 2023

This PR might work in a few weeks — when FreePBX 17 officially acknowledges / supports Asterisk 21: (released back on 2023-10-18, by the very same company!)

Just FYI if one forces both conditionals to "22" instead of "21" within /opt/iiab/freepbx, the result is currently ambiguous (claims FreePBX installed successfully, but...) as seen in this output:


TASK [pbx : FreePBX - WAIT 5 SECONDS TO SIMULATE './start_asterisk
start' (REQUIRED DUE TO ABOVE ANSIBLE BUG) THEN... install FreePBX
to /var/www/html/freepbx - FAST W/ GITHUB (OR freepbx-16.0-latest.t
gz CAN TAKE 3-12 MIN OR LONGER!)] ***
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx
_log, freepbx_settings, globals, module_xml, modules, notifications
, cron_jobs...Done
Determined Asterisk version to be: 21.0.0
No directory /var/www/html/freepbx/admin/modules/framework/amp_conf
/htdocs, install script not needed
Generating CSS...Done
Module framework version 17.0.14.6 successfully installed
Updating Hooks...Done
Chowning directories...Done
Setting Permissions...
Setting base permissions...Done in 0 seconds
Setting specific permissions...
 2511 [============================]
Finished setting permissions
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "sleep 5 &&
 ./install -n --webroot /var/www/html/freepbx --dbuser asterisk --d
bpass asterisk", "delta": "0:00:16.534363", "end": "2023-11-19 18:1
4:22.149007", "msg": "non-zero return code", "rc": 1, "start": "202
3-11-19 18:14:05.614644", "stderr": "    0/8216 [>-----------------
----------]   0%\n  400/8216 [=>--------------------------]   4%\n
1000/8216 [===>------------------------]  12%\n 1600/8216 [=====>--
--------------------]  19%\n 2200/8216 [=======>-------------------
-]  26%\n 2800/8216 [=========>------------------]  34%\n 3400/8216
 [===========>----------------]  41%\n 4000/8216 [=============>---
-----------]  48%\n 4600/8216 [===============>------------]  55%\n
 5200/8216 [=================>----------]  63%\n 5800/8216 [=======
============>--------]  70%\n 6300/8216 [=====================>----
--]  76%\n 6800/8216 [=======================>----]  82%\n 7200/821
6 [========================>---]  87%\n 7800/8216 [================
==========>-]  94%\n 8216/8216 [============================] 100%
   0 [>---------------------------]", "stderr_lines": ["    0/8216
[>---------------------------]   0%", "  400/8216 [=>--------------
------------]   4%", " 1000/8216 [===>------------------------]  12
%", " 1600/8216 [=====>----------------------]  19%", " 2200/8216 [
=======>--------------------]  26%", " 2800/8216 [=========>-------
-----------]  34%", " 3400/8216 [===========>----------------]  41%
", " 4000/8216 [=============>--------------]  48%", " 4600/8216 [=
==============>------------]  55%", " 5200/8216 [=================>
----------]  63%", " 5800/8216 [===================>--------]  70%"
, " 6300/8216 [=====================>------]  76%", " 6800/8216 [==
=====================>----]  82%", " 7200/8216 [===================
=====>---]  87%", " 7800/8216 [==========================>-]  94%",
 " 8216/8216 [============================] 100%    0 [>-----------
----------------]"], "stdout": "Checking if SELinux is enabled...It
s not (good)!\nReading /etc/asterisk/asterisk.conf...Done\nChecking
 if Asterisk is running and we can talk to it as the 'asterisk' use
r...Yes. Determined Asterisk version to be: 21.0.0\nChecking if Nod
eJS is installed and we can get a version from it...Yes. Determined
 NodeJS version to be: 20.9.0\nPreliminary checks done. Starting Fr
eePBX Installation\nChecking if this is a new install...Yes (No /et
c/freepbx.conf file detected)\nDatabase installation checking crede
ntials and permissions..Connected!\nEmpty asterisk Database going t
o populate it\nUpdating tables admin, ampusers, cronmanager, featur
ecodes, freepbx_log, freepbx_settings, globals, module_xml, modules
, notifications, cron_jobs...Done\nEmpty asteriskcdrdb Database goi
ng to populate it\nInitializing FreePBX Settings\n\tChanging AMPWEB
ROOT [/var/www/html] to match what was given at install time: /var/
www/html/freepbx\n\tChanging AMPMGRUSER [admin] to match what was g
iven at install time: ca37f4ce39a022a487725df93c52e813\n\tChanging
AMPMGRPASS [amp111] to match what was given at install time: 6ff26f
6195ec777c4a70b28789020597\nFinished initalizing settings\nCopying
files (this may take a bit)....\n\nDone\nbin is: /var/lib/asterisk/
bin\nsbin is: /usr/sbin\nSymlinking /var/lib/asterisk/bin/fwconsole
 to /usr/sbin/fwconsole ...Done\nSymlinking /var/lib/asterisk/bin/a
mportal to /usr/sbin/amportal ...Done\nFinishing up directory proce
sses...Done!\nRunning variable replacement...Done\nCreating missing
 #include files...Done\nSetting up Asterisk Manager Connection...Do
ne\nRunning through upgrades...\nChecking for upgrades..\nNo furthe
r upgrades necessary\nFinished upgrades\nSetting FreePBX version to
 17.0.14.6...Done\nWriting out /etc/amportal.conf...Done\nWriting o
ut /etc/freepbx.conf...Done\nChowning directories...\nSetting Permi
ssions...\nSetting base permissions...Done in 0 seconds\nSetting sp
ecific permissions...\n\nFinished setting permissions\nDone\nInstal
ling framework...\nDone\nBuilding Packaged Scripts...Done\nTrusting
 FreePBX...Trusted\nGenerating default configurations...\nFinished
generating default configurations\nYou have successfully installed
FreePBX", "stdout_lines": ["Checking if SELinux is enabled...Its no
t (good)!", "Reading /etc/asterisk/asterisk.conf...Done", "Checking
 if Asterisk is running and we can talk to it as the 'asterisk' use
r...Yes. Determined Asterisk version to be: 21.0.0", "Checking if N
odeJS is installed and we can get a version from it...Yes. Determin
ed NodeJS version to be: 20.9.0", "Preliminary checks done. Startin
g FreePBX Installation", "Checking if this is a new install...Yes (
No /etc/freepbx.conf file detected)", "Database installation checki
ng credentials and permissions..Connected!", "Empty asterisk Databa
se going to populate it", "Updating tables admin, ampusers, cronman
ager, featurecodes, freepbx_log, freepbx_settings, globals, module_
xml, modules, notifications, cron_jobs...Done", "Empty asteriskcdrd
b Database going to populate it", "Initializing FreePBX Settings",
"\tChanging AMPWEBROOT [/var/www/html] to match what was given at i
nstall time: /var/www/html/freepbx", "\tChanging AMPMGRUSER [admin]
 to match what was given at install time: ca37f4ce39a022a487725df93
c52e813", "\tChanging AMPMGRPASS [amp111] to match what was given a
t install time: 6ff26f6195ec777c4a70b28789020597", "Finished inital
izing settings", "Copying files (this may take a bit)....", "", "Do
ne", "bin is: /var/lib/asterisk/bin", "sbin is: /usr/sbin", "Symlin
king /var/lib/asterisk/bin/fwconsole to /usr/sbin/fwconsole ...Done
", "Symlinking /var/lib/asterisk/bin/amportal to /usr/sbin/amportal
 ...Done", "Finishing up directory processes...Done!", "Running var
iable replacement...Done", "Creating missing #include files...Done"
, "Setting up Asterisk Manager Connection...Done", "Running through
 upgrades...", "Checking for upgrades..", "No further upgrades nece
ssary", "Finished upgrades", "Setting FreePBX version to 17.0.14.6.
..Done", "Writing out /etc/amportal.conf...Done", "Writing out /etc
/freepbx.conf...Done", "Chowning directories...", "Setting Permissi
ons...", "Setting base permissions...Done in 0 seconds", "Setting s
pecific permissions...", "", "Finished setting permissions", "Done"
, "Installing framework...", "Done", "Building Packaged Scripts...D
one", "Trusting FreePBX...Trusted", "Generating default configurati
ons...", "Finished generating default configurations", "You have su
ccessfully installed FreePBX"]}

@holta holta closed this Nov 19, 2023
@holta holta reopened this Nov 19, 2023
@holta
Copy link
Member Author
holta commented Nov 20, 2023

Explanation of 356c2bd ("asterisk.yml w/o 'menuselect --enable app_macro"') here:

app_macro – deprecated in Asterisk 16 but has remained longer than usual due to it’s extensive use in examples, documentation, and production. Another module that has a replacement – see Gosub; for some time.

https://www.asterisk.org/asterisk-21-module-removal/

@holta holta changed the title Try Asterisk 21 and FreePBX 17 pre-releases, with asterisk_rpi_patch: False Try Asterisk 21 released 2023-10-18, with asterisk_rpi_patch: False [FreePBX 17 pre-releases do not yet solid?] Nov 20, 2023
@holta holta changed the title Try Asterisk 21 released 2023-10-18, with asterisk_rpi_patch: False [FreePBX 17 pre-releases do not yet solid?] Set asterisk_rpi_patch: False & mandate MySQL / MariaDB [as we wait for FreePBX 17 pre-releases to support Asterisk 21, which was released 2023-10-18] Nov 20, 2023
@holta
Copy link
Member Author
holta commented Nov 20, 2023

Tested on Debian 11: http://sprunge.us/0VUqLB?en

(Even though Asterisk 21 was released more than a month ago on 2023-10-18 — both FreePBX 16 and FreePBX 17 pre-releases do not yet support it — so both will have to wait for a future PR in coming months!)

@holta holta marked this pull request as ready for review November 20, 2023 07:29
@holta holta merged commit c771689 into iiab:master Nov 20, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant