Metasploit

「実践Metasploit」 のとおりに進んでいくと、NeXpose の Community 版が必要になる。

Metasploit は BackTrack R5 上で使っているので、apt-get で入れられないかと思ったら、ちゃんとパッケージ検索で出てきた。

# apt-cache search nexpose
nexpose - NeXpose Community Edition

インストールするが、ダウンロードファイルサイズが 233MB もあるので注意。

# apt-get install nexpose
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdmraid1.0.0.rc16 python-pyicu libdebian-installer4 cryptsetup
  libecryptfs0 reiserfsprogs rdate bogl-bterm ecryptfs-utils libdebconfclient0
 dmraid
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libstdc++5
The following NEW packages will be installed:
  libstdc++5 nexpose
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 223MB of archives.
After this operation, 1,090kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://32.repository.backtrack-linux.org/ revolution/testing libstdc++5  1:3.3.6-20 [311kB] 
Get:2 http://32.repository.backtrack-linux.org/ revolution/testing nexpose 5.2 [223MB]
Fetched 223MB in 39min 48s (93.4kB/s)
Selecting previously deselected package libstdc++5.
(Reading database ... 269663 files and directories currently installed.)
Unpacking libstdc++5 (from .../libstdc++5_1%3a3.3.6-20_i386.deb) ...
Selecting previously deselected package nexpose.
Unpacking nexpose (from .../archives/nexpose_5.2_i386.deb) ...
Setting up libstdc++5 (1:3.3.6-20) ...

Setting up nexpose (5.2) ...
What is your first name?
curry
What is your last name?
cheese
What company are you installing this for?
home
What do you want your username to be?
mr
What do you want your password to be?
nexpose
Verify password:
nexpose
Unpacking JRE ...
Starting Installer ...
The installation directory has been set to /opt/rapid7/nexpose.
Extracting files...
Finishing installation...
Removing Nexpose from startup....
Please run: 
  'cd /opt/rapid7/nexpose/nsc/ && sh ./nsc.sh'

to start NeXpose for the first time. This initial startup may take several minutes depending on your hardware setup.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

続いて、指示どおりにシェルスクリプトを実行する。

途中でコケているので全文を記載した。

# cd /opt/rapid7/nexpose/nsc/ && sh ./nsc.sh
Checking for available jvms
Validating jre in directory  _jvm1.6.0_25
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
2013-04-08T02:24:00 [INFO] 
2013-04-08T02:24:00 [INFO] OS Information
2013-04-08T02:24:03 [INFO] ------------------------------------------------------------
2013-04-08T02:24:03 [INFO] Current directory: /opt/rapid7/nexpose/nsc
2013-04-08T02:24:03 [INFO] User name:         root
2013-04-08T02:24:03 [INFO] Computer name:     bt
2013-04-08T02:24:03 [INFO] Operating system:  Ubuntu Linux 10.04
2013-04-08T02:24:03 [INFO] Total memory:      766420 KBytes
2013-04-08T02:24:03 [INFO] Available memory:  303036 KBytes
2013-04-08T02:24:03 [INFO] CPU speed:         2327MHz
2013-04-08T02:24:03 [INFO] Number of CPUs:    1
2013-04-08T02:24:03 [INFO] Super user:        true
2013-04-08T02:24:03 [INFO] JVM started:       Mon Apr 08 02:24:01 EDT 2013
2013-04-08T02:24:03 [INFO] JVM uptime:        1 second
Checking graphics environment...
OK
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin
The Java virtual machine is exiting with code 0
Using jre at  _jvm1.6.0_25
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
2013-04-08T02:24:05 [INFO] Logging initialized. [Name = default] [Level = INFO] [Timezone = America/New_York (Eastern Standard Time, GMT-4:00)]
2013-04-08T02:24:06 [INFO] Current directory:  /opt/rapid7/nexpose/nsc
2013-04-08T02:24:06 [INFO] User name:          root
2013-04-08T02:24:06 [INFO] Super user:         Yes
2013-04-08T02:24:06 [INFO] Computer name:      bt
2013-04-08T02:24:06 [INFO] Host Address:       127.0.1.1
2013-04-08T02:24:06 [INFO] Host FQDN:          bt.foo.org
2013-04-08T02:24:06 [INFO] Operating system:   Ubuntu Linux 10.04
2013-04-08T02:24:06 [INFO] CPU speed:          2327MHz
2013-04-08T02:24:06 [INFO] Number of CPUs:     1
2013-04-08T02:24:06 [INFO] Total memory:       748.5 MB
2013-04-08T02:24:06 [INFO] Available memory:   282.5 MB
2013-04-08T02:24:06 [INFO] Total disk space:   19.1 GB
2013-04-08T02:24:06 [INFO] Available disk space:6.8 GB
2013-04-08T02:24:06 [INFO] JVM name:           Java HotSpot(TM) Server VM
2013-04-08T02:24:06 [INFO] JVM vendor:         Sun Microsystems Inc.
2013-04-08T02:24:06 [INFO] JVM version:        20.0-b11
2013-04-08T02:24:06 [INFO] JVM started:        2013-04-08 06:24 GMT
2013-04-08T02:24:06 [INFO] Running interactively under super-user: root.
2013-04-08T02:24:06 [INFO] Initializing JDBC drivers.
2013-04-08T02:24:06 [INFO] Running first-time configuration.
2013-04-08T02:24:06 [INFO] Configuring PostgreSQL installation in /opt/rapid7/nexpose/nsc/nxpgsql.
2013-04-08T02:24:06 [INFO] Verifying permissions on /opt/rapid7/nexpose/nsc/nxpgsql
2013-04-08T02:24:06 [INFO] Verifying disk space on /opt/rapid7/nexpose/nsc/nxpgsql
2013-04-08T02:24:06 [WARN] Could not determine nxpgsql daemon status. Continuing installation...
2013-04-08T02:24:06 [INFO] Adding service user nxpgsql
2013-04-08T02:24:07 [INFO] Added service user.
2013-04-08T02:24:07 [INFO] Recursively changing ownership of /opt/rapid7/nexpose/nsc/nxpgsql to nxpgsql
2013-04-08T02:24:07 [INFO] Setting file permissions
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/opt/rapid7/nexpose/nsc/nxpgsql' to go+x
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/opt/rapid7/nexpose/nsc' to go+x
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/opt/rapid7/nexpose' to go+x
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/opt/rapid7' to go+x
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/opt' to go+x
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/' to go+x
2013-04-08T02:24:07 [INFO] Successfully set file permissions
2013-04-08T02:24:07 [INFO] Changing permissions of directory '/opt/rapid7/nexpose/nsc/db' to go+x
2013-04-08T02:24:07 [INFO] Postgres data directory already exists. Cleaning up. /opt/rapid7/nexpose/nsc/nxpgsql/nxpdata
2013-04-08T02:24:07 [INFO] Creating data directory in /opt/rapid7/nexpose/nsc/nxpgsql/nxpdata
2013-04-08T02:24:07 [INFO] Setting permissions on data directory /opt/rapid7/nexpose/nsc/nxpgsql/nxpdata
2013-04-08T02:24:07 [INFO] Initializing PostgreSQL database
2013-04-08T02:24:11 [INFO] initdb was successful
2013-04-08T02:24:11 [INFO] Setting Postgres to start automatically upon system boot
2013-04-08T02:24:11 [INFO] Generating certificate for CN=NeXpose Security Console, O=home.
2013-04-08T02:24:13 [INFO] Creating NSC config for database type postgresql.
2013-04-08T02:24:14 [INFO] Starting up postgresql DB system
2013-04-08T02:24:15 [INFO] PostgreSQL service status: 0
2013-04-08T02:24:15 [INFO] PostgreSQL service status: 1
2013-04-08T02:24:17 [ERROR] A critical error occured during initialization
java.sql.SQLException: Error starting PostgreSQL: com.rapid7.os.OSException: Could not start the nxpgsql daemon
 at com.rapid7.nexpose.datastore.impl.PostgresqlDB.startupDBSystem(Unknown Source) ~[nxshared.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.FirstTimeConfigurator.initDB(Unknown Source) ~[nsc.jar:na]
 at com.rapid7.nexpose.nsc.FirstTimeConfigurator.configureDB(Unknown Source) ~[nsc.jar:na]
 at com.rapid7.nexpose.nsc.FirstTimeConfigurator.configure(Unknown Source) ~[nsc.jar:na]
 at com.rapid7.nexpose.nsc.NSC.initFirstTimeConfig(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.nexpose.datastore.impl.PostgresqlDB.startDBService(Unknown Source) ~[nxshared.jar:na]
 ... 12 common frames omitted
2013-04-08T02:24:17 [ERROR] Error during server initialization.
java.lang.NullPointerException: null
 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]
2013-04-08T02:24:17 [INFO] Shutting down immediately
2013-04-08T02:24:17 [INFO] Shutting down asset group service executor...
2013-04-08T02:24:17 [INFO] removing scheduled risk and history updater jobs
2013-04-08T02:24:17 [INFO] Shutting down data warehouse service
2013-04-08T02:24:17 [INFO] Shutting down config manager
2013-04-08T02:24:17 [WARN] Error shutting down database.
java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getDriver(Unknown Source) ~[na:1.6.0_25]
 at com.rapid7.nexpose.datastore.DBManager.shutdownPools(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DBManager.shutdownDB(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DBManager.shutdownDBSystem(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.nsc.NSC.shutdownDB(Unknown Source) [nsc.jar:na]
 at com.rapid7.nexpose.nsc.NSC.shutdownSubsystems(Unknown Source) [nsc.jar:na]
 at com.rapid7.nexpose.nsc.NSC.shutdown(Unknown Source) [nsc.jar:na]
 at com.rapid7.nexpose.nsc.NSC.shutdown(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]
2013-04-08T02:24:17 [INFO] Shutting down command console
NeXpose security console exited with code 0

出力を見る範囲では、以下の行がエラーの原因を示しているようだ。

 java.sql.SQLException: Error starting PostgreSQL: com.rapid7.os.OSException: Could not start the nxpgsql daemon

PostgreSQL の DB に接続できないらしい。

/opt/rapid7/nexpose/nsc/ の下に conf ディレクトリがあり、nsc.xml には DB 接続パラメータがあった。

抜粋すると次のようになっている。

 <Database dbms="postgresql" db="//127.0.0.1:5432/nexpose" embedded="true" maintenanceThreadPoolSize="20">

よく見ると、DB 名が nexpose になっている。

どうやら、DB をあらかじめ作っておかないといけないらしい。また、上記行のすぐあとに credential があり、userid が nxpgsql になっていることから、createuser する必要があるみたい。

# su - postgres
% createuser nxpgsql
% createdb -O nxpgsql nexpose
% exit
#

これでもう一度、以下を実行。

PostgreSQL のエラーは直ってないが、処理は進んでいった。

update 処理は非常に時間がかかる(数時間)

# cd /opt/rapid7/nexpose/nsc/
# sh ./nsc.sh
Checking for available jvms
Validating jre in directory  _jvm1.6.0_25
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
2013-04-08T02:48:11 [INFO] 
2013-04-08T02:48:11 [INFO] OS Information
2013-04-08T02:48:11 [INFO] ------------------------------------------------------------
2013-04-08T02:48:11 [INFO] Current directory: /opt/rapid7/nexpose/nsc
2013-04-08T02:48:11 [INFO] User name:         root
2013-04-08T02:48:11 [INFO] Computer name:     bt
2013-04-08T02:48:11 [INFO] Operating system:  Ubuntu Linux 10.04
2013-04-08T02:48:11 [INFO] Total memory:      766420 KBytes
2013-04-08T02:48:11 [INFO] Available memory:  426828 KBytes
2013-04-08T02:48:11 [INFO] CPU speed:         2327MHz
2013-04-08T02:48:11 [INFO] Number of CPUs:    1
2013-04-08T02:48:11 [INFO] Super user:        true
2013-04-08T02:48:11 [INFO] JVM started:       Mon Apr 08 02:48:07 EDT 2013
2013-04-08T02:48:11 [INFO] JVM uptime:        1 second
Checking graphics environment...
OK
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin
The Java virtual machine is exiting with code 0
Using jre at  _jvm1.6.0_25
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
Logging to file /opt/rapid7/nexpose/update.log
Checking for available jvms
Validating jre in directory  _jvm1.6.0_25
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
2013-04-08T02:48:14 [INFO] 
2013-04-08T02:48:14 [INFO] OS Information
2013-04-08T02:48:14 [INFO] ------------------------------------------------------------
2013-04-08T02:48:14 [INFO] Current directory: /opt/rapid7/nexpose/nsc
2013-04-08T02:48:14 [INFO] User name:         root
2013-04-08T02:48:14 [INFO] Computer name:     bt
2013-04-08T02:48:14 [INFO] Operating system:  Ubuntu Linux 10.04
2013-04-08T02:48:14 [INFO] Total memory:      766420 KBytes
2013-04-08T02:48:14 [INFO] Available memory:  412652 KBytes
2013-04-08T02:48:14 [INFO] CPU speed:         2327MHz
2013-04-08T02:48:14 [INFO] Number of CPUs:    1
2013-04-08T02:48:14 [INFO] Super user:        true
2013-04-08T02:48:14 [INFO] JVM started:       Mon Apr 08 02:48:12 EDT 2013
2013-04-08T02:48:14 [INFO] JVM uptime:        1 second
Checking graphics environment...
OK
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin
The Java virtual machine is exiting with code 0
Using jre at  _jvm1.6.0_25
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
2013-04-08T02:48:17 [INFO] Logging initialized. [Name = default] [Level = INFO] [Timezone = America/New_York (Eastern Standard Time, GMT-4:00)]
2013-04-08T02:48:17 [INFO] Current directory:  /opt/rapid7/nexpose/nsc
2013-04-08T02:48:18 [INFO] User name:          root
2013-04-08T02:48:18 [INFO] Super user:         Yes
2013-04-08T02:48:18 [INFO] Computer name:      bt
2013-04-08T02:48:18 [INFO] Host Address:       127.0.1.1
2013-04-08T02:48:18 [INFO] Host FQDN:          bt.foo.org
2013-04-08T02:48:18 [INFO] Operating system:   Ubuntu Linux 10.04
2013-04-08T02:48:18 [INFO] CPU speed:          2327MHz
2013-04-08T02:48:18 [INFO] Number of CPUs:     1
2013-04-08T02:48:18 [INFO] Total memory:       748.5 MB
2013-04-08T02:48:18 [INFO] Available memory:   389.2 MB
2013-04-08T02:48:18 [INFO] Total disk space:   19.1 GB
2013-04-08T02:48:18 [INFO] Available disk space:7 GB
2013-04-08T02:48:18 [INFO] JVM name:           Java HotSpot(TM) Server VM
2013-04-08T02:48:18 [INFO] JVM vendor:         Sun Microsystems Inc.
2013-04-08T02:48:18 [INFO] JVM version:        20.0-b11
2013-04-08T02:48:18 [INFO] JVM started:        2013-04-08 06:48 GMT
2013-04-08T02:48:18 [INFO] Running interactively under super-user: root.
2013-04-08T02:48:18 [INFO] Initializing JDBC drivers.
2013-04-08T02:48:19 [WARN] No valid licenses were found. This will prevent site modification and the running of scans.
2013-04-08T02:48:20 [INFO] Configuring web server...
2013-04-08T02:48:22 [INFO] Registering shutdown hook...
2013-04-08T02:48:22 [INFO] Generating skin: /opt/rapid7/nexpose/nsc/htroot/scripts/nexpose-skin.js
2013-04-08T02:48:22 [INFO] Generating feature set: /opt/rapid7/nexpose/nsc/htroot/scripts/nexpose-features.js
2013-04-08T02:48:27 [INFO] Web server subsystem initialized.
2013-04-08T02:48:27 [INFO] Initializing scheduler...
2013-04-08T02:48:27 [INFO] Starting Scheduler
2013-04-08T02:48:27 [INFO] Scheduler subsystem initialized.
2013-04-08T02:48:27 [INFO] Initializing administrative alerters.
2013-04-08T02:48:27 [INFO] Initializing postgresql database manager for //127.0.0.1:5432/nexpose.
2013-04-08T02:48:27 [INFO] Starting up postgresql DB system
2013-04-08T02:48:28 [INFO] PostgreSQL service status: 0
2013-04-08T02:48:28 [INFO] PostgreSQL service status: 0
(58回リピート)
2013-04-08T02:49:36 [INFO] PostgreSQL service status: 0
2013-04-08T02:49:37 [ERROR] Database initialization failed
java.sql.SQLException: Error starting PostgreSQL: com.rapid7.os.OSException: Could not start the nxpgsql daemon
 at com.rapid7.nexpose.datastore.impl.PostgresqlDB.startupDBSystem(Unknown Source) ~[nxshared.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.nexpose.datastore.impl.PostgresqlDB.startDBService(Unknown Source) ~[nxshared.jar:na]
 ... 9 common frames omitted
2013-04-08T02:49:37 [INFO] Initializing update processor.
2013-04-08T02:49:39 [INFO] Checking for approved updates.
2013-04-08T02:49:39 [INFO] No approved updates found for processing, found 6 pending approval.
2013-04-08T02:49:39 [INFO] Started auto-update.
2013-04-08T02:49:39 [WARN] Could not load DBMS info.
java.lang.NullPointerException: null
 at com.rapid7.nexpose.nsc.NSCUpdateStatisticsGenerator.generateStatistics(Unknown Source) [nsc.jar:na]
 at com.rapid7.updater.UpdatePackageProcessor.getUpdates(Unknown Source) [r7shared.jar:na]
 at com.rapid7.updater.UpdatePackageProcessor.getUpdates(Unknown Source) [r7shared.jar:na]
 at com.rapid7.nexpose.nsc.NSC.setupAutoUpdate(Unknown Source) [nsc.jar:na]
 at com.rapid7.nexpose.nsc.NSC.initAutoUpdate(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]
2013-04-08T02:49:39 [INFO] Establishing HTTP connection with updates.rapid7.com via proxy proxy.example.com:8080.
2013-04-08T02:50:17 [INFO] Cached update package ID 510921328 was invalid, re-downloading.
2013-04-08T02:50:17 [INFO] Downloading update ID 510921328.
2013-04-08T02:50:54 [INFO] Downloaded update ID 510921328.
2013-04-08T02:50:56 [INFO] Downloading update ID 664297268.
(中略)
2013-04-08T05:00:11 [WARN] Failed to auto-update console.
com.rapid7.updater.UpdateException: Update package size is incorrect: /opt/rapid7/nexpose/updates/packages/4043742893.jar Actual: 6750208 Expected: 31529562
 at com.rapid7.updater.InternetUpdateClient.validateFile(Unknown Source) ~[r7shared.jar:na]
 at com.rapid7.updater.InternetUpdateClient.getUpdate(Unknown Source) ~[r7shared.jar:na]
 at com.rapid7.updater.UpdatePackageProcessor.getUpdates(Unknown Source) ~[r7shared.jar:na]
 at com.rapid7.updater.UpdatePackageProcessor.getUpdates(Unknown Source) ~[r7shared.jar:na]
 at com.rapid7.nexpose.nsc.NSC.setupAutoUpdate(Unknown Source) [nsc.jar:na]
 at com.rapid7.nexpose.nsc.NSC.initAutoUpdate(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]
2013-04-08T05:00:12 [INFO] Current DB_VERSION = 84, current DB_REINDEX = 35
2013-04-08T05:00:12 [INFO] Verifying database version...
2013-04-08T05:00:12 [WARN] Failed to upgrade db. This may prevent product operation.
2013-04-08T05:00:12 [ERROR] Failed to initialize db queue manager
com.rapid7.nexpose.datastore.DataStoreUninitializedException: Datastore has not been initialized
 at com.rapid7.nexpose.datastore.DataStoreManager.loadNamedQueryFile(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DataStoreManager.initializeDSM(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DataStoreManager.<init>(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DataStoreManager.getInstance(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.nsc.NSC.updateDatabase(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]
2013-04-08T05:00:12 [INFO] Initializing datastore login module.
2013-04-08T05:00:12 [ERROR] A critical error occured during initialization
java.lang.RuntimeException: Failed to init login module: com.rapid7.nexpose.datastore.DataStoreUninitializedException: Datastore has not been initialized
 at com.rapid7.nexpose.nsc.NSC.updateDatabase(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.nexpose.datastore.DataStoreUninitializedException: Datastore has not been initialized
 at com.rapid7.nexpose.datastore.DataStoreManager.loadNamedQueryFile(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DataStoreManager.initializeDSM(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DataStoreManager.<init>(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.datastore.DataStoreManager.getInstance(Unknown Source) ~[nxshared.jar:na]
 ... 5 common frames omitted
2013-04-08T05:00:12 [WARN] Cannot add Nexpose connection pool JMX Bean
java.lang.IllegalArgumentException: Connection Pooling Driver cannot be null
 at com.rapid7.nexpose.datastore.ConnectionPoolMXBean.<init>(Unknown Source) ~[nxshared.jar:na]
 at com.rapid7.nexpose.nsc.NSC.registerConnectionPoolMBean(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]
2013-04-08T05:00:14 [INFO] Accepting web server logins.
2013-04-08T05:00:14 [INFO] Found a pending maintenance task: NexposeRecovery
2013-04-08T05:00:14 [INFO] Entering maintenance mode, only administrator logins permitted.
2013-04-08T05:00:14 [INFO] Maintenance Task Started
2013-04-08T05:00:16 [INFO] [Started: 2013-04-08T06:48:17] [Duration: 2:11:58.746] Security Console started.
2013-04-08T05:00:16 [INFO] Security Console web interface ready. Browse to https://localhost:3780/

なんかエラーが一杯でてるけど、ブラウザでアクセスしてログイン画面は出た。

nexpose_login.png

ただし、ログインすると、以下のエラーメッセージが出てまともには動かない。

やはり DB 接続のところに問題があるらしい。

Critical error during initialization: Failed to init login module: com.rapid7.nexpose.datastore.DataStoreUninitializedException: Datastore has not been initialized

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS