-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mod_conversejs: exception error: module_not_loaded,mod_register #3824
Comments
There are two problems here: A) A bug in mod_conversejs: it expects mod_register to be enabled in the vhost where the HTTP query is handled. Otherwise, it crashes. I've now solved this in 0e25f8d B) A problem in your configuration: you don't have "xmpp.domain0.tld" defined in the list of served vhosts in hosts:
- domain0.tld
- domain1.tld But you visit the URL "xmpp.domain0.tld/conversjs" and expect mod_conversejs to know what real vhost xmpp.domain0.tld is associated with? The error message says it clearly:
That module is not loaded for that vhost. |
Ok, I see. That sounds like it's not possible to have conversejs on a subdomain or other domain, correct? |
When mod_conversejs receives an HTTP query addressed to host "xmpp.example.org", and wants to read the module options, it asks ejabberd "What is the mod_conversejs configuration for host xmpp.example.org?" See: ejabberd/src/mod_conversejs.erl Lines 53 to 64 in 5a2e58e
However, you didn't configure that host at all: hosts:
- domain0.tld
- domain1.tld When you send a query to |
Environment
erl +V
Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml
Click to expand!
Errors from error.log
Click to expand!
Bug description
I wanted to give
mod_conversejs
a try, so I added it to therequest_handlers
and I addedmod_conversejs: {}
to my config.When I make a request to
xmpp.domain0.tld/conversjs
the error occurs. It says mymod_register
is not loaded. But it is loaded underappend_host_config
. I tried to put themod_register
in the main config (not inappend_host_config
). And I tried to putmod_conversejs
inappend_host_config
but the same error occurs.The text was updated successfully, but these errors were encountered: