izpbx
izpbx copied to clipboard
Container doesn't run due to "illegal instruction" in /usr/sbin/safe_asterisk (architecture mismatch)
Hello, I'm trying to run the container but every release from 20.16.14 onwards crashes and keeps reloading due to an "illegal instruction" error, which is probably related to the CPU architecture: case on point, 20.16.14 is the release that introduced arm64 support.
20.16.13 seems to work, but I can't use it due to an issue that resembles #68, maybe a regression on FreePBX?
For context, the distro is Arch Linux and I'm using a Celeron J4125 machine.
izpbx | =====================================================================
izpbx | => !!! NEW INSTALLATION DETECTED :: FreePBX IS NOT INITIALIZED !!! <=
izpbx | =====================================================================
izpbx | --> missing '/data/.initialized' file... initializing FreePBX... try:[1/5]
izpbx |
izpbx |
izpbx | STARTING ASTERISK
izpbx | /usr/sbin/safe_asterisk: line 171: 529 Illegal instruction (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
izpbx | Asterisk Started
izpbx | /usr/sbin/safe_asterisk: line 171: 605 Illegal instruction (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
izpbx | /usr/sbin/safe_asterisk: line 171: 681 Illegal instruction (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
izpbx | --> installing FreePBX in '/data/var/www/html'
izpbx | ---> START install FreePBX @ Sun Sep 1 01:56:55 CEST 2024
izpbx | ---> creating and grantig access to FreePBX databases: asterisk, asteriskcdrdb
izpbx | ++ ./install -n --skip-install --no-ansi --dbhost=127.0.0.1 --dbport=3307 --dbuser=asterisk --dbpass=XXXXXX --dbname=asterisk --cdrdbname=asteriskcdrdb --webroot=/data/var/www/html --astetcdir=/data/etc/asterisk --astvarlibdir=/data/var/lib/asterisk --astagidir=/data/var/lib/asterisk/agi-bin --astspooldir=/data/var/spool/asterisk --astrundir=/var/run/asterisk --astlogdir=/data/var/log/asterisk --ampbin=/data/var/lib/asterisk/bin --ampsbin=/data/var/lib/asterisk/sbin --ampcgibin=/data/var/www/cgi-bin --ampplayback=/data/var/lib/asterisk/playback --astmoddir=/usr/lib64/asterisk/modules
izpbx | Checking if SELinux is enabled...Its not (good)!
izpbx | Reading /etc/asterisk/asterisk.conf...Done
izpbx | Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Error!
izpbx | Error communicating with Asterisk. Ensure that Asterisk is properly installed and running as the asterisk user
izpbx | Asterisk appears to be running as asterisk
izpbx | Try starting Asterisk with the './start_asterisk start' command in this directory
izpbx | ++ RETVAL=1
izpbx | ++ set +x
izpbx | ---> END install FreePBX @ Sun Sep 1 01:56:55 CEST 2024
izpbx | --> WARNING: unable to install FreePBX 16... restarting in 10 seconds... try:[2/5]
izpbx | /usr/sbin/safe_asterisk: line 171: 779 Illegal instruction (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
izpbx | /usr/sbin/safe_asterisk: line 171: 851 Illegal instruction (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}