What type of hardware are you using: VPS bought online
What YunoHost version are you running: YunoHost 12.0.17 (stable)
What app is this about: Prosody
Describe your issue
Dear All,
I’m running Prosody 0.12.3 on YunoHost and I’m having trouble enabling the PubSub component on a subdomain (pubsub.sabatino.cloud).
What I’ve configured:
In my /etc/prosody/conf.avail/sabatino.cloud.cfg.lua file, I added:
Component "pubsub.sabatino.cloud" "pubsub"
name = "PubSub"
restrict_node_creation = true
allow_unaffiliated_publish = true
default_node_config = {
access_model = "open";
publish_model = "open";
persist_items = true;
max_items = 1000;
}
This file is symlinked correctly in /etc/prosody/conf.d/ and the domain is resolvable. I’ve restarted Prosody multiple times.
The problem:
When I try to interact with the component via prosodyctl:
sudo prosodyctl mod_pubsub create-node pubsub.sabatino.cloud test mario@sabatino.cloud
Error loading module 'pubsub' on '*': /usr/lib/prosody/util/pubsub.lua:181: attempt to call a boolean value (for iterator 'for iterator')
inside prosodyctl shell, this returns nil:
hosts["pubsub.sabatino.cloud"]
What I’ve checked:
The component line is present in the correct config file.
The file is symlinked into /etc/prosody/conf.d/.
The PubSub module seems to exist: /usr/lib/prosody/modules/mod_pubsub.lua is present.
DNS resolves correctly.
sudo prosodyctl check returns OK (except for localhost warnings).
Ports 5222 and 5269 are open and tested via openssl and nc.
Suspicions:
The Lua error (attempt to call a boolean value) suggests something may be wrong inside util.pubsub.new, maybe a broken or misconfigured module.
YunoHost might ship a modified Prosody or install it differently.
The component isn’t properly loaded at all (missing from hosts[…] and prosody.components).
Question:
How can I resolve this error and get the PubSub component properly loaded? Is this related to the version or an incompatibility with YunoHost?
Any help or advice is greatly appreciated!
Thanks in advance.
– Mario
Share relevant logs or error messages
When I try to interact with the component via prosodyctl:
sudo prosodyctl mod_pubsub create-node pubsub.sabatino.cloud test mario@sabatino.cloud
Error loading module 'pubsub' on '*': /usr/lib/prosody/util/pubsub.lua:181: attempt to call a boolean value (for iterator 'for iterator')
inside prosodyctl shell, this returns nil:
hosts["pubsub.sabatino.cloud"]