NetXMS installation with Sqlite
-
Hi,
While trying to install NetXMS on Solaris/RHEL, with Sqlite, when I start the NetXMS server, I was getting this error:
Database version -1, but server is compiled for version 105However if initialise the database again with
#/usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_sqlite.sql
and restart the server,
#/usr/local/bin/nxagentd -d
Its working fine.Installation with Oracke and Mysql went smooth though...
Shiv
-
Hi!
Maybe I'm not understand correctly, but what do you mean by "install" on Solaris or RHEL? If you are installing NetXMS server on UNIX from sources (using make install), you are supposed to create netxmsd.conf and initialize database manually, "make install" command will not do that. Or you experience this problem even after running "nxdbmgr init" for the first time?
Best regards,
Victor -
Yes, I did install from src using make install, here are my steps:
#sh ./configure --with-server --with-sqlite --with-agent
#make
#make install
#cp contrib/netxmsd.conf-dist /etc/netxmsd.conf
#cp contrib/nxagentd.conf-dist /etc/nxagentd.confedit config file
vi /etc/netxmsd.conf
DBDriver = /usr/local/lib/libnxddr_sqlite.so
DBServer = localhost
DBName = netxms
DBLogin = netxms
DBPassword = netxms
LogFile = /var/log/netxmsd
LogFailedSQLQueries = yesand start services
#/usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_sqlite.sql
#/usr/local/bin/nxagentd -d -
For SQLite, parameter DBName is database file name. So, if you specify just "netxms", it is relative to current directory. If you run netxmsd from different directory, it will pick wrong file. You should specify fully qualified file name in DBName.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login