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

Recommend ansible-core 2.15.1 [and interim workaround to start Asterisk, so FreePBX can install] #3604

Merged
merged 5 commits into from Jun 21, 2023

Conversation

@holta holta added this to the 8.1 milestone Jun 20, 2023
@holta
Copy link
Member Author

holta commented Jun 21, 2023

This PR is nearly impossible to test, as Asterisk/FreePBX's Digium's server (https://svn.digium.com) is currently offline for several hours now:

TASK [pbx : Asterisk - Download mp3 decoder library into source tree - requires 'subversion' installed just above] **************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["./contrib/scripts/get_mp3_source.sh"], "delta": "0:02:10.564257", "end": "2023-06-20 20:55:11.060540", "msg": "non-zero return code", "rc": 1, "start": "2023-06-20 20:53:00.496283", "stderr": "svn: E170013: Unable to connect to a repository at URL 'https://svn.digium.com/svn/thirdparty/mp3/trunk'\nsvn: E000110: Error running context: Connection timed out", "stderr_lines": ["svn: E170013: Unable to connect to a repository at URL 'https://svn.digium.com/svn/thirdparty/mp3/trunk'", "svn: E000110: Error running context: Connection timed out"], "stdout": "", "stdout_lines": []}

Given ansible-core 2.15.1 continues to have problems installing FreePBX even with nohup, separating these 2 needed commands (from 1 Ansible stanza to 2) may be worth trying next:

# 2023-05-21: Asterisk is normally OFF at this point (but that doesn't matter, either way!)
- name: FreePBX - Spawn 'nohup ./start_asterisk start' in {{ freepbx_src_dir }}
  command: nohup ./start_asterisk start    # 2023-06-20: Interim use of 'nohup' until ansible 2.15.x solves regression ansible/ansible#80863
  args:
    chdir: "{{ freepbx_src_dir }}"

- name: FreePBX - Install FreePBX to {{ freepbx_install_dir }} - FAST W/ GITHUB (OR freepbx-16.0-latest.tgz CAN TAKE 3-12 MIN OR LONGER!)
  command: ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }}
  args:
    chdir: "{{ freepbx_src_dir }}"
    #creates: "{{ freepbx_install_dir }}"    # /var/www/html/freepbx

@holta holta marked this pull request as draft June 21, 2023 01:38
@holta holta marked this pull request as ready for review June 21, 2023 13:22
@holta
Copy link
Member Author

holta commented Jun 21, 2023

This PR is nearly impossible to test, as Asterisk/FreePBX's Digium's server (https://svn.digium.com) is currently offline

Another interim hack, allowing testing to proceed, while their above subversion (svn) remains offline, preventing MP3 support:

root@deb11d:/opt/iiab/iiab# git diff
diff --git a/roles/pbx/tasks/asterisk.yml b/roles/pbx/tasks/asterisk.yml
index bc763819..45efefa6 100644
--- a/roles/pbx/tasks/asterisk.yml
+++ b/roles/pbx/tasks/asterisk.yml
@@ -65,11 +65,11 @@
   args:
     chdir: "{{ asterisk_src_dir }}"

-- name: Asterisk - Download mp3 decoder library into source tree - requires 'subversion' installed just above
-  command: ./contrib/scripts/get_mp3_source.sh
-  args:
-    chdir: "{{ asterisk_src_dir }}"
-    creates: addons/mp3/mpg123.h
+# - name: Asterisk - Download mp3 decoder library into source tree - requires 'subversion' installed just above
+#   command: ./contrib/scripts/get_mp3_source.sh
+#   args:
+#     chdir: "{{ asterisk_src_dir }}"
+#     creates: addons/mp3/mpg123.h

 - name: Asterisk - Run './configure --with-pjproject-bundled --with-jansson-bundled'
   command: ./configure --with-pjproject-bundled --with-jansson-bundled
@@ -83,7 +83,8 @@
     creates: menuselect.makeopts

 - name: Asterisk - Do a bit of menuselect configuration
-  command: menuselect/menuselect --enable app_macro --enable format_mp3 menuselect.makeopts
+  command: menuselect/menuselect --enable app_macro menuselect.makeopts
+  #command: menuselect/menuselect --enable app_macro --enable format_mp3 menuselect.makeopts
   # 2021-08-06: Let's standardize (ABOVE) if 6 others (BELOW) aren't needed?
   # command: >
   #   menuselect/menuselect --enable app_macro --enable format_mp3

@holta holta changed the title Recommend ansible-core 2.15.1 Recommend ansible-core 2.15.1 [and interim workaround to start Asterisk, so FreePBX can install] Jun 21, 2023
@holta
Copy link
Member Author

holta commented Jun 21, 2023

http://box/freepbx tested successfully on a Debian 11 VM's, verifying this PR works with both ansible-core 2.15.0 and 2.15.1

(Since we cannot know when-or-if ansible-core 2.15.x will fix their regression, in the coming year or so?)

@holta holta merged commit ec64e6f into iiab:master Jun 21, 2023
3 checks passed
@holta
Copy link
Member Author

holta commented Jun 21, 2023

This PR is nearly impossible to test, as Asterisk/FreePBX's Digium's server (https://svn.digium.com) is currently offline

FYI http://svn.digium.com/svn/thirdparty/mp3/trunk/ is now back online ~16h later — allowing regular Asterisk/FreePBX installs to proceed (on Debian 11 and RasPiOS 11 anyway, given their very stale EOL'd PHP 7.4 requirement!)

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.

None yet

1 participant