Summary: | ASTERISK-27620: New module loader aborts startup if a required module declines load. | ||
Reporter: | snuffy (snuffy) | Labels: | pjsip |
Date Opened: | 2018-01-24 18:28:51.000-0600 | Date Closed: | 2018-01-29 09:50:35.000-0600 |
Priority: | Minor | Regression? | Yes |
Status: | Closed/Complete | Components: | Core/General |
Versions: | GIT | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | debian 9.1 | Attachments: | ( 0) modules.conf |
Description: | Updated to latest git master branch,
When I tried to start asterisk, it would fail and forcefully exit. On previous version lack of these config files would just mean that module did no load. For missing hep.conf: {noformat} Loading res_hep.so. [Jan 25 11:26:31] ERROR[26220]: config_options.c:706 aco_process_config: Unable to load config file 'hep.conf' [Jan 25 11:26:31] ERROR[26220]: loader.c:1640 start_resource_list: Failed to load res_hep_rtcp due to unfilled dependencies. [Jan 25 11:26:31] ERROR[26220]: asterisk.c:4336 check_init: Module initialization failed. ASTERISK EXITING! {noformat} For missing phoneprov.conf: {noformat} Loading res_phoneprov.so. [Jan 25 11:25:26] ERROR[25735]: res_phoneprov.c:1356 load_common: Unable to load config phoneprov.conf [Jan 25 11:25:26] ERROR[25735]: res_phoneprov.c:1429 load_module: Unable to load provisioning profiles. [Jan 25 11:25:26] ERROR[25735]: loader.c:1640 start_resource_list: Failed to load res_pjsip_phoneprov_provider due to unfilled dependencies. [Jan 25 11:25:26] ERROR[25735]: asterisk.c:4336 check_init: Module initialization failed. ASTERISK EXITING! {noformat} | ||
Comments: | By: Asterisk Team (asteriskteam) 2018-01-24 18:28:52.958-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Corey Farrell (coreyfarrell) 2018-01-24 20:44:03.748-0600 I've reproduced this issue by installing only res_hep.so and res_hep_rtcp.so, enabling autoload and deleting hep.conf (the minimum test case). I updated the issue title since the issue is not just limited to configs being missing, any issue which causes a load_module to return an error when another module requires that one will result in a failed startup. By: Friendly Automation (friendly-automation) 2018-01-29 09:50:36.345-0600 Change 8048 merged by George Joseph: loader: Correct overly strict startup checks. [https://gerrit.asterisk.org/8048|https://gerrit.asterisk.org/8048] |