Inspector & Kibana not working

Hi,

Yesterday I started my free trial for OpenVidu Pro and I’ve continuously run into issues.

Issue 1: I still haven’t been able to get the inspector open. I keep getting a 502 error
Issue 2: I was finally able to get /kibana working, but I’m still receiving kibana related errors. I tried to disable Kibana by using the following in my .env file:

OPENVIDU_PRO_ELASTICSEARCH_HOST=
OPENVIDU_PRO_KIBANA_HOST=

# Also tried this

OPENVIDU_PRO_ELASTICSEARCH_HOST=""
OPENVIDU_PRO_KIBANA_HOST=""

but it’s still trying to connect to Kibana on localhost.

openvidu-server_1  |   =======================================
openvidu-server_1  |   =            WAIT KIBANA              =
openvidu-server_1  |   =======================================
openvidu-server_1  | 
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL..

I did a report using ./openvidu report and the report shows the the initial values are empty, but it sets the value: 127.0.0.0/kibana in the containers which seems to defeat the purpose.

I also tried creating an elastic search cloud instance, but it fails to connect to that as well. I feel as though I’m running out of options so I’m asking here for help to see what I could possibly be doing wrong.

Here’s my .env:


# OpenVidu configuration

# ----------------------

# Documentation: https://docs.openvidu.io/en/stable/reference-docs/openvidu-config/

# NOTE: This file doesn't need to quote assignment values, like most shells do.

# All values are stored as-is, even if they contain spaces, so don't quote them.

# Domain name. If you do not have one, the public IP of the machine.

# For example: 198.51.100.1, or openvidu.example.com

DOMAIN_OR_PUBLIC_IP=openvidu.govork.com

KMS_URIS=["***"]

# OpenVidu SECRET used for apps to connect to OpenVidu server and users to access to OpenVidu Dashboard

OPENVIDU_SECRET=***

OPENVIDU_PRO_LICENSE="***"

#OPENVIDU_PRO_ELASTICSEARCH_HOST=https://***.es.us-central1.gcp.cloud.es.io

#OPENVIDU_PRO_ELASTICSEARCH_HOST=

#OPENVIDU_PRO_KIBANA_HOST=https://***.kb.us-central1.gcp.cloud.es.io

#OPENVIDU_PRO_KIBANA_HOST=

ELASTICSEARCH_USERNAME="elastic"

ELASTICSEARCH_PASSWORD="C630GaCFgX49h0pavXx2onol"

# Certificate type:

# - selfsigned: Self signed certificate. Not recommended for production use.

# Users will see an ERROR when connected to web page.

# - owncert: Valid certificate purchased in a Internet services company.

# Please put the certificates files inside folder ./owncert

# with names certificate.key and certificate.cert

# - letsencrypt: Generate a new certificate using letsencrypt. Please set the

# required contact email for Let's Encrypt in LETSENCRYPT_EMAIL

# variable.

CERTIFICATE_TYPE=letsencrypt

# If CERTIFICATE_TYPE=letsencrypt, you need to configure a valid email for notifications

LETSENCRYPT_EMAIL=***

# Proxy configuration

# If you want to change the ports on which openvidu listens, uncomment the following lines

# Allows any request to http://DOMAIN_OR_PUBLIC_IP:HTTP_PORT/ to be automatically

# redirected to https://DOMAIN_OR_PUBLIC_IP:HTTPS_PORT/.

# WARNING: the default port 80 cannot be changed during the first boot

# if you have chosen to deploy with the option CERTIFICATE_TYPE=letsencrypt

# HTTP_PORT=80

# Changes the port of all services exposed by OpenVidu.

# SDKs, REST clients and browsers will have to connect to this port

# HTTPS_PORT=443

# Old paths are considered now deprecated, but still supported by default.

# OpenVidu Server will log a WARN message every time a deprecated path is called, indicating

# the new path that should be used instead. You can set property SUPPORT_DEPRECATED_API=false

# to stop allowing the use of old paths.

# Default value is true

# SUPPORT_DEPRECATED_API=true

# If true request to with www will be redirected to non-www requests

# Default value is false

# REDIRECT_WWW=false

# How many workers to configure in nginx proxy.

# The more workers, the more requests will be handled

# Default value is 10240

# WORKER_CONNECTIONS=10240

# Access restrictions

# In this section you will be able to restrict the IPs from which you can access to

