3
responses

I am having an issue with nxlog manager docker version starting up. After running docker-compose up and waiting, the webpage is never accessible. When looking in the logs I see nxlog-manager constantly exiting with code 1 and restarting. Below are some of the logs, anyone have ideas on this?

nxlog-manager_1 | 2021-02-25 01:48:39.757:INFO:oejr.Runner:main: Runner
nxlog-manager_1 | 2021-02-25 01:48:39.947:INFO:oejs.Server:main: jetty-9.0.7.v20131107
nxlog-manager_1 | SLF4J: Class path contains multiple SLF4J bindings.
nxlog-manager_1 | SLF4J: Found binding in [jar:file:/opt/nxlog-manager/webapps/nxlog-manager/WEB-INF/lib/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
nxlog-manager_1 | SLF4J: Found binding in [jar:file:/opt/nxlog-manager/lib/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
nxlog-manager_1 | SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
nxlog-manager_1 | SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
nxlog-manager_1 | 2021-02-25 01:48:52.957:INFO:/:main: 2 Spring WebApplicationInitializers detected on classpath
nxlog-manager_1 | 2021-02-25 01:48:53.429:INFO:/:main: Initializing Spring root WebApplicationContext
nxlog-manager_1 | 2021-02-25 01:49:04.694:INFO:/:main: Initializing Spring FrameworkServlet 'dispatcher'
nxlog-manager_1 | 2021-02-25 01:56:28.869:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@636be97c{/nxlog-manager,[file:/opt/nxlog-manager/webapps/nxlog-manager/, jar:file:/opt/nxlog-manager/webapps/nxlog-manager/WEB-INF/lib/springfox-swagger-ui-2.9.2.jar!/META-INF/resources/],AVAILABLE}{/nxlog-manager/}
nxlog-manager_1 | 2021-02-25 01:56:28.870:WARN:oejsh.RequestLogHandler:main: !RequestLog
nxlog-manager_1 | 2021-02-25 01:56:28.881:INFO:oejs.ServerConnector:main: Started ServerConnector@31c1dce1{HTTP/1.1}{0.0.0.0:9090}
nxlog-manager_1 | log4j:WARN No appenders could be found for logger (com.nxsec.log4ensics.dbmanager.common.server.util.ssl.SslContextFactory).
nxlog-manager_1 | log4j:WARN Please initialize the log4j system properly.
nxlog-manager_1 | log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
nxlog-manager_1 | 2021-02-25 01:56:29.023:WARN:oejuc.AbstractLifeCycle:main: FAILED SslContextFactory@73ea0918(null,null): java.io.FileNotFoundException: /opt/nxlog-manager/conf/jetty9-cert.pem (No such file or directory)
nxlog-manager_1 | java.io.FileNotFoundException: /opt/nxlog-manager/conf/jetty9-cert.pem (No such file or directory)
nxlog-manager_1 | at java.io.FileInputStream.open0(Native Method)
nxlog-manager_1 | at java.io.FileInputStream.open(FileInputStream.java:195)
nxlog-manager_1 | at java.io.FileInputStream.<init>(FileInputStream.java:138)
nxlog-manager_1 | at com.nxsec.log4ensics.dbmanager.common.server.util.ssl.SslContextFactory.initializeKeyStore(SslContextFactory.java:39)
nxlog-manager_1 | at com.nxsec.log4ensics.dbmanager.common.server.util.ssl.SslContextFactory.doStart(SslContextFactory.java:56)

AskedFebruary 25, 2021 - 3:07am

Comments (1)

  • EH_272573's picture

    Here are some additional logs.

    2021-02-24 23:00:09,252 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.NXLogAppConfig] - Application version: 5.5.5398
    2021-02-24 23:00:09,291 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.settings.BasicSettingsConfigurationServiceImpl] - Configuration service initialized
    2021-02-24 23:00:09,328 WARN eafe458270bb unknown [com.nxsec.log4ensics.service.common.configuration.AgentManagerConfiguration] - Agent manager is not yet configured!
    2021-02-24 23:00:09,331 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.configuration.AgentManagerConfiguration] - Agent manager config initialized
    2021-02-24 23:00:09,434 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.quartz.JobsQuartzSchedulerImpl] - Jobs scheduler initialized
    2021-02-24 23:00:10,649 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.components.JobsSchedulerListener] - Jobs scheduler is starting.
    2021-02-24 23:00:10,664 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.components.JobsSchedulerListener] - Jobs scheduler is started.
    2021-02-24 23:00:10,664 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.quartz.QuartzSchedulerControl] - Scheduler started
    2021-02-24 23:00:14,361 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.license.LicenseHolder] - Licence verification done.
    2021-02-24 23:00:16,035 INFO eafe458270bb unknown [springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping] - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
    2021-02-24 23:00:17,039 INFO eafe458270bb unknown [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper] - Context refreshed
    2021-02-24 23:00:17,060 INFO eafe458270bb unknown [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper] - Found 1 custom documentation plugin(s)
    2021-02-24 23:00:17,293 INFO eafe458270bb unknown [springfox.documentation.spring.web.scanners.ApiListingReferenceScanner] - Scanning for api listing references
    2021-02-24 23:00:17,892 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.components.JobsSchedulerListener] - Jobs scheduler is in standby mode.
    2021-02-24 23:00:17,908 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.concurrent.InheritableSecurityThreadPoolTaskExecutor] - Shutting down ExecutorService 'inheritableSecurityThreadPoolTaskExecutor'
    2021-02-24 23:00:17,908 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.quartz.factory.L4ESchedulerFactoryBean] - Shutting down Quartz Scheduler
    2021-02-24 23:00:17,908 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.components.JobsSchedulerListener] - Jobs scheduler is in standby mode.
    2021-02-24 23:00:17,909 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.components.JobsSchedulerListener] - Jobs scheduler is shutting down.
    2021-02-24 23:00:18,185 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.components.JobsSchedulerListener] - Jobs scheduler is shutdown.
    2021-02-24 23:00:18,186 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.quartz.JobsQuartzSchedulerImpl] - Quartz scheduler shutdown
    2021-02-24 23:00:18,186 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.config.SchedulingConfig] - Shutting down scheduler.
    2021-02-24 23:00:35,773 WARN eafe458270bb unknown [com.mchange.v2.resourcepool.BasicResourcePool] - Bad pool size config, start 3 < min 6. Using 6 as start.
    2021-02-24 23:00:35,827 INFO eafe458270bb unknown [com.nxsec.log4ensics.data.repository.hibernate.L4ELocalSessionFactoryBean] - Database connection successfully established [jdbc:mysql://db:3306/nxlog-manager5?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&useServerPrepStmts=false]
    2021-02-24 23:00:36,551 WARN eafe458270bb unknown [org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory] - HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.
    2021-02-24 23:00:36,558 WARN eafe458270bb unknown [org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory] - HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.internal.StandardQueryCache]; using defaults.
    2021-02-24 23:00:41,383 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.quartz.factory.L4ESchedulerFactoryBean] - Scheduler factory initialized
    2021-02-24 23:00:41,918 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.concurrent.InheritableSecurityThreadPoolTaskExecutor] - Initializing thread pool...
    2021-02-24 23:00:41,918 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.concurrent.InheritableSecurityThreadPoolTaskExecutor] - Thread pool is initialized with 20 element(s)
    2021-02-24 23:00:41,919 INFO eafe458270bb unknown [com.nxsec.log4ensics.service.common.scheduling.concurrent.InheritableSecurityThreadPoolTaskExecutor] - Initializing ExecutorService 'inheritableSecurityThreadPoolTaskExecutor'

Answer (1)

Greetings,

The issue is here java.io.FileNotFoundException: /opt/nxlog-manager/conf/jetty9-cert.pem (No such file or directory)
It looks like for some reason the cert was not included or was removed.

The solution is to generate new self-signed certificates. Use the following command to generate new certificates:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout jetty9-key.pem -out jetty9-cert.pem

Once done you will need to add the jetty9-key.pem and jetty9-cert.pem to your conf directory on your docker host.

Give that a try and let us know if that resolves the issue.

Best Regards,

~Seth S.

Comments (1)

  • mlevesque's picture

    I'm running into the same issue. Docker Desktop is running on a Windows 10 host. I cannot get into the nxlog-manager docker CLI long enough to complete the command before the nxlog-manager restarts and kicks me out. The restarts are about every 3-5 seconds. Any other suggestions.