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. 4.4.2 Crash

4.4.2 Crash

Scheduled Pinned Locked Moved Support
18 Posts 2 Posters 101.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.
  • A
    A
    Alex Kirhenshtein
    wrote on last edited by
    #4

    @marcush said in 4.4.2 Crash:

    Why does netxms still depend on libssl1.1 and not libssl3?

    Because Debian 11 ships with OpenSSL 1.1:

    root@da539131bae5:/# lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 11 (bullseye)
    Release:        11
    Codename:       bullseye
    root@da539131bae5:/# apt-cache search libssl
    libssl-ocaml - OCaml bindings for OpenSSL (runtime)
    libssl-ocaml-dev - OCaml bindings for OpenSSL
    libssl-dev - Secure Sockets Layer toolkit - development files
    libssl-doc - Secure Sockets Layer toolkit - development documentation
    libssl1.1 - Secure Sockets Layer toolkit - shared libraries
    libssl-utils-clojure - library for SSL certificate management on the JVM
    root@da539131bae5:/# apt-cache show libssl-dev|grep Version
    Version: 1.1.1n-0+deb11u5
    Version: 1.1.1n-0+deb11u4
    

    There are no reference to libssl1 in the official packages for debian 12:

    root@d483efbfc136:~# ldd /usr/bin/netxmsd | grep ssl
            libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007ffb9ae88000)
    root@d483efbfc136:~# dpkg -l netxms-server
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                Version      Architecture Description
    +++-===================-============-============-=================================
    ii  netxms-server:amd64 4.4.2-1      amd64        meta package
    
    1 Reply Last reply
    0
    • M
      M
      MarcusH
      wrote on last edited by
      #5

      Thanks, this was my bad i imported old source list for netxms

      On the issue i reverted back to 4.2.395 making at least server stable and this strange query is outputed to the server console and only this i have nothing else outputed to server console. Any way to figure out what creates this query?


      nxmc_gc6olO20m1.png

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #6

        @marcush said in 4.4.2 Crash:

         Running server on docker making core dump a challange.

        it's rather straighforward if you can control host's core pattern

        sysctl -w kernel.core_pattern='/core/core.%e.%p.%t'
        docker volume create core_vol
        docker run --ulimit core=-1 --mount source=core_vol,target=/core container
        sysctl -w kernel.core_pattern=core # reset it back to the default
        
        1 Reply Last reply
        0
        • M
          M
          MarcusH
          wrote on last edited by
          #7

          @alk said in 4.4.2 Crash:

          @marcush said in 4.4.2 Crash:

           Running server on docker making core dump a challange.

          it's rather straighforward if you can control host's core pattern

          sysctl -w kernel.core_pattern='/core/core.%e.%p.%t'
          docker volume create core_vol
          docker run --ulimit core=-1 --mount source=core_vol,target=/core container
          sysctl -w kernel.core_pattern=core # reset it back to the default
          

          I have a core dump but it gives a lot of reference error and shows no stack trace.

          1 Reply Last reply
          0
          • A
            A
            Alex Kirhenshtein
            wrote on last edited by
            #8

            @marcush said in 4.4.2 Crash:

            I have a core dump but it gives a lot of reference error and shows no stack trace.

            Have you installed netxms-dbg package? It contains all debug symbols for the product.

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #9

              @marcush said in 4.4.2 Crash:

              Any way to figure out what creates this query?

              It's executed by object syncer thread, which saves node changes back into the database.

              From the error message it's unclear which field is not accepted by the SQL server, this link might help with tracing it: https://stackoverflow.com/a/62905763

              1 Reply Last reply
              0
              • M
                M
                MarcusH
                wrote on last edited by
                #10

                @alk said in 4.4.2 Crash:

                @marcush said in 4.4.2 Crash:

                I have a core dump but it gives a lot of reference error and shows no stack trace.

                Have you installed netxms-dbg package? It contains all debug symbols for the product.

                I have not i will have look at this on the test VM

                1 Reply Last reply
                0
                • M
                  M
                  MarcusH
                  wrote on last edited by
                  #11

                  @alk said in 4.4.2 Crash:

                  @marcush said in 4.4.2 Crash:

                  Any way to figure out what creates this query?

                  It's executed by object syncer thread, which saves node changes back into the database.

                  From the error message it's unclear which field is not accepted by the SQL server, this link might help with tracing it: https://stackoverflow.com/a/62905763

                  I though all the =? values was for log obfuscation but even the trace on the SQL server only shows =? i guess that would cause this issue since a lot of the columns are int and it tries to update ? into that.

                  Any idea on what could generate this type of node update?

                  1 Reply Last reply
                  0
                  • M
                    M
                    MarcusH
                    wrote on last edited by
                    #12

                    Ah it is the "INSERT INTO event_log" for the issue i see in the trace that explains the "=?"

                    1 Reply Last reply
                    0
                    • M
                      M
                      MarcusH
                      wrote on last edited by
                      #13

                      Think i found it

                      exec sp_prepexec @p1 output,N'@P1 varchar(15),@P2 varchar(15),@P3 int,@P4 int,@P5 int,@P6 varchar(7),@P7 int,@P8 varchar(1),@P9 varchar(567)
                      

                      @P9 varchar(567), P9 is snmp_oid and it is max 255

                      this is has been strange i removed it and will see if the issue is gone.

                      1 Reply Last reply
                      0
                      • M
                        M
                        MarcusH
                        wrote on last edited by
                        #14

                        Removed the node that caused the faulty query on poll and now 4.4.2 server is stable.

                        Noticed that there is another thread that also restarted server on "SQL query failed" is this intended behavior now or bug?

                        1 Reply Last reply
                        0
                        • M
                          M
                          MarcusH
                          wrote on last edited by
                          #15

                          Scratch that server still crashes now without any obvious error.
                          Might not have time to trace this error and revert again to 4.2.395

                          1 Reply Last reply
                          0
                          • M
                            M
                            MarcusH
                            wrote on last edited by
                            #16

                            Had some time today to look at this issue and it is very illusive.
                            My knowledge on debugging is limited and the core dump that is saved shows nothing, a few addresses that points to ??

                            I have tried running with debug 6 and see if i can see anything in the logs but no errors there but i see a trend.

                            Line before "Log file opened" is always "NetworkDeviceDriver::getInterfaces"

                            example:

                            2023.09.20 09:45:19.570 *D* [ndd.common         ] NetworkDeviceDriver::getInterfaces(0x7f0dae84c740): completed, ifList=0x7f0db5c81300
                            
                            2023.09.20 09:45:21.466 *I* [logger             ] Log file opened (rotation policy 2, max size 16777216)
                            2023.09.20 09:45:21.466 *I* [startup            ] Starting NetXMS server version 4.4.2 build tag 4.4-568-g3a9a8aa557
                            

                            if i search for  0x7f0dae84c740 in the log i found witch node it was

                            2023.09.20 09:45:18.722 *D* [node.iface         ] Node::getInterfaceList(node=TPFIBSW02 [10402]): calling driver (useIfXTable=true)
                            2023.09.20 09:45:18.722 *D* [ndd.common         ] NetworkDeviceDriver::getInterfaces(0x7f0dae84c740,true)
                            

                            I started server and quickly unmanaged  TPFIBSW02 and now server has been running for a while without crashing.
                            Since nothing is output to the log even with level 6 i guess this needs core dump to get why it crashes on this node on poll for interfaces but there i am at a loss.

                            1 Reply Last reply
                            0
                            • A
                              A
                              Alex Kirhenshtein
                              wrote on last edited by
                              #17

                              Do you have any non-Ethernet interfaces there with MAC address longer than 6 bytes?

                              1 Reply Last reply
                              0
                              • M
                                M
                                MarcusH
                                wrote on last edited by
                                #18

                                @alk said in 4.4.2 Crash:

                                Do you have any non-Ethernet interfaces there with MAC address longer than 6 bytes?

                                not that i can see

                                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