failed to start netxms-server.service

Started by ddockx, January 04, 2021, 10:04:01 AM

Previous topic - Next topic

ddockx

Good morning, and happy new year,

Tired to install NetXMS on Ubuntu 20.04, with Mariadb and Tomcat9.
Installation was ok, no issue (as far as  can see) with DB.
But when I tried to run "systemctl start netxms-server" got error msg "Failed to start netxms-server.service: Unit netxms-server.service not found."

Thanks,
David

NicovdWalt

#1
Good day,
I also did the update to 3.7.95 today and it keeps failing to start.
Centos 7.9

● netxms-server.service - NetXMS Monitoring Server
   Loaded: loaded (/etc/systemd/system/netxms-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: signal) since Mon 2021-01-04 11:17:06 SAST; 4min 2s ago
  Process: 755 ExecStart=/usr/local/bin/netxmsd -d (code=exited, status=0/SUCCESS)
Main PID: 783 (code=killed, signal=SEGV)

Jan 04 12:31:05 overwatch systemd[1]: Starting NetXMS Monitoring Server...
Jan 04 12:31:05 overwatch systemd[1]: Started NetXMS Monitoring Server.
Jan 04 12:31:06 overwatch systemd[1]: netxms-server.service: main process exited, code=killed, status=11/SEGV
Jan 04 12:31:06 overwatch systemd[1]: Unit netxms-server.service entered failed state.
Jan 04 12:31:06 overwatch systemd[1]: netxms-server.service failed.

Regards

Borgso

ddockx:
If installed with .deb/apt service is called "netxmsd"
Correct command will then be:
Quotesystemctl start netxmsd

ddockx

Indeed service is running!
Thanks for your help!!!!!
David

Filipp Sudanov

Quote from: NicovdWalt on January 04, 2021, 11:25:23 AM
Good day,
I also did the update to 3.7.95 today and it keeps failing to start.
Centos 7.9


Check /var/log/netxmsd for any errors (or run       netxmsd -D5     in this case it will put log messages right to the console).

NicovdWalt

Hi Filipp,
This is the result I got, I checked logs and saw no error and then I ran the -D5 start and received the following:
[tt][tt][tt]Program received signal SIGSEGV, Segmentation fault.
HashMapBase::find (this=this@entry=0x0, key=key@entry=0x7fffffff1000) at hashmapbase.cpp:104
104        HASH_FIND(hh, m_data, key, m_keylen, entry);
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-23.el7.x86_64 glibc-2.17-317.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-50.el7.x86_64 libcom_err-1.42.9-19.el7.x86_64 libcurl-7.29.0-59.el7_9.1.x86_64 libgcc-4.8.5-44.el7.x86_64 libidn-1.28-4.el7.x86_64 libselinux-2.5-15.el7.x86_64 libssh2-1.8.0-4.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64 mariadb-libs-5.5.68-1.el7.x86_64 nspr-4.25.0-2.el7_9.x86_64 nss-3.53.1-3.el7_9.x86_64 nss-pem-1.0.3-7.el7.x86_64 nss-softokn-3.53.1-6.el7_9.x86_64 nss-softokn-freebl-3.53.1-6.el7_9.x86_64 nss-sysinit-3.53.1-3.el7_9.x86_64 nss-util-3.53.1-1.el7_9.x86_64 openldap-2.4.44-22.el7.x86_64 openssl-libs-1.0.2k-21.el7_9.x86_64 pcre-8.32-17.el7.x86_64 sqlite-3.7.17-8.el7_7.1.x86_64 zlib-1.2.7-18.el7.x86_64
(gdb) bt
#0  HashMapBase::find (this=this@entry=0x0, key=key@entry=0x7fffffff1000) at hashmapbase.cpp:104
#1  0x00007ffff668adcb in HashMapBase::_set (this=0x0, key=key@entry=0x7fffffff1000, value=value@entry=0xb6fb90) at hashmapbase.cpp:116
#2  0x00007fffdbb9883c in set (value=0xb6fb90, key=..., this=<optimized out>) at ../../include/nms_util.h:1858
#3  NXSL_FileClass::NXSL_FileClass (this=0x7fffdbde8aa0 <s_nxslFileClass>) at io.cpp:216
#4  0x00007fffdbb85c30 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at io.cpp:65
#5  _GLOBAL__sub_I_io.cpp(void) () at io.cpp:285
#6  0x00007ffff7dea9c3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7def59e in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7dea7d4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#9  0x00007ffff7deeb8b in _dl_open () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff6021fab in dlopen_doit () from /lib64/libdl.so.2
#11 0x00007ffff7dea7d4 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#12 0x00007ffff60225ad in _dlerror_run () from /lib64/libdl.so.2
#13 0x00007ffff6022041 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#14 0x00007ffff66899af in DLOpenEx (libName=0x7fffffff3900 L"/usr/local/lib/netxms/ndd/airespace.ndd", global=<optimized out>,
    errorText=0x7fffffff15c0 L"rl          ] cURL supported protocols: dict file ftp ftps gopher http h\xf66c3028翿\xffff1b80翿\a") at dload.cpp:51
#15 0x00007ffff794da7c in LoadDriver (blacklist=..., file=0x7fffffff3900 L"/usr/local/lib/netxms/ndd/airespace.ndd") at ndd.cpp:44
#16 LoadNetworkDeviceDrivers () at ndd.cpp:136
#17 0x00007ffff794424f in Initialize () at main.cpp:1110
#18 0x0000000000401427 in main (argc=<optimized out>, argv=<optimized out>) at netxmsd.cpp:525[/tt][/tt][/tt]


Filipp Sudanov

try deleting libraries that were installed by older version, these are libnx* libnetxms* files in /usr/local/lib/netxms and /usr/local/lib
then make & make install again

NicovdWalt

Hi Filipp,

Quote from: Filipp Sudanov on January 04, 2021, 07:08:26 PM
try deleting libraries that were installed by older version, these are libnx* libnetxms* files in /usr/local/lib/netxms and /usr/local/lib
then make & make install again

This worked perfectly, thank you!