Hi folks
I tried yesterday to install the NeXpose community version on my Backtrack 4 beta vmware installation. I sweated a lot of tears but I just couldn’t get it runnin!
I used the video tutorials from Archangel (Archangel Amael's BT Tutorials: Installing NeXpose in Back Track 4). The installation just worked fine but after I ran ./nsc.sh --> it says “[…]Could not start the nxpgsql daemon[…]” (see the logfile).
I tried to fix that problem with google but all workarounds didn’t solve my problem.
Here is what I already tried:
- Reinstall nexpose without an instance of the PostgreSQL process (checking with ps aux | grep post --> kill if existed, it actually didn’t)
- Manually stop the postgres service /etc/init.d/postgres 8.3 stop
- Gave my vmware more RAM (now --> 1.5GB) but there was no warning of insufficient RAM (I know that min reqs are 2GB but I think 1.5GB should be fine if there is no warning, right?)
- Edited the port in /opt/rapid7/nexpose/nsc/conf/nsc.xml to 5433
- Uncomment and edited the port in /opt/rapid7/nexpose/nsc/nxpgsql/nxpdata/postgresql.conf
- Deleted nsc.xml and restarted nexpose server
- Installed nexpose as a deamon (don’t know why but I desperately tried it…)
Well the only good article about this error was found on: Noah's Randomness But as I already said, it didn’t solve my problem.
There is a warning that my lincence is not valid. Could that cause the problem? But during the installation process it says my lincence key is valid.
Any help would be lovely!
Cheers,
blacktR
My configuration:
Backtrack 4 beta
NeXpose community version 32bit Linux
NeXpose Log:
Code:
Checking for available jvms
Validating jre in directory _jvm
OS information
------------------------------------------------------------
Current directory: /opt/rapid7/nexpose/nsc
User name: root
Computer name: bt
Operating system: Ubuntu Linux 8.10
Total memory: 1530252 KBytes
Available memory: 553328 KBytes
CPU speed: 2493MHz
Number of CPUs: 1
Super user: true
JVM started: Mon Apr 12 06:34:20 EDT 2010
JVM uptime: 1 second
Checking graphics environment...
OK
PATH: /usr/kde3/bin:/usr/kde3/bin:/usr/kde3/games:/usr/kde3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
The Java virtual machine is exiting with code 0
Using jre at _jvm
PATH: /usr/kde3/bin:/usr/kde3/bin:/usr/kde3/games:/usr/kde3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Logging to file /opt/rapid7/nexpose/update.log
Checking for available jvms
Validating jre in directory _jvm
OS information
------------------------------------------------------------
Current directory: /opt/rapid7/nexpose/nsc
User name: root
Computer name: bt
Operating system: Ubuntu Linux 8.10
Total memory: 1530252 KBytes
Available memory: 553148 KBytes
CPU speed: 2493MHz
Number of CPUs: 1
Super user: true
JVM started: Mon Apr 12 06:34:22 EDT 2010
JVM uptime: 1 second
Checking graphics environment...
OK
PATH: /usr/kde3/bin:/usr/kde3/bin:/usr/kde3/games:/usr/kde3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
The Java virtual machine is exiting with code 0
Using jre at _jvm
PATH: /usr/kde3/bin:/usr/kde3/bin:/usr/kde3/games:/usr/kde3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
NSC 4/12/10 6:34 AM: Logging initialized (system time zone is America/New_York)
NSC 4/12/10 6:34 AM: initializing JDBC drivers
NSC 4/12/10 6:34 AM: NeXpose is running interactively under super-user: root
NSC 4/12/10 6:34 AM: System memory: 1494MB total (533MB free)
NSC 4/12/10 6:34 AM: System speed: 2493MHz (x1)
NSC 4/12/10 6:34 AM: WARNING: No valid licenses were found. This will prevent site modification and the running of scans.
MaintenanceM4/12/10 6:34 AM: Renamed /opt/rapid7/nexpose/nsc/maintenance.xml to /opt/rapid7/nexpose/nsc/maintenance.bak
NSC 4/12/10 6:34 AM: Custom SSL certificate not available. Using default NSC certificate for web server.
httpd 4/12/10 6:34 AM: configuring web server...
Api12Context4/12/10 6:34 AM: Searching for JAXB context classes
httpd 4/12/10 6:34 AM: registering shutdown hook...
httpd 4/12/10 6:34 AM: Generating skin: /opt/rapid7/nexpose/nsc/htroot/scripts/nexpose-skin.js
httpd 4/12/10 6:34 AM: Generating feature set: /opt/rapid7/nexpose/nsc/htroot/scripts/nexpose-features.js
DaemonMgr 4/12/10 6:34 AM: Starting WebServer
httpd 4/12/10 6:34 AM: bringing up SSL and initializing components...
NSC 4/12/10 6:34 AM: Web server subsystem initialized
Scheduler 4/12/10 6:34 AM: initializing...
DaemonMgr 4/12/10 6:34 AM: Starting NexposeScheduler
NSC 4/12/10 6:34 AM: Scheduler subsystem initialized
NSC 4/12/10 6:34 AM: Initializing administrative alerters
NSC 4/12/10 6:34 AM: initializing log rotation
NSC 4/12/10 6:34 AM: Cleaning up temporary NeXpose files
NSC 4/12/10 6:34 AM: Initializing update engine
AU-C8FB8DEF64/12/10 6:34 AM: initializing update engine for C8FB8DEF6D3986595D37A877F5F7B5C03435D61D...
httpd 4/12/10 6:34 AM: NSC/0.6.4 (JVM) bound to port 3780 and running...
AU-C8FB8DEF64/12/10 6:34 AM: Checking for approved updates...
AU-C8FB8DEF64/12/10 6:34 AM: No approved updates found for processing
AU-C8FB8DEF64/12/10 6:34 AM: Started auto-update...
AU-C8FB8DEF64/12/10 6:34 AM: Establishing HTTP connection with updates.rapid7.com via proxy (updates.rapid7.com:80)...
AU-C8FB8DEF64/12/10 6:34 AM: Checking for approved updates...
AU-C8FB8DEF64/12/10 6:34 AM: No approved updates found for processing
NSC 4/12/10 6:34 AM: Initializing postgresql database manager for //127.0.0.1:5432/nexpose...
postgresql 4/12/10 6:34 AM: Starting up postgresql DB system
postgresql 4/12/10 6:34 AM: Nexpose PostgreSQL service status: 0
postgresql 4/12/10 6:34 AM: Nexpose PostgreSQL service status: 1
NSC 4/12/10 6:34 AM: Database initialization failed : java.sql.SQLException: Error starting PostgreSQL: com.rapid7.os.OSException: Could not start the nxpgsql daemon
at com.rapid7.nexpose.datastore.A.K.E(Unknown Source)
at com.rapid7.nexpose.datastore.n.H(Unknown Source)
at com.rapid7.nexpose.datastore.n.E(Unknown Source)
at com.rapid7.nexpose.datastore.n.E(Unknown Source)
at com.rapid7.nexpose.nsc.NSC.U(Unknown Source)
at com.rapid7.nexpose.nsc.NSC.ô(Unknown Source)
at com.rapid7.nexpose.nsc.NSC.õ(Unknown Source)
at com.rapid7.nexpose.nsc.NSC.run(Unknown Source)
at com.rapid7.nexpose.nsc.NSC.main(Unknown Source)
Caused by: com.rapid7.os.OSException: Could not start the nxpgsql daemon
at com.rapid7.nexpose.datastore.A.K.A(Unknown Source)
... 9 more
SQLState=null, errorCode=0
> httpd 4/12/10 6:34 AM: Shutting down socket...
httpd 4/12/10 6:34 AM: I/O problem fetching client socket: Socket closed
httpd 4/12/10 6:34 AM: Shutting down thread pool...
httpd 4/12/10 6:34 AM: Reinitializing web server...
httpd 4/12/10 6:34 AM: NSC/0.6.4 (JVM) bound to port 3780 and running...
NSC 4/12/10 6:34 AM: Accepting web server logins
NSC 4/12/10 6:34 AM: Found a pending maintenance task: DBConfig
NSC 4/12/10 6:34 AM: Entering maintenance mode, only NeXpose administrator logins permitted.
DBConfig 4/12/10 6:34 AM: Maintenance Task Started
NSC 4/12/10 6:34 AM: Secure web interface ready.
NSC 4/12/10 6:34 AM: Browse to https://localhost:3780/
NSC 4/12/10 6:34 AM: Server started in 17 seconds