Open hueyvle opened 1 year ago
Unfortunately, /usr/sbin/arango-init-database is a binary, so here is the strace.
execve("/usr/sbin/arango-init-database", ["/usr/sbin/arango-init-database", "-c", "/tmp/arangod.conf", "--server.rest-server", "false", "--log.level", "error", "--database.init-database", "true"], 0x7ffc0de70c50 /* 16 vars */) = 0
mmap(NULL, 7552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3f93ebe000
arch_prctl(ARCH_SET_FS, 0x7f3f93ebfca0) = 0
set_tid_address(0x7f3f99406218) = 142388
readlink("/etc/malloc.conf", 0x7ffcbd4ef700, 4096) = -1 ENOENT (No such file or directory)
open("/proc/sys/vm/overcommit_memory", O_RDONLY|O_CLOEXEC) = 3
read(3, "0", 1) = 1
close(3) = 0
open("/sys/kernel/mm/transparent_hugepage/enabled", O_RDONLY) = 3
read(3, "[always] madvise never\n", 24) = 23
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93ebd000
madvise(0x7f3f93ebd000, 4096, MADV_FREE) = 0
munmap(0x7f3f93ebd000, 4096) = 0
mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93cbe000
munmap(0x7f3f93cbe000, 2097152) = 0
mmap(NULL, 4190208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93abf000
munmap(0x7f3f93abf000, 1314816) = 0
munmap(0x7f3f93e00000, 778240) = 0
brk(NULL) = 0x5555566f2000
mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93a00000
mmap(NULL, 4194304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93600000
sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]) = 32
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1 RT_2], [], 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1 RT_2], NULL, 8) = 0
mmap(NULL, 151552, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3f93e99000
mprotect(0x7f3f93e9b000, 143360, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1 RT_2], ~[KILL STOP RTMIN RT_1 RT_2], 8) = 0
clone(child_stack=0x7f3f93ebbe58, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|0x400000, parent_tid=[142389], tls=0x7f3f93ebdb20, child_tidptr=0x7f3f99406218) = 142389
rt_sigprocmask(SIG_SETMASK, ~[KILL STOP RTMIN RT_1 RT_2], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
sysinfo({uptime=5416516, loads=[1117792, 1155808, 1168480], totalram=1081722851328, freeram=336791506944, sharedram=5160841216, bufferram=1400598528, totalswap=137438949376, freeswap=125076500480, procs=18678, totalhigh=0, freehigh=0, mem_unit=1}) = 0
sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]) = 32
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 2621440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93380000
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 3145728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f93080000
mmap(NULL, 7340032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f3f92980000
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
sched_getaffinity(0, 128, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]) = 32
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
getcwd("/arango", 1000) = 8
sigaltstack({ss_sp=0x7f3f93b689c0, ss_flags=0, ss_size=131072}, NULL) = 0
rt_sigaction(SIGSEGV, {sa_handler=0x7f3f946cebd0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0xffffffff00000000, sa_restorer=0x7f3f978b19b3}, NULL, 8) = 0
rt_sigaction(SIGBUS, {sa_handler=0x7f3f946cebd0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0xffffffff00000000, sa_restorer=0x7f3f978b19b3}, NULL, 8) = 0
rt_sigaction(SIGILL, {sa_handler=0x7f3f946cebd0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0xffffffff00000000, sa_restorer=0x7f3f978b19b3}, NULL, 8) = 0
rt_sigaction(SIGFPE, {sa_handler=0x7f3f946cebd0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0xffffffff00000000, sa_restorer=0x7f3f978b19b3}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
rt_sigaction(SIGABRT, {sa_handler=0x7f3f946cebd0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_NODEFER|SA_RESETHAND|SA_SIGINFO|0xffffffff00000000, sa_restorer=0x7f3f978b19b3}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x7f3f93ebbc94, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f3f93c0a6bc, FUTEX_WAKE_PRIVATE, 1) = 1
ioctl(1, TIOCGWINSZ, 0x7ffcbd4f19f8) = -1 ENOTTY (Not a tty)
stat("/tmp/arangod.conf", {st_mode=S_IFREG|0644, st_size=1612, ...}) = 0
stat("/tmp/arangod.conf.local", 0x7ffcbd4f1050) = -1 ENOENT (No such file or directory)
open("/tmp/arangod.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "# ArangoDB configuration file\n# "..., 8192) = 1612
read(3, "", 8192) = 0
close(3) = 0
getpid() = 142388
stat("/var/lib/arangodb3", {st_mode=S_IFDIR|0775, st_size=10, ...}) = 0
getpid() = 142388
ioctl(2, TIOCGWINSZ, 0x7ffcbd4f0fe8) = -1 ENOTTY (Not a tty)
writev(2, [{iov_base="", iov_len=0}, {iov_base="2023-09-15T15:23:38Z [142388] FA"..., iov_len=95}], 22023-09-15T15:23:38Z [142388] FATAL {general} invalid value for '--rocksdb.max-background-jobs') = 95
writev(2, [{iov_base="\n", iov_len=1}, {iov_base=NULL, iov_len=0}], 2
) = 1
exit_group(1) = ?
+++ exited with 1 +++
version: docker exec arango arangosh --version | head -2 3.10.3
reproduce: