Jitsi disconnecting every 30 seconds \ джитси отключается каждые 30 секунд

root@vks:/# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 vks
127.0.0.1 vks.domain.ru

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Above I showed the logs with errors, and the settings of the host file, the reboot of all services helped.

well, it’s difficult enough to interpret logs of a system whose details are unknowns, but when they are filtered it’s really a matter of lucking out on the culprit. I can’t think that a tail -f of your prosody could give any insight on what happened 15 minutes before. And filtering on WARN makes not much sense either. Attach (don’t paste !) full logs. The only thing I can say is that I find strange that your public domain is aliased to 127.0.1.1 for a public IP. I’d expect the public IP for a un-natted server. But it depends on the configuration so it’s definitely not a sure thing it’s the problem because why would it cause a problem after 12 hours of your system working (it was working yes ? it was not just sitting around waiting for users and as soon as users began to use it it crashed ? because even this is not clear. Remember you are adressing persons who don’t know anything about your setup)

Your jvb is loosing connection to prosody.
Have you monitored the CPU usage of the machine running prosody? Make sure you also monitor prosody process cpu usage, what do you see when this happens.

My config:

1 server all in one (installed according to this Self-Hosting Guide - Debian/Ubuntu server · Jitsi Meet Handbook)

The settings at the beginning of the post indicated.

prosody.err

Oct 12 09:01:01 mod_bosh	error	Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:218: attempt to index local 'attribs' (a nil value)
stack traceback:
	/usr/lib/prosody/modules/ldap.lib.lua:218: in function 'singlematch'
	/usr/lib/prosody/modules/ldap.lib.lua:187: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function 'plain_test'
	/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_saslauth.lua:80: in function </usr/lib/prosody/modules/mod_saslauth.lua:69>
	(...tail calls...)
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/core/stanza_router.lua:142: in function 'dispatch_stanza'
	/usr/lib/prosody/modules/mod_bosh.lua:323: in function 'func'
	/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
	/usr/lib/prosody/util/async.lua:211: in function 'run'
	/usr/lib/prosody/modules/mod_bosh.lua:465: in function 'cb_handlestanza'
	/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
	[C]: in function 'parse'
	/usr/lib/prosody/util/xmppstream.lua:285: in function 'feed'
	/usr/lib/prosody/modules/mod_bosh.lua:134: in function '?'
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/net/http/server.lua:229: in function </usr/lib/prosody/net/http/server.lua:176>
	[C]: in function 'xpcall'
	/usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
	/usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
	/usr/lib/prosody/net/http/parser.lua:177: in function 'feed'
	/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
	(...tail calls...)
	/usr/lib/prosody/net/server_select.lua:924: in function </usr/lib/prosody/net/server_select.lua:908>
	[C]: in function 'xpcall'
	/usr/bin/prosody:76: in function 'loop'
	/usr/bin/prosody:86: in main chunk
	[C]: in ?
Oct 12 09:05:52 mod_bosh	error	Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:218: attempt to index local 'attribs' (a nil value)
stack traceback:
	/usr/lib/prosody/modules/ldap.lib.lua:218: in function 'singlematch'
	/usr/lib/prosody/modules/ldap.lib.lua:187: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function 'plain_test'
	/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_saslauth.lua:80: in function </usr/lib/prosody/modules/mod_saslauth.lua:69>
	(...tail calls...)
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/core/stanza_router.lua:142: in function 'dispatch_stanza'
	/usr/lib/prosody/modules/mod_bosh.lua:323: in function 'func'
	/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
	/usr/lib/prosody/util/async.lua:211: in function 'run'
	/usr/lib/prosody/modules/mod_bosh.lua:465: in function 'cb_handlestanza'
	/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
	[C]: in function 'parse'
	/usr/lib/prosody/util/xmppstream.lua:285: in function 'feed'
	/usr/lib/prosody/modules/mod_bosh.lua:134: in function '?'
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/net/http/server.lua:229: in function </usr/lib/prosody/net/http/server.lua:176>
	[C]: in function 'xpcall'
	/usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
	/usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
	/usr/lib/prosody/net/http/parser.lua:177: in function 'feed'
	/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
	(...tail calls...)
	/usr/lib/prosody/net/server_select.lua:924: in function </usr/lib/prosody/net/server_select.lua:908>
	[C]: in function 'xpcall'
	/usr/bin/prosody:76: in function 'loop'
	/usr/bin/prosody:86: in main chunk
	[C]: in ?
