Bitcoin Forum
April 25, 2024, 04:08:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MegaCoin - Stratum-miner error - results in no blocks solved? Setup explained  (Read 1384 times)
gr33k (OP)
Full Member
***
Offline Offline

Activity: 181
Merit: 101



View Profile
August 07, 2013, 05:12:27 AM
Last edit: August 07, 2013, 06:45:29 AM by gr33k
 #1

EDIT: As I submitted this - we DID find 3 blocks so I guess it's all working. However - anyone know what that error is? Hopefully the info below from my notes helps someone else setting up a pool on Ubuntu 12 Smiley  Grin

EDIT2: I still wonder if all blocks are being cashed in and not being missed. It seems to be working but want to make 100% sure.Will wait for any replies Wink

Hi guys.

i either have bad luck finding blocks...which I don't think is the case at this point - or there is a problem.

I see this in the stratum.log:

Code:
2013-08-06 21:20:09,158 INFO block_updater block_updater.run # Checking for new block.
2013-08-06 21:20:09,162 INFO block_updater block_updater.run # New block! Prevhash: 35d7abe6f2a4ee1b5089a7e091d5f65f1177dfcc827b7edb6338b0c50744fa5e
2013-08-06 21:20:09,166 INFO template_registry template_registry.add_template # New template for 35d7abe6f2a4ee1b5089a7e091d5f65f1177dfcc827b7edb6338b0c50744fa5e
2013-08-06 21:20:09,166 INFO subscription subscription.on_template # BROADCASTED to 7 connections in 0.000 sec
2013-08-06 21:20:09,167 INFO template_registry template_registry._update_block # Update finished, 0.001 sec, 2 txes
2013-08-06 21:20:09,355 INFO template_registry template_registry.get_job # Job id '166' not found
2013-08-06 21:20:09,356 INFO interfaces interfaces.on_submit_share # False (0) INVALID karnov.1
2013-08-06 21:20:09,533 INFO template_registry template_registry.get_job # Job id '166' not found
2013-08-06 21:20:09,534 INFO interfaces interfaces.on_submit_share # False (0) INVALID karnov.1
2013-08-06 21:20:09,668 INFO template_registry template_registry.get_job # Job id '166' not found
2013-08-06 21:20:09,669 INFO interfaces interfaces.on_submit_share # False (0) INVALID karnov.1
2013-08-06 21:20:10,249 INFO interfaces interfaces.on_submit_share # 000008a0af9ca7cdeca75d138ece76d00f255f131ab88179e1db16f466af9b9e (29) valid karnov.1
2013-08-06 21:20:10,516 INFO interfaces interfaces.on_submit_share # 000006bb97ccedc51a7c544c39c242214bf5f81d01b451721ef5dcf0c9812863 (38) valid karnov.1
2013-08-06 21:20:10,712 INFO interfaces interfaces.on_submit_share # 0000002e6a1c2fe198b0fd6472155d89539411ed202659f9a2c23a69401a9bfd (1411) valid gr33k.lefta007
2013-08-06 21:20:11,021 INFO template_registry template_registry.get_job # Job id '166' not found
2013-08-06 21:20:11,021 INFO interfaces interfaces.on_submit_share # False (0) INVALID gr33k.lefta007
2013-08-06 21:20:11,521 INFO interfaces interfaces.on_submit_share # 00000f500cb218e9fa4795fd63f649f1129d394ee1577f71babf15c513bca461 (16) valid karnov.1
2013-08-06 21:20:11,583 INFO interfaces interfaces.on_submit_share # 00000dad8a2963ec0e10d046701f5c81a204dbea6976169f8c4f59a01210647c (18) valid karnov.1
2013-08-06 21:20:11,703 INFO interfaces interfaces.on_submit_share # 00000c774d01ab24655102a99fa076ea8bd05beeca908129b46686c1eaa8ff64 (20) valid karnov.1
2013-08-06 21:20:11,852 INFO interfaces interfaces.on_submit_share # 00000f91518a48b75de0a85db221a5fbc591d038b23270d7156de94dad28634a (16) valid karnov.1
2013-08-06 21:20:12,009 INFO interfaces interfaces.on_submit_share # 00000d799f32ae39e371d8ce153df88209433395bb85154ef4fd04297b1c2ad3 (18) valid karnov.1
2013-08-06 21:20:12,296 INFO interfaces interfaces.on_submit_share # 00000214996277523ce77ef9311e49d02275372038b2b75538221379c22f7016 (123) valid karnov.1
2013-08-06 21:20:12,578 INFO interfaces interfaces.on_submit_share # 000008ee4d08b199411e10e39341e999ee0e03dcadace44d0683ab4eb6d673b3 (28) valid gr33k.lefta007
2013-08-06 21:20:12,595 INFO interfaces interfaces.on_submit_share # 00000e07d327d737a6480bea4654d7010934957c67d2204b4b80c511def0ec41 (18) valid karnov.1
2013-08-06 21:20:12,655 INFO DBInterface DBInterface.do_import # Inserting 50 Share Records
2013-08-06 21:20:12,717 INFO DBInterface DBInterface.do_import # Inserting 20 Share Records

What is this:

2013-08-06 21:20:09,668 INFO template_registry template_registry.get_job # Job id '166' not found

Would this result in not solving/lost blocks? Or is it normal?

I use stratum-mining fork from moopless - and php-mmcfe-ng frontend by TheSerapher. I have pushpoold installed but not using it - just stratum.

