Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. NetXMS installation with Sqlite

NetXMS installation with Sqlite

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 42.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    shivpremani
    wrote on last edited by
    #1

    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 105

    However 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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • S
        S
        shivpremani
        wrote on last edited by
        #3

        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.conf

        edit 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 = yes

        and start services
         #/usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_sqlite.sql
         #/usr/local/bin/nxagentd -d

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0

          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups