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. DCI and Authentication disabled (after OS reboot)

DCI and Authentication disabled (after OS reboot)

Scheduled Pinned Locked Moved Support
14 Posts 3 Posters 32.0k 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.
  • V
    V
    Victor Kirhenshtein
    wrote on last edited by
    #3

    Hi,

    it seems that server is started on OS boot and then stopped. One possible reason could be that it started before database is ready, so it cannot access database and exits. Can you please set debug level to 9 (by adding DebugLevel=9 to netxmsd.conf), restart the system, and post server's log file?

    Best regards,
    Victor

    1 Reply Last reply
    0
    • R
      R
      radw
      wrote on last edited by
      #4

      Hello, here is the netxmsd log file requested: https://www.dropbox.com/s/t3uont26zsu72vs/netxmsd?dl=0

      Regards.

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

        It seems that netxmsd starts before MySQL is ready:

        [31-May-2016 10:50:17.311] [ERROR] Unable to establish connection with database (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))

        try to add dependency on mysqld and/or startup delay to netxmsd startup script.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • R
          R
          radw
          wrote on last edited by
          #6

          Hello, thanks for your answer. In those cases, which is the best practice ??. Also, is there any procedure in the documentation to perform that action ??

          Regards.

          1 Reply Last reply
          0
          • R
            R
            radw
            wrote on last edited by
            #7

            Hello Victor, can you explain me how to perform those steps. Thanks.

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

              Modify /etc/init.d/netxmsd, add "mysqld" to "Required-Start" section.

              1 Reply Last reply
              0
              • R
                R
                radw
                wrote on last edited by
                #9

                Hello, I modify the file and restart the netxmsd service, however the issue persists after I reboot the Debian system:

                NETXMS-TEST:~$ sudo vi /etc/init.d/netxmsd
                #!/bin/sh
                # vim: syntax=sh
                ### BEGIN INIT INFO
                # Provides:          netxms-server
                # Required-Start:    $network $local_fs nxagentd mysqld
                # Required-Stop:
                # Default-Start:     2 3 4 5
                # Default-Stop:      0 1 6
                # Short-Description: NetXMS server
                # Description:       Network monitoring daemon, which collect and process metrics
                #                    from native and SNMP agents.
                ### END INIT INFO
                
                # Author: Alex Kirhenshtein <[email protected]>
                

                Regards.

                1 Reply Last reply
                0
                • R
                  R
                  radw
                  wrote on last edited by
                  #10

                  Hello, I still have the authentication issue after rebooting or shutdown the OS.

                  The netxmsd service appears active, but is necessary to restart it for allow login.

                  Regards.

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

                    What is in the netxmsd log when you try to connect after OS restart?

                    Best regards,
                    Victor

                    1 Reply Last reply
                    0
                    • R
                      R
                      radw
                      wrote on last edited by
                      #12

                      Hello Victor, here is the log (at debug level9): http://jmp.sh/iZAh5EK

                      Regards.

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

                        Hi,

                        still there is an issue with database not being ready:

                        [19-Aug-2016 09:55:11.539] [ERROR] Unable to establish connection with database (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))

                        If there is dependency on mysqld in netxmsd startup script, then you need to add some code to wait while mysql becomes available in netxmsd startup script, or just add delay big enough to allow mysqld to initialize.

                        Best regards,
                        Victor

                        1 Reply Last reply
                        0
                        • R
                          R
                          radw
                          wrote on last edited by
                          #14

                          Hello Victor, thanks for your answer and analysis.

                          In this case, ¿¿can you guide me on on how to ingress the code you mentioned for fixing the issue ??

                          Regards.

                          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