[asterisk-bugs] [JIRA] (ASTERISK-25424) asterisk.conf syntax error causes inscrutable crash

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Oct 1 09:41:32 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton closed ASTERISK-25424.
-----------------------------------

    Resolution: Cannot Reproduce

bq. Unfortunately I can't reproduce it now either, sorry. There may have been something else I changed in asterisk.conf at the same time, but it was 5 AM and my notes aren't that comprehensive The rest of the config files are managed by FreePBX so I can't really get back to the exact state at time of failure.

No worries!

bq. I guess the only further question is whether it's appropriate to use the template syntax for [directories]. Certainly it confused me - but then again I didn't know Asterisk had added a template feature and didn't recognize what it was.

It wasn't added recently. Templates go way back to Asterisk's early days.

bq. I don't see how such a template would be "applied" in some later section. If for some strange reason you wanted to omit the [directories] section, comment markers would be a better way to do that IMHO.

The directories template has been that way for ages. I'm not opposed to changing it. You are right it could be confusing to people (though this is the only report we have had, others may not report it). If you feel strongly about it you can create a new issue, submit a patch to change the .conf file and submit it to Gerrit for review. 

There is always a lot to improve and as an open source project we depend on the community for these sorts of little improvements.

Thanks!


> asterisk.conf syntax error causes inscrutable crash
> ---------------------------------------------------
>
>                 Key: ASTERISK-25424
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25424
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/Sorcery
>    Affects Versions: 13.5.0
>         Environment: Ubuntu 14.04. Freepbx 2.11.0.43. Previous system had been 12.04 and Asterisk 1.8. 
>            Reporter: Norman Henderson
>            Assignee: Unassigned
>            Severity: Minor
>
> After upgrade, I installed Asterisk 13.5.0 from source. I ended up with the following first line in asterisk.conf:
> {noformat}
> [directories];(!) ; remove the (!) to enable this
> This appears to have caused Asterisk to crash during startup with:
>  == Parsing '/etc/asterisk/asterisk.conf': Found
>   == Sorcery registered wizard 'bucket'
>   == Sorcery registered wizard 'bucket_file'
> Cannot update type 'bucket' in module 'core' because it has no existing documentation!
> Failed to register 'bucket' object type in Bucket sorcery
> Failed: ast_bucket_init
> {noformat}
> Apparently the correct syntax from 13.5.0 asterisk.conf.dpkg-dist is
> {noformat}
> [directories](!)
> {noformat}
> (1) This syntax and its meaning or effect does not appear to be documented. Nor is there much relevant to the Sorcery / bucket issue in extensive searching - eventually I found one IRC comment in which an unrelated asterisk.conf error caused a similar crash.
> (2) Config file syntax errors should provide a meaningful error message; this is a basic principle of system design.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list