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. Install from source - CentOS 7

Install from source - CentOS 7

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 30.1k 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.
  • R
    R
    rhysand
    wrote on last edited by
    #1

    All,
    I have been trying to install NetXMS from source for the last two days and haven't gotten anywhere. I've tried building with MySQL, Postgresql and SQLite. Each one comes with it's own set of problems.

    With Postgresql, when I try to run the 'nxdbmgr init' command it tells me that NetXMS is unable to connect to the database 'netxms@localhost'. I've already checked and made sure the netxms database exists. Even dropped the database and rebuilt it. After that didn't work I re-installed Postgresql and worked my way through everything again, coming to the same end.

    With MySQL, when running the 'nxdbmgr init' command, I am getting a message that the server cannot communicate with the netxms database. So again, I tried rebulding the database, same issue. Uninstalled and reinstalled MySQL and ran into the same issue as I did with Postgresql.

    With SQLite, well, SQLite never works. But I tried it just to say I tried it.

    If anybody could give me some pointers or possibly some guidance that would really be appreciated.

    Thank you!

    1 Reply Last reply
    0
    • G
      G
      gmonk63
      wrote on last edited by
      #2

      Are you able to connect to either database using the cli tools such as mysql  or psql for postgres ?  Did you make sure to add the correct db driver username and credentials in the netxms config?  You also would have to have configured netxms to build those drivers  --with-pgsql  --with-mysql --with-sqlite in orderian to initialize the databases.  Hope any of that helps. I have never had any issues as long as every thing builds correctly and I am able to connect to the DB with my configured username and password from the cli tools then i'm usually good to go.

      1 Reply Last reply
      0
      • R
        R
        rhysand
        wrote on last edited by
        #3

        Yup. Went through all of that, made sure and double made sure I could get to the databases. Confirmed that the 'netxms' user was created, had sufficient privileges.

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          I'd suggest running ./configure with  --with-pgsql  --with-mysql --with-sqlite again, make clean and rebuilding from start to make sure that it's ok with client binaries.
          Just in case, pls show your server configuration.
          Currently it's easier to install on Debian/Ubuntu distros - here we have packages available so at least we can exclude complication problems.

          1 Reply Last reply
          0
          • G
            G
            gmonk63
            wrote on last edited by
            #5

            Just an update I downloaded CentOS 7 and was able to successfully build and install using the latest netxms source and postgres 12.    However i did run into  an initial issues when trying to nxdb init

            Unable to connect to database netxms_db@localhost as netxms (FATAL:  Ident authentication failed for user "netxms") i believe this is because the pg_hba.conf does not have an entry for netxms after changing to the following i was able to initialize via nxbmgr init

            local  all            postgres                                trust
            # IPv4 local connections:
            host    netxms_db netxms        127.0.0.1/32            md5
            # IPv6 local connections:
            host    netxms_db netxms        ::1/128                  md5

            using pqsql i created a db of netxms_db and  user netxms with password of netxms for testing   

            hope this helps

            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