Knowledge Base

Ask A Question

Questions

2

Could not start the nxpgsql daemon

Hi All, After fresh installation of Rapid7 Nexpose, when starting the application the following error is observed, of which Nexpose Security Console runs in maintenance mode: 2017-11-13T01:32:15 [INFO] [Thread: Security Console] PostgreSQL service status: 0. 2017-11-13T01:32:16 [INFO] [Thread: Security Console] PostgreSQL service status: 0. 2017-11-13T01:32:17 [INFO] [Thread: Security Console] PostgreSQL service status: 0. 2017-11-13T01:32:18 [ERROR] [Thread: Security Console] Database initialization failed java.sql.SQLException: Error starting PostgreSQL: com.rapid7.os.OSException: Could not start the nxpgsql daemon at com.rapid7.nex.system.db.PostgresDB.startupDBSystem(PostgresDB.java:898) ~[system-9.0.13.jar:na] at com.rapid7.nexpose.datastore.DBManager.getDB(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.datastore.DBManager.getDB(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.datastore.DBManager.initialize(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.nsc.NSC.initDatabase(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.initCriticalSubsystems(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.initSubsystems(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.run(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.main(Unknown Source) [nsc.jar:na] Caused by: com.rapid7.os.OSException: Could not start the nxpgsql daemon at com.rapid7.nex.system.db.PostgresDB.startDBService(PostgresDB.java:997) ~[system-9.0.13.jar:na] at com.rapid7.nex.system.db.PostgresDB.startupDBSystem(PostgresDB.java:888) ~[system-9.0.13.jar:na] ... 8 common frames omitted 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Adding maintenance task DBConfig 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Initializing update processor... 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Security Console is launching in Maintenance Mode. Disabling update processing. 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Completed update processor initialization. 2017-11-13T01:32:18 [ERROR] [Thread: Security Console] A critical error occured during initialization java.lang.NullPointerException: null at com.rapid7.nexpose.datastore.DBManager.initializePool(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.datastore.DBManager.initializePool(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.datastore.DBManager.registerAdminPool(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.datastore.DBManager.getAdminDataSourceInternal(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.datastore.DBManager.getAdminDataSource(Unknown Source) ~[nxshared.jar:na] at com.rapid7.nexpose.nsc.NSC.setupLicenseManagerDeps(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.initCriticalSubsystems(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.initSubsystems(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.run(Unknown Source) [nsc.jar:na] at com.rapid7.nexpose.nsc.NSC.main(Unknown Source) [nsc.jar:na] 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Adding maintenance task NexposeRecovery 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Reinitializing web server for maintenance mode... 2017-11-13T01:32:18 [INFO] [Thread: Security Console] Stopping ProtocolHandler ["http-nio-3780"] 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Destroying ProtocolHandler ["http-nio-3780"] 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Initializing ProtocolHandler ["http-nio-3780"] 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Using a shared selector for servlet write/read 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Starting ProtocolHandler ["http-nio-3780"] 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Accepting web server logins. 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Found a pending maintenance task: NexposeRecovery 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Entering maintenance mode, only administrator logins permitted. 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Maintenance Task Started 2017-11-13T01:32:19 [INFO] [Thread: Security Console] Accepting console commands. 2017-11-13T01:32:20 [INFO] [Thread: Security Console] [Started: 2017-11-13T01:29:19] [Duration: 0:03:00.909] Security Console started. Operating System: Red Hat Enterprise Linux Server release 6.9 (Santiago) Oracle Linux Server release 6.9 Any help and assistance would be greatly appreciated. Thanks, Craig Wilkinson

nexpose

Posted by Craig Wilkinson about a year ago