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. nxdbmgr init: Segmentation fault

nxdbmgr init: Segmentation fault

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 35.8k 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.
  • B
    B
    BigBlue
    wrote on last edited by
    #1

    Hi,

    I installed the latest version on a new server (CentOS Linux release 7.8.2003).
    No compilation or installation problems:

    /configure --with-server --with-mariadb --with-mariadb-compat-headers --with-agent
    ...
    ...
    ...
    ---------------------------------------------------------------------
                             Configure results
    ---------------------------------------------------------------------
    
    Version                 : 3.4.178
    Prefix                  : /usr/local
    Platform                : Linux
    Shared library suffix   : .so
    Shared library version  : 34
    IPv6 support            : YES
    MQTT support            : YES
    Build Server            : YES
    Server libs             :
    LDAP support            : NO
    XMPP support            : YES
    ZeroMQ support          : NO
    Python support          : NO
    Encryption enabled      : YES
    SSH support enabled     : YES
    Build DB-Drivers        : mariadb sqlite
    Build Clients           : NO
    Build Agent             : YES
    Agent libs              :
    Agent extra components  :
    Subagents list          : linux ds18x20 netsvc ssh mqtt lorawan
    Systemd support         : YES
    SD-Bus support          : NO
    Build Static Agent      : NO
    UNICODE build           : YES
    Use internal libexpat   : YES
    Use internal libjansson : YES
    Use internal sqlite     : YES
    Use internal zlib       : NO
    Force 32bit build       : NO
    C compiler              : gcc
    C++ compiler            : g++
    C++ compiler info       : g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
    CPPFLAGS                :  -D_THREAD_SAFE -D_GNU_SOURCE -O2 -Wformat -Wno-unused-result -Wno-format-truncation -Werror=return-type -fvisibility=hidden -I/usr/local/include -DUNICODE -DPREFIX=L\"${prefix}\" -DDATADIR=L\"${pkgdatadir}\" -DBINDIR=L\"${bindir}\" -DLIBDIR=L\"${libdir}\" -DPKGLIBDIR=L\"${pkglibdir}\" -DSTATEDIR=L\"${localstatedir}/lib/netxms\" -DSYSCONFDIR=L\"${sysconfdir}\" -DNDEBUG
    CXXFLAGS                : -g -O2 -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden
    CFLAGS                  : -g -O2
    LDFLAGS                 :   -L/usr/local/lib
    LIBS                    : -lpcre32 -lpcre -lz -lresolv -ldl  -lpthread -lssl -lcrypto -lcurl
    Executable LDFLAGS      :
    Executable LIBS         :
    MariaDB CPPFLAGS        : -I/usr/include/mysql
    MariaDB LIBS            : -lmariadb
    

    No database creation problems either on MariaDB:
    rpm -qa | grep -i maria
    MariaDB-compat-10.4.13-1.el7.centos.x86_64
    MariaDB-server-10.4.13-1.el7.centos.x86_64
    MariaDB-client-10.4.13-1.el7.centos.x86_64
    MariaDB-devel-10.4.13-1.el7.centos.x86_64
    MariaDB-shared-10.4.13-1.el7.centos.x86_64
    MariaDB-common-10.4.13-1.el7.centos.x86_64

    $ mysql -u netxms -pPaSsWwDd
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 1056
    

    But I'm getting a segmentation error on initial configuration using nxdbmgr utility:

    $ /usr/local/bin/nxdbmgr init
    NetXMS Database Manager Version 3.4.178 Build 3.4-178-g757c658f4d (UNICODE)
    
    Initializing database...
    Erreur de segmentation
    

    Any ideas on how to fix this?

    Thanks
    BB

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

      Please run

      ulimit -S -c unlimited
      

      this will enable core dump creation.
      Then run

      nxdbmgr init
      

      again. When it crashes, a file should appear in current folder named core.xxxx. Please attach this file here.

      1 Reply Last reply
      0
      • B
        B
        BigBlue
        wrote on last edited by
        #3

        Hi,

        The file is too large and cannot be attached.
        Attached is a download link:
        https://filesender.renater.fr/?s=download&token=5d98ef83-96f0-4845-841d-754be24335f0

        Thanks

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

          We also need exact binaries how they got compiled on your system. Please provide an archive of netxms/bin and netxms/lib folders.

          1 Reply Last reply
          0
          • B
            B
            BigBlue
            wrote on last edited by
            #5

            I don't understand exactly what files this is about...
            You have here the whole folder (compilation + make).

            Link Preview Image
            FileSender

            favicon

            (filesender.renater.fr)

            Is that okay?

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

              Right, currently the installed files are in several other places.

              Please add --prefix=/opt/netxms to ./configure command, run ./configure ...., make and make install and send the contents of /opt/netxms folder

              UPD: or if you have not done the above yet, please just send the contents of the following folders from your system.
              /usr/local/bin
              /usr/local/lib

              1 Reply Last reply
              0
              • B
                B
                BigBlue
                wrote on last edited by
                #7

                Hi,

                After uninstalling and reinstalling everything properly in /opt/netxms, I no longer have the error:

                $ /opt/netxms/bin/nxdbmgr init
                NetXMS Database Manager Version 3.4.178 Build 3.4-178-g757c658f4d (UNICODE)
                
                Initializing database...
                Database initialized successfully
                

                I think there was a conflict with an older version or system library...

                Thank you for your help.
                BB

                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