Jigasi: Error occurred during initialization of VM

No one seems to have this issue in the forum.

I can’t seem to launch jigasi.

# cat jigasi.log
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

I’m not sure where to customize mem usage, but in any case, I should have more than enough on my system:

# free -h
              total        used        free      shared  buff/cache   available
Mem:           3.7G        314M        2.2G         15M        1.2G        3.0G
Swap:          3.7G          0B        3.7G

What else can I look for?

Thanks

Currently jigasi sets this by default: JIGASI_MAX_MEMORY=3072m

You don’t have enough for that.
You can add in your /etc/jitsi/jigasi/config
JIGASI_MAX_MEMORY=2048m

And try again

Thanks, that fixed the startup error. However, I’m still not seeing the phone icon when opening a room in jitmeet. On the other hand though, my Asterisk server shows that the SIP extension has registered. Calls to that extension are denied.

Here’s what I see in the jigasi log (I don’t know if some of these errors have anything to do with me not seeing the phone icon):

2019-06-19 13:01:20.566 SEVERE: [10] impl.configuration.ConfigurationActivator.log() Error creating c lib instance for fixing file permissions
java.nio.file.FileSystemException: /etc/jitsi/jigasi: Operation not permitted
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
        at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
        at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
        at net.java.sip.communicator.impl.configuration.ConfigurationActivator.fixPermissions(ConfigurationActivator.java:167)
        at net.java.sip.communicator.impl.configuration.ConfigurationActivator.start(ConfigurationActivator.java:88)
        at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
        at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
        at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
        at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)


2019-06-19 13:01:21.107 WARNING: [10] impl.sysactivity.SystemActivityNotifications.<clinit>().140 Failed to initialize native counterpart
java.lang.UnsatisfiedLinkError: /tmp/jna--1160142225/jna1680643539390807826.tmp: libgdk-x11-2.0.so.0: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1086)
        at org.jitsi.util.JNIUtils.loadLibrary(JNIUtils.java:96)
        at org.jitsi.util.JNIUtils.loadLibrary(JNIUtils.java:37)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications.<clinit>(SystemActivityNotifications.java:124)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl.isSupported(SystemActivityNotificationsServiceImpl.java:606)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl.start(SystemActivityNotificationsServiceImpl.java:143)
        at net.java.sip.communicator.impl.sysactivity.SysActivityActivator.start(SysActivityActivator.java:70)
        at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
        at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
        at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
        at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)
OpenJDK Server VM warning: You have loaded library /usr/share/jigasi/lib/native/linux/libunix-java.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.


2019-06-19 13:01:21.199 SEVERE: [10] impl.sysactivity.SystemActivityNotificationsServiceImpl.getCurrentRunningManager().647 Error creating manager
java.lang.UnsatisfiedLinkError: /usr/share/jigasi/lib/native/linux/libunix-java.so: /usr/share/jigasi/lib/native/linux/libunix-java.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at cx.ath.matthew.unix.UnixSocket.<clinit>(UnixSocket.java:40)
        at org.freedesktop.dbus.Transport.connect(Unknown Source)
        at org.freedesktop.dbus.Transport.<init>(Unknown Source)
        at org.freedesktop.dbus.DBusConnection.<init>(Unknown Source)
        at org.freedesktop.dbus.DBusConnection.getConnection(Unknown Source)
        at net.java.sip.communicator.impl.sysactivity.NetworkManagerListenerImpl.<init>(NetworkManagerListenerImpl.java:56)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl.getCurrentRunningManager(SystemActivityNotificationsServiceImpl.java:643)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl.start(SystemActivityNotificationsServiceImpl.java:154)
        at net.java.sip.communicator.impl.sysactivity.SysActivityActivator.start(SysActivityActivator.java:70)
        at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
        at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
        at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
        at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)

2019-06-19 13:01:21.210 SEVERE: [11] impl.sysactivity.SystemActivityNotificationsServiceImpl.getCurrentRunningManager().647 Error creating manager
java.lang.NoClassDefFoundError: Could not initialize class cx.ath.matthew.unix.UnixSocket
        at org.freedesktop.dbus.Transport.connect(Unknown Source)
        at org.freedesktop.dbus.Transport.<init>(Unknown Source)
        at org.freedesktop.dbus.DBusConnection.<init>(Unknown Source)
        at org.freedesktop.dbus.DBusConnection.getConnection(Unknown Source)
        at net.java.sip.communicator.impl.sysactivity.NetworkManagerListenerImpl.<init>(NetworkManagerListenerImpl.java:56)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl.getCurrentRunningManager(SystemActivityNotificationsServiceImpl.java:643)
        at net.java.sip.communicator.impl.sysactivity.SystemActivityNotificationsServiceImpl.isSupported(SystemActivityNotificationsServiceImpl.java:597)
        at net.java.sip.communicator.impl.netaddr.NetworkConfigurationWatcher.handleNewSystemActivityNotificationsService(NetworkConfigurationWatcher.java:187)
        at net.java.sip.communicator.impl.netaddr.NetworkConfigurationWatcher.serviceChanged(NetworkConfigurationWatcher.java:243)
        at org.jitsi.impl.osgi.framework.launch.EventDispatcher$Command.run(EventDispatcher.java:128)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
        at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)

2019-06-19 13:01:22.538 SEVERE: [10] org.jitsi.impl.neomedia.device.DeviceConfiguration.log() Failed to register custom Renderer org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer with JMF.
java.lang.IllegalStateException: audioSystem
        at org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:156)
        at org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:136)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at org.jitsi.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:1047)
        at org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:366)
        at org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:162)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at java.lang.Class.newInstance(Class.java:442)
        at org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.initializeService(LibJitsiImpl.java:196)
        at org.jitsi.impl.libjitsi.LibJitsiImpl$ServiceLock.getService(LibJitsiImpl.java:131)
        at org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:91)
        at org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.getService(LibJitsiOSGiImpl.java:95)
        at org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:172)
        at org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124)
        at net.java.sip.communicator.impl.neomedia.NeomediaActivator.start(NeomediaActivator.java:391)
        at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
        at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
        at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
        at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)

2019-06-19 13:01:23.447 SEVERE: [10] org.ice4j.socket.jdk8.DelegatingServerSocketChannel.<init>() Cannot find method translateInterestOps
java.lang.NoSuchMethodException: sun.nio.ch.SelChImpl.translateInterestOps(int)
        at java.lang.Class.getMethod(Class.java:1786)
        at org.ice4j.socket.jdk8.DelegatingServerSocketChannel.<init>(DelegatingServerSocketChannel.java:97)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.<init>(MuxingServerSocketChannel.java:644)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.openAndBind(MuxingServerSocketChannel.java:300)
        at org.ice4j.socket.jdk8.MuxServerSocketChannel.openAndBind(MuxServerSocketChannel.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.ice4j.socket.MuxServerSocketChannelFactory.openAndBindMuxServerSocketChannel(MuxServerSocketChannelFactory.java:181)
        at org.jitsi.rest.MuxServerConnector.open(MuxServerConnector.java:170)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:394)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.jitsi.rest.AbstractJettyBundleActivator.doStart(AbstractJettyBundleActivator.java:215)
        at org.jitsi.rest.AbstractJettyBundleActivator.start(AbstractJettyBundleActivator.java:607)
        at org.jitsi.impl.osgi.framework.BundleImpl.start(BundleImpl.java:307)
        at org.jitsi.impl.osgi.framework.launch.FrameworkImpl.startLevelChanged(FrameworkImpl.java:472)
        at org.jitsi.impl.osgi.framework.startlevel.FrameworkStartLevelImpl$Command.run(FrameworkStartLevelImpl.java:137)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.runInThread(AsyncExecutor.java:122)
        at org.jitsi.impl.osgi.framework.AsyncExecutor.access$000(AsyncExecutor.java:28)
        at org.jitsi.impl.osgi.framework.AsyncExecutor$1.run(AsyncExecutor.java:231)

This is what I see in my Asterisk log:

-- SIP/4901-00014216 is ringing
-- Got SIP response 486 "Busy here" back from 10.215.144.163
-- SIP/4901-00014216 is busy

All these errors you can ignore. If your jigasi registering as component to the xmpp server?

2019-06-19 13:18:06.800 SEVERE: [172] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin().1004 Failed to connect to XMPP service
org.jivesoftware.smack.SmackException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: The peer provided certificate with Subject ....

I don’t know how I missed this message in the log (jigasi). Maybe because it came up later. Anyway, it seems to have something to do with the certificate. It might not trust the signing authority (self-signed cert).

There is a property to disable that check.

Here it is: https://github.com/jitsi/jigasi/blob/c384711210922381ee6e8a85ae7f5242fac43289/jigasi-home/sip-communicator.properties#L102

Hi,

Thanks, I found that option too.

The prosody log file shows:

Jun 20 09:18:02 jcp126f2e0      debug   Received[component_unauthed]: <handshake xmlns='jabber:component:accept'>
Jun 20 09:18:02 callcontrol.meet.mydomain.org:component  info    External component successfully authenticated

The jigasi log confirms:

WARNING: [40] org.jitsi.jigasi.xmpp.CallControl.<init>().138 Always trust in remote TLS certificates mode is enabled

The jicofo log shows:

Jicofo 2019-06-20 09:18:14.526 INFO: [40] org.jitsi.jicofo.ComponentsDiscovery.log() New component discovered: callcontrol.meet.mydomain.org, null
Jicofo 2019-06-20 09:18:14.527 INFO: [40] org.jitsi.jicofo.JitsiMeetServices.log() Discovered SIP gateway: callcontrol.meet.mydomain.org

However, when I go into a room I still do not see the phone icon.

What else can I try?