# Openvidu API and the Administration Panel

# WARNING! If you touch this configuration you can lose access to the platform from some IPs.

# Use it carefully.

# This section limits access to the /dashboard (OpenVidu CE) and /inspector (OpenVidu Pro) pages.

# The form for a single IP or an IP range is:

# ALLOWED_ACCESS_TO_DASHBOARD=198.51.100.1 and ALLOWED_ACCESS_TO_DASHBOARD=198.51.100.0/24

# To limit multiple IPs or IP ranges, separate by commas like this:

# ALLOWED_ACCESS_TO_DASHBOARD=198.51.100.1, 198.51.100.0/24

# ALLOWED_ACCESS_TO_DASHBOARD=

# This section limits access to the Openvidu REST API.

# The form for a single IP or an IP range is:

# ALLOWED_ACCESS_TO_RESTAPI=198.51.100.1 and ALLOWED_ACCESS_TO_RESTAPI=198.51.100.0/24

# To limit multiple IPs or or IP ranges, separate by commas like this:

# ALLOWED_ACCESS_TO_RESTAPI=198.51.100.1, 198.51.100.0/24

# ALLOWED_ACCESS_TO_RESTAPI=

# Whether to enable recording module or not

OPENVIDU_RECORDING=false

# Use recording module with debug mode.

OPENVIDU_RECORDING_DEBUG=false

# Openvidu Folder Record used for save the openvidu recording videos. Change it

# with the folder you want to use from your host.

OPENVIDU_RECORDING_PATH=/opt/openvidu/recordings

# System path where OpenVidu Server should look for custom recording layouts

OPENVIDU_RECORDING_CUSTOM_LAYOUT=/opt/openvidu/custom-layout

# if true any client can connect to

# https://OPENVIDU_SERVER_IP:OPENVIDU_PORT/recordings/any_session_file.mp4

# and access any recorded video file. If false this path will be secured with

# OPENVIDU_SECRET param just as OpenVidu Server dashboard at

# https://OPENVIDU_SERVER_IP:OPENVIDU_PORT

# Values: true | false

OPENVIDU_RECORDING_PUBLIC_ACCESS=false

# Which users should receive the recording events in the client side

# (recordingStarted, recordingStopped). Can be all (every user connected to

# the session), publisher_moderator (users with role 'PUBLISHER' or

# 'MODERATOR'), moderator (only users with role 'MODERATOR') or none

# (no user will receive these events)

OPENVIDU_RECORDING_NOTIFICATION=publisher_moderator

# Timeout in seconds for recordings to automatically stop (and the session involved to be closed)

# when conditions are met: a session recording is started but no user is publishing to it or a session

# is being recorded and last user disconnects. If a user publishes within the timeout in either case,

# the automatic stop of the recording is cancelled

# 0 means no timeout

OPENVIDU_RECORDING_AUTOSTOP_TIMEOUT=120

# Maximum video bandwidth sent from clients to OpenVidu Server, in kbps.

# 0 means unconstrained

OPENVIDU_STREAMS_VIDEO_MAX_RECV_BANDWIDTH=1000

# Minimum video bandwidth sent from clients to OpenVidu Server, in kbps.

# 0 means unconstrained

OPENVIDU_STREAMS_VIDEO_MIN_RECV_BANDWIDTH=300

# Maximum video bandwidth sent from OpenVidu Server to clients, in kbps.

# 0 means unconstrained

OPENVIDU_STREAMS_VIDEO_MAX_SEND_BANDWIDTH=1000

# Minimum video bandwidth sent from OpenVidu Server to clients, in kbps.

# 0 means unconstrained

OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH=300

# true to enable OpenVidu Webhook service. false' otherwise

# Values: true | false

OPENVIDU_WEBHOOK=false

# HTTP endpoint where OpenVidu Server will send Webhook HTTP POST messages

# Must be a valid URL: http(s)://ENDPOINT

#OPENVIDU_WEBHOOK_ENDPOINT=

# List of headers that OpenVidu Webhook service will attach to HTTP POST messages

#OPENVIDU_WEBHOOK_HEADERS=

# List of events that will be sent by OpenVidu Webhook service

# Default value is all available events

#OPENVIDU_WEBHOOK_EVENTS=[sessionCreated,sessionDestroyed,participantJoined,participantLeft,webrtcConnectionCreated,webrtcConnectionDestroyed,recordingStatusChanged,filterEventDispatched,mediaNodeStatusChanged]

# How often the garbage collector of non active sessions runs.

# This helps cleaning up sessions that have been initialized through

# REST API (and maybe tokens have been created for them) but have had no users connected.

# Default to 900s (15 mins). 0 to disable non active sessions garbage collector

OPENVIDU_SESSIONS_GARBAGE_INTERVAL=900

# Minimum time in seconds that a non active session must have been in existence

# for the garbage collector of non active sessions to remove it. Default to 3600s (1 hour).

# If non active sessions garbage collector is disabled

# (property 'OPENVIDU_SESSIONS_GARBAGE_INTERVAL' to 0) this property is ignored

OPENVIDU_SESSIONS_GARBAGE_THRESHOLD=3600

# Call Detail Record enabled

# Whether to enable Call Detail Record or not

# Values: true | false

OPENVIDU_CDR=true

# Path where the cdr log files are hosted

OPENVIDU_CDR_PATH=/opt/openvidu/cdr

# Kurento Media Server image

# --------------------------

# Docker hub kurento media server: https://hub.docker.com/r/kurento/kurento-media-server

# Uncomment the next line and define this variable with KMS image that you want use

# KMS_IMAGE=kurento/kurento-media-server:6.15.0

# Kurento Media Server Level logs

# -------------------------------

# Uncomment the next line and define this variable to change

# the verbosity level of the logs of KMS

# Documentation: https://doc-kurento.readthedocs.io/en/stable/features/logging.html

# KMS_DOCKER_ENV_GST_DEBUG=

# Openvidu Server Level logs

# --------------------------

# Uncomment the next line and define this variable to change

# the verbosity level of the logs of Openvidu Service

# RECOMENDED VALUES: INFO for normal logs DEBUG for more verbose logs

# OV_CE_DEBUG_LEVEL=INFO

# Java Options

# --------------------------

# Uncomment the next line and define this to add

# options to java command

# Documentation: https://docs.oracle.com/cd/E37116_01/install.111210/e23737/configuring_jvm.htm#OUDIG00058

# JAVA_OPTIONS=-Xms2048m -Xmx4096m -Duser.timezone=UTC

Below are the kibana errors I get when I try to use kibana locally

