Question
Issue with Prosody when setting up a Jitsi server (returning a nil value).
I followed the tutorial and seem to have a problem with Prosody generating the error below (hostname removed for security reasons):
Oct 24 19:06:17 <my hostname> prosody[2325]: A problem occurred while reading the config file /etc/prosody/prosody.cfg.lua
Oct 24 19:06:17 <my hostname> prosody[2325]: Error: /etc/prosody/conf.d/<my hostname>.cfg.lua:98: attempt to call global ‘Virtualhost’ (a nil value)
Oct 24 19:06:17 <my hostname> prosody[2325]: More help on configuring Prosody can be found at https://prosody.im/doc/configure
Oct 24 19:06:17 <my hostname> prosody[2325]: Good luck!
I have checked both the cfg.lua files in both conf.d and conf.avail subfolders in case of a miss-spelling of the host name, and they checked out OK. When I go to use the Jitsi server, I’m not greeted with a log-in prompt when I want to start a meeting. I also am unable to create a user in the console using the line command:
sudo prosodyctl register user my_domain password
Again I get an error as per the log entries above.
I’m a bit of a novice when it comes to server configuration, so any advice on how I can fix this would be of great help please. Many thanks.
The droplet I’ve set up is using Ubuntu 20.04.1LTS, and fully updated.