It's my understanding that stratum and mmcfe-ng (and megacoind) are all that's needed to get this setup going (aside to obvious dependencies like mysql and libs,etc ..).

I've have solved blocks before but have had to rebuild the whole pool and db due to problems experienced through tweaks trying to improve the pool, and me being a n00b basically.

So....Anyone have any info on this - or advice on how to setup the pool for MegaCoind?

Those jobs btw seem to NOT happen in the beginning when strating twistd -y launcher.tac (stratum). They happen to start when someone with lots of hash power is in the pool. Is that normal?

Thank you for any help you can provide. I have done a lot of research on this, and have ran in to this uncertainty...for all I know this all may be working ok and we haven't found a block...but so many changes to perfect this - I'm not sure. I feel we should have solved at least ONE block by now at this low difficulty.

For anyone having issues with this setup - here are a basic layout of the notes I followed to set this up:

Code:
	I installed Apache2 as well for HTTP, so apt-get install apache2 and libapache2-mod-php5 if you don't have something else in mind.

Installed All Dependencies
mkdir ~/MiningPool
cd ~/MiningPool
git clone git://github.com/litecoin-project/litecoin.git
cd litecoin/src
# Compile litecoind
make -f makefile.unix USE_UPNP=-
# Copy to system path
sudo cp litecoind /usr/bin
nano ~/.litecoin/litecoin.conf
put in and save:
rpcuser=user
rpcpassword=password
rpcport=9332
rpcallowip=127.0.0.1
server=1
daemon=1
gen=0
litecoind
(should run in background just fine now hopefully!)
cd ~/MiningPool
git clone https://github.com/Tydus/litecoin_scrypt.git
cd litecoin_scrypt
sudo python setup.py install
sudo easy_install -U distribute
(this breaks it for some reason - do this fix:)
wget http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py
sudo easy_install stratum
cd ~/MiningPool
git clone https://github.com/moopless/stratum-mining-litecoin.git
cd stratum-mining-litecoin
CENTRAL_WALLET = 'Your_Valid_Bitcoin_or_Litecoin_Address'
[...]
LITECOIN_TRUSTED_HOST = 'localhost'
LITECOIN_TRUSTED_PORT = 9332
LITECOIN_TRUSTED_USER = 'user'
LITECOIN_TRUSTED_PASSWORD = 'password'
[...]
DB_MYSQL_HOST = 'localhost'
DB_MYSQL_DBNAME = 'mmcfe_ng'
DB_MYSQL_USER = 'user'
DB_MYSQL_PASS = 'password'
[...]
POOL_TARGET = 16
litecoind getaccountaddress "" (to get your wallet for the above config)
Leave POOL_TARGET = 16 as default setting unless you have preferred alternative setting ;)
Can't start it yet cuz we haven't made the database - we'll do this with mmcfe-ng next!
cd /var/www
sudo git clone git://github.com/TheSerapher/php-mmcfe-ng.git mmcfe-ng
cd mmcfe-ng
sudo git checkout next
cd sql
mysql -u root -p -e "create database mmcfe_ng"
mysql -u root -p mmcfe_ng < 000_base_structure.sql
mysql -u root -p mmcfe_ng < 001_unique_email.sql
mysql -u root -p mmcfe_ng < 002_monitoring.sql
mysql -u root -p mmcfe_ng < 003_accounts_anonymous.sql
mysql -u root -p mmcfe_ng < 004_tokens_invitations.sql
mysql -u root -p mmcfe_ng < 005_accounts_nofees.sql
mysql -u root -p mmcfe_ng < 006_payouts.sql
cd /var/www/mmcfe-ng
sudo chown www-data public/templates/compile public/templates/cache

sudo cp public/include/config/global.inc.dist.php public/include/config/global.inc.php

sudo nano public/include/config/global.inc.php

edit this file to match your settings

Run launcher.tac

cd ~/MiningPool/stratium-mining-litecoin/

sudo twistd -y launcher.tac

Open your web-browser and go to your server's IP. If it fails to load - you need to configure apache to point to /var/www/mmcfe-ng/public/ and ensure php loads :) (Google it if you must)

Bam should be working - If not make sure litecoind, and twistd -y launched :)

chmod 755 src/leveldb/build_detect_platform
Compiling in linux:
If you have the following error, use this command: mkdir src/obj ; sh share/genbuild.sh src/obj/build.h ; cd src ; make -f makefile.unix

make -f makefile.unix digitalcoind
/bin/sh ../share/genbuild.sh obj/build.h
../share/genbuild.sh: 33: ../share/genbuild.sh: cannot create obj/build.h: Directory nonexistent
../share/genbuild.sh: 34: ../share/genbuild.sh: cannot create obj/build.h: Directory nonexistent
make: *** [obj/build.h] Error 2

if compiling you get error at sendalert.cpp and sendnews.cpp - you have to edit those files and change the case on:

Sleep(500);
^ Change to small s
sleep(500);

Silly but fixes it for me :)

█≣≣≣MULTIVERSUM≣≣≣█▐4th GenerationRelational BlockchainPre-ICO-Starts on 01 March,2018 until 31 March 2018
        WHITE PAPER                  ANN THREAD                                        3rd part blockchain applications infrastructure
✔     Reddit     ✔     Medium     ✔     Facebook          Telegram     ✔     Twitter     ✔
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!