mod_http_api explicitly required #3773
-
Hi, Just upgraded a Debian (buster) server running ejabberd 21.01-2~bpo10+1 to bullseye, where the ejabberd package looks the same, according to its version (21.01-2). After the upgrade, however, it was unable to start due to the following:
The upgrade from bullseye-backports (21.12-1~bpo11+1) didn't help either. The node has started normally when |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Let's see if I understood your setup:
You say that ejabberd.yml in your old configuration didn't have mod_http_api enabled, but... I see ejabberd.yml.example in ejabberd (21.01-2~bpo10+1) contains mod_http_api in the modules section. I installed ejabberd (21.01-2), works correctly, then I remove mod_http_api in modules, and ejabberd starts correctly too. And, of course, there's the doubt: what is the relation between ejabberd_commands and mod_http_api? So, there's something weird here. Maybe your old configuration had some additional lines, that may be relevant to the problem? If you remove the mod_http_api line in modules, does ejabberd crash at start again? I mean, is that reproducible? |
Beta Was this translation helpful? Give feedback.
-
Yes, that's the setup, but the initial version of the config is from older custom installation. Probably from version 17.x (if I remember correctly), with several additions added over the years. The relation to mod_http_api was a wild guess, as the command "gen_html_doc_for_commands" can be found in the API Reference. I just restarted the node with commented mod_http_api and no errors were reported, which is even weirder. |
Beta Was this translation helpful? Give feedback.
-
Yes it was restarted several times with version 21.01-2 and 21.12-1~bpo11+1
The mod_http_api somehow fixed the crash, it was the only change in the config file. |
Beta Was this translation helpful? Give feedback.
Without further clues, I consider this a specific case, non-reproducible, and cannot suggest anything specific to the Debian packagers. If no more evidence surfaces, I propose to consider this unresolved (as in X-Files), and maybe someday somebody else kicks it again.