openvidu-server_1  |   =======================================
openvidu-server_1  |   =       LAUNCH OPENVIDU-SERVER        =
openvidu-server_1  |   =======================================
openvidu-server_1  | [getmyip] All providers failed
openvidu-server_1  | [INFO] 2021-06-06 09:48:07,452 [main] io.openvidu.server.pro.OpenViduServerPro - Starting OpenViduServerPro on openvidu-pro-node-Production with PID 151 (/opt/openvidu/openvidu-server.jar started by root in /opt/openvidu)
openvidu-server_1  | [INFO] 2021-06-06 09:48:07,463 [main] io.openvidu.server.pro.OpenViduServerPro - No active profile set, falling back to default profiles: default
openvidu-server_1  | [INFO] 2021-06-06 09:48:07,817 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-06 09:48:07,975 [main] io.openvidu.server.pro.OpenViduServerPro - Started OpenViduServerPro in 1.952 seconds (JVM running for 2.954)
openvidu-server_1  | [INFO] 2021-06-06 09:48:07,991 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-06 09:48:07,998 [main] io.openvidu.server.pro.OpenViduServerPro - Cluster identifier not configured in OPENVIDU_PRO_CLUSTER_ID. Using DOMAIN_OR_PUBLIC_IP as cluster identifier: openvidu.govork.com
openvidu-server_1  | 
openvidu-server_1  | ______________________________________________________________
openvidu-server_1  |    ____               __      ___     _       
openvidu-server_1  |   / __ \              \ \    / (_)   | |      
openvidu-server_1  |  | |  | |_ __   ___ _ _\ \  / / _  __| |_   _     ___         
openvidu-server_1  |  | |  | | '_ \ / _ \ '_ \ \/ / | |/ _` | | | |   | _ \_ _ ___ 
openvidu-server_1  |  | |__| | |_) |  __/ | | \  /  | | (_| | |_| |   |  _/ '_/ _ \
openvidu-server_1  |   \____/| .__/ \___|_| |_|\/   |_|\__,_|\__,_|   |_| |_| \___/
openvidu-server_1  |         | |              
openvidu-server_1  |         |_|                            version 2.18.0   
openvidu-server_1  | ______________________________________________________________
openvidu-server_1  | 
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,181 [main] io.openvidu.server.pro.OpenViduServerPro - Starting OpenViduServerPro on openvidu-pro-node-Production with PID 151 (/opt/openvidu/openvidu-server.jar started by root in /opt/openvidu)
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,182 [main] io.openvidu.server.pro.OpenViduServerPro - No active profile set, falling back to default profiles: default
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,224 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,232 [main] io.openvidu.server.pro.OpenViduServerPro - Started OpenViduServerPro in 0.223 seconds (JVM running for 3.212)
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,248 [main] io.openvidu.server.OpenViduServer - 
openvidu-server_1  | 
openvidu-server_1  | 

openvidu-server_1  | [WARN] 2021-06-06 09:48:08,268 [main] io.openvidu.server.pro.OpenViduServerPro - You have set property server.port (or SERVER_PORT). This will serve OpenVidu Server Pro on your host at port 5443. But property HTTPS_PORT (443) still configures the port that should be used to connect to OpenVidu Server from outside. Bear this in mind when configuring a proxy in front of OpenVidu Server
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,383 [main] io.openvidu.server.pro.OpenViduServerPro - Starting OpenViduServerPro on openvidu-pro-node-Production with PID 151 (/opt/openvidu/openvidu-server.jar started by root in /opt/openvidu)
openvidu-server_1  | [INFO] 2021-06-06 09:48:08,387 [main] io.openvidu.server.pro.OpenViduServerPro - No active profile set, falling back to default profiles: default
openvidu-server_1  | [INFO] 2021-06-06 09:48:10,940 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,338 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 5443 (http)
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,360 [main] org.apache.catalina.core.StandardService - Starting service [Tomcat]
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,360 [main] org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.39]
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,487 [main] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,487 [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3056 ms
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,545 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,555 [main] io.openvidu.server.pro.OpenViduServerPro - Server Micrometer stats enabled. Gathering every 10s
openvidu-server_1  | [INFO] 2021-06-06 09:48:11,608 [main] io.micrometer.core.instrument.push.PushMeterRegistry - publishing metrics for ElasticMeterRegistry every 10s
openvidu-server_1  | [WARN] 2021-06-06 09:48:12,134 [main] io.openvidu.server.rest.ApiRestPathRewriteFilter - Support for deprecated REST API paths enabled. Update your REST API clients to use the new paths
openvidu-server_1  | [WARN] 2021-06-06 09:48:12,134 [main] io.openvidu.server.rest.ApiRestPathRewriteFilter - Deprecated path support will be removed in a future release. You can disable old path support to test compatibility with property SUPPORT_DEPRECATED_API=false
openvidu-server_1  | [INFO] 2021-06-06 09:48:12,198 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro is deployed in 'docker' environment
openvidu-server_1  | [WARN] 2021-06-06 09:48:12,225 [main] com.github.dockerjava.core.DockerClientBuilder - 'dockerHttpClient' should be set.Falling back to Jersey, will be an error in future releases.
openvidu-server_1  | [INFO] 2021-06-06 09:48:13,421 [main] io.openvidu.server.utils.DockerManager - Docker is installed and enabled
openvidu-server_1  | [INFO] 2021-06-06 09:48:13,435 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro cluster mode enabled
openvidu-server_1  | [INFO] 2021-06-06 09:48:13,436 [main] io.openvidu.server.pro.OpenViduServerPro - Cluster identifier not configured in OPENVIDU_PRO_CLUSTER_ID. Using DOMAIN_OR_PUBLIC_IP as cluster identifier: openvidu.govork.com
openvidu-server_1  | [INFO] 2021-06-06 09:48:13,465 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro Elasticsearch service is enabled
openvidu-server_1  | [WARN] 2021-06-06 09:48:14,442 [main] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionRestControllerPro': Unsatisfied dependency expressed through field 'sessionManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionManager': Unsatisfied dependency expressed through field 'sessionEventsHandler'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionEventsHandler': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'infrastructureManager': Unsatisfied dependency expressed through field 'kmsManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kmsManager': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | [WARN] 2021-06-06 09:48:14,460 [main] io.micrometer.core.instrument.push.PushMeterRegistry - Unexpected exception thrown while publishing metrics for ElasticMeterRegistry
openvidu-server_1  | java.lang.RuntimeException: java.lang.IllegalArgumentException: Unexpected response body: {"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [\"elastic_user\"] for REST request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"unable to authenticate user [\"elastic_user\"] for REST request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
openvidu-server_1  | 	at io.micrometer.elastic.ElasticMeterRegistry.determineMajorVersionIfNeeded(ElasticMeterRegistry.java:258)
openvidu-server_1  | 	at io.micrometer.elastic.ElasticMeterRegistry.publish(ElasticMeterRegistry.java:200)
openvidu-server_1  | 	at io.micrometer.core.instrument.push.PushMeterRegistry.publishSafely(PushMeterRegistry.java:52)
openvidu-server_1  | 	at io.micrometer.core.instrument.push.PushMeterRegistry.close(PushMeterRegistry.java:89)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
openvidu-server_1  | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:339)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:273)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1092)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1085)
openvidu-server_1  | 	at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1061)
openvidu-server_1  | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
openvidu-server_1  | 	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
openvidu-server_1  | 	at io.openvidu.server.pro.OpenViduServerPro.main(OpenViduServerPro.java:484)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
openvidu-server_1  | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
openvidu-server_1  | 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
openvidu-server_1  | 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
openvidu-server_1  | 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
openvidu-server_1  | 	at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
openvidu-server_1  | Caused by: java.lang.IllegalArgumentException: Unexpected response body: {"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [\"elastic_user\"] for REST request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"unable to authenticate user [\"elastic_user\"] for REST request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
openvidu-server_1  | 	at io.micrometer.elastic.ElasticMeterRegistry.getMajorVersion(ElasticMeterRegistry.java:266)
openvidu-server_1  | 	at io.micrometer.elastic.ElasticMeterRegistry.determineMajorVersionIfNeeded(ElasticMeterRegistry.java:256)
openvidu-server_1  | 	... 32 common frames omitted
openvidu-server_1  | [INFO] 2021-06-06 09:48:14,466 [main] org.apache.catalina.core.StandardService - Stopping service [Tomcat]
openvidu-server_1  | [INFO] 2021-06-06 09:48:14,498 [main] org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener - 
openvidu-server_1  | 
openvidu-server_1  | Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
openvidu-server_1  | [ERROR] 2021-06-06 09:48:14,503 [main] org.springframework.boot.SpringApplication - Application run failed
openvidu-server_1  | org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionRestControllerPro': Unsatisfied dependency expressed through field 'sessionManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionManager': Unsatisfied dependency expressed through field 'sessionEventsHandler'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionEventsHandler': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'infrastructureManager': Unsatisfied dependency expressed through field 'kmsManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kmsManager': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
openvidu-server_1  | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
openvidu-server_1  | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
openvidu-server_1  | 	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
openvidu-server_1  | 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
openvidu-server_1  | 	at io.openvidu.server.pro.OpenViduServerPro.main(OpenViduServerPro.java:484)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
openvidu-server_1  | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
openvidu-server_1  | 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
openvidu-server_1  | 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
openvidu-server_1  | 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
openvidu-server_1  | 	at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
openvidu-server_1  | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionManager': Unsatisfied dependency expressed through field 'sessionEventsHandler'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionEventsHandler': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'infrastructureManager': Unsatisfied dependency expressed through field 'kmsManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kmsManager': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
openvidu-server_1  | 	... 28 common frames omitted
openvidu-server_1  | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sessionEventsHandler': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'infrastructureManager': Unsatisfied dependency expressed through field 'kmsManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kmsManager': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
openvidu-server_1  | 	... 41 common frames omitted
openvidu-server_1  | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'infrastructureManager': Unsatisfied dependency expressed through field 'kmsManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kmsManager': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:311)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:311)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:311)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:311)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
openvidu-server_1  | 	... 54 common frames omitted


Error Cont. (Had to split it because there’s too many characters)

openvidu-server_1  | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kmsManager': Unsatisfied dependency expressed through field 'CDR'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];

openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
openvidu-server_1  | 	... 75 common frames omitted
openvidu-server_1  | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdr' defined in io.openvidu.server.pro.OpenViduServerPro: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | 	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655)
openvidu-server_1  | 	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:635)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
openvidu-server_1  | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
openvidu-server_1  | 	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
openvidu-server_1  | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
openvidu-server_1  | 	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
openvidu-server_1  | 	... 88 common frames omitted
openvidu-server_1  | Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.openvidu.server.cdr.CallDetailRecord]: Factory method 'cdr' threw exception; nested exception is ElasticsearchStatusException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]]; nested: ResponseException[method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]];
openvidu-server_1  | 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
openvidu-server_1  | 	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650)
openvidu-server_1  | 	... 101 common frames omitted
openvidu-server_1  | Caused by: org.elasticsearch.ElasticsearchStatusException: method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]
openvidu-server_1  | 	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1866)
openvidu-server_1  | 	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1626)
openvidu-server_1  | 	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1598)
openvidu-server_1  | 	at org.elasticsearch.client.RestHighLevelClient.ping(RestHighLevelClient.java:756)
openvidu-server_1  | 	at io.openvidu.server.pro.cdr.CDRLoggerElasticSearch.<init>(CDRLoggerElasticSearch.java:99)
openvidu-server_1  | 	at io.openvidu.server.pro.OpenViduServerPro.cdr(OpenViduServerPro.java:198)
openvidu-server_1  | 	at io.openvidu.server.pro.OpenViduServerPro$$EnhancerBySpringCGLIB$$2b17a6bf.CGLIB$cdr$23(<generated>)
openvidu-server_1  | 	at io.openvidu.server.pro.OpenViduServerPro$$EnhancerBySpringCGLIB$$2b17a6bf$$FastClassBySpringCGLIB$$74246be0.invoke(<generated>)
openvidu-server_1  | 	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
openvidu-server_1  | 	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
openvidu-server_1  | 	at io.openvidu.server.pro.OpenViduServerPro$$EnhancerBySpringCGLIB$$2b17a6bf.cdr(<generated>)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
openvidu-server_1  | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
openvidu-server_1  | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
openvidu-server_1  | 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
openvidu-server_1  | 	... 102 common frames omitted
openvidu-server_1  | Caused by: org.elasticsearch.client.ResponseException: method [HEAD], host [http://127.0.0.1:9200], URI [/], status line [HTTP/1.1 401 Unauthorized]
openvidu-server_1  | 	at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302)
openvidu-server_1  | 	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:272)
openvidu-server_1  | 	at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246)
openvidu-server_1  | 	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1613)
openvidu-server_1  | 	... 116 common frames omitted
  1. Delete/comment variables OPENVIDU_PRO_ELASTICSEARCH_HOST and OPENVIDU_PRO_KIBANA_HOST
  2. Put the variable KMS_URIS at the end of the file
  3. Restart with ./openvidu restart

This looks like a regression.
Can you check if this works?

Regards

Edit: I changed the ELASTICSEARCH_USERNAME AND ELASTICSEARCH_PASSWORD (And removed the quotes) and it seems to work, but the inspector link is still giving me a 502 Bad Gateway error

openvidu-server_1  | [WARN] 2021-06-07 17:02:54,439 [main] io.openvidu.server.pro.OpenViduServerPro - You have set property server.port (or SERVER_PORT). This will serve OpenVidu Server Pro on your host at port 5443. But property HTTPS_PORT (443) still configures the port that should be used to connect to OpenVidu Server from outside. Bear this in mind when configuring a proxy in front of OpenVidu Server
openvidu-server_1  | [INFO] 2021-06-07 17:02:54,534 [main] io.openvidu.server.pro.OpenViduServerPro - Starting OpenViduServerPro on openvidu-pro-node-Production with PID 152 (/opt/openvidu/openvidu-server.jar started by root in /opt/openvidu)
openvidu-server_1  | [INFO] 2021-06-07 17:02:54,537 [main] io.openvidu.server.pro.OpenViduServerPro - No active profile set, falling back to default profiles: default
openvidu-server_1  | [INFO] 2021-06-07 17:02:56,763 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,294 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 5443 (http)
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,321 [main] org.apache.catalina.core.StandardService - Starting service [Tomcat]
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,323 [main] org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.39]
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,422 [main] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,423 [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 2845 ms
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,484 [main] io.openvidu.server.config.OpenviduConfig - Configuration properties read from file /opt/openvidu/.env
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,492 [main] io.openvidu.server.pro.OpenViduServerPro - Server Micrometer stats enabled. Gathering every 10s
openvidu-server_1  | [INFO] 2021-06-07 17:02:57,540 [main] io.micrometer.core.instrument.push.PushMeterRegistry - publishing metrics for ElasticMeterRegistry every 10s
openvidu-server_1  | [WARN] 2021-06-07 17:02:58,087 [main] io.openvidu.server.rest.ApiRestPathRewriteFilter - Support for deprecated REST API paths enabled. Update your REST API clients to use the new paths
openvidu-server_1  | [WARN] 2021-06-07 17:02:58,089 [main] io.openvidu.server.rest.ApiRestPathRewriteFilter - Deprecated path support will be removed in a future release. You can disable old path support to test compatibility with property SUPPORT_DEPRECATED_API=false
openvidu-server_1  | [INFO] 2021-06-07 17:02:58,143 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro is deployed in 'docker' environment
openvidu-server_1  | [WARN] 2021-06-07 17:02:58,170 [main] com.github.dockerjava.core.DockerClientBuilder - 'dockerHttpClient' should be set.Falling back to Jersey, will be an error in future releases.
openvidu-server_1  | [INFO] 2021-06-07 17:02:59,404 [main] io.openvidu.server.utils.DockerManager - Docker is installed and enabled
openvidu-server_1  | [INFO] 2021-06-07 17:02:59,420 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro cluster mode enabled
openvidu-server_1  | [INFO] 2021-06-07 17:02:59,420 [main] io.openvidu.server.pro.OpenViduServerPro - Cluster identifier not configured in OPENVIDU_PRO_CLUSTER_ID. Using DOMAIN_OR_PUBLIC_IP as cluster identifier: openvidu.govork.com
openvidu-server_1  | [INFO] 2021-06-07 17:02:59,455 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro Elasticsearch service is enabled
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,099 [main] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Elasticsearch is accessible at http://127.0.0.1:9200
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,139 [main] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Elasticsearch version is 7.8.0
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,176 [main] io.openvidu.server.pro.cdr.CDRLoggerElasticSearch - Elasticsearch index "openvidu" already exists
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,176 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro CDR service is enabled
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,178 [main] io.openvidu.server.pro.OpenViduServerPro - OpenVidu Pro Webhook service is disabled (may be enabled with 'OPENVIDU_WEBHOOK=true')
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,204 [main] io.openvidu.server.pro.config.MicrometerSessionConfig - Session Micrometer stats enabled. Gathering every 5s
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,207 [main] io.micrometer.core.instrument.push.PushMeterRegistry - publishing metrics for ElasticMeterRegistry every 5s
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,211 [main] io.openvidu.server.kurento.kms.KmsManager - OpenVidu Server Pro is deployed with 'OPENVIDU_PRO_CLUSTER_MODE' set to 'auto'. Ignoring uris defined in 'KMS_URIS'
openvidu-server_1  | [WARN] 2021-06-07 17:03:00,232 [main] com.github.dockerjava.core.DockerClientBuilder - 'dockerHttpClient' should be set.Falling back to Jersey, will be an error in future releases.
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,239 [main] io.openvidu.server.pro.infrastructure.docker.DockerInfrastructureManager - Pulling DinD Media Node: openvidu/openvidu-pro-dind-media-node:2.18.0
openvidu-server_1  | [INFO] 2021-06-07 17:03:00,995 [main] io.openvidu.server.pro.infrastructure.docker.DockerInfrastructureManager - Pulling images for DinD Media Nodes: openvidu/openvidu-pro-dind-media-node:2.18.0
openvidu-server_1  | [WARN] 2021-06-07 17:03:00,999 [main] com.github.dockerjava.core.DockerClientBuilder - 'dockerHttpClient' should be set.Falling back to Jersey, will be an error in future releases.
openvidu-server_1  | [INFO] 2021-06-07 17:03:01,406 [main] io.openvidu.server.pro.infrastructure.docker.DockerInfrastructureManager - Running DinD Media Node container with this properties: 
openvidu-server_1  |  Envs: [OPENVIDU_RECORDINGS_PATH=/opt/openvidu/recordings, OPENVIDU_SECRET=9midsBNWDw5fD3, PULL=true] 
openvidu-server_1  |  Binds: [/proc:/hostfs/proc:ro, /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro, /opt/openvidu/var-lib-docker/original:/var/lib/docker:rw] 
openvidu-server_1  |  Volume /var/lib/docker used: null
openvidu-server_1  | [INFO] 2021-06-07 17:03:01,898 [main] io.openvidu.server.utils.DockerManager - Container ID: 57de7a0a842c4374476cec38d843b25662375eaaa8c5cd0ae3df01aac33a0b09
openvidu-server_1  | [INFO] 2021-06-07 17:03:01,907 [main] io.openvidu.server.pro.infrastructure.docker.DockerInfrastructureManager - Waiting to pull images used by DinD Media Node containers

I tried your suggestion, and this is what I get.

openvidu-server_1  |   =======================================
openvidu-server_1  |   =            WAIT KIBANA              =
openvidu-server_1  |   =======================================
openvidu-server_1  | 
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...
openvidu-server_1  |   Waiting for kibana in 'http://127.0.0.1/kibana' URL...

Here is part of my nginx logs:

nginx_1            | [getmyip] All providers failed
nginx_1            | 
nginx_1            |     - Public IPv4 for rules: 
nginx_1            | 
nginx_1            |   Finish Rules:
nginx_1            |     Openvidu Dashboard: 
nginx_1            | 		- allow all;
nginx_1            |     Openvidu API: 
nginx_1            | 		- allow all;
nginx_1            | 
nginx_1            |   =======================================
nginx_1            |   =         START OPENVIDU PROXY        =
nginx_1            |   =======================================
nginx_1            | 
nginx_1            | 2021/06/07 17:01:50 [notice] 94#94: signal process started
nginx_1            | 2021/06/07 17:03:17 [warn] 97#97: no resolver defined to resolve r3.o.lencr.org while requesting certificate status, responder: r3.o.lencr.org, certificate: "/etc/letsencrypt/live/openvidu.govork.com/fullchain.pem"
nginx_1            | 2021/06/07 17:03:17 [error] 97#97: *70 connect() failed (111: Connection refused) while connecting to upstream, client: 65.95.88.222, server: openvidu.govork.com, request: "GET /inspector HTTP/1.1", upstream: "http://127.0.0.1:5443/inspector", host: "openvidu.govork.com"
nginx_1            | 2021/06/07 17:08:14 [error] 97#97: *77 connect() failed (111: Connection refused) while connecting to upstream, client: 65.95.88.222, server: openvidu.govork.com, request: "GET /inspector HTTP/1.1", upstream: "http://127.0.0.1:5443/inspector", host: "openvidu.govork.com"
nginx_1            | 2021/06/07 17:08:16 [error] 97#97: *77 connect() failed (111: Connection refused) while connecting to upstream, client: 65.95.88.222, server: openvidu.govork.com, request: "GET /inspector HTTP/1.1", upstream: "http://127.0.0.1:5443/inspector", host: "openvidu.govork.com"

I see now in your .env that you’ve deleted some mandatory parameters (I don’t know why).

Please, try to add this env variables:

OPENVIDU_PRO_CLUSTER_MODE=manual
OPENVIDU_PRO_CLUSTER_ENVIRONMENT=on_premises

Take into account that you will need to have your media node running somewhere and your KMS_URIS parameter configured to point to it.

Regards

Are you following official instructions?

https://docs.openvidu.io/en/2.18.0/openvidu-pro/deployment/on-premises/

I’m just using the .env file from OpenVidu CE and appending the mandatory fields as mentioned in the official instructions.

  • You must give a value to properties DOMAIN_OR_PUBLIC_IP , OPENVIDU_SECRET and ELASTICSEARCH_PASSWORD . Default empty values will fail.

I assumed it would be pretty similar apart from those values, but I guess not.

As for the inspector, do I need at least one media node for the inspector to work? From the documentation it looked as though I could add media nodes from the UI so I assumed that the inspector should work whether there are media nodes or not.

No problem, you can run OpenVidu without media nodes and add it after from the UI, or add them using the parameter KMS_URIS.

Did those parameters fix your problem?

OPENVIDU_PRO_CLUSTER_MODE=manual
OPENVIDU_PRO_CLUSTER_ENVIRONMENT=on_premises

I recommend you to use the default file in /opt/openvidu.env which is installed after this step: OpenVidu Docs

Just replace or add the environment variables you need in this file, it would be easier.

It’s working! Thanks!

Glad to hear! Any problem, we’re here