NetXMS Support Forum

English Support => General Support => Topic started by: bananabank on December 21, 2011, 06:32:25 AM

Title: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 06:32:25 AM
i use command

/usr/local/bin/netxmsd -d > then no any reply message on my command prompt

then i go to browser localhost:8080 and logon with usr:admin , pwd:netxms

i got error

Unable to login (Communication failure)

how can i start service netxmsd

thanks for any support
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 06:35:49 AM
when i call netxmsd directly (not netxmsd -d i got error like this)

[21-Dec-2011 11:32:21] SQL query failed (Query = "SELECT var_value FROM metadata WHERE var_name='SchemaVersion'"): Table 'netxms.metadata' doesn't exist
[21-Dec-2011 11:32:21] SQL query failed (Query = "SELECT var_value FROM config WHERE var_name='DBFormatVersion'"): Table 'netxms.config' doesn't exist
[21-Dec-2011 11:32:21] Your database has format version -1, but server is compiled for version 105
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 06:41:50 AM
i use command "nxdbmgr check"

here my result

NetXMS Database Manager Version 1.0.13
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: testos on December 21, 2011, 09:44:46 AM
You must create netxms database and user with access rights, modify server configuration file (default is /etc/netxmsd.conf), start netxms server and finally look into log file (/var/log/netxmsd for example) for possible errors.

You can find information in addition about this issue in NetXMS Installation Guide pages 7 and 8: https://www.netxms.org/documentation/netxms_install_guide.pdf

Best regards.
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 10:05:49 AM
this is my log /var/log/netxmsd

[21-Dec-2011 11:32:21] SQL query failed (Query = "SELECT var_value FROM metadata WHERE var_name='SchemaVersion'"): Table 'netxms.metadata' doesn't exist
[21-Dec-2011 11:32:21] SQL query failed (Query = "SELECT var_value FROM config WHERE var_name='DBFormatVersion'"): Table 'netxms.config' doesn't exist
[21-Dec-2011 11:32:21] Your database has format version -1, but server is compiled for version 105
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 10:07:16 AM
i do  follow installation manual page 7-8 already

but it's not work

my OS is linux mint
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: testos on December 21, 2011, 10:18:03 AM
Quote[21-Dec-2011 11:32:21] Your database has format version -1, but server is compiled for version 105

Seems like netxms database had not been upgraded.

Stop NetXMS server and try to check / upgrade database:
$ nxdbmgr -f check
$ nxdbmgr upgrade
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: Victor Kirhenshtein on December 21, 2011, 10:27:34 AM
Looks like database was not initialized correctly. Try to initialize it by running

nxdbmgr init /usr/local/share/netxms/sql/dbinit_<your_sql_engine>.sql

Best regards,
Victor
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 10:30:28 AM
thank you for your any reply ^_^
Title: Re: how to start service netxmsd Error:Unable to login (Communication failure)
Post by: bananabank on December 21, 2011, 10:34:35 AM
Thank you Mr.Victor it's work solution.