Pbx_config declined to load

Hi all, I am facing weird behavior that I am pretty sure is releated to last line of following logs.
Can you help me understand?
I create my own contexts in extension.conf but they are not present if I do “dialplan show”.
Seams configuration is not loaded (as per error) but why?
Here my logs after “core restart now”.

[Feb 14 15:03:20] Asterisk 22.2.0 built by root @ 316a3df67e30 on a x86_64 running Linux on 2025-02-12 13:21:34 UTC
[Feb 14 15:03:20] NOTICE[1] loader.c: 346 modules will be loaded.
[Feb 14 15:03:21] WARNING[1] res_config_curl.c: [globals] not found in res_curl.conf
[Feb 14 15:03:21] NOTICE[1] res_config_ldap.c: No directory user found, anonymous binding as default.
[Feb 14 15:03:21] ERROR[1] res_config_ldap.c: No directory URL or host found.
[Feb 14 15:03:21] ERROR[1] res_config_ldap.c: Cannot load LDAP RealTime driver.
[Feb 14 15:03:21] NOTICE[1] cdr.c: CDR simple logging enabled.
[Feb 14 15:03:21] NOTICE[1] indications.c: Default country for indication tones: us
[Feb 14 15:03:21] NOTICE[1] indications.c: Setting default indication country to ‘us’
[Feb 14 15:03:21] NOTICE[1] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Feb 14 15:03:21] WARNING[1] res_phoneprov.c: Unable to find a valid server address or name.
[Feb 14 15:03:21] NOTICE[1] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[Feb 14 15:03:21] NOTICE[1] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Feb 14 15:03:21] WARNING[1] ael/pval.c: Warning: file /etc/asterisk/extensions.ael, line 196-196: macro call to ael-dundi-e164 cannot be found in the AEL code!
[Feb 14 15:03:21] WARNING[1] ael/pval.c: Warning: file /etc/asterisk/extensions.ael, line 209-209: macro call to ael-dundi-e164 cannot be found in the AEL code!
[Feb 14 15:03:21] WARNING[1] ael/pval.c: Warning: file /etc/asterisk/extensions.ael, line 328-328: macro call to ael-std-exten-ael cannot be found in the AEL code!
[Feb 14 15:03:21] WARNING[1] loader.c: Some non-required modules failed to load.
[Feb 14 15:03:21] WARNING[1] loader.c: The deprecated module ‘res_adsi.so’ has been loaded and is running, it may be removed in a future version
[Feb 14 15:03:21] WARNING[1] loader.c: The deprecated module ‘app_getcpeid.so’ has been loaded and is running, it may be removed in a future version
[Feb 14 15:03:21] WARNING[1] loader.c: The deprecated module ‘app_adsiprog.so’ has been loaded and is running, it may be removed in a future version
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘codec_codec2.so’: libcodec2.so.1.0: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘format_ogg_speex.so’: libspeex.so.1: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_http_post.so’: libgmime-3.0.so.0: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cdr_odbc.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_calendar_icalendar.so’: libneon.so.27: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘chan_motif.so’: libiksemel.so.3: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_config_odbc.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_xmpp.so’: libiksemel.so.3: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘app_jack.so’: libjack.so.0: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘func_odbc.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_odbc.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_config_pgsql.so’: libpq.so.5: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘codec_speex.so’: libspeex.so.1: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cel_tds.so’: libsybdb.so.5: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘chan_console.so’: libportaudio.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cdr_pgsql.so’: libpq.so.5: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘pbx_lua.so’: liblua5.2.so.0: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cdr_radius.so’: libradcli.so.4: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_calendar_ews.so’: libneon.so.27: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cel_radius.so’: libradcli.so.4: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cdr_adaptive_odbc.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cdr_tds.so’: libsybdb.so.5: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_odbc_transaction.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘format_ogg_vorbis.so’: libvorbis.so.0: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_fax_spandsp.so’: libspandsp.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘func_speex.so’: libspeexdsp.so.1: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cel_odbc.so’: libodbc.so.2: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_calendar_caldav.so’: libneon.so.27: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_resolver_unbound.so’: libunbound.so.8: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘cel_pgsql.so’: libpq.so.5: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: Error loading module ‘res_calendar_exchange.so’: libneon.so.27: cannot open shared object file: No such file or directory
[Feb 14 15:03:21] ERROR[1] loader.c: cel_sqlite3_custom declined to load.
[Feb 14 15:03:21] ERROR[1] loader.c: cdr_sqlite3_custom declined to load.
[Feb 14 15:03:21] ERROR[1] loader.c: pbx_config declined to load.

On Friday 14 February 2025 at 15:19:35, spady7 via Asterisk Community wrote:

Hi all, I am facing weird behavior that I am pretty sure is releated to
last line of following logs. Can you help me understand?

Pkease tell us:

Which Linux distribution is this running on?

How did you install Asterisk?

How are you starting Asterisk?

Which user is Asterisk running as?

Have you checked to see whether any of the named shared object files in the
error messages are installed on your machine?

Antony.


I’m not impossible, just highly implausible.

Hi,

  • Debian 12
  • From source (./configure, make, ecc.)
  • Started with provided script (see below)
  • asterisk
  • Yes, are installed

#!/bin/sh

ASTERISK_USER=${ASTERISK_USER:-asterisk}

if [ “$1” = “” ]; then
COMMAND=“/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf”
else
COMMAND=“$@”
fi

if [ “${ASTERISK_UID}” != “” ] && [ “${ASTERISK_GID}” != “” ]; then

deluser asterisk &&
adduser --gecos “” --no-create-home --uid ${ASTERISK_UID} --disabled-password ${ASTERISK_USER} || exit

chown -R ${ASTERISK_UID}:${ASTERISK_UID} /etc/asterisk
/var//asterisk
/usr/
/asterisk
fi

chown -R asterisk:asterisk /var/*/asterisk;
exec ${COMMAND}

image

I assume you meant:

#!/bin/sh


ASTERISK_USER=${ASTERISK_USER:-asterisk}

if [ "$1" = "" ]; then
  COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
else
  COMMAND="$@"
fi

if [ "${ASTERISK_UID}" != "" ] && [ "${ASTERISK_GID}" != "" ]; then
  

  deluser asterisk && \
  adduser --gecos "" --no-create-home --uid ${ASTERISK_UID} --disabled-password ${ASTERISK_USER} || exit

  chown -R ${ASTERISK_UID}:${ASTERISK_UID} /etc/asterisk \
                                           /var/*/asterisk \
                                           /usr/*/asterisk
fi

chown -R asterisk:asterisk /var/*/asterisk; \
exec ${COMMAND}

Exactly. Was copy/paste issue.
Any idea from your side?

Can someone point me how to investigate it?
Maybe core dump can suggest something?

If Asterisk is running, bumping up console logging then unload/load the module may yield clues. Something like:

pbx11:asterisk> core set debug 99
pbx11:asterisk> core set debug 99
pbx11:asterisk> module unload pbx_config.so
pbx11:asterisk> module load pbx_config.so

If Asterisk is generating a core dump, gdb would be a good place to start. I don’t see evidence of a crash in your log snippet.

pbx_config.c is the module that reads extensions.conf. I’d suggest the most likely reason for the error is that it was unable to find it, or to read it.

Essentially the only things that would cause this is load_config failing to load the file, or returning an invalid file status. I didn’t look at what could cause the latter.

config_file will be extensions.conf

Guys thanks for your help. it was just a nonsense.
the extensions.conf file was missing the final “s”. Sorry :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.