[Home]

Summary:ASTERISK-23570: CLI config reload returns 'No such module 'core'' for modules that appear to be independent - documentation needed or bug?
Reporter:Dorian Logan (dorianlogan)Labels:
Date Opened:2014-04-02 05:08:33Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Applications/General
Versions:SVN 11.8.1 12.1.1 13.18.4 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Ubuntu 12.04 LTS - compiled from source (default settings)Attachments:
Description:When issuing the reload command

config reload /etc/asterisk/confbridge.conf

The config is not reloaded and the following error is displayed

No such module 'core'
Comments:By: Rusty Newton (rnewton) 2014-04-07 14:26:19.351-0500

Thank you for taking the time to report this bug and helping to make Asterisk better. Unfortunately, we cannot work on this bug because your description did not include enough information. You may find it helpful to read the Asterisk Issue Guidelines http://www.asterisk.org/developers/bug-guidelines. We would be grateful if you would then provide a more complete description of the problem. At a minimum, we need:

1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).

This likely includes output from the console with debug level logging, a SIP trace (if this is SIP related), and configuration information such as dialplan (e.g. extensions.conf) and channel configuration (e.g. sip.conf). Thanks!



By: Rusty Newton (rnewton) 2014-04-07 14:28:17.825-0500

https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

Please attach a full debug log showing output when you run that command. Also, please show the full output of {{asterisk -rx "module show"}}

By: Dorian Logan (dorianlogan) 2014-04-08 08:51:57.608-0500

will do

By: Dorian Logan (dorianlogan) 2014-04-08 14:17:26.953-0500

More details added

By: Rusty Newton (rnewton) 2014-04-09 19:38:06.279-0500

Deleted that last debug since it wasn't attached to the issue as a file and didn't include the requested debug messages activated in the default full logging file. However, turns out it is not needed as the issue is very reproducible.

Another example is res_parking.conf
{noformat}
newtonr-laptop*CLI> config reload /etc/asterisk/res_parking.conf
No such module 'core'
{noformat}

{noformat}
newtonr-laptop*CLI> module reload res_parking.so
Module 'res_parking.so' reloaded successfully.
   -- Reloading module 'res_parking.so' (Call Parking Resource)
{noformat}


I see that it occurs when trying "config reload" on many conf files for independent modules that are apparently referenced in the core. This may be expected behavior and a limitation of the command, if so , then it needs to be documented.

I'm opening this up since we at least need to modify documentation if it turns out this is expected behavior, and of course the workaround is to just reload the modules directly.

Documentation only says
{noformat}
Usage: config reload <filename.conf>
  Reloads all modules that reference <filename.conf>
{noformat}

By: Dorian Logan (dorianlogan) 2014-04-10 03:11:24.681-0500

Okay so in line with your example

Attempting to reload config confbridge.conf fails - this could be defined as expected behaviour and docs updated - or code could be fixed to remove core dependancy if possible.

ubuntu*CLI> config reload /etc/asterisk/confbridge.conf
No such module 'core'

A work round to allow the config to be refreshed without restarting asterisk is to explicitly reload the module

ubuntu*CLI> module reload app_confbridge
   -- Reloading module 'app_confbridge.so' (Conference Bridge Application)

ubuntu*CLI> reload

This should still work as it triggers a reload of modules not a config reload.