Can set up password authentication to start conference but only if anonymous guest authentication is disabled

Dear All -

I am running a Jitsi instance on Ubuntu 16.04.

This issue is similar to https://community.jitsi.org/c/install-config/9, in which one has trouble requiring password authentication to set up a new video conference while at the same time allowing invited guests to join anonymously. But this issue is different in that I can actually get authentication to set up a new conference to work – but only if I disable anonymous authentication for guests.

I have made the standard authentication-enabling changes to:
/etc/prosody/conf.d/my.site.com.cfg.lua
/etc/jitsi/meet/my.site.com-config.js
/etc/jitsi/jicofo/sip-communicator.properties

I can list these files if necessary, but was wondering if there was something else that I am missing.

Here is the reason: when I try to log on to my jitsi instance, I get nothing but a grey screen. BUT, password authentication to start a new conference appears to work just fine if I comment out anonymousdomain in /etc/jitsi/meet/my.site.com-config.js:

hosts: {
    // XMPP domain.
    domain: 'my.site.com',

// anonymousdomain: ‘guest.my.site.com

Here is the java console information from chromium in case it is useful:

TIME) index.html loaded: 437.57499999992433
(index):184 Uncaught SyntaxError: Unexpected identifier
Logger.js:154 2020-11-07T18:57:45.925Z [modules/browser/BrowserCapabilities.js] : This appears to be chrome, ver: 83.0.4103.116
LocalStatsCollector.js:22 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ md5.js:1
(anonymous) @ md5.js:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ md5.js:1
(anonymous) @ md5.js:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ md5.js:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ async.js:1
(anonymous) @ async.js:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ async.js:1
n @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
(anonymous) @ lib-jitsi-meet.min.js?v=4466:1
AuthHandler.js:20 Uncaught ReferenceError: config is not defined
at Object. (AuthHandler.js:20)
at Object. (app.bundle.min.js?v=4466:44)
at n (bootstrap:19)
at Object. (connection.js:1)
at Object. (app.bundle.min.js?v=4466:83)
at n (bootstrap:19)
at Object. (conference.js:1)
at Object. (app.bundle.min.js?v=4466:122)
at n (bootstrap:19)
at Module. (app.bundle.min.js?v=4466:224)
at n (bootstrap:19)
at bootstrap:83
at app.bundle.min.js?v=4466:1
(anonymous) @ tslib.es6.js:17
(anonymous) @ tslib.es6.js:17
n @ app.bundle.min.js?v=4466:1
(anonymous) @ tslib.es6.js:21
(anonymous) @ tslib.es6.js:21
n @ app.bundle.min.js?v=4466:1
(anonymous) @ index.js:11
(anonymous) @ index.js:11
n @ app.bundle.min.js?v=4466:1
(anonymous) @ index.js:1
n @ app.bundle.min.js?v=4466:1
(anonymous) @ app.bundle.min.js?v=4466:1
(anonymous) @ app.bundle.min.js?v=4466:1
The script has an unsupported MIME type (‘text/html’).
registrator.js:9 DOMException: Failed to register a ServiceWorker for scope (‘https://my.site.com/’) with script (‘https://my.site.com/pwa-worker.js’): The script has an unsupported MIME type (‘text/html’).

I believe there is a clue in the Jicofo log below. I see " No dedicated JVB MUC XMPP connection configured - falling back to the default XMPP connection" but I do not know how to interpret this or how to fix this if it is a problem.

icofo 2020-11-07 16:42:57.383 INFO: [10] impl.netaddr.NetworkAddressManagerServiceImpl.start().92 Network Address Manager …[ STARTED ]
Jicofo 2020-11-07 16:42:57.384 INFO: [10] impl.netaddr.NetworkAddressManagerServiceImpl.start().98 Network Address Manager Service …[REGISTERED]
Jicofo 2020-11-07 16:42:57.415 INFO: [10] org.jitsi.version.AbstractVersionActivator.log() VersionService registered: JiCoFo 1.0.644
Jicofo 2020-11-07 16:42:58.836 INFO: [10] org.jitsi.jicofo.FocusBundleActivator.log() Max shared pool size: 1500
Jicofo 2020-11-07 16:42:58.843 INFO: [10] org.jitsi.jicofo.JitsiMeetGlobalConfig.log() Automatically grant ‘owner’ role: true
Jicofo 2020-11-07 16:42:58.844 INFO: [10] org.jitsi.jicofo.JitsiMeetGlobalConfig.log() Jibri requests in PENDING state will be timed out after: 90 seconds
Jicofo 2020-11-07 16:42:58.844 INFO: [10] org.jitsi.jicofo.JitsiMeetGlobalConfig.log() Will attempt a maximum of 5 Jibri retries after failure
Jicofo 2020-11-07 16:42:58.844 INFO: [10] org.jitsi.jicofo.JitsiMeetGlobalConfig.log() Lonely participants will be “terminated” after 20000 milliseconds
Jicofo 2020-11-07 16:42:58.883 WARNING: [10] org.jitsi.jicofo.FocusManager.log() Jicofo ID is not set. Configure a valid value [1-65535] by setting org.jitsi.jicofo.SHORT_ID. Future versions will require this for Octo.
Jicofo 2020-11-07 16:42:59.014 WARNING: [10] org.jitsi.jicofo.FocusManager.log() No dedicated JVB MUC XMPP connection configured - falling back to the default XMPP connection
Jicofo 2020-11-07 16:43:01.003 INFO: [10] JitsiConfig.log() Initialized newConfig: merge of system properties,/etc/jitsi/jicofo/jicofo.conf: 1,system properties,reference.conf @ jar:file:/usr/share/jicofo/jicofo.jar!/reference.conf: 1,reference.conf @ jar:file:/usr/share/jicofo/lib/ice4j-3.0-21-g3a55627.jar!/reference.conf: 1
Jicofo 2020-11-07 16:43:01.011 INFO: [10] org.jitsi.config.ReadOnlyConfigurationService.log() loading config file at path /etc/jitsi/jicofo/sip-communicator.properties
Jicofo 2020-11-07 16:43:01.014 INFO: [10] JitsiConfig.log() Initialized legacyConfig: sip communicator props (no description provided)
Jicofo 2020-11-07 16:43:01.554 INFO: [10] org.jitsi.jicofo.bridge.BridgeSelector.log() Using org.jitsi.jicofo.bridge.SingleBridgeSelectionStrategy
Jicofo 2020-11-07 16:43:01.573 INFO: [10] org.jitsi.jicofo.JitsiMeetServices.log() Using a Bridge MUC detector with MUC: JvbBrewery@internal.auth.my.site.com
Jicofo 2020-11-07 16:43:01.665 INFO: [10] org.jitsi.jicofo.auth.AuthBundleActivator.log() Starting authentication service… URL: XMPP:my.site.com
Jicofo 2020-11-07 16:43:01.689 INFO: [10] org.jitsi.jicofo.auth.AbstractAuthAuthority.log() Authentication lifetime: 86400000
Jicofo 2020-11-07 16:43:01.689 INFO: [10] org.jitsi.jicofo.auth.AuthBundleActivator.log() Auth authority: org.jitsi.jicofo.auth.XMPPDomainAuthAuthority@5959c1d9
Jicofo 2020-11-07 16:43:01.915 INFO: [10] org.eclipse.jetty.util.log.initialized() Logging initialized @6879ms to org.eclipse.jetty.util.log.Slf4jLog
Jicofo 2020-11-07 16:43:03.465 INFO: [10] org.eclipse.jetty.server.Server.doStart() jetty-9.4.15.v20190215; built: 2019-02-15T16:53:49.381Z; git: eb70b240169fcf1abbd86af36482d1c49826fa0b; jvm 1.8.0_272-8u272-b10-0ubuntu1~16.04-b10
Jicofo 2020-11-07 16:43:06.493 INFO: [17] org.jitsi.jicofo.ProtocolProviderHandler.log() XmppProtocolProvider(focus@auth.my.site.com/focus56113275305602 (Jabber)): RegistrationStateChangeEvent[ oldState=Unregistered; newState=RegistrationState=Registered; reasonCode=-1; reason=null]
Jicofo 2020-11-07 16:43:06.961 INFO: [17] org.jitsi.jicofo.xmpp.BaseBrewery.log() Joined brewery room: JvbBrewery@internal.auth.my.site.com
Jicofo 2020-11-07 16:43:07.004 INFO: [17] org.jitsi.jicofo.ComponentsDiscovery.log() New component discovered: guest.my.site.com, Prosody(0.9.10,Linux)
Jicofo 2020-11-07 16:43:07.063 WARNING: [17] org.jitsi.impl.protocol.xmpp.OpSetSimpleCapsImpl.log() Failed to discover features for focus.my.site.com: XMPP error reply received from focus.my.site.com: XMPPError: service-unavailable - wait
Jicofo 2020-11-07 16:43:07.067 INFO: [17] org.jitsi.jicofo.ComponentsDiscovery.log() New component discovered: auth.my.site.com, Prosody(0.9.10,Linux)
Jicofo 2020-11-07 16:43:07.067 INFO: [17] org.jitsi.jicofo.JitsiMeetServices.log() Detected XMPP server version: Prosody(0.9.10,Linux)
Jicofo 2020-11-07 16:43:07.074 INFO: [17] org.jitsi.jicofo.ComponentsDiscovery.log() New component discovered: conference.my.site.com, null
Jicofo 2020-11-07 16:43:07.080 WARNING: [17] org.jitsi.impl.protocol.xmpp.OpSetSimpleCapsImpl.log() Failed to discover features for speakerstats.my.site.com: XMPP error reply received from speakerstats.my.site.com: XMPPError: service-unavailable - cancel
Jicofo 2020-11-07 16:43:07.083 WARNING: [17] org.jitsi.impl.protocol.xmpp.OpSetSimpleCapsImpl.log() Failed to discover features for conferenceduration.my.site.com: XMPP error reply received from conferenceduration.my.site.com: XMPPError: service-unavailable - cancel
Jicofo 2020-11-07 16:43:07.083 INFO: [17] org.jitsi.jicofo.ComponentsDiscovery.log() Service rediscovery disabled
Jicofo 2020-11-07 16:43:07.084 INFO: [17] org.jitsi.jicofo.FocusManager.log() XMPP provider reg state: RegistrationState=Registered
Jicofo 2020-11-07 16:43:07.176 INFO: [17] org.jitsi.impl.protocol.xmpp.XmppProtocolProvider.log() XMPP provider Jabber:focus@auth.my.site.com/focus56113275305602@localhost connected (JID: focus@auth.my.site.com/focus56113275305602)
Jicofo 2020-11-07 16:43:07.809 INFO: [29] org.jitsi.jicofo.xmpp.BaseBrewery.log() Added brewery instance: jvbbrewery@internal.auth.my.site.com/9f2baa0e-246c-40ae-91f8-277332c92942
Jicofo 2020-11-07 16:43:07.864 WARNING: [29] org.jitsi.config.log() Key ‘jicofo.bridge.average-participant-packet-rate-pps’ from source ‘typesafe config’ is deprecated: use jicofo.bridge.average-participant-stress
Jicofo 2020-11-07 16:43:07.908 INFO: [29] org.jitsi.jicofo.bridge.BridgeSelector.log() Added new videobridge: Bridge[jid=jvbbrewery@internal.auth.my.site.com/9f2baa0e-246c-40ae-91f8-277332c92942, relayId=null, region=null, stress=0.00]
Jicofo 2020-11-07 16:43:07.932 INFO: [29] org.jitsi.jicofo.bridge.JvbDoctor.log() Scheduled health-check task for: jvbbrewery@internal.auth.my.site.com/9f2baa0e-246c-40ae-91f8-277332c92942
Jicofo 2020-11-07 16:43:09.876 INFO: [10] org.eclipse.jetty.server.handler.ContextHandler.doStart() Started o.e.j.s.ServletContextHandler@31a2da30{/,null,AVAILABLE}
Jicofo 2020-11-07 16:43:09.932 INFO: [10] org.eclipse.jetty.server.AbstractConnector.doStart() Started ServerConnector@3bba4450{HTTP/1.1,[http/1.1]}{0.0.0.0:8888}
Jicofo 2020-11-07 16:43:09.932 INFO: [10] org.eclipse.jetty.server.Server.doStart() Started @14932ms
Jicofo 2020-11-07 16:43:09.970 INFO: [10] org.jitsi.jicofo.health.Health.log() Health checks are disabled.
Jicofo 2020-11-07 16:43:09.980 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.jicofo.BRIDGE_MUC=JvbBrewery@internal.auth.my.site.com
Jicofo 2020-11-07 16:43:09.980 INFO: [1] org.jitsi.impl.configuration.ConfigurationServiceImpl.log() org.jitsi.jicofo.auth.URL=XMPP:my.site.com
Jicofo 2020-11-07 16:43:09.997 INFO: [1] org.jitsi.xmpp.component.ComponentBase.log() Component org.jitsi.jicofo. config:
Jicofo 2020-11-07 16:43:09.997 INFO: [1] org.jitsi.xmpp.component.ComponentBase.log() ping interval: 10000 ms
Jicofo 2020-11-07 16:43:10.010 INFO: [1] org.jitsi.xmpp.component.ComponentBase.log() ping timeout: 5000 ms
Jicofo 2020-11-07 16:43:10.010 INFO: [1] org.jitsi.xmpp.component.ComponentBase.log() ping threshold: 3

I would be grateful for any help or insight. Thanks!

A syntax error in config.js, maybe?

should have a comma at end of line.

Solved!

Added comma and everything works now. The reason why everything was working before only when I commented out the “anonymousdomain” line was because that line had a syntax error – the missing comma.

Thank you!