app_stack.so: undefined symbol: ast_agi_unregister

Bug #1314058 reported by Johan Smits
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
asterisk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrading to Trusty (from precise) when asterisk starts I get these messages and not all functions are available:

[Apr 27 13:51:36] Asterisk 11.7.0~dfsg-1ubuntu1 built by buildd @ lamiak on a x86_64 running Linux on 2013-12-24 06:02:10 UTC
[Apr 27 13:51:37] NOTICE[2951] db.c: Database conversion succeeded!
[Apr 27 13:51:37] ERROR[2951] config_options.c: Unable to load config file 'acl.conf'
[Apr 27 13:51:37] ERROR[2951] config.c: The file 'manager.d/*.conf' was listed as a #include but it does not exist.
[Apr 27 13:51:37] NOTICE[2951] manager.c: Unable to open AMI configuration manager.conf, or configuration is invalid. Asterisk management interface (AMI) disabled.
[Apr 27 13:51:37] NOTICE[2951] cdr.c: CDR simple logging enabled.
[Apr 27 13:51:37] NOTICE[2951] loader.c: 222 modules will be loaded.
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_encrypt_key
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'chan_motif.so': /usr/lib/asterisk/modules/chan_motif.so: undefined symbol: ast_xmpp_client_send_message
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'pbx_dundi.so': /usr/lib/asterisk/modules/pbx_dundi.so: undefined symbol: ast_aes_set_encrypt_key
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'cdr_odbc.so': /usr/lib/asterisk/modules/cdr_odbc.so: undefined symbol: SQLRowCount
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'chan_sip.so': /usr/lib/asterisk/modules/chan_sip.so: undefined symbol: ast_websocket_write
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'cdr_adaptive_odbc.so': /usr/lib/asterisk/modules/cdr_adaptive_odbc.so: undefined symbol: SQLColumns
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'app_voicemail.so': /usr/lib/asterisk/modules/app_voicemail.so: undefined symbol: ast_smdi_mwi_set
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'app_stack.so': /usr/lib/asterisk/modules/app_stack.so: undefined symbol: ast_agi_unregister
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'pbx_ael.so': /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol: ael2_parse
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'app_speech_utils.so': /usr/lib/asterisk/modules/app_speech_utils.so: undefined symbol: ast_speech_dtmf
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'res_calendar_exchange.so': /usr/lib/asterisk/modules/res_calendar_exchange.so: undefined symbol: ast_calendar_register
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'res_calendar_caldav.so': /usr/lib/asterisk/modules/res_calendar_caldav.so: undefined symbol: ast_calendar_event_container_alloc
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'res_agi.so': /usr/lib/asterisk/modules/res_agi.so: undefined symbol: ast_speech_change
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'func_odbc.so': /usr/lib/asterisk/modules/func_odbc.so: undefined symbol: SQLRowCount
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'res_calendar_icalendar.so': /usr/lib/asterisk/modules/res_calendar_icalendar.so: undefined symbol: ast_calendar_register
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'cel_odbc.so': /usr/lib/asterisk/modules/cel_odbc.so: undefined symbol: SQLColumns
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'res_calendar_ews.so': /usr/lib/asterisk/modules/res_calendar_ews.so: undefined symbol: ast_calendar_register
[Apr 27 13:51:37] NOTICE[2951] res_odbc.c: res_odbc loaded.
[Apr 27 13:51:37] NOTICE[2951] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 27 13:51:37] WARNING[2951] loader.c: Error loading module 'app_stack.so': /usr/lib/asterisk/modules/app_stack.so: undefined symbol: ast_agi_unregister
[Apr 27 13:51:37] WARNING[2951] loader.c: Module 'app_stack.so' could not be loaded.
[Apr 27 13:51:37] NOTICE[2951] config.c: Registered Config Engine curl
[Apr 27 13:51:37] ERROR[2951] res_config_sqlite3.c: Missing config file 'res_config_sqlite3.conf'
[Apr 27 13:51:37] NOTICE[2951] config.c: Registered Config Engine sqlite3
[Apr 27 13:51:37] NOTICE[2951] config.c: Registered Config Engine sqlite
[Apr 27 13:51:37] NOTICE[2951] res_config_ldap.c: No directory user found, anonymous binding as default.
[Apr 27 13:51:37] ERROR[2951] res_config_ldap.c: No directory URL or host found.
[Apr 27 13:51:37] ERROR[2951] res_config_ldap.c: Cannot load LDAP RealTime driver.

A same bug is found at: https://bugzilla.redhat.com/show_bug.cgi?id=1009173
Loading the modules by hand works ok, why are they not loaded correctly at start-up?

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: asterisk 1:11.7.0~dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Tue Apr 29 07:22:56 2014
SourcePackage: asterisk
UpgradeStatus: Upgraded to trusty on 2014-04-27 (1 days ago)

Revision history for this message
Johan Smits (johan-smits) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in asterisk (Ubuntu):
status: New → Confirmed
Revision history for this message
xormar (public-wernig) wrote :

Same happens when upgrading from saucy:

[May 25 15:07:00] Asterisk 11.7.0~dfsg-1ubuntu1 built by buildd @ lamiak on a x86_64 running Linux on 2013-12-24 06:02:10 UTC
[May 25 15:07:00] NOTICE[2559] cdr.c: CDR simple logging enabled.
[May 25 15:07:00] NOTICE[2559] loader.c: 223 modules will be loaded.
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_encrypt_key
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'pbx_ael.so': /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol: ael2_parse
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'res_calendar_exchange.so': /usr/lib/asterisk/modules/res_calendar_exchange.so: undefined symbol: ast_calendar_register
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'chan_motif.so': /usr/lib/asterisk/modules/chan_motif.so: undefined symbol: ast_xmpp_client_send_message
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'cdr_odbc.so': /usr/lib/asterisk/modules/cdr_odbc.so: undefined symbol: SQLRowCount
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'res_agi.so': /usr/lib/asterisk/modules/res_agi.so: undefined symbol: ast_speech_change
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'pbx_dundi.so': /usr/lib/asterisk/modules/pbx_dundi.so: undefined symbol: ast_aes_set_encrypt_key
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'func_odbc.so': /usr/lib/asterisk/modules/func_odbc.so: undefined symbol: SQLRowCount
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'app_queue.so': /usr/lib/asterisk/modules/app_queue.so: undefined symbol: ast_monitor_start
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'func_aes.so': /usr/lib/asterisk/modules/func_aes.so: undefined symbol: ast_aes_set_encrypt_key
[May 25 15:07:00] WARNING[2559] loader.c: Error loading module 'app_stack.so': /usr/lib/asterisk/modules/app_stack.so: undefined symbol: ast_agi_unregister
[May 25 15:07:00] NOTICE[2559] res_odbc.c: res_odbc loaded.
[May 25 15:07:00] NOTICE[2559] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[May 25 15:07:00] NOTICE[2559] config.c: Registered Config Engine sqlite
[May 25 15:07:00] NOTICE[2559] config.c: Registered Config Engine curl
[May 25 15:07:00] NOTICE[2559] res_config_ldap.c: No directory user found, anonymous binding as default.
[May 25 15:07:00] ERROR[2559] res_config_ldap.c: No directory URL or host found.
[May 25 15:07:00] ERROR[2559] res_config_ldap.c: Cannot load LDAP RealTime driver.
[May 25 15:07:00] NOTICE[2559] config.c: Registered Config Engine sqlite3
[May 25 15:07:00] NOTICE[2559] chan_skinny.c: Configuring skinny from skinny.conf

Also note the Error in res_config_ldap.c. I do not use ldap anywhere in my configuration

Revision history for this message
xormar (public-wernig) wrote :

Ah, and: In my case asterisk does not start at all, so I cannot load the modules by hand. No core is dumped, it just doesn't run.

Revision history for this message
xormar (public-wernig) wrote :

The fact that asterisk didn't start was unrelated to this problem (had installed external modules that didn't match the new version 11).
But contrary to OP the modules cannot be loaded by hand. The same error appears:

com01*CLI> module load app_stack.so
Unable to load module app_stack.so
Command 'module load app_stack.so' failed.
[May 25 16:35:46] WARNING[5474]: loader.c:423 load_dynamic_module: Error loading module 'app_stack.so': /usr/lib/asterisk/modules/app_stack.so: undefined symbol: ast_agi_unregister
[May 25 16:35:46] WARNING[5474]: loader.c:902 load_resource: Module 'app_stack.so' could not be loaded.

Revision history for this message
Ted Cabeen (ted-cabeen) wrote :

Any resolution on this? This bug prevents asterisk from working with FreePBX on 14.04 without manually loading the modules after asterisk starts.

Revision history for this message
Nick Piggott (nick-piggott) wrote :

I'm running Ubuntu 14.04 with Asterisk 11.7.0~dfsg-1ubuntu1 and FreePBX 12.0.25.

app_stack.so will not load at boot, either autoloading or with a specific load directive in the startup scripts.

I can load it manually by connecting to the asterisk console ("sudo asterisk -r") and then manually typing "module load app_stack". It loads without errors, and operational proceeds as normal.

It's a critical problem for a remote system which is not easily remotely accessible.

Revision history for this message
Pieter De Wit (pieter-insync) wrote :

Here is a work around (or even a perm. fix ?)

in /etc/asterisk/modules.conf

Add the following line *before* the autoload=yes line:

load => res_agi.so

This will fix the error that app_stack needs agi to be loaded.

Tested on a clean installed 14.04 machine.

Cheers,

Pieter

Revision history for this message
Nick Piggott (nick-piggott) wrote :

I can confirm the workaround in #8 works for me.

Thanks, much appreciated.

Revision history for this message
Nigel Hathaway (nhathaway) wrote :

On 16.04 beta, doing the above just adds the error:

Error loading module 'res_agi.so': /usr/lib/asterisk/modules/res_agi.so: undefined symbol: ast_speech_change

And with systemd, it just cycles round and round trying to start:

Apr 5 17:25:06 nigel-mate systemd[1]: asterisk.service: Main process exited, code=dumped, status=6/ABRT
Apr 5 17:25:06 nigel-mate systemd[1]: asterisk.service: Unit entered failed state.
Apr 5 17:25:06 nigel-mate systemd[1]: asterisk.service: Failed with result 'core-dump'.
Apr 5 17:25:07 nigel-mate systemd[1]: asterisk.service: Service hold-off time over, scheduling restart.
Apr 5 17:25:07 nigel-mate systemd[1]: Stopped Asterisk PBX.
Apr 5 17:25:07 nigel-mate systemd[1]: Started Asterisk PBX.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.