Server core service starts then stops under Vista

Started by Challenge, September 11, 2008, 11:54:34 PM

Previous topic - Next topic

Challenge

Hi

I am a newbie to this forum.. Attempting to install Netxms under Vista. Installation proceeds successfully until I attempted to log-in.: Symthoms: " Cannot  connect to server."

I have determined tthe following:
1) The Server core service is not running in the list of Services under Vista
2) If I attempt to run the service Vista error reports that the "service has not responded in a timely manner"
3) If I go into a Command Liine window and attempt to start the service from here it "starts" normally with no error messages I have used the -D option to to try and get more messages as well...
4) Looking at the NetXms log I see that that the only difference is:
a) launching the service from the Vista service manager there is an extra entry in the log below "server is started" that is named the "server is stopped" !
b) launching the service from the command line there is no "server stopped line" entry in the log

It is so frustrating that I am so close to being able to use the application....!Any advice on how I can diagnose what is causing the problem would be appreciated...  Chris

Victor Kirhenshtein

Hi!

Could you please do the following:

1. Post here your netxmsd.conf file
2. Run command


nxdbmgr check


and post here it's output?

Best regards,
Victor

Challenge

Hi Victor

Sorry, I should have included these in my previous post
a) netxmsd.conf contents:
#
# NetXMS Server configuration file
# Created by NetXMS Server configuration wizard at Tue Sep 09 17:54:15 2008
#
#LogFile = {syslog}
Logfile = C:\NetXMS\var\netxms.log
DBDriver = mssql.ddr
DBServer = HOMEVISTA\SQLEXPRESS
DBName = netxms_db
DBLogin = netxms
LogFailedSQLQueries = yes

b) contents of my netxms.log file

10-Sep-2008 13:33:41] Log file opened
[10-Sep-2008 13:33:41] Database driver "mssql.ddr" loaded and initialized successfully
[10-Sep-2008 13:33:45] GSM modem on COM1: initialized successfully. Hardware ID: "".
[10-Sep-2008 13:33:46] NetXMS Server started
[10-Sep-2008 13:33:46] Listening for SNMP traps on UDP socket 0.0.0.0:162
[10-Sep-2008 13:33:46] Listening for client connections on TCP socket 0.0.0.0:4701
[10-Sep-2008 13:57:50] NetXMS Server stopped
[10-Sep-2008 13:57:52] Log file closed

[10-Sep-2008 14:28:08] Log file opened
[10-Sep-2008 14:28:08] Database driver "mssql.ddr" loaded and initialized successfully
[10-Sep-2008 14:28:24] GSM modem on COM1: initialized successfully. Hardware ID: "".
[10-Sep-2008 14:28:25] Listening for SNMP traps on UDP socket 0.0.0.0:162
[10-Sep-2008 14:28:25] NetXMS Server started
[10-Sep-2008 14:28:25] NetXMS Server stopped
[10-Sep-2008 14:28:25] Listening for client connections on TCP socket 0.0.0.0:4701
[10-Sep-2008 14:28:26] Log file closed

The two different server sessions above reflect one using the command prompt the other attempting to start the server using the Vista Services GUI

c) Output of running "nxdbmgr check" command at command prompt
NetXMS Database Manager Version 0.2.22

Configuration file OK
Checking database:
* Checking node objects...                                            [PASSED]
* Checking interface objects...                                       [PASSED]
* Checking network service objects...                                 [PASSED]
* Checking cluster objects...                                         [PASSED]
* Checking object properties...                                       [PASSED]
* Checking event processing policy...                                 [PASSED]
Database doesn't contain any errors
Database check completed

Is there a clue here that helps?
Regards  Chris

Challenge

Hello

Another follow-up...
I have also copied the command from the services Vista GUI in a C: commnd window and ran it manually: C:\NetXMS\bin\netxmsd.exe" --config "C:\NetXMS\etc\netxmsd.conf
And then shut it down manually using the "down" command at the C: prompt...
Result is as below..

Using configuration file "C:\NetXMS\etc\netxmsd.conf"
Configuration file OK
[14-Sep-2008 21:24:47] Database driver "mssql.ddr" loaded and initialized successfully
[14-Sep-2008 21:24:52] GSM modem on COM1: initialized successfully. Hardware ID: "".
[14-Sep-2008 21:24:53] Listening for SNMP traps on UDP socket 0.0.0.0:162
[14-Sep-2008 21:24:53] NetXMS Server started

NetXMS Server V0.2.22 Ready
Enter "help" for command list or "down" for server shutdown
System Console

netxmsd: [14-Sep-2008 21:24:53] Listening for client connections on TCP socket 0.0.0.0:4701
Proceeding with server shutdown...
[14-Sep-2008 21:25:08] NetXMS Server stopped

So seems to work ok here....but not at the Vista GUI level
Chris

Alex Kirhenshtein

It's weird.

Could you try any other database, just for test? SQLite, for example - you don't have to install anything, just change DBDriver to sqlite.ddr and DBName to DB file path (somethign like c:\netxms\netxms_db). Then you should create dabase by running C:\NetXMS\bin\nxdbmgr.exe init C:\NetXMS\lib\sql\dbinit_sqlite.sql

Challenge

Hi Victor

Sorry for the late reply. Away on holiday.  Just an quick update: NetXMS is now running ok.... :)
Steps I took were:
1) Reread all previous posts!
2) Checked dual authentication setting for SQL Express
3) Deleted Netxms user from database
4) Deleted Netxms database
5) Deleted and reinstalled Netxms .. Made sure I entered a password for DBUser ( I have a suspicion that is what my problem was...) 

Works fine!

Also I have installed NetXMS on Windows 2003  (Small Business Server) with no problem

Now into learning about NetXMS capability first hand...!

Chris