/primecoin-hp/src# primecoind stop error: incorrect rpcuser or rpcpassword (authorization failed)
Your primecoin daemon was started with a different password in the config file. Just kill it off by typing:
|
|
|
My server processor shows 12 cores running and my desktop shows only 8 cores. but it's still slower than the desktop by almost half. Also my server processor cost 4x more than the the desktop processor...
Well, your server shouldn't be lagging behind by that much. Which operating system is the server running? Which version of the client are you using? Did you compile it yourself?
|
|
|
primecoind: checkqueue.h:167: CCheckQueueControl<T>::CCheckQueueControl(CCheckQueue<T>*) [with T = CScriptCheck]: Assertion `pqueue->nTotal == pqueue->nIdle' failed. I pushed a fix for this crash to bitbucket. If someone wants to try it, it would be appreciated. The crash is quite random.
|
|
|
How do you "install" the binaries in ubuntu server then?
Well, if you really want to "install" it you can copy the binary to /usr/local/bin: sudo cp -f primecoind /usr/local/bin/ That only makes a bit easier to use (you can type "primecoind" anywhere instead of "./primecoind" in some specific directory). Then just create a config file and maybe a script for starting it up.
|
|
|
Question:
I set up the seive size via a config file and I have noticed that it starts mining automatically, so do I still need to put the setgenerate command in via the wallet? I mean how does it know how many cores I want to run? There doesn't seem to be any such command in the config file that I created.
There is currently no option to set the number of mining threads in the config file. I might add an option for that in the future. Right now your only option is to use the "setgenerate" RPC/debug console command. Thanks, but it does cause the wallet to mine correct? Because I see it pulling the pps automatically on startup. Does it default to automatically use all cores? Yes, it should automatically detect how many cores you have.
|
|
|
I have access to big clusters of virtual servers running on KVM. Clearly the more cores the better, but what about memory, disk, swap and so on?
Thank you very much, the information in this thread is awesome!
Memory requirements: 0.5 GB is enough to run the client currently Each mining thread probably needs a few megabytes Memory requirements will increase a bit once the blockchain gets longer Disk: Few hundred megabytes for Linux base system and libraries Few megabytes for the binary 63 MB for the blockchain currently
|
|
|
Question:
I set up the seive size via a config file and I have noticed that it starts mining automatically, so do I still need to put the setgenerate command in via the wallet? I mean how does it know how many cores I want to run? There doesn't seem to be any such command in the config file that I created.
There is currently no option to set the number of mining threads in the config file. I might add an option for that in the future. Right now your only option is to use the "setgenerate" RPC/debug console command.
|
|
|
what is the compile for libgmp?
My Linux binaries are compiled against the latest GMP version 5.1.2. I configured GMP with --enable-fat to enable optimization support for multiple CPUs.
|
|
|
I have released Linux binaries for -hp5.
Please note that my binaries were linked against Berkeley DB 4.8.30. Sunny King's original binaries are linked against version 4.8.24 which should be compatible. If you have compiled from source before, your database format may be incompatible with my binaries. Always make sure to backup your database files and your wallet first.
Thanks Mikael! I've only compiled from source, so if I continue to do so then I don't have to worry about the Berkeley DB version? Correct as long as you don't change the Berkeley DB version you have.
|
|
|
I have released Linux binaries for -hp5.
Please note that my binaries were linked against Berkeley DB 4.8.30. Sunny King's original binaries are linked against version 4.8.24 which should be compatible. If you have compiled from source before, your database format may be incompatible with my binaries. Always make sure to backup your database files and your wallet first.
|
|
|
Can I use a headless 13.04 ubuntu server version? I'm considering running it in an idle platform that uses Ubuntu cloud images
Headless should be fine.
|
|
|
sudo apt-get remove libdb5.1 libdb5.1++ libdb5.1++-dev libdb5.1-dev Reading package lists... Done Building dependency tree Reading state information... Done Package 'libdb5.1++' is not installed, so not removed Package 'libdb5.1++-dev' is not installed, so not removed Package 'libdb5.1-dev' is not installed, so not removed
Seems like that's not the case...512mb ram, 1.1gb swap. Does hdd encryption mess with this?
No, HDD encryption should not mess with this (even if you have it enabled). In general there are two common cases for block database errors: 1) Incompatible database format 2) Corrupted database In the second case you can try removing database files from the .primecoin folder. Remove all files except primecoin.conf, wallet.dat and maybe peers.dat.
|
|
|
I'm getting this immediately on startup ************************ EXCEPTION: N5boost21thread_resource_errorE boost::thread_resource_error primecoin in AppInit( Any ideas? Running CentOS here. Bitcoin and Litecoin run fine on the same machine. RAM shouldn't be an issue - have 64GB. The weird thing is it ran fine once - had it going for 3 days straight. I restarted the process today and now getting that error. I tried clearing the ~/.primecoin folder as well. Never seen that one before. Is that the only error you're getting?
|
|
|
# apt-get install build-essential libssl-dev libboost-all-dev libdb5.3++-dev -y Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libdb5.3++-dev E: Couldn't find any package by regex 'libdb5.3++-dev
Any fixes for this?
Older versions of Ubuntu may not provide libdb5.3++-dev.
|
|
|
@eCoinomist
g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions. make: *** [obj/alert.o] Error 4
This happens during the make file .unix any thoughts?
Lacking ram, try a swap file... I'm getting this after running the daemon: ivanlabrie@ivanlabrie2:~$ primecoind --daemon ivanlabrie@ivanlabrie2:~$ Primecoin server starting : Error opening block database. Do you want to rebuild the block database now? What's wrong? Used ecoinomist's guide, and the auto restart script as well...I think I should reinstall ubuntu and start from scratch. I think you somehow managed to link against a different version of Berkeley DB. It's probably an older library not understanding a newer database format. You can try removing a specific version of libdb: apt-get remove libdb5.1 libdb5.1++ libdb5.1++-dev libdb5.1-dev And then recompile.
|
|
|
When I type: ./configure --enable-cxx
I get this error:
checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).
Am I missing something?
Install the 'm4' package that's required to compile libgmp.
|
|
|
@mikaelh How do I know the custom gmp for my CPU is working as it should be if I've already installed primecoind? Thanks. Assuming that you have 'lsof' installed and that primecoind is running, you can type: And then check that the library path says /usr/ local/lib/libgmp.so.10. Another alternative that doesn't require running primecoind: ldd /usr/local/bin/primecoind |grep libgmp.so
|
|
|
Well, it certainly looks like an out of memory issue. Not sure how that's possible with a swap file. And yes, there are still bugs causing random crashes. They were present in Sunny King's original release and I haven't had the time to iron them out.
|
|
|
Having trouble compiling primecoind...I get the following:
make: *** [bitcoinrpc.o] Error 4
It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10 I could compile it with ecoinomist's guide previously, but this one won't budge.
What's the full error message before that?
|
|
|
I've installed all the needed extras to run primecoind via apt-get install, then I just uploaded the primecoind program to /usr/local/bin and it worked like a charm. Is there any harm to this? It cuts the time of having to compile it each and every time.
The libgmp installed by apt-get may be sup-optimal for your CPU. That's the biggest concern. But it's also easily solved by grabbing libgmp.so.10 from /usr/local/bin and placing it there on every instance you have. Thanks for your help mikaelh. I did the apt-get install libgmp.How do you grab the libgmp.so.10 from /usr/local/bin? Side note: how do you send all your coins to one address? Is it the sendmany command? Thanks! I meant from /usr/local/lib. Assuming that you have followed my guide on how to compile your own libgmp. Note that you also need to use my instructions for compiling primecoind after that to make sure that the binary is using libraries from /usr/local/lib.
|
|
|
|