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. a stop job is running for NetXMS core server

a stop job is running for NetXMS core server

Scheduled Pinned Locked Moved Support
13 Posts 4 Posters 315.9k 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.
  • P
    P
    PERIER
    wrote on last edited by
    #1

    Hello all.
    My NetXMS 4.3.0 run on Debian 10.
    When I stop my server, I get the message "a stop job is running for NetXMS core server" lasting 15 minutes. How to modify this timer?

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

      Most probable reason is that database engine gets stopped first. After that netxms waits for reconnection to the DB to write data prior to shutdown.

      1 Reply Last reply
      0
      • P
        P
        PERIER
        wrote on last edited by
        #3

        Thank you very much for your research lead. On the other hand, I don't know which file to modify so that MySQL stops after NetXMS Core server.

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

          Since Debian uses systemd, After=   parameter in netxmsd.service should help.
          https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Before=

          Pls update, if you need an example

          1 Reply Last reply
          0
          • P
            P
            PERIER
            wrote on last edited by
            #5

            Good morning. Fixed issue by changing TimeoutSec from 900 to 60 in netxmsd.service file.

            1 Reply Last reply
            0
            • K
              K
              kronicklez
              wrote on last edited by
              #6

              Hi,

              May i know where is path location this  "netxmsd.service" this file?

              I'm using ubuntu 22 server.

              Thanks and appreciate your feedback

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

                @kronicklez said in a stop job is running for NetXMS core server:

                Hi,

                May i know where is path location this  "netxmsd.service" this file?

                I'm using ubuntu 22 server.

                Thanks and appreciate your feedback

                you can add override by running “systemctl edit netxms-server”. It’s not recommended to modify unit file directly - it might be overwritten by the upgrade.

                1 Reply Last reply
                0
                • K
                  K
                  kronicklez
                  wrote on last edited by
                  #8

                  Hi Alex,

                  I try edit the file that u mention and uncomment "# TimeoutSec=900" to "# TimeoutSec=60" but get error below. Do i need to stop first service befor edit the file? Thanks and appreciate your feedback

                  root@ubuntu22:~# systemctl edit netxms-server
                  Editing "/etc/systemd/system/netxms-server.service.d/override.conf" canceled: temporary file is empty.

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

                    I'd guess something wrong with how editor is configured in the system. You can try configuring that with:

                    update-alternatives --config editor

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

                      There are comments by systemctl:

                      ### Editing /etc/systemd/system/netxms-server.service.d/override.conf
                      ### Anything between here and the comment below will become the new contents of the file
                      
                      ...
                      
                      ### Lines below this comment will be discarded
                      

                      Your changes were just ignored.

                      Proper override should be something like this:

                      ### Anything between here and the comment below will become the new contents of the file
                      
                      
                      [Unit]
                      After=network.target postgresql.service
                      TimeoutSec=900
                      … more overrides
                      
                      ### Lines below this comment will be discarded
                      

                      But I want to point out that TimeoutSec=900 is default value in the unit file (check /lib/systemd/system/netxms-server.service)

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

                        My guess is that DB is shutting down before the core process and netxmsd waits for connection to write cached information.

                        Add "After=" section to your unit override.

                        1 Reply Last reply
                        0
                        • K
                          K
                          kronicklez
                          wrote on last edited by
                          #12

                          Hi,

                          @filipp-sudanov said in a stop job is running for NetXMS core server:

                          I'd guess something wrong with how editor is configured in the system. You can try configuring that with:

                          update-alternatives --config editor

                          Currently i'm using nano. Is it issue using nano?

                          root@ubuntu22:~# update-alternatives --config editor
                          There are 4 choices for the alternative editor (providing /usr/bin/editor).

                            Selection    Path                Priority  Status
                          ------------------------------------------------------------
                          * 0            /bin/nano            40        auto mode
                            1            /bin/ed            -100      manual mode
                            2            /bin/nano            40        manual mode
                            3            /usr/bin/vim.basic  30        manual mode
                            4            /usr/bin/vim.tiny    15        manual mode

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

                            Nano is fine. Could be that you tried to add the text to the end of the file that opened for editing? Note that text should be added between

                            ### Anything between here and the comment below will become the new contents of the file

                            and

                            ### Lines below this comment will be discarded

                            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