Oct 12 09:08:05 mod_bosh	error	Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:218: attempt to index local 'attribs' (a nil value)
stack traceback:
	/usr/lib/prosody/modules/ldap.lib.lua:218: in function 'singlematch'
	/usr/lib/prosody/modules/ldap.lib.lua:187: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function 'plain_test'
	/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_saslauth.lua:80: in function </usr/lib/prosody/modules/mod_saslauth.lua:69>
	(...tail calls...)
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/core/stanza_router.lua:142: in function 'dispatch_stanza'
	/usr/lib/prosody/modules/mod_bosh.lua:323: in function 'func'
	/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
	/usr/lib/prosody/util/async.lua:211: in function 'run'
	/usr/lib/prosody/modules/mod_bosh.lua:465: in function 'cb_handlestanza'
	/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
	[C]: in function 'parse'
	/usr/lib/prosody/util/xmppstream.lua:285: in function 'feed'
	/usr/lib/prosody/modules/mod_bosh.lua:134: in function '?'
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/net/http/server.lua:229: in function </usr/lib/prosody/net/http/server.lua:176>
	[C]: in function 'xpcall'
	/usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
	/usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
	/usr/lib/prosody/net/http/parser.lua:177: in function 'feed'
	/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
	(...tail calls...)
	/usr/lib/prosody/net/server_select.lua:924: in function </usr/lib/prosody/net/server_select.lua:908>
	[C]: in function 'xpcall'
	/usr/bin/prosody:76: in function 'loop'
	/usr/bin/prosody:86: in main chunk
	[C]: in ?
Oct 12 09:15:00 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Oct 12 09:15:00 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Oct 12 09:15:00 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Oct 12 09:15:00 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Oct 12 09:15:00 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Oct 12 09:15:00 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Oct 12 09:15:00 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Oct 12 09:15:00 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Oct 12 10:00:53 mod_bosh	error	Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:218: attempt to index local 'attribs' (a nil value)
stack traceback:
	/usr/lib/prosody/modules/ldap.lib.lua:218: in function 'singlematch'
	/usr/lib/prosody/modules/ldap.lib.lua:187: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function 'plain_test'
	/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
	(...tail calls...)
	/usr/lib/prosody/modules/mod_saslauth.lua:80: in function </usr/lib/prosody/modules/mod_saslauth.lua:69>
	(...tail calls...)
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/core/stanza_router.lua:142: in function 'dispatch_stanza'
	/usr/lib/prosody/modules/mod_bosh.lua:323: in function 'func'
	/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
	/usr/lib/prosody/util/async.lua:211: in function 'run'
	/usr/lib/prosody/modules/mod_bosh.lua:465: in function 'cb_handlestanza'
	/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
	[C]: in function 'parse'
	/usr/lib/prosody/util/xmppstream.lua:285: in function 'feed'
	/usr/lib/prosody/modules/mod_bosh.lua:134: in function '?'
	/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
	(...tail calls...)
	/usr/lib/prosody/net/http/server.lua:229: in function </usr/lib/prosody/net/http/server.lua:176>
	[C]: in function 'xpcall'
	/usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
	/usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
	/usr/lib/prosody/net/http/parser.lua:177: in function 'feed'
	/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
	(...tail calls...)
	/usr/lib/prosody/net/server_select.lua:924: in function </usr/lib/prosody/net/server_select.lua:908>
	[C]: in function 'xpcall'
	/usr/bin/prosody:76: in function 'loop'
	/usr/bin/prosody:86: in main chunk
	[C]: in ?
Oct 12 10:00:53 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Oct 12 10:00:53 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Oct 12 10:00:53 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Oct 12 10:00:53 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Oct 12 10:00:53 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Oct 12 10:00:53 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Oct 12 10:00:53 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Oct 12 10:00:53 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281

jicofo.log (3.1 MB)
prosody.log (96.1 KB)
jvb.log 65mb

do you use any ldap authentication ? you may have issue with ldap parameters ?

yes using ldap, here are my settings:

root@vks:/home/sysadmin# cat /etc/prosody/conf.avail/ldap.cfg.lua
authentication = 'ldap2'
ldap = {
    hostname = '10.23.125.100',
    bind_dn = 'CN=jitsi,DC=corp,DC=domain,DC=ru',
    bind_password = 'Password',
    user = {
        basedn = 'DC=corp,DC=domain,DC=ru',
        filter = '(&(objectClass=user)(memberof=CN=VKS,DC=corp,DC=domain,DC=ru))',
        usernamefield = 'sAMAccountName',
        namefield = 'cn',
},
}
root@vks:/home/sysadmin# cat /etc/prosody/prosody.cfg.lua | grep consider_bosh_secure
consider_bosh_secure = true
root@vks:/home/sysadmin# cat /etc/ldap/ldap.conf
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

#BASE   dc=example,dc=com
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

# TLS certificates (needed for GnuTLS)
TLS_CACERT      /etc/ssl/certs/ca-certificates.crt
TLS_REQCERT never

can you try using this file LDAP Authentication · jitsi/jitsi-meet Wiki · GitHub

in your sample you miss one } if i read well

syntax

authentication = 'ldap2'

ldap = {
    hostname = 'ldap.example.com',
    bind_dn = 'cn=admin,dc=example,dc=com',
    bind_password = 's3cr37',
    use_tls = true,
    user = {
        usernamefield = 'uid',
        basedn = 'ou=people,dc=example,dc=com',
        filter = '(objectClass=*)',
	-- admin?
        --namefield = 'cn',
    },
}