a stop job is running for NetXMS core server
-
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.
-
-
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
-
-
Hi,
May i know where is path location this "netxmsd.service" this file?
I'm using ubuntu 22 server.
Thanks and appreciate your feedback
-
@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.
-
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. -
I'd guess something wrong with how editor is configured in the system. You can try configuring that with:
update-alternatives --config editor
-
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 discardedYour 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 discardedBut I want to point out that TimeoutSec=900 is default value in the unit file (check /lib/systemd/system/netxms-server.service)
-
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.
-
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 -
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
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