Closed Jorman closed 7 years ago
root user is not supported (see https://github.com/ctubio/Krypto-trading-bot/issues/110)
So I've to use a user inside the chroot! Damm, lol, node have a little problem with that https://github.com/npm/npm/issues/17965
So I'll try on my nas in future thank you
Ok, I successfully reinstlled K under a non-root use and with node v7.10.1 I don't have any error for node but I can't start K.
==30371== Memcheck, a memory error detector
==30371== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==30371== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==30371== Command: node K
==30371==
K.linux.51
/home/web/K/app/server/main.js:14
throw new Error(e);
^
Error: Error: /home/web/K/app/server/lib/K.linux.51.node: wrong ELF class: ELFCLASS64
at bindings (/home/web/K/app/server/main.js:14:19)
at Object.<anonymous> (/home/web/K/app/server/main.js:16:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/web/K/K.js:2:1)
==30371==
==30371== HEAP SUMMARY:
==30371== in use at exit: 367,019 bytes in 2,347 blocks
==30371== total heap usage: 47,260 allocs, 44,913 frees, 81,528,373 bytes allocated
==30371==
==30371== LEAK SUMMARY:
==30371== definitely lost: 0 bytes in 0 blocks
==30371== indirectly lost: 0 bytes in 0 blocks
==30371== possibly lost: 820 bytes in 10 blocks
==30371== still reachable: 366,199 bytes in 2,337 blocks
==30371== of which reachable via heuristic:
==30371== newarray : 3,276 bytes in 4 blocks
==30371== suppressed: 0 bytes in 0 blocks
==30371== Rerun with --leak-check=full to see details of leaked memory
==30371==
==30371== For counts of detected and suppressed errors, rerun with: -v
==30371== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
What do you think @ctubio
i think you are running a 32bit operating system, can you show your versions? something liiike:
$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
$ cat /etc/issue
Debian GNU/Linux 8 \n \l
$ node -v
v8.2.1
$ g++ --version
g++ (Debian 4.9.2-10) 4.9.2
if so, i will try to fix 32bit systems (meanwhile a solution is to use a 64bit operating system)
can you confirm what is your OS? thanks'
Yep
web@Qnap:~$ uname -a
Linux Qnap 3.4.6 #1 SMP Thu Jul 27 01:10:21 CST 2017 x86_64 GNU/Linux
web@Qnap:~$ cat /etc/issue
Debian GNU/Linux 9 \n \l
web@Qnap:~$ node -v
v7.10.1
web@Qnap:~$ g++ --version
g++ (Debian 6.3.0-18) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
web@Qnap:~$
For what I know, on qnap like the one I've the kernel is 64bit but the system is 32. Let me know if you need more info about it thanks
ok thanks, will try to fix soOn
Hi, I've an old Qnap nas, on it I've a chroot enviroment with debian
From the root user (I had some problem with the user so I use the root instead) I cloned the source and the make process seems fine
but on start I've some problem
I searched a bit and seems that is some about the version (32 or 64bit) I made some test without success! Here some info about the chroot environment
Anyone have some skill to do some guess to try to compile it again?