can't save acls on disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ejabberd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Just installed fresh ubuntu 16.04 and ejabberd 16.01 from it.
I configured (yml) ldap authentication and declared myself as admin:
acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "dm": "jabber.mydomain"
Then started ejabberd and login through web interface.
I see that in host config acl database is in RAM (I'm back translating from russian).
If I set it to RAM & disk then acl database file appears, but if I restart ejabberd it removes file and
I see RAM in database config via web interface.
If I set only disk, then ejabberd dies with errors:
2016-07-21 13:02:43 =CRASH REPORT====
crasher:
initial call: ejabberd_
pid: <0.920.0>
registered_
exception error: bad argument: [{ets,lookup,
l.erl"}
-0-',3,
ancestors: [<0.472.
messages: []
links: [#Port<
dictionary: []
trap_exit: false
status: running
heap_size: 28690
stack_size: 27
reductions: 53249
neighbours:
2016-07-21 13:02:43 =CRASH REPORT====
crasher:
initial call: ejabberd_
pid: <0.1344.0>
registered_
exception error: bad argument: [{ets,lookup,
l.erl"}
rc/ejabberd_
ancestors: [<0.472.
messages: []
links: [#Port<
dictionary: []
trap_exit: false
status: running
heap_size: 2586
stack_size: 27
reductions: 3836
neighbours:
And
2016-07-21 13:02:43.963 [error] <0.1344.0> CRASH REPORT Process <0.1344.0> with 0 neighbours crashed with reason: bad argument in call to ets:lookup(acl, {admin,global}) in acl:get_aclspecs/2 line 349
Just because ejabberd 2 on ubuntu 12.04 runs with acls in RAM&disk just fine I think this is ejabberd bug.