You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to upgrade to 23.10 and we have the following in our terraform:
env {
# This will register the admin user if it does not already exist.
name = "CTL_ON_CREATE"
value = "register admin ${local.ejabberd_admin_domain} ${local.ejabberd_admin_password}"
}
Under 23.10 we are now getting an error and the container is not starting up, because the admin account already exists.
Is there a way to turn off this feature? If not is there a way to conditionally register a user if they don't already exist using CTL_ON_CREATE functionality?
:> ejabberdctl register admin {domain} {password}
Error: conflict: User admin@{domain} already registered
:> FAILURE in command 'register admin {domain} {password}' !!! Stopping ejabberd...
[os_mon] memory supervisor port (memsup): Erlang has closed
The text was updated successfully, but these errors were encountered:
Indeed this is something new added in 23.10, but i see that we should also allow previous behaviour.
So to fix that in commit c0acc7a i added ability to ignore failing commands, and this can be triggered by adding "!" as first argument in this variable (so using "! register admin ${local.ejabberd_admin_domain} ${local.ejabberd_admin_password}" will execute that command, but will not exit if that commands fails).
We are trying to upgrade to 23.10 and we have the following in our terraform:
Under 23.10 we are now getting an error and the container is not starting up, because the admin account already exists.
Is there a way to turn off this feature? If not is there a way to conditionally register a user if they don't already exist using
CTL_ON_CREATE
functionality?The text was updated successfully, but these errors were encountered: