[jitsi-dev] [jitsi-videobridge] Health check fails (#112)


#1

Immediately after starting JVB I `curl -s "localhost:port/about/health"` and I get a `500` back from JVB This is the output:

2015-12-16 22:21:05887 INFO: [17] orgjitsivideobridgeConferenceinfo() Created content audio of conference 418de752d03694db The total number of conferences is now 1, channels 0, video streams 0
2015-12-16 22:21:07018 INFO: [17] orgice4jiceAgentgatherCandidates() Gather candidates for component audioRTP
2015-12-16 22:21:07031 INFO: [17] orgice4jiceAgentcreateComponent()        192168247128:10001/udp (host)
2015-12-16 22:21:07031 INFO: [17] orgice4jiceAgentgatherCandidates() Gather candidates for component audioRTCP
2015-12-16 22:21:07033 INFO: [17] orgice4jiceAgentcreateComponent()        192168247128:10002/udp (host)
2015-12-16 22:21:07304 INFO: [17] orgjitsiimpllibjitsiLibJitsiImplinfo() Failed to initialize service implementation orgjitsiimplneomediaMediaServiceImpl
javalangNoClassDefFoundError: Could not initialize class javaawtToolkit
        at javaawtDimension<clinit>(Dimensionjava:88)
        at orgjitsiimplneomediadeviceDeviceConfiguration<clinit>(DeviceConfigurationjava:196)
        at orgjitsiimplneomediaMediaServiceImpl<init>(MediaServiceImpljava:159)
        at sunreflectNativeConstructorAccessorImplnewInstance0(Native Method)
        at sunreflectNativeConstructorAccessorImplnewInstance(NativeConstructorAccessorImpljava:62)
        at sunreflectDelegatingConstructorAccessorImplnewInstance(DelegatingConstructorAccessorImpljava:45)
        at javalangreflectConstructornewInstance(Constructorjava:422)
        at javalangClassnewInstance(Classjava:442)
        at orgjitsiimpllibjitsiLibJitsiImpl$ServiceLockinitializeService(LibJitsiImpljava:196)
        at orgjitsiimpllibjitsiLibJitsiImpl$ServiceLockgetService(LibJitsiImpljava:131)
        at orgjitsiimpllibjitsiLibJitsiImplgetService(LibJitsiImpljava:91)
        at orgjitsiimpllibjitsiLibJitsiOSGiImplgetService(LibJitsiOSGiImpljava:95)
        at orgjitsiservicelibjitsiLibJitsiinvokeGetServiceOnImpl(LibJitsijava:172)
        at orgjitsiservicelibjitsiLibJitsigetMediaService(LibJitsijava:124)
        at orgjitsivideobridgeConferencegetMediaService(Conferencejava:955)
        at orgjitsivideobridgeContentgetMediaService(Contentjava:659)
        at orgjitsivideobridgeRtpChannelgetMediaService(RtpChanneljava:816)
        at orgjitsivideobridgeRtpChannelinitialize(RtpChanneljava:951)
        at orgjitsivideobridgeContentcreateRtpChannel(Contentjava:269)
        at orgjitsivideobridgerestHealthcheck(Healthjava:95)
        at orgjitsivideobridgerestHealthcheck(Healthjava:147)
        at orgjitsivideobridgerestHealthgetJSON(Healthjava:318)
        at orgjitsivideobridgerestHandlerImpldoGetHealthJSON(HandlerImpljava:452)
        at orgjitsirestAbstractJSONHandlerhandleHealthJSON(AbstractJSONHandlerjava:369)
        at orgjitsirestAbstractJSONHandlerhandleJSON(AbstractJSONHandlerjava:399)
        at orgjitsivideobridgerestHandlerImplhandleJSON(HandlerImpljava:954)
        at orgjitsirestAbstractJSONHandlerhandle(AbstractJSONHandlerjava:341)
        at orgeclipsejettyserverhandlerHandlerListhandle(HandlerListjava:52)
        at orgeclipsejettyserverhandlerHandlerWrapperhandle(HandlerWrapperjava:97)
        at orgeclipsejettyserverServerhandle(Serverjava:497)
        at orgeclipsejettyserverHttpChannelhandle(HttpChanneljava:310)
        at orgeclipsejettyserverHttpConnectiononFillable(HttpConnectionjava:257)
        at orgeclipsejettyioAbstractConnection$2run(AbstractConnectionjava:540)
        at orgeclipsejettyutilthreadQueuedThreadPoolrunJob(QueuedThreadPooljava:635)
        at orgeclipsejettyutilthreadQueuedThreadPool$3run(QueuedThreadPooljava:555)
        at javalangThreadrun(Threadjava:745)
2015-12-16 22:21:07306 WARNING: [17] orgjitsivideobridgeChannelwarn() Failed to close the MediaStream/stream of channel 94303cba4d4951f9 of content audio of conference 418de752d03694db!
javalangNullPointerException
        at orgjitsivideobridgeRtpChannelcloseStream(RtpChanneljava:644)
        at orgjitsivideobridgeChannelexpire(Channeljava:345)
        at orgjitsivideobridgeRtpChannelexpire(RtpChanneljava:1881)
        at orgjitsivideobridgeContentexpire(Contentjava:377)
        at orgjitsivideobridgeConferenceexpire(Conferencejava:615)
        at orgjitsivideobridgerestHealthcheck(Healthjava:151)
        at orgjitsivideobridgerestHealthgetJSON(Healthjava:318)
        at orgjitsivideobridgerestHandlerImpldoGetHealthJSON(HandlerImpljava:452)
        at orgjitsirestAbstractJSONHandlerhandleHealthJSON(AbstractJSONHandlerjava:369)
        at orgjitsirestAbstractJSONHandlerhandleJSON(AbstractJSONHandlerjava:399)
        at orgjitsivideobridgerestHandlerImplhandleJSON(HandlerImpljava:954)
        at orgjitsirestAbstractJSONHandlerhandle(AbstractJSONHandlerjava:341)
        at orgeclipsejettyserverhandlerHandlerListhandle(HandlerListjava:52)
        at orgeclipsejettyserverhandlerHandlerWrapperhandle(HandlerWrapperjava:97)
        at orgeclipsejettyserverServerhandle(Serverjava:497)
        at orgeclipsejettyserverHttpChannelhandle(HttpChanneljava:310)
        at orgeclipsejettyserverHttpConnectiononFillable(HttpConnectionjava:257)
        at orgeclipsejettyioAbstractConnection$2run(AbstractConnectionjava:540)
        at orgeclipsejettyutilthreadQueuedThreadPoolrunJob(QueuedThreadPooljava:635)
        at orgeclipsejettyutilthreadQueuedThreadPool$3run(QueuedThreadPooljava:555)
        at javalangThreadrun(Threadjava:745)
2015-12-16 22:21:07308 INFO: [17] orgice4jiceAgentsetState() ICE state changed from Waiting to Terminated
2015-12-16 22:21:07310 INFO: [17] orgjitsivideobridgeChannelinfo() Expired channel 94303cba4d4951f9 of content audio of conference 418de752d03694db The total number of conferences is now 0, channels 0, video streams 0
2015-12-16 22:21:07310 INFO: [17] orgjitsivideobridgeContentinfo() Expired content audio of conference 418de752d03694db The total number of conferences is now 0, channels 0, video streams 0
2015-12-16 22:21:07310 INFO: [17] orgjitsivideobridgeConferenceinfo() Expired conference 418de752d03694db The total number of conferences is now 0, channels 0, video streams 0
···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112


#2

I tested this in our test deployment with latest versions and I cannot reproduce it. It should be something on your side and the way you are deploying.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112#issuecomment-165530046


#3

`java -v` outputs:

java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

I'm not sure what else it could be since this is a fresh VM for JVB with nothing else on it. Is `java.awt.toolikit` something I need to install separately?

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112#issuecomment-165582513


#4

Nope this is standard class, I think its even exists in jre-headless. Not sure what can be the problem ... Is this ubuntu or debian which version? Are you installing and running from deb packages?

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112#issuecomment-165586452


#5

Got it to work, I had not installed the `oracle-java8-installer` but not `default-jre`. For future reference, on ubuntu, should java be installed from apt-get or is there a standalone deb package that is recommended?

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112#issuecomment-165595624


#6

Closed #112.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112#event-495250901


#7

As current ubuntu LTS 14.04 doesn't have openjdk-8 we install it from ppa:
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update
apt-get install openjdk-8-jdk

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/jitsi-videobridge/issues/112#issuecomment-165602609