Hi! I got LoggerNet for Linux 4.4. However, I can't get it running. It exits immediately without any message and with exit code 255. I tried on two machines with Ubuntu 14.04, same result. See logs below. Please advice.
Kind regards,
Marcel
root@srv19:/home/hacks/loggernet# dpkg --install loggernet-debian_4.4-15_x86_64.deb Selecting previously unselected package loggernet. (Reading database ... 150709 files and directories currently installed.) Preparing to unpack loggernet-debian_4.4-15_x86_64.deb ... Unpacking loggernet (4.4.15) ... Setting up loggernet (4.4.15) ... Adding system startup for /etc/init.d/csilgrnet ... /etc/rc0.d/K20csilgrnet -> ../init.d/csilgrnet /etc/rc1.d/K20csilgrnet -> ../init.d/csilgrnet /etc/rc6.d/K20csilgrnet -> ../init.d/csilgrnet /etc/rc2.d/S20csilgrnet -> ../init.d/csilgrnet /etc/rc3.d/S20csilgrnet -> ../init.d/csilgrnet /etc/rc4.d/S20csilgrnet -> ../init.d/csilgrnet /etc/rc5.d/S20csilgrnet -> ../init.d/csilgrnet Adding system startup for /etc/init.d/csildep ... /etc/rc0.d/K20csildep -> ../init.d/csildep /etc/rc1.d/K20csildep -> ../init.d/csildep /etc/rc6.d/K20csildep -> ../init.d/csildep /etc/rc2.d/S20csildep -> ../init.d/csildep /etc/rc3.d/S20csildep -> ../init.d/csildep /etc/rc4.d/S20csildep -> ../init.d/csildep /etc/rc5.d/S20csildep -> ../init.d/csildep Adding system startup for /etc/init.d/csildmp ... /etc/rc0.d/K20csildmp -> ../init.d/csildmp /etc/rc1.d/K20csildmp -> ../init.d/csildmp /etc/rc6.d/K20csildmp -> ../init.d/csildmp /etc/rc2.d/S20csildmp -> ../init.d/csildmp /etc/rc3.d/S20csildmp -> ../init.d/csildmp /etc/rc4.d/S20csildmp -> ../init.d/csildmp /etc/rc5.d/S20csildmp -> ../init.d/csildmp * Starting LoggerNet Daemon [fail] invoke-rc.d: initscript csilgrnet, action "start" failed. dpkg: error processing package loggernet (--install): subprocess installed post-installation script returned error exit status 255 Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: loggernet root@srv19:/home/hacks/loggernet# /opt/CampbellSci/LoggerNet/csilgrnet root@srv19:/home/hacks/loggernet# echo $? 255 root@srv19:/var/opt/CampbellSci# strace /opt/CampbellSci/LoggerNet/csilgrnet execve("/opt/CampbellSci/LoggerNet/csilgrnet", ["/opt/CampbellSci/LoggerNet/csilg"...], [/* 23 vars */]) = 0 brk(0) = 0xb65000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646c0e000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=41844, ...}) = 0 mmap(NULL, 41844, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9646c03000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0po\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=141574, ...}) = 0 mmap(NULL, 2217264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f96467d0000 mprotect(0x7f96467e9000, 2093056, PROT_NONE) = 0 mmap(0x7f96469e8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f96469e8000 mmap(0x7f96469ea000, 13616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f96469ea000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=14664, ...}) = 0 mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f96465cc000 mprotect(0x7f96465cf000, 2093056, PROT_NONE) = 0 mmap(0x7f96467ce000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f96467ce000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \266\5\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=979056, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646c02000 mmap(NULL, 3159040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f96462c8000 mprotect(0x7f96463ae000, 2093056, PROT_NONE) = 0 mmap(0x7f96465ad000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe5000) = 0x7f96465ad000 mmap(0x7f96465b7000, 82944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f96465b7000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20V\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=1071552, ...}) = 0 mmap(NULL, 3166568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f9645fc2000 mprotect(0x7f96460c7000, 2093056, PROT_NONE) = 0 mmap(0x7f96462c6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x104000) = 0x7f96462c6000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260*\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=90080, ...}) = 0 mmap(NULL, 2185952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f9645dac000 mprotect(0x7f9645dc2000, 2093056, PROT_NONE) = 0 mmap(0x7f9645fc1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f9645fc1000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1840928, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646c01000 mmap(NULL, 3949248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f96459e7000 mprotect(0x7f9645ba2000, 2093056, PROT_NONE) = 0 mmap(0x7f9645da1000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f9645da1000 mmap(0x7f9645da7000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f9645da7000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646c00000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646bfe000 arch_prctl(ARCH_SET_FS, 0x7f9646bfe780) = 0 mprotect(0x7f9645da1000, 16384, PROT_READ) = 0 mprotect(0x7f96462c6000, 4096, PROT_READ) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646bfd000 mprotect(0x7f96465ad000, 32768, PROT_READ) = 0 mprotect(0x7f96467ce000, 4096, PROT_READ) = 0 mprotect(0x7f96469e8000, 4096, PROT_READ) = 0 mprotect(0x7f9646c10000, 4096, PROT_READ) = 0 munmap(0x7f9646c03000, 41844) = 0 set_tid_address(0x7f9646bfea50) = 17893 set_robust_list(0x7f9646bfea60, 24) = 0 futex(0x7ffca652f3c0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f9646bfe780) = -1 EAGAIN (Resource temporarily unavailable) rt_sigaction(SIGRTMIN, {0x7f96467d69f0, [], SA_RESTORER|SA_SIGINFO, 0x7f96467e0340}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x7f96467d6a80, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f96467e0340}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 futex(0x7f96465c994c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f96465c9958, FUTEX_WAKE_PRIVATE, 2147483647) = 0 brk(0) = 0xb65000 brk(0xb86000) = 0xb86000 rt_sigaction(SIGTERM, {0x40b5e0, [], SA_RESTORER, 0x7f96467e0340}, NULL, 8) = 0 rt_sigaction(SIGINT, {0x40b5e0, [], SA_RESTORER, 0x7f96467e0340}, NULL, 8) = 0 stat("/etc/opt/CampbellSci/csi_registry.xml", {st_mode=S_IFREG|0644, st_size=331, ...}) = 0 open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9646c0d000 read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0"..., 4096) = 1892 lseek(3, -1217, SEEK_CUR) = 675 read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0"..., 4096) = 1217 close(3) = 0 munmap(0x7f9646c0d000, 4096) = 0 open("/etc/opt/CampbellSci/csi_registry.xml", O_RDONLY) = 3 read(3, "Feb 1 18:18:57 csilgrnet: a"..., 108, MSG_NOSIGNAL, NULL, 0) = 108 close(3) = 0 exit_group(-1) = ? +++ exited with 255 +++
Please provide support on this topic.
I sent you an email Marcel.
I just tracked it down.
I knew LoggerNet exited with code 255.
Using the "strace" tool I noticed that LoggerNet uses /var/log, I checked /var/log/syslog and found the following messages:
root@srv19:/opt/CampbellSci/LoggerNet# cat /var/log/syslog | grep csilgrnet Mar 2 09:18:27 srv19 csilgrnet: aborting due to exception: "locale::facet::_S_create_c_locale name not valid" root@srv19:/opt/CampbellSci/LoggerNet#
I followed instructions from http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue and finally I got LoggerNet running. So it was caused by a bad locale setting.
Thanks to Glen who helped me tracking it down.
I'm glad you were able to track it down Marcel. I'll ask Engineering if there's a way to detect this condition and get beyond it and start the server anyway, or display some kind of error message leading the user to the problem. I'm not sure they'll be willing to start the server anyway as the server does need locale settings for some things to be set properly and run correctly.
Even now that it's working for you, I believe running:
sudo strace /opt/CampbellSci/LoggerNet/csilgrnet
will still result in an exit code of 255 as it's just not meant to be run that way. However, running:
sudo strace /sbin/start-stop-daemon --start --oknodo --name csilgrnet --chuid loggernet:dialout --exec /opt/CampbellSci/LoggerNet/csilgrnet -- --run-as-daemon=true
should now give you an exit code of 0.