5.0.0.4 crashes after scanning system

I’m trying to setup Aerospike on Debian 10, kernel 4.19.118-2.

With basic config asd crashes shortly after parsing config file without any error message.

/usr/bin/asd --config-file  /etc/aerospike/aerospike.conf --early-verbose --foreground; echo $?

prints following:

...
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:225) read 2 byte(s) from file /sys/devices/system/cpu/cpu11/node0/cpu11/topology/core_id
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:483) parsing value "6"
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:764) OS NUMA node index is 0
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:772) OS NUMA node index 0 already covered
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:803) OS NUMA node index 0 -> existing NUMA node index 0
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:806) OS CPU index 11 on NUMA node index 0
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:830) OS CPU index 11 <-> CPU index 11
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:669) querying OS CPU index 12
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:471) reading value from file /sys/devices/system/cpu/cpu12/topology/physical_package_id
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:196) reading file /sys/devices/system/cpu/cpu12/topology/physical_package_id with buffer size 100
Jun 02 2020 08:18:56 GMT: DETAIL (hardware): (hardware.c:201) file /sys/devices/system/cpu/cpu12/topology/physical_package_id not found
Jun 02 2020 08:18:56 GMT: INFO (as): (daemon.c:65) user 0, group 0 -> user 1001, group 1001

strace output:

write(2, "Jun 02 2020 08:21:16 GMT: INFO ("..., 92Jun 02 2020 08:21:16 GMT: INFO (as): (daemon.c:65) user 0, group 0 -> user 1001, group 1001
) = 92
setgroups(0, NULL)                      = 0
setgid(1001)                            = 0
setuid(1001)                            = 0
openat(AT_FDCWD, "/etc/aerospike/aerospike.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=554, ...}) = 0
read(4, "service {\n  user aerospike\n  gro"..., 4096) = 554
read(4, "", 4096)                       = 0
close(4)                                = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
getpid()                                = 10088
gettid()                                = 10088
tgkill(10088, 10088, SIGINT)            = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGINT {si_signo=SIGINT, si_code=SI_TKILL, si_pid=10088, si_uid=1001} ---
exit_group(1)                           = ?
+++ exited with 1 +++

any idea what’s wrong?

Could you describe the environment you are running in? Seems certain /sys files aren’t available to the process.

Also I assume there were warnings and probably a critical message in the logs, could you share those.

I was missing logging configuration in the /etc/aerospike/aerospike.conf:

logging {
  console {
    context any info
  }
}

without this the actual error message wasn’t shown:

CRITICAL (config): (cfg.c:3792) 1024 system file descriptors not enough,

Ok, did you increase the number of file descriptors allowed for the user running the asd process?

Yes, I got confused earlier because there was no error message in console nor in journald.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.