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

Asterisk fails to load on Debian 11 as before: #3673

Closed
EMG70 opened this issue Nov 19, 2023 · 6 comments
Closed

Asterisk fails to load on Debian 11 as before: #3673

EMG70 opened this issue Nov 19, 2023 · 6 comments
Milestone

Comments

@EMG70
Copy link
Contributor

EMG70 commented Nov 19, 2023

Expected behavior and actual behavior:

Full installation with Freepbx installed and enabled
IMG_1820

Steps to reproduce the problem:

Retried several times.

IIAB version, OS version, hardware details:

IMG_1822

Please run the iiab-diagnostics command, to generate a URL summarizing your IIAB configuration, for volunteers seeking to help you: (Include that short URL here, Thanks!)

http://sprunge.us/4K56PQ?en

@holta holta added this to the 8.1 milestone Nov 19, 2023
@holta
Copy link
Member

holta commented Nov 19, 2023

Possibly IIAB's Asterisk patch for Raspberry Pi is no longer necessary? (Or needs a quick fix?)

Certainly FreePBX 17 pre-releases will run on Debian 12 very shortly — according to these recent announcements:

@holta
Copy link
Member

holta commented Nov 19, 2023

Possibly IIAB's Asterisk patch for Raspberry Pi is no longer necessary? (Or needs a quick fix?)

Here's install_prereq.diff used with when: asterisk_rpi_patch that needs refining (or replacing?)

--- install_prereq.orig 2023-04-01 01:41:56.859545082 -0500
+++ install_prereq 2023-04-01 01:44:28.744269701 -0500
@@ -193,8 +193,13 @@
tocheck="${tocheck} ^${pack}$ ~P^${pack}$"
done
pkgs=$(aptitude -F '%c %p' search ${tocheck} 2>/dev/null | awk '/^p/{print $2}')
+ arch=$(uname -m)
if [ ${#pkgs} -ne 0 ]; then
- echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
+ if [ "$arch" = "x86_64" ]; then
+ echo $pkgs | sed -r -e "s/ ?[^ :]+:i386//g"
+ elif [ "$arch" = "aarch64" ]; then
+ echo $pkgs | sed -r -e "s/ ?[^ :]+:armhf//g"
+ fi
fi
}

@holta
Copy link
Member

holta commented Nov 19, 2023

Workaround for Debian 11 on non-RPi for now:

Set asterisk_rpi_patch: False in /etc/iiab/local_vars.yml

@EMG70
Copy link
Contributor Author

EMG70 commented Nov 19, 2023

Installed & Tested OK with asterisk_rpi_patch :False

@holta
Copy link
Member

holta commented Nov 20, 2023

It appears roles/pbx/files/intall_prereq.diff is no longer relevant, as a result of...

install_prereq: Fix dependency install on aarch64.
Fixes dependency solutions in install_prereq for Debian aarch64
platforms. install_prereq was attempting to forcibly install 32-bit
armhf packages due to the aptitude search for dependencies.

...merged on 2023-08-14 here: asterisk/asterisk@6a55551

...and now part of Asterisk 20 and 21, resolving the original issue:

@holta
Copy link
Member

holta commented Nov 20, 2023

@holta holta closed this as completed Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants