Giter Club home page Giter Club logo

bendr0id / xmrigcc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xmrig/xmrig

310.0 310.0 108.0 46.13 MB

RandomX, CryptoNight, Argon2 and GhostRider CPU/GPU miner with Command&Control (CC) Server and Monitoring

License: GNU General Public License v3.0

CMake 0.65% C++ 41.63% C 51.46% HTML 1.65% Dockerfile 0.01% Assembly 4.47% Shell 0.06% JavaScript 0.07% Common Lisp 0.01%
admin argon2 armv8 cc cryptonight dashboard ghostrider linux monitoring randomx remote-control windows

xmrigcc's People

Contributors

00-matt avatar alvv-z avatar bendr0id avatar benthetechguy avatar coldiron avatar d3c0d3d avatar deadmanwalkingto avatar djfinch avatar esrrhs avatar foudge avatar jacksonz03 avatar jtgrassie avatar kevacoin-project avatar komatom avatar low-power avatar martin-braun avatar matthewgentoo avatar moneromooo-monero avatar msembinelli avatar neilcoggins avatar pdxwebdev avatar roboto12 avatar sashank003 avatar schernykh avatar sebastianstolzenberg avatar spudz76 avatar stanz2g avatar stardock2018 avatar thegreatmcpain avatar xmrig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xmrigcc's Issues

Add delay to ControlCommand

Im not expert in the matter but i have been searching for hours the control command script.
Im using a third party script to pause xmrigMiner.exe (not from the CC server) but after do it, CC-client try to re-start mining with the command every 10 seconds.

captura

My solution is to add more time delay (1minute) or ignore command from the CC-client.
Thanks in advance

Something weired happened with "xmrigMiner" between 1.1.1 and 1.2.0

Problem: xmrigDaemon.exe won't start miner on some computers (Win7x64). Just did not show anything in console (nor error neither warnings appeared and logfile is empty) until "xmrigMiner.exe" was downgraded to v.1.1.1
I've looked over all versions of the last release (mvc/gcc, x84/x64) with no success.
p.s. All MS Visual C++ libraries are installed, both x86 and x64 versions (afaik it has no matter with "gcc" version of miner).
p.p.s. I've tested a few last releases of xmrig - it works fine on the same computers.

playing with multihash factor

hello I have a ryzen 1700
this is what I get

threads=2 mhf=3 370-380mh/s
threads=2 mhf=4 270-280mh/s
threads=4 mhf=2 350-360mh/s
threads=4 mhf=3 aff=0x1111 mask=0x5 340-350mh/s

I imagined the last one would perform better but maybe the system must be completely idle. Anyway running only 2 threads and get the same if not more as of running 4 threads is great!

build static for old libc

with the following cmake:
cmake . -DUV_LIBRARY=/usr/lib/x86_64-linux-gnu/libuv.a -DWITH_CC_SERVER=OFF -DWITH_HTTPD=OFF

on a debian wheezy, i got:
./xmrigMiner: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.14' not found (required by ./xmrigMiner)

how do you compile your linux-static-old_libc version ?

x86 app

Hello there.
I like your product very much but I do not have 32 bit release. 32 bit release required. The computers I run are 32 bit. could you help with this?

CC server and html webpage question

It is possible to host CC server on a VPS and the html webpage in another hosting service?

I see that the webpage doesnt have a conection server script (I suppose that by default it searchs the server at localhost).

Just because i have a VPS and a web service (which it has a domain, cpanel and ssl certificate). But i cant link my domain with my VPS.

Memory leak in CCServer?

CCserver process getting killed after running for some time due to "Out of memory". Possible memory leak or auto flush needed with CCserver? (Ubuntu 16.04 with 1GB RAM)

Build Error (not sure if problematic)

Hi, trying to put together an alpine docker image at the moment and stumbled upon this error.

/root/xmrigccserver/tmp/src/App.cpp: In static member function 'static void App::onCommandReceived(uv_async_t*)':
/root/xmrigccserver/tmp/src/App.cpp:250:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     auto command = reinterpret_cast<ControlCommand::Command &> (async->data);
                                                                            ^

Running: cmake -DCMAKE_BUILD_TYPE=Release -DWITH_AEON=OFF .
Version: XMRigCC/1.3.0 (based on XMRig 2.4.3) libuv/1.11.0 gcc/6.3.0

It seems there is no problem. In case this is not resulting in "Please configure a Dashboard" error.

If this is no problem, just close it.

Thanks and great work :)

Request for schedules

Hi, would it be technically possible to schedule configurations for clients? For example I want a miner to schedule a worker to use only 1 cpu core during the day, and 4 cpu cores during the night.
Would that be possible in the future releases or it's too much work ? :)

unable to performRequest POST

Hey guys,

First of all thanks for the great work you have put together here. It is a great way to keep track of the different workers. I've been able to set up the Server and the daemons on a couple servers. Their status is updated every x seconds as set-up in the config. However I can't seem to find the problem with the last servers.

I keep getting this error

[2018-01-13 18:35:33] [CC-Client] error: unable to performRequest POST -> http://exampleServer.domain.com:3434/client/setClientStatus?clientId=exampleWorker.domain.com

The workers are installed on CentOS 7.

If someone could point me in the right direction that would be great.

Thanks !

"call of overloaded 'GenericValue(long int&)' is ambiguous" when building for 32-bit

I successfully built a 64-bit xmrigCC binary, and now I am trying to build a 32-bit one. I added -m32 to the flags (in cmake/flags.cmake) but I ran into an error while building. It seems to be related to the rapidjson library, but I have no C++ knowledge so I can't fix it myself.

The error message:

[ 96%] Building CXX object CMakeFiles/xmrigMiner.dir/src/cc/ClientStatus.cpp.o
In file included from /root/xmrigCC/src/cc/ClientStatus.h:30:0,
                 from /root/xmrigCC/src/cc/ClientStatus.cpp:32:
/root/xmrigCC/src/3rdparty/rapidjson/document.h: In instantiation of ‘typename rapidjson::internal::DisableIf<typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::internal::OrExpr<rapidjson::internal::IsPointer<T>, rapidjson::internal::IsGenericValue<T> >)>::Type, typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::GenericValue<Encoding, Allocator>&)>::Type>::Type rapidjson::GenericValue<Encoding, Allocator>::AddMember(rapidjson::GenericValue<Encoding, Allocator>&, T, Allocator&) [with T = long int; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; typename rapidjson::internal::DisableIf<typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::internal::OrExpr<rapidjson::internal::IsPointer<T>, rapidjson::internal::IsGenericValue<T> >)>::Type, typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::GenericValue<Encoding, Allocator>&)>::Type>::Type = rapidjson::GenericValue<rapidjson::UTF8<> >&]’:
/root/xmrigCC/src/3rdparty/rapidjson/document.h:1330:25:   required from ‘typename rapidjson::internal::DisableIf<typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::internal::OrExpr<rapidjson::internal::IsPointer<T>, rapidjson::internal::IsGenericValue<T> >)>::Type, typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::GenericValue<Encoding, Allocator>&)>::Type>::Type rapidjson::GenericValue<Encoding, Allocator>::AddMember(rapidjson::GenericValue<Encoding, Allocator>::StringRefType, T, Allocator&) [with T = long int; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; typename rapidjson::internal::DisableIf<typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::internal::OrExpr<rapidjson::internal::IsPointer<T>, rapidjson::internal::IsGenericValue<T> >)>::Type, typename rapidjson::internal::RemoveSfinaeTag<rapidjson::internal::SfinaeTag& (*)(rapidjson::GenericValue<Encoding, Allocator>&)>::Type>::Type = rapidjson::GenericValue<rapidjson::UTF8<> >&; rapidjson::GenericValue<Encoding, Allocator>::StringRefType = rapidjson::GenericStringRef<char>; typename Encoding::Ch = char]’
/root/xmrigCC/src/cc/ClientStatus.cpp:468:79:   required from here
/root/xmrigCC/src/3rdparty/rapidjson/document.h:1259:29: error: call of overloaded ‘GenericValue(long int&)’ is ambiguous
         GenericValue v(value);
                             ^
/root/xmrigCC/src/3rdparty/rapidjson/document.h:673:14: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(double) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]
     explicit GenericValue(double d) RAPIDJSON_NOEXCEPT : data_() { data_.n.d = d; data_.f.flags = kNumberDoubleFlag; }
              ^~~~~~~~~~~~
/root/xmrigCC/src/3rdparty/rapidjson/document.h:661:14: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(uint64_t) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; uint64_t = long long unsigned int]
     explicit GenericValue(uint64_t u64) RAPIDJSON_NOEXCEPT : data_() {
              ^~~~~~~~~~~~
/root/xmrigCC/src/3rdparty/rapidjson/document.h:646:14: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(int64_t) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; int64_t = long long int]
     explicit GenericValue(int64_t i64) RAPIDJSON_NOEXCEPT : data_() {
              ^~~~~~~~~~~~
/root/xmrigCC/src/3rdparty/rapidjson/document.h:640:14: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(unsigned int) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]
     explicit GenericValue(unsigned u) RAPIDJSON_NOEXCEPT : data_() {
              ^~~~~~~~~~~~
/root/xmrigCC/src/3rdparty/rapidjson/document.h:634:14: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(int) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]
     explicit GenericValue(int i) RAPIDJSON_NOEXCEPT : data_() {
              ^~~~~~~~~~~~
/root/xmrigCC/src/3rdparty/rapidjson/document.h:573:5: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(const rapidjson::GenericValue<Encoding, Allocator>&) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]
     GenericValue(const GenericValue& rhs);
     ^~~~~~~~~~~~
/root/xmrigCC/src/3rdparty/rapidjson/document.h:566:5: note: candidate: rapidjson::GenericValue<Encoding, Allocator>::GenericValue(rapidjson::GenericValue<Encoding, Allocator>&&) [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]
     GenericValue(GenericValue&& rhs) RAPIDJSON_NOEXCEPT : data_(rhs.data_) {
     ^~~~~~~~~~~~
CMakeFiles/xmrigMiner.dir/build.make:1022: recipe for target 'CMakeFiles/xmrigMiner.dir/src/cc/ClientStatus.cpp.o' failed
make[2]: *** [CMakeFiles/xmrigMiner.dir/src/cc/ClientStatus.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/xmrigMiner.dir/all' failed
make[1]: *** [CMakeFiles/xmrigMiner.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
[root@buildserver build]#

The part of cmake/flags.cmake I modified:

if (CMAKE_CXX_COMPILER_ID MATCHES GNU)

    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-strict-aliasing -m32")
    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -m32")

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-exceptions -fno-rtti -m32")
    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -s -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -m32")

Allow update of program from CC server

It would be a pain for a lot of miners, since you'd have to manually update each one and restart it. If you can update the config remotely, why not add a config switch that allows the exe to be updated on a restart?

Intel XEON 2680 V2 (25 MB Cache)

Hi,
I saw in your main page that you have achieved a hash rate of 2500 with 2x XEON 2670. I have 2x XEON 2680 with 25MB Cache. I have ESXi running on this box, and I have only one VM on this ESXi that does the mining. I have only been able to get close 990 H/s. I can't all be ESXi eating up the performance? Do you mind sharing what (OS, MEM, HARDWARE) you used to benchmark your tests? If you are right then I am loosing a lot by running a VM, and switching to Bare Metal might triple my hash rate. Thanks

No Auto Creation of config.json by the Client

The client (xmrigDaemon) does not automatically create config.json if running from the command line w/ parameters. This results in not being able to edit the configuration of the client on the server.

Is this the expected behavior?

Client Error:

[2018-02-17 17:48:25] [CC-Client] Command: PUBLISH_CONFIG received -> publish config
[2018-02-17 17:48:25] Not able to load client config /.download/xmrigCC/config.json. Please make sure it exists!

Server Error:

Unable to fetch config.json - Please make sure that you pulled the config before!

Add Guide for tuning XMRigCC to Wiki

I have tried all day to get xmrigCC to out perform xmr-stak but I have not been successful. I have learned how to set the features properly I believe with masks but I can't reach numbers advertised in the benchmarks.

Specifically, the E7-4820 processor is rated at 2200H/s stock. My E7-4870's I can't get above 1400H/s stock, 1500 something tuned. I just tried 3 different E7 processors, all in multiple cpu configs (double or quad) and I simply can't get them to perform as well as xmr-stak.

I sooooooooo want to use all the nifty dandy features for management. It's everything I've been looking for but I'm seeing 10 to 30% performance deltas and instability in hash rates.

Please tell me I'm stupid and show me the way!

Dashboard (Please configure a Dashboard) weirdness

Hi,

working on an alpine docker container for the CC Server and ending up in total weirdness.

Container starts, everything looks good.

12/31/2017 1:27:01 AM * VERSIONS:     XMRigCC/1.3.0 (based on XMRig 2.4.3) libuv/1.11.0 gcc/6.3.0
12/31/2017 1:27:01 AM * COMMANDS:     quit
12/31/2017 1:27:01 AM[2017-12-31 00:27:01] XMRigCC Server started on Port: 4444

When opening in a browser I get a login request, which passes and than I end up on "Please configure a Dashboard". I have seen that index.html needs to be in the same folder as binary. So I took care of this:

~/xmrigccserver # ls -la
total 1356
drwxr-xr-x    2 root     root          4096 Dec 31 00:15 .
drwx------    5 root     root          4096 Dec 31 00:15 ..
-rw-r--r--    1 root     root           311 Dec 31 00:15 config_cc.json
-rw-r--r--    1 root     root         28194 Dec 30 23:57 index.html
-rwxr-xr-x    1 root     root       1341744 Dec 30 23:57 xmrigCCServer

Whatever I tried I can't get it up and running.
Is there maybe a hidden and a bit more outspoken verbose mode, that can be helpful?

Thanks

Ability to delete config files in Dashboard

Can you put a button to delete config file from server?
I don't want to remote desktop every time to delete in case I change the name of a worker.
Now I can see the old miner as offline, I want to delete him from list from the dashboard

Feature request : Request JSON body minify

Average request length about ~600 bytes
But if use short names: for example current_status -> c_s
and round decimals to 2 digits "hashrate_highest":76.9971126082
It can save a lot of traffic.

Thank you,
Volodymyr.

Failed on Windows VS2017 Compiling

It's right through the xmrig/xmrig 's build wiki until VS2017 compiling

It shows that lacking the defination of O_CREAT and other O_XXX, appearing in project xmrigMiner and CCServer in FileLog.cpp and Options.cpp.

Then I added the #include <fcntl.h> into the files and fixed it.

I don't know whether it fixed in new version. My local ver is 1.3.1.

macOS / OS X Support?

Is macOS / OS X Support planned?
I get the errors below when trying to compile on macOS High Sierra 10.13.3:

Scanning dependencies of target xmrig_os_dependencies
[ 22%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/App_unix.cpp.o
[ 23%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/Cpu_mac.cpp.o
./.download/xmrigCC/src/Cpu_mac.cpp:33:6: error: use of undeclared identifier 'CpuImpl'
void CpuImpl::init()
     ^
./.download/xmrigCC/src/Cpu_mac.cpp:43:6: error: use of undeclared identifier 'CpuImpl'
void CpuImpl::setAffinity(int id, uint64_t mask)
     ^
2 errors generated.
make[2]: *** [CMakeFiles/xmrig_os_dependencies.dir/src/Cpu_mac.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmrig_os_dependencies.dir/all] Error 2
make: *** [all] Error 2

CCServer spontaneously freezes and holds CPU 100%

This only happens for me on a 512MB DO VPS running Ubuntu 16.04 with CC version 1.2.2. 1.2.1 does not have this issue, so I reverted to that version, which I had saved. UPDATE: Even after reverting to version 1.2.1, the issue persists for some reason. Included is a 24hr graph of CPU/Memory usage (memory will be flaky, enabled 4GB Swap. CPU is the important one.)
image

The CPU Spike is when the dashboard dies, and the dip is when I manually kill and reload it (Ctrl+C, then ./xmrigCCServer). Memory is all over the place thanks to swap.

not running with DNS

I can not set up DNS in client side for server. i have made a redirect for DNS test.test.com to 1.1.1.1:3344
I have modified config file for miner to: "url": "test.test.com", and there is no status. If I put in config "url": "1.1.1.1:3344", everything is working fine.

1.1.1.1:3344 and test.test.com are for forum purpose I have them pointing right on my setup.

Also I did some port forwarding on my router for so I can access the dashboard and it works if I want to access test.test.com (even without port at the end because my dns redirect is with port already.)

Plan for AMD/NVIDIA GPU support

Would be awesome if this miner could also do GPU mining, their are already some forks of XMRRIG which can do that, maybe it should be possible to reuse some code from that forks.

This would really be awesome

load default json

allow to start daemon with only cc options like this:
xmrigDaemon --cc-url=IP_OF_CC_SERVER:PORT --cc-access-token=SECRET_TOKEN_TO_ACCESS_CC_SERVER
and then download the default_config.json

pc serialno use clientID

Hello there
I guess the computer name is used in clientID.

Is it possible to use motherboard serial number instead of ClientID?
"cmd >>> wmic bios get serialnumber"

build error. FreeBSD + Clang

FreeBSD 10.3
cmake .

-- The C compiler identification is Clang 3.4.1
-- The CXX compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found UV: /usr/local/lib/libuv.so
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Found mhd: /usr/local/include
-- Configuring done
-- Generating done
-- Build files have been written to: /xmrigCC

make

/xmrigCC/src/Mem_unix.cpp:71:46: error: use of undeclared identifier 'size'
    m_memory = static_cast<uint8_t*>(mmap(0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP...

Linux Shared Hosting CC Server

Is there a way to install the ccserver on a linux shared hosting. My provider uses CloudLinux.
Or should I make a request and move to a windows based server?

OSX Hugepages

Thank you for awesome work mate.

OSX compile works (after some minor amendments).

JFYI: Your improvements probably break hugepages on OSX as they are showing as "Available" but "Disabled". Restart, sudo cannot help. Clean XMRig works good here incl. Hugepages... I'm not able to figure out what can be wrong.

error while loading shared libraries: libmicrohttpd.so.12: cannot open shared object file: No such file or directory

Hello,I want use static compile this
cmake . -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DWITH_LIBCPUID=OFF -DWITH_AEON=OFF -DWITH_HTTPD=OFF -DUV_LIBRARY=/usr/lib/x86_64-linux-gnu/libuv.a
But I execuce make:
Scanning dependencies of target xmrigMiner [ 2%] Building CXX object CMakeFiles/xmrigMiner.dir/src/api/Api.cpp.o [ 4%] Building CXX object CMakeFiles/xmrigMiner.dir/src/api/ApiState.cpp.o [ 6%] Building CXX object CMakeFiles/xmrigMiner.dir/src/api/NetworkState.cpp.o [ 8%] Building CXX object CMakeFiles/xmrigMiner.dir/src/App.cpp.o /root/桌面/pool/xmrigCC/src/App.cpp: In static member function ‘static void App::onCommandReceived(uv_async_t*)’: /root/桌面/pool/xmrigCC/src/App.cpp:250:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] auto command = reinterpret_cast<ControlCommand::Command &> (async->data);
Start file:
./xmrigMiner: error while loading shared libraries: libmicrohttpd.so.12: cannot open shared object file: No such file or directory
What should i do now?

Linux debian 8 Error Build

Have latest libuv installed. Already used cmake . and the static cmake but got the same error at 56%

Also have installed gcc g++ gcc-7 g++7

root@miner:~/xmrigCC# make
Scanning dependencies of target xmrigDaemon
[  2%] Building CXX object CMakeFiles/xmrigDaemon.dir/src/cc/XMRigd.cpp.o
Linking CXX executable xmrigDaemon
[  2%] Built target xmrigDaemon
Scanning dependencies of target xmrig_cc_common
[  4%] Building CXX object CMakeFiles/xmrig_cc_common.dir/src/cc/ControlCommand.cpp.o
[  6%] Building CXX object CMakeFiles/xmrig_cc_common.dir/src/cc/ClientStatus.cpp.o
Linking CXX static library libxmrig_cc_common.a
[  6%] Built target xmrig_cc_common
Scanning dependencies of target xmrig_common
[  8%] Building CXX object CMakeFiles/xmrig_common.dir/src/Console.cpp.o
[ 10%] Building CXX object CMakeFiles/xmrig_common.dir/src/Mem.cpp.o
[ 12%] Building CXX object CMakeFiles/xmrig_common.dir/src/net/Url.cpp.o
[ 14%] Building CXX object CMakeFiles/xmrig_common.dir/src/Options.cpp.o
[ 16%] Building CXX object CMakeFiles/xmrig_common.dir/src/log/ConsoleLog.cpp.o
[ 18%] Building CXX object CMakeFiles/xmrig_common.dir/src/log/FileLog.cpp.o
[ 20%] Building CXX object CMakeFiles/xmrig_common.dir/src/log/Log.cpp.o
[ 22%] Building CXX object CMakeFiles/xmrig_common.dir/src/Platform.cpp.o
[ 25%] Building CXX object CMakeFiles/xmrig_common.dir/src/Cpu.cpp.o
Linking CXX static library libxmrig_common.a
[ 25%] Built target xmrig_common
Scanning dependencies of target cpuid
[ 27%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/cpuid_main.c.o
[ 29%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/asm-bits.c.o
[ 31%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/recog_amd.c.o
[ 33%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/recog_intel.c.o
[ 35%] Building C object src/3rdparty/libcpuid/CMakeFiles/cpuid.dir/libcpuid_util.c.o
Linking C static library libcpuid.a
[ 35%] Built target cpuid
Scanning dependencies of target xmrig_os_dependencies
[ 37%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/api/Api.cpp.o
[ 39%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/api/ApiState.cpp.o
[ 41%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/App_unix.cpp.o
[ 43%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/Cpu_unix.cpp.o
[ 45%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/Mem_unix.cpp.o
[ 47%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/Platform_unix.cpp.o
[ 50%] Building CXX object CMakeFiles/xmrig_os_dependencies.dir/src/log/SysLog.cpp.o
Linking CXX static library libxmrig_os_dependencies.a
[ 50%] Built target xmrig_os_dependencies
Scanning dependencies of target xmrig_cpuid
[ 52%] Building CXX object CMakeFiles/xmrig_cpuid.dir/src/Cpu_cpuid.cpp.o
Linking CXX static library libxmrig_cpuid.a
[ 52%] Built target xmrig_cpuid
Scanning dependencies of target xmrigMiner
[ 54%] Building CXX object CMakeFiles/xmrigMiner.dir/src/api/NetworkState.cpp.o
[ 56%] Building CXX object CMakeFiles/xmrigMiner.dir/src/App.cpp.o
In file included from /root/xmrigCC/src/workers/Workers.h:34:0,
                 from /root/xmrigCC/src/App.cpp:42:
/root/xmrigCC/src/net/JobResult.h: In member function 'uint64_t JobResult::actualDiff() const':
/root/xmrigCC/src/net/JobResult.h:69:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         return Job::toDiff(reinterpret_cast<const uint64_t*>(result)[3]);
                                                                       ^
/root/xmrigCC/src/App.cpp: In static member function 'static void App::onCommandReceived(uv_async_t*)':
/root/xmrigCC/src/App.cpp:268:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     auto command = reinterpret_cast<ControlCommand::Command &> (async->data);
                                                                            ^
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
CMakeFiles/xmrigMiner.dir/build.make:77: recipe for target 'CMakeFiles/xmrigMiner.dir/src/App.cpp.o' failed
make[2]: *** [CMakeFiles/xmrigMiner.dir/src/App.cpp.o] Error 4
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/xmrigMiner.dir/all' failed
make[1]: *** [CMakeFiles/xmrigMiner.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

xmrigDaemon improvements

  • The xmrigDaemon spawns the client calling system() thus leaving a lingering shell, I have prefixed the command with exec to drop the shell and doesn't to appear to have any problems so the shell is not really needed i guess
  • the path to the miner is hard coded, it would be useful to provide a custom path, however the daemon doesn't read the config file, so maybe it should be an arg or an env var or another small config file? Again this can kind of worked around currently with a symlink or a scripts that execs into the preferred path
  • the miner happily runs as long as you start it with --daemonized, wouldn't it be better with some sort of IPC? or maybe it is needless complications

Feature Request: Implement SSL support and login/pw

First of... fantastic project, I love it... I just updated all of my CPU based mining rigs!!

One thing I would love to see is the ability to support SSL for when clients are checking in and doing their posts. I'm running my xmrigCCServer behind nginx and haproxy so I can have redundant dashboards and so clients from multiple different locations can log in. I basically enforce SSL for everything and when doing so, the clients can check in anymore. So I found a work around to have clients check in with SSL but use SSL and a login/pw for admin... but out of the box support would be awesome!

prevent server from resuming the client

I think it should be configurable on the server whether to force resume the miner or not, if the miner itself has been paused manually it might not be a desirable behaviour

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.