Bitcoin Forum

Bitcoin => Mining => Topic started by: p2k on December 30, 2011, 12:31:49 PM



Title: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on December 30, 2011, 12:31:49 PM
About two months ago, I started writing my own pool mining software from scratch using Erlang (http://www.erlang.org/) and CouchDB (http://couchdb.apache.org/). After hundreds of hours of development, it has finally reached beta-quality and is hereby released open source to the public. ecoinpool moves ahead in a new direction, so I'd like to call it the next generation pool mining software.

Feature headlines

  • Configuration completely through the database
  • No delays, no restarts, no polling, no SQL, no Java
  • Host multiple chains at once (Bitcoin, Namecoin, Litecoin and Fairbrix)
  • Merged mining supported for Bitcoin+Namecoin
  • Fast internal work creation with getmemorypool
  • Fault tolerant, self-restarting on crashes
  • Live shares monitoring through the browser
  • Prepares data for displaying statistics on the fly
  • Integrated web frontend, yet usable in existing websites
  • Built-in Block Monitor and Mini-Blockexplorer
  • Scales across multiple servers
  • Backwards compatibility layer to MySQL

Target audience

ecoinpool tries both to be easy enough for solo-mining setups and scalable and fast enough for large pools with multiple servers around the world.

Main links

  • Project Homepage (https://ecoinpool.p2k-network.org/projects/ecoinpool)
  • Project Wiki (https://ecoinpool.p2k-network.org/projects/ecoinpool/wiki)
  • GitHub Repository (https://github.com/p2k/ecoinpool)

About this project and Erlang

I always wanted to implement a large server project with the right tools. Erlang/OTP, a functional programming language and platform developed by Ericsson (nowadays open-source and community-driven), is the ultimate tool for this task. Some things that other languages or platforms can achieve only with tons of libraries are integrated right into the core language. Concurrency and inter-process communication are the pillars of Erlang, combined with a powerful pattern matching implementation which is typical for functional languages. Erlang is dynamically typed and allows reloading modules while the application is still running, allowing rapid development while reducing downtime to zero (if done correctly). A sophisticated error handling mechanism concludes this little features list.

Erlang has two things in common with Java: It is compiled to byte code and runs on a virtual machine. At this point the similarities end. Erlang requires only a fraction of Java's memory and CPU requirements and can scale from a single core desktop up to large clusters of multi-core servers. It has literally been built for that very reason. So, another part why I started this project is that a Java solution already exists and set the standard somewhat high. So I was wondering if I could write a software that can surpass it by using all of Erlang's powers against Java's weaknesses.

Other links

  • README (https://github.com/p2k/ecoinpool/blob/master/README.md)
  • Setup on Ubuntu Linux (http://pastebin.com/vjHVuJxq)
  • Test Server (http://ecoinpool.p2k-network.org:5984/ecoinpool/_design/site/_show/home)
  • Why CouchDB? (https://ecoinpool.p2k-network.org/projects/ecoinpool/wiki/Why_CouchDB)

Coming soon

Actually it is "sooner or later", because ecoinpool has already consumed lots of my free time and I got other things to do now.

  • Remove requirement for CouchDB and integrate it's notification and replication features directly into ecoinpool
  • Configurable shares logging, support for other data sources for configuration and workers
  • More documentation
  • Better web frontend for the Mini-Blockexplorer
  • Include payout mechanisms in the software
  • Support for an external Coinbaser (https://en.bitcoin.it/wiki/Coinbaser)
  • Extend Block Monitor to a full Bitcoin client

Changelog

v0.3.10 - Jan 3, 2012
  • Implemented the ebitcoin configuration frontend

v0.3.9 - Jan 1, 2012
  • Added support for Fairbrix (getmemorypool patch required)
  • More dynamic block monitor/explorer to add new chains faster

v0.3.8 - Dec 31, 2011
  • Added support for Litecoin
  • Slightly improved web interface

v0.3.7 - Dec 30, 2011
  • First public release

Closing words

So far I have talked to wtfman/cuqa of btcserv.net (Germany) and Graet of ozco.in (Australia) and they said that they will give it a try within the next weeks. If you are a Bitcoin miner, better keep an eye on those pools.

ecoinpool is successfully running on Elitist Jerks (https://bitcointalk.org/index.php?topic=50274.0) (LiteCoin), set up in cooperation with WKNiGHT (USA).

I'm looking forward to your feedback. If you have questions about some aspects of ecoinpool or need help with installing and setting up, feel free to contact me in #ecoinpool on Freenode.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: shads on January 03, 2012, 04:54:47 PM
Congrats on the release.  I've been out of action for a couple of months due to personal commitments and poolserverj support has suffered quite a bit as a result  and pushpool doesn't seem to be getting a lot of developer love lately either so I'm glad to see the pool engine scene get a bit of new life injected into it. 

Look forward to spending some time running up a test instance and checking it out.  I don't know the first thing about Erlang or CouchDb (actually the first time someone mentioned Erlang to me I thought they were yanking my chain).  Though I've been ass deep in Scala tutorials lately and had a vague idea to rewrite psj v0.5 in Scala to see how I could apply the functional paradigm.  Very interested to get to know the code a bit and investigate how it manages to be so lean on resources without sacrificing performance. 


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on January 03, 2012, 08:21:37 PM
Thank you very much. I really like the idea of bringing some life into the scene. It's the competition that takes us to our limits and improves the overall quality of software to the benefit of everyone. You always need a little challenge to advance in your life.

Now, the reason why it's so lean on resources is, well, because it's not Java. And the reason why it performs so nice is because of Erlang's way of handling concurrency. Erlang comes with its own process scheduler; an Erlang process can be seen as a thread but is actually more lightweight than a regular operating system thread. There can be tens of thousands of Erlang processes at the same time without any significant performance loss, whereas on Java, every Thread is a little pain and a few hundred Java Threads can bring a system down to its knees.

Taken all the features of Erlang, the functional programming paradigm is imho more than ideal for developing realtime server applications. Plus, implementing a parser with any functional language is a piece of cake thanks to pattern matching. Erlang finally extends pattern matching to binaries, making it easy to use for any kind of binary network protocol like Bitcoin's. And if you do it right, your code will stay short and crisp and thus easy to maintain. Functional languages can be very powerful and expressive. Every line of code can be worth ten lines in other programming languages. On the other hand, every line will take you ten times as much to think about (well, if you're a perfectionist like me).

It's also worth to say that obeying to some basic programming principles can significantly improve the quality of your software: DRY - Do not Repeat Yourself. Work with encapsulation. Readability counts. Explicit is better than implicit. Flat is better than nested. Modularize where possible. Try unit tests and source code analyzers.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: eleuthria on January 18, 2012, 03:59:59 PM
I'm going to keep an eye on this, maybe even offer some of BTC Guild's large-scale miners an option to help test it out.  PoolServerJ has worked great for me, but that memory footprint is huge.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on January 18, 2012, 04:14:41 PM
If it is truly that scalable, then you could have tiny VPSes all over the world and one big DB server somewhere - thus making DDOS just that little bit harder for the idiot troublemakers that try to pull them off.

20 VPSes each with a gigbit connection somewhere in the world, all on a custom DNS rotation. That sounds like it could be a little fun to manage ;D


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: eleuthria on January 18, 2012, 04:52:23 PM
If it is truly that scalable, then you could have tiny VPSes all over the world and one big DB server somewhere - thus making DDOS just that little bit harder for the idiot troublemakers that try to pull them off.

20 VPSes each with a gigbit connection somewhere in the world, all on a custom DNS rotation. That sounds like it could be a little fun to manage ;D

Sadly that wouldn't stop it :(.  I tried that in the past.  The problem with it is a VPS is much more likely to get blacklisted and suspended if targetted by an attack.  So the result of the DDoS would be a suspension of your services very quickly.  They wouldn't have to hold all your servers down at once, they'd just have to hold them down long enough for the VPS provider to turn it off, then move to the next one.

Not to mention a gigabit VPS where you're allowed to use the whole gigabit without overage charges is not that cheap ;p

However, that isn't saying that VPSes are bad.  They're quite useful in quickly scaling up/down for legit users.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on January 18, 2012, 08:26:40 PM
Hi eleuthria, hi rjk,

it's nice to have some discussion going on here. I've been thinking about this "federated" or "distributed" pools idea a lot, also got some input from various chats and other sources. Here are some problems and tentative solutions or thoughts that came up, feel free to add comments:

Workers

  • Sharing workers between servers is no problem if you have a database which offers replication
  • CouchDB is very good at this, syncing up changes in nearly realtime; after a server crashes and recovers, all changes which have been made are grabbed from peer servers; also it offers streaming changes to applications (like ecoinpool)
  • MySQL also has replication features, though I've never tried that out; polling for changes from the application would be required though
  • A custom database and replication engine for ecoinpool could also solve the task of worker sharing and would be even faster

Shares and Statistics

  • Besides worker configuration, all other pool services revolve around shares
  • Large pools have to handle shares in masses
  • CouchDB can easily get to its limit there and I wouldn't recommend it for shares storage anymore
  • Having a central database would produce a bottleneck or single point of failure; only a hidden dedicated server where only the shares database is running would be ok
  • The other option is to store & process shares on each server separately; however, this requires a mechanism to sum up the number of shares from each server and present them correctly to the user
  • Creating long-term statistics out of short-term shares is also not an easy task; yet this could again be achieved with replication-enabled databases like CouchDB as the amount of data is reduced greatly and record sets drop in comparatively slowly
  • Live monitoring is something really cool, everyone who experienced that in ecoinpool's testing phases instantly fell in love with it and wanted to keep it - but it relied on CouchDB which isn't built for monster rigs...
  • Work has started on an alternative way to provide live monitoring without CouchDB, but this gets complicated if multiple servers are involved
  • The current idea is to have a server-to-server protocol for shares announcement; like this, shares could be pushed via HTTP longpolling from any server to the user's browser

Daemons and Block Solves

  • Current pool website software (i.e. cron jobs) detect block solves by querying a coin daemon (bitcoind, namecoind, litecoind...)
  • This requires either to connect to all servers in order or having a central instance of the coin daemon or setting all daemons to the same payout address of the central server (currently not supported for namecoin)
  • ecoinpool, having a built-in block monitor, could do block solve detection by itself and publish the information somewhere (block hash, Tx ID, number of confirmations, etc.) leveraging the requirement of those cron jobs

Payout

  • Payout usually involve processing shares
  • If not done correctly, shares could be paid out more than once
  • First solution is again having a central shares database and payout
  • The alternative is to let each server manage their own presumably partial payout; this is a good decentralized solution but requires some server-to-server communication to make it convenient for the user
  • Different payout mechanisms put different demands on the shares database; not all payout mechanisms can be used in a decentralized way
  • Legacy systems rely on existing structures (e.g. cron jobs working on SQL databases)


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on January 19, 2012, 12:49:17 AM
Hmmmmm. I wonder how well this might be suited to creating p2pool "supernodes" or "minipools" that link in with p2pool, but provide normal (I.E., diff 1) work.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Graet on January 22, 2012, 05:06:23 PM
Just started a live test of ecoinpool :D
Huge thanks to p2k - he is a coding machine (and I mean that in the nicest possible way)

Please point some hashes there if you are able
http://test.ozco.in:8332 and http://test.ozco.in:80
shares are being counted in the main db and will be paid out as usual :D

If you are not yet a member of Ozcoin go to https://ozco.in register and create a worker

**Important note** ecoinpool does not yet support merged mining so no NMC will be generated by miners here.

thanks,
Graeme


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on January 22, 2012, 05:23:52 PM
Well, technically it does support merged mining but you cannot set a custom payout address for Namecoin yet (the getmemorypool coinbasing has to be implemented for that). Like this, the share processing scripts on ozcoin's main server would not be able to detect Namecoin blocks, because they depend on polling the local namecoind for generate transactions.

It all has to do with the multi-server setup of ozcoin, something that other pools usually don't have. If you run ecoinpool on a single site, merged mining is working fine.

PS: Thanks to all the ozcoin staff for supporting me and helping to set this up. This is the first real test in the Bitcoin world for ecoinpool.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Graet on January 22, 2012, 05:30:21 PM
Well, technically it does support merged mining but you cannot set a custom payout address for Namecoin yet (the getmemorypool coinbasing has to be implemented for that). Like this, the share processing scripts on ozcoin's main server would not be able to detect Namecoin blocks, because they depend on polling the local namecoind for generate transactions.

It all has to do with the multi-server setup of ozcoin, something that other pools usually don't have. If you run ecoinpool on a single site, merged mining is working fine.

PS: Thanks to all the ozcoin staff for supporting me and helping to set this up. This is the first real test in the Bitcoin world for ecoinpool.
oops my bad, in the excitement of spreading the word :)

**Important note** Ozcoin using ecoinpool does not yet support merged mining so no NMC will be generated by miners here.

:D


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: DBordello on January 24, 2012, 06:41:58 PM
This looks very promising.  I intend to give it a shot for a small private pool I am setting up.  I will let you know what my experience is. 


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Graet on January 25, 2012, 09:52:35 AM
ecoinpool running on the 2 remote servers - very impressed

Cant wait to get setup on main server

Awesome work p2k - Thank you :D


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: DBordello on January 26, 2012, 05:37:57 AM
I set this up today.  Very easy to install and configure.  The whole package is very polished.  I did find one bug, however p2k had it fixed within 5 minutes. 


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 09, 2012, 04:10:41 PM
Oh yeah, sorry that I didn't mention it here. Namecoin coinbasing is implemented since two weeks. But I need some more time to fix up the buit-in frontend and update documentation.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: EnergyVampire on February 11, 2012, 07:17:00 AM
Hello,

I've been trying to play with this for solo mining.

I get the error "User ID Request Failed: While requesting a new user ID, the pool server did not respond in time. This usually means that the pool server is down or currently unreachable."

The terminel says:
Code:
[default/error] Could not start share logger default_couchdb_share logger, reason: {already_started, <0.157.0>}
[default/error] Could not start share logger default_logfile_share logger, reason: {already_started, <0.161.0}
This is followed by a Crash Report in the terminal.

Also on the ebitcoin page the Last Block is "(not implemented yet)".

Note: bitcoind is up-to-date with the latest block #166291.

Thanks in advance for your reply, Cheers!



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 11, 2012, 01:59:25 PM
Hello EnergyVampire,

you need to be able to access the ecoinpool mining port you specified from your browser. The link in that error message should directly take you there (click it!), presenting you a greeting message. If your browser cannot connect to ecoinpool in this way, you either have too restrictive firewall settings (if not running on localhost only) or ecoinpool crashed because of bad configuration or it's unable to connect to bitcoind or bitcoind is still loading the blockchain or ecoinpool is unable to connect to CouchDB and other reasons which are fatal for ecoinpool.

If you get an error message, try to paste it on pastebin.com after you read this guide (https://ecoinpool.p2k-network.org/projects/ecoinpool/wiki/Erlang_Error_Messages) and send the link as a pm here or contact me on IRC. Maybe I can help you then.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 11, 2012, 03:16:01 PM
On ubuntu server 11.10:

Code:
root@garrysmod:~/bit/ecoin# ./rebar get-deps
==> ecoinpool (get-deps)
==> ebitcoin (get-deps)
==> rel (get-deps)
==> ecoin (get-deps)
Pulling protobuffs from {git,"git://github.com/basho/erlang_protobuffs.git",
                             "master"}
fatal: read error: Connection reset by peer
Cloning into protobuffs...
ERROR: git clone -n git://github.com/basho/erlang_protobuffs.git protobuffs failed with error: 128 and output:
fatal: read error: Connection reset by peer
Cloning into protobuffs...

Edit:

Nevermind, worked fine the 2nd time!


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: EnergyVampire on February 11, 2012, 03:40:53 PM
Hello EnergyVampire,

you need to be able to access the ecoinpool mining port you specified from your browser. The link in that error message should directly take you there (click it!), presenting you a greeting message. If your browser cannot connect to ecoinpool in this way, you either have too restrictive firewall settings (if not running on localhost only) or ecoinpool crashed because of bad configuration or it's unable to connect to bitcoind or bitcoind is still loading the blockchain or ecoinpool is unable to connect to CouchDB and other reasons which are fatal for ecoinpool.

If you get an error message, try to paste it on pastebin.com after you read this guide (https://ecoinpool.p2k-network.org/projects/ecoinpool/wiki/Erlang_Error_Messages and send the link) and send the link as a pm here or contact me on IRC. Maybe I can help you then.

p2k


Thanks for the reply p2k,

The link to your guide didn't work for me but I believe I found the guide elsewhere on your site.

When I followed my linked port, I get:
Code:
{"result":"Welcome! This server is running ecoinpool v0.3.17 by p2k. You have reached one of the coin mining ports meant to be used with coin mining software; consult the mining pool's homepage on how to setup a miner.","error":null,"id":1}

at the terminal, I get:
Code:
** Reason for termination == 
** {{case_clause,{error,[],function_clause}},
    [{ecoinpool_db,handle_cast,2,[{file,"src/ecoinpool_db.erl"},{line,213}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

I hope I followed your instructions correctly. Does my browser make a difference? I use the Gnome webbrowser and Iceweasel.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 11, 2012, 03:55:00 PM
Went to create a worker, but I got this:
Code:
While requesting a new user ID, the pool server did not
respond in time. This usually means that the pool server
is down or currently unreachable.

When I start the pool in general, the console gets this error:
Code:
=SUPERVISOR REPORT==== 11-Feb-2012::19:56:19 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_1360b02e19d98482148d4c6dea0127eb}
     Context:    shutdown
     Reason:     reached_max_restart_intensity
     Offender:   [{pid,<0.753.0>},
                  {name,subpool},
                  {mfargs,
                      {ecoinpool_server,start_link,
                          [<<"1360b02e19d98482148d4c6dea0127eb">>]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 11, 2012, 04:22:14 PM
Hi,

I've fixed the link in the original post (copy&paste fail). Here is it again (https://ecoinpool.p2k-network.org/projects/ecoinpool/wiki/Erlang_Error_Messages), so you don't have to go back.

@Tittiez: You sent the supervisor report telling us that the restart logic has given up. Unfortunately this message doesn't provide anything about the actual error; try to scroll up and post the first error report you see instead (only the part about "** Reason for termination") - if it gets too long, consider using pastebin.com (http://pastebin.com).

@EnergyVampire: Ok, thanks, I'm investigating. It has nothing to do with your browser.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 11, 2012, 04:31:03 PM
Sorry, Here:

http://pastebin.com/ahb4uWXD


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 11, 2012, 04:46:17 PM
Sorry, Here:

http://pastebin.com/ahb4uWXD

Ok, there was a slight design error on my part if the subpool crashes while starting. The real error message (the first error after starting) is pushed away in your console history. I've just committed a fix for that, please pull and try again, then send me the real error message.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 11, 2012, 05:25:09 PM
I realized that I wasn't turning on bitcoind, so I ran it then went to run ecoinpool but I get this at startup:
Code:
 config_db - couchbeam:open_or_create_db/3 returned
an error:
{conn_failed,{error,econnrefused}}
{"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test
_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}
}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
Crash Dump File:
http://lazycrazygaming.net/downloads/erl_crash.dump


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 11, 2012, 05:42:40 PM
This is a simple error: CouchDB is not running or ecoinpool is unable to connect.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 11, 2012, 06:29:28 PM
Finally:

Code:
[22:21:12.418][ebitcoin/warn] btc-chain: Connecting to localhost:8333...
[22:21:12.419][ebitcoin/warn] btc-chain: Connection established.
[22:21:49.771][ebitcoin/warn] btc-chain: Entering resync mode, getting 101129 block(s)...

Yay


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 11, 2012, 06:50:42 PM
Well that actually shouldn't work because bitcoin is not fully synced to the network... if you get errors before block 166359 (at the time of writing) is reached, don't blame it on ecoinpool.

@EnergyVampire: Your issue should be fixed. Just pull the new version.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: EnergyVampire on February 12, 2012, 12:07:43 AM
Well that actually shouldn't work because bitcoin is not fully synced to the network... if you get errors before block 166359 (at the time of writing) is reached, don't blame it on ecoinpool.

@EnergyVampire: Your issue should be fixed. Just pull the new version.

p2k

Thanks, p2k! This works great, cheers!


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 12, 2012, 01:14:34 AM
Realized my VPS was too cluttered, so I decided to reinstall it altogether.

So this is on a fresh Ubuntu Server 11.04 Installation:

I go to startup a testpool, and I get this error message:

http://pastebin.com/kfP55yKd

Exact same one I had earlier today.  :-[

Since it works fine others I assume its my own fault and has something to do with the config correct?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 12, 2012, 09:38:52 AM
This error tells us that ecoinpool could not connect to the local bitcoind. Either it is not running, or you've set it to another port than the default 8332 in your bitcoin.conf. In the later case, you can configure ecoinpool to use a different port in the CoinDaemon configuration dialog of your Subpool.

In general, ecoinpool is currently not very tolerant towards any errors you might have in your CoinDaemon configuration and if bitcoind is still loading blocks or crashes, ecoinpool will terminate as well. It is on my todo list (https://ecoinpool.p2k-network.org/issues/18) to even this out and present you a more informative error message and let ecoinpool reconnect on errors etc.

Also, while helping EnergyVampire to set it up, I've discovered some more problems with the built-in frontend that have to be fixed. We used a not-so-easy workaround to get it running. For you and others, it would be better if you could wait until I've fixed those problems properly; you can subscribe to the tracking ticket (https://ecoinpool.p2k-network.org/issues/72) via RSS. The first ticket entry is a blocker, as it is not possible to create your first worker properly. Please be patient, you won't regret it.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 12, 2012, 03:22:01 PM
God I am making such simple errors over and over again, I really need to start sleeping. I swear I had it running though! I'm using 0.6.0rc1 64bit bitcoind.

Bitcoind and the couchdb are both running, I get this at pool startup:
http://pastebin.com/KcwAE47N
Some other simple dumbass mistake I presume?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Graet on February 12, 2012, 07:29:21 PM
God I am making such simple errors over and over again, I really need to start sleeping. I swear I had it running though! I'm using 0.6.0rc1 64bit bitcoind.

Bitcoind and the couchdb are both running, I get this at pool startup:
http://pastebin.com/KcwAE47N
Some other simple dumbass mistake I presume?
"{\"result\":null,\"error\":{\"code\":-10,\"message\":\"Bitcoin is downloading blocks...\"},\"id\":null}\n"}},

until it is synced it will crash, see p2k's post above :)

Very impressed with ecoinpool. We have been running ~4-500Ghash most of the day and the servers barely get out of idle :)


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 12, 2012, 10:07:32 PM
Thanks Graet!

And I will take this opportunity to say that ecoinpool is running on ozco.in with very special settings which are not yet covered by the built-in frontend, all of them are listed on the ticket (https://ecoinpool.p2k-network.org/issues/72) (<- click me!). I had to help ozco.in at great lengths and most of the features on that list were actually developed to get eco to work ozco.in.

However, I will fix this up in some days (I'm currently blocked by RL jobs, shadders, your chance to catch up) making ecoinpool as easy to setup as it is meant to be and removing the pressure on me that I always have to be around if something has to be changed in the configuration etc. Yes, with ozco.in being currently the only pool which uses eco on a large basis, it's still ok for me; but I don't want to be responsible for the inner workings of all the pools in the world in the end... I'm only one guy... (yeah, ok, I claim that I'm a one-man-army, but even an army can run out of troops :D)

Also @Tittiez: I've heard that you want to start your own private pool with some friends. Keep in mind that ecoinpool currently doesn't have any payout mechanisms (neither do PoolserverJ nor pushpool), so you would have to manage that yourself. There is another ticket on my tracker (https://ecoinpool.p2k-network.org/issues/40) that promises payout support for a future release, making ecoinpool the true all-in-one backend solution for mining. But - as you can imagine - it's a lot of work to get there.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 13, 2012, 03:21:09 AM
Also @Tittiez: I've heard that you want to start your own private pool with some friends. Keep in mind that ecoinpool currently doesn't have any payout mechanisms (neither do PoolserverJ nor pushpool), so you would have to manage that yourself. There is another ticket on my tracker (https://ecoinpool.p2k-network.org/issues/40) that promises payout support for a future release, making ecoinpool the true all-in-one backend solution for mining. But - as you can imagine - it's a lot of work to get there.

p2k

Not a problem, we decided we would all split the blocks evenly anyway, its a lot easier that way. Oh and I got it working! :D
Code:
[07:18:54.068][ebitcoin/warn] ltc_block: Connecting to localhost:9335...
[07:18:54.071][ebitcoin/warn] ltc_block: Connection established.
[07:18:54.084][server/warn] Subpool b2fcfae2039213c8ae671ecc77006547 starting...
[07:18:54.170][ebitcoin/warn] ltc_block: Entering resync mode, getting 49745 block(s)...
[07:18:54.197][default/warn] ecoinpool_rpc: Started RPC on port 9339
[07:18:54.199][daemon/warn] SCrypt-ltc CoinDaemon starting...
[07:18:54.388][server/warn] ltc_pool: --- New main block! Assigned: 0; Shares: 0; Cached: 0; Longpolling: 0 ---

Got a few of my friends pointing their miners to my pool, its working fine now. Thanks!


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 13, 2012, 04:36:23 AM
So if we find a block it pays out to the "Pay To:" address I put into CoinDaemon, right?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 13, 2012, 07:22:15 AM
To quote from the README (https://github.com/p2k/ecoinpool/blob/master/README.md):

Quote
... Daemons which support local work creation through the getmemorypool call will have two extra fields "Pay To" and "Tag". The former will override the default payout address on block solves; if you leave it empty, ecoinpool will create an account called "ecoinpool" via RPC call and use this one for payout ...

I'm not lying in that README (https://github.com/p2k/ecoinpool/blob/master/README.md), it's true! :D

Congratz on setting it up, so it was possible to bypass the frontend error messages involved in first worker creation. Good to know.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 13, 2012, 11:05:44 AM
To quote from the README (https://github.com/p2k/ecoinpool/blob/master/README.md):

Quote
... Daemons which support local work creation through the getmemorypool call will have two extra fields "Pay To" and "Tag". The former will override the default payout address on block solves; if you leave it empty, ecoinpool will create an account called "ecoinpool" via RPC call and use this one for payout ...

I'm not lying in that README (https://github.com/p2k/ecoinpool/blob/master/README.md), it's true! :D

Congratz on setting it up, so it was possible to bypass the frontend error messages involved in first worker creation. Good to know.

p2k

Yes I did get those frontend errors, all I had to do was disable the pool and suddenly the databases for the workers were created.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 13, 2012, 11:08:23 AM
We solved our first block, yay!
https://i.imgur.com/daXp2.png


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: marks1976 on February 13, 2012, 05:40:30 PM
Nice to know it's up and running.  I have been having troubles installing it but I am sure it is a problem on my end.  I am in a similar boat to tittiez.  I want to create a small pool for me and my friends just a private pool for now.  I was wondering about the payout setup but never had to worry cause I couldn't get that far.  When I tried to look at ozco.in their site tells me it is down.  I wanted to get a look at kind of what things will look like and how the will operate.  Tittiez if you have a link I may check out to see running that would be great if not I will plug away until I get it going.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 13, 2012, 08:36:37 PM
Nice to know it's up and running.  I have been having troubles installing it but I am sure it is a problem on my end.  I am in a similar boat to tittiez.  I want to create a small pool for me and my friends just a private pool for now.  I was wondering about the payout setup but never had to worry cause I couldn't get that far.  When I tried to look at ozco.in their site tells me it is down.  I wanted to get a look at kind of what things will look like and how the will operate.  Tittiez if you have a link I may check out to see running that would be great if not I will plug away until I get it going.

Few Tips:
1. Make sure bitcoind/litecoind are finished downloading blocks (You will know when the blk files stop gaining size that its done)
2. Make sure to be running with server=1, here's my config for ltc:
Code:
server=1
daemon=1
rpcuser=user
rpcpassword=pass
rpcport=9334
port=9335

& the IP to the pool looks like this: http://XXX.XXX.XXX.XXX:9339/ (yes, I set the port to 9339 rather then 8888)
& RPC port under CoinDaemon is 9334

3. I used the exact same user/pass that was already in the example config file for ecoinpool for a user. Only thing I had to change was that two "Replace Me!" passwords.
4. If you have a similar problem to me just PM me, since I had to figure it out myself. No need to bother p2k more.  ;)
5.I might be able to help you set up yours  :)

Pics of it working:
https://i.imgur.com/Qd0jZ.png
https://i.imgur.com/2Uc6R.png
https://i.imgur.com/Ga15b.png


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 13, 2012, 10:08:23 PM
Oh p2k because I am only going to have 2-5 people mining every night, is it best to lower Max. Cache & Size Max. Work Age a bit lower? If so what do you recommend?

Edit:

Code:
[2012-02-13 12:11:20.860][info] ltc_pool: Cache hit by richard/X.X.X.X - Queue size: 19/20
[2012-02-13 12:11:22.700][info] ltc_pool: Cache hit by kitteh/X.X.X.X - Queue size: 19/20
[2012-02-13 12:12:06.745][info] ltc_pool: Cache hit by richard/X.X.X.X - Queue size: 19/20
[2012-02-13 12:12:08.004][info] ltc_pool: Cache hit by kitteh/X.X.X.X - Queue size: 19/20

So it would be optimal to leave it at 20? Or change it to 19?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on February 16, 2012, 08:22:00 AM
Hi,

sorry I've been busy the last days and will be away the following days too.

Cache size and work age aren't that important for ecoinpool because it can create work so fast that the cache never really gets empty.

Max work age is the time that workunits stay in the cache until they are discarded it mainly has to do how "good" you want to support new transactions coming in. On larger pools, this is never really hit, because work is requested faster than cached workunits are discarded; this could even be true for your small pool.

As for the cache size: It is not printed as an info message how the cache is refilled, you'd have to set the server logger to "debug" to see that. The fact that the number never gets below 19 is because the cache is being refilled to 20 only milliseconds after it was accessed. The value of 20 has been determined by watching the cache on a relatively big pool where the cache got below ~15 in only 2% of all cases (that's mostly on block changes, where the cache has to be drained anyway). Maintaining a cache of 20 workunits should be ok for any server as they just take a couple of cycles to make and only use a few bytes of ram.

The essence of all that I said: It's not really worth changing the default settings for those two values as what you gain from tweaking the numbers is pretty much marginal and will probably never impact work delivery at all. If you're really a perfectionist and want to save ~4kb of RAM and 100ms CPU time, then set the cache size to 10.

p2k


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: EnergyVampire on February 16, 2012, 09:14:44 PM
Hello,

I received this error a few times today on the namecoind debug.log:

Code:
ERROR: ConnectInputsHook() : name_firstupdate Cannot be mined if name_new is not already in chain and unexpired

Have I setup the auxchain wrong somehow? I installed namecoin version 32464 to try and do some merged mining. I haven't found any blocks but I am getting valid shares from couchdb.

Thanks in advance for your replies,

Cheers!


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 16, 2012, 09:31:21 PM
Sigh, unlucky lately. No blocks since that first one found, and currently at 119800 shares.

@EnergyVampire I got no idea about your error...


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: marks1976 on February 21, 2012, 04:21:05 AM
I would like to post a BTC bounty for anyone who can assist me in the final stages of getting this all working.  I think I have about 95% of the pool set up but I just can't seem to get the last little bit figured out.  I have installed all the files onto a dedicated linux server.  I have followed all directions and just can't seem to get the results of the pool running.  Somewhere the setup of the pool has failed and therefore will not start.  Please PM me if interested.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Tittiez on February 21, 2012, 11:35:56 AM
Sweet, two ltc blocks in a row for us last night!


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 01, 2012, 04:12:41 PM
Is anyone interested in setting this up for a bounty.  Please pm me if you are.  I'm interested in mining on it with a few friends.  Thanks.



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on March 02, 2012, 08:13:27 AM
It's kind of funny that there are now bounties for setting ecoinpool up while I'm working on the bugs and features which will make setting up so easy that everyone should be able to do it :D

But well, I'm not fast enough due to real life work load.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: marks1976 on March 02, 2012, 09:51:19 AM
It's kind of funny that there are now bounties for setting ecoinpool up while I'm working on the bugs and features which will make setting up so easy that everyone should be able to do it :D

But well, I'm not fast enough due to real life work load.

I hope so.  I still haven't had success finding someone to lend a hand or a stiff bounty wanted.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 04, 2012, 05:56:37 AM
I made it to the part where I'm trying to add a worker and I get
While requesting a new user ID, the pool server did not
respond in time. This usually means that the pool server
is down or currently unreachable.

As you are an admin user, you are advised to check your
firewall settings so that this URL can be reached:
http://localhost:8888/. 

Could this be because the chains haven't finished downloading.





Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 04, 2012, 06:11:43 PM
Was able to get this running and have a miner connected to showing that shares are being accepted in http://localhost:5984/ecoinpool/_design/site/_show.   I'm not getting any output on the command prompt line except for New aux block, new main block every once in a while.  Just wondering if there should be something showing up.  

Also should there be an ebitcoin client for namecoin?  When I try and set this up I get document update conflict.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on March 04, 2012, 08:16:35 PM
Yes, ecoinpool still crashes if the blockchain wasn't loaded by the local bitcoind/namecoind as mentioned in some posts before.

There won't be any console output except warnings, so this is normal. Try to follow the logfiles in the log folder for more detailed messages.

Yes, there should be an ebitcoin client for namecoin or the system will fall back to block change polling 5 times per second. The document update conflict seems to be a bug. Try reloading the page before you fill out the form and click save.

If only I had more time at the moment. Now I know how shadders felt back then... Got work up until night; free time is rare and when I finally have some, I rather use it to relax a bit. Looking at my deadlines, I need at least one more week before development can continue.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 04, 2012, 08:32:16 PM
Awesome project so far.  Are you working on it yourself?  Are you planning on allowing more then one chain for merged?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: p2k on March 04, 2012, 08:50:34 PM
Yes, until this project matures a bit more (i.e. beta 0.4 is reached) it will remain a solo project.

There is a lot of complexity involved with multi chain merged mining, most of it related to shares logging, configuration, correct handling of stales etc. However, ecoinpool has partially be designed to support multi chain MM at some point in the future without having to rewrite the entire server component.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 04, 2012, 09:43:07 PM
My cgminer is showing over 100 effeciency.  Its at about 147%, is this normal.  Also when a block is found will it show it on the output screen or do we have to just check the bitcoin daemon.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 05, 2012, 04:28:45 AM
Found a merged namecoin block. 


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: marks1976 on March 05, 2012, 06:32:58 AM
I have been mining mine for a little over 30 hours and no luck yet.  3 5970's on it so far.  Awesome luck hashking.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 05, 2012, 07:00:53 PM
Nice setup P2k so far have found 2 namecoin blocks, and 1 bitcoin block solo mining. So I can say that your pool backend works great.



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on March 15, 2012, 09:53:55 PM
What does it mean when its branching for 1 block


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on April 22, 2012, 04:07:43 AM
So I decided to give this a shot, just for fun. I see in your examples that you are using ubuntu, is there any particular version and/or architecture that works best? Also, does anyone know how to properly set up a paravirtualized pygrub loader for an encrypted LVM on Citrix XenServer?

I usually use Centos for my work stuff, so if that would be compatible I would prefer that.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Pontius on April 23, 2012, 06:22:38 AM
A few weeks ago I installed 'ecoinpool' on a RHEL 5.7 box (running on VMWare).

Take the latest Erlang and build it as recommended by p2k; then build CouchDB using this http://wiki.apache.org/couchdb/Installing_on_RHEL5 (section "Building CouchDB from source "); then you can follow p2ks guide again.

HTH


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on April 24, 2012, 07:24:18 AM
A few weeks ago I installed 'ecoinpool' on a RHEL 5.7 box (running on VMWare).

Take the latest Erlang and build it as recommended by p2k; then build CouchDB using this http://wiki.apache.org/couchdb/Installing_on_RHEL5 (section "Building CouchDB from source "); then you can follow p2ks guide again.

HTH
Yes I was finally able to build CouchDB after some wrangling with SpiderMonkey, but the eventual install of ecoinpool was spewing errors of all kinds, and acting a bit funny. Likely something that I missed in the configuration. I've given it up for now.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Pontius on April 25, 2012, 12:17:07 PM
Yes I was finally able to build CouchDB after some wrangling with SpiderMonkey, but the eventual install of ecoinpool was spewing errors of all kinds, and acting a bit funny. Likely something that I missed in the configuration. I've given it up for now.
JS support is kind of tricky. Did you try with Xulrunner 1.9.x instead?
And don't forget to adjust your LD_LIBRARY_PATH - point it to the correct js install - before starting 'ecoinpool'.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Pontius on April 25, 2012, 12:19:20 PM
Yes, until this project matures a bit more (i.e. beta 0.4 is reached) it will remain a solo project.

p2k: This project looks kind of stalled, last commit on GitHub 2 months old. Any near future update/development plans?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Graet on April 25, 2012, 02:40:49 PM
Yes, until this project matures a bit more (i.e. beta 0.4 is reached) it will remain a solo project.

p2k: This project looks kind of stalled, last commit on GitHub 2 months old. Any near future update/development plans?
I keep in contact with him, he's currently working on a large (paid) project and is very busy but does plan to be back asap :)


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: roomservice on April 25, 2012, 04:26:32 PM
Yes, until this project matures a bit more (i.e. beta 0.4 is reached) it will remain a solo project.

p2k: This project looks kind of stalled, last commit on GitHub 2 months old. Any near future update/development plans?
I keep in contact with him, he's currently working on a large (paid) project and is very busy but does plan to be back asap :)

looking forward :D


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on April 26, 2012, 01:59:05 AM
Wow. What a difference it makes to use the distro that the readme was written for. I blew away my CentOS 6.2 install and decided to have one last try with a minimal netinstall Debian stable. It was positively pleasant to set up, with only one or 2 places where I had to do some manual stuff. (Is wx actually needed? I was able to build couchdb without it, but ./configure kept complaining that it was missing.) It is now running with no errors as of yet, and I am going to have a poke at it to see if it works.



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on April 27, 2012, 01:09:34 AM
OK I think it works, but I'm a little confused by this display output (below) - it seems to increment the aux block numbers, but not the main chain?

https://i.imgur.com/KwmWI.png


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: jjshabadoo on May 04, 2012, 04:24:45 AM
Did anyone find out if this has to be run on a linux server? I already have a windows server set up for my business and I use a fraction of its resources currently. I'd love to get a small pool going and see if i could build it up from there.

Anyone notice any advantages to this software as far as pure mining performance? Or is the concept simply its usability?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: wknight on July 14, 2012, 04:35:05 PM
I dont know anyone that has installed this on windows. All directions are around ubuntu and suggest using just that otherwise you will need to customize your install.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: DavinciJ15 on July 15, 2012, 07:10:44 AM
I got this thing working and I am a windows guy!

Anyhow I'm able to mine and see the shares there are a few popup dialogs stating a database is missing but other than that it's working flawlessly.

However...

I would like to use it with my pushpool tables in mySQL so I don't need to change my front end.  I tried using the ecoinpool mysql replicator however it does nothing except crash the ecoinpool and the replicator.

It looks like its doing the job because I see this...


Code:
mysql_conn:462: fetch <<"SET @1=158">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_couch_id_q USING @1">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @1=158">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_data_q USING @1">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @1='1-332de4a9e1f0b1da7bf0ed87c7734c17'">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @2=158">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_upd_rev_q USING @1,@2">> (id <0.79.0>)
mycouch_replicator:251: MyId 719: Inserting.
mysql_conn:462: fetch <<"SET @1=719">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_couch_id_q USING @1">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @1=719">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_data_q USING @1">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @1='1-2b62e4011883a47e29bdd301838c300e'">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @2=719">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_upd_rev_q USING @1,@2">> (id <0.79.0>)
mycouch_replicator:251: MyId 517: Inserting.
mysql_conn:462: fetch <<"SET @1=517">> (id <0.79.0>)
mysql_conn:462: fetch <<"EXECUTE pool_worker_couch_id_q USING @1">> (id <0.79.0>)
mysql_conn:462: fetch <<"SET @1=517">> (id <0.79.0>)


But then it crashes and I see this...


Code:
=ERROR REPORT==== 15-Jul-2012::06:29:31 ===
** Generic server <0.95.0> terminating
** Last message in was {'DOWN',#Ref<0.0.0.123772>,process,<0.22377.0>,normal}
** When Server state == {state,<<"btc_nmc_test_shares">>,
                         "btc_nmc_test_shares.state",
                         {db_state,
                          {db,
                           {server,"localhost",5984,[],
                            [{basic_auth,{"ecoinpool","abc"}}]},
                           "ecoinpool",
                           [{basic_auth,{"ecoinpool","abc"}}]},
                          #Ref<0.0.0.235>,<0.106.0>,1146},
                         {db_state,
                          {db,
                           {server,"localhost",5984,[],
                            [{basic_auth,{"ecoinpool","abc"}}]},
                           "btc-test",
                           [{basic_auth,{"ecoinpool","abc"}}]},
                          #Ref<0.0.0.123773>,<0.22379.0>,0},
                         undefined,0,53280,ecoinpool_mysql_replicator,
                         "shares",
                         {interval,#Ref<0.0.0.260>},
                         [],[],[],
                         #Fun<ecoinpool_mysql_share_deployer.3.49379825>,
                         <<"INSERT INTO `shares` (`rem_host`, `username`, `our_result`, `upstream_result`, `reason`, `solution`) VALUES\n">>,
                         [3,4,5,8,9,11]}
** Reason for termination ==
** {conn_failed,{error,econnrefused}}


working on this for hours any help will get some bitcoins. I'm going to bed now it's 3 am.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: DavinciJ15 on July 16, 2012, 02:15:06 PM
100 BTC bounty if someone can get this working with MySQL or get me a new pool mining software that works.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: rjk on July 16, 2012, 02:16:35 PM
100 BTC bounty if someone can get this working with MySQL or get me a new pool mining software that works.
Hit up IRC and talk to Graet and his cronies ;D and see if they can help. Ozcoin runs ecoinpool, so they ought to know.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: tvasconcelos on August 07, 2012, 05:44:42 PM
Hi, would like to setup a small pool for private usage. Do i have to have my own machine or can i set this up on a remote server? i mean, a hosting service can do the trick??

If i have an account with a hosting service. have some space and an address. Can i have this running so that i can point my miners there?? How can i setup this? Have to set it up on a linux machine and copy the aal thing online?? sorry for the noob question, but i'd like to learn some more about this.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on August 30, 2012, 12:34:01 PM
Also going to give ecoinpool a try - a wonder i came that far but its still not working.

I installed couchdb (never worked with it before) from git https://github.com/apache/couchdb

I did all steps in the README.unix tutorial including:

Quote
Change the ownership of the CouchDB directories by running:

    chown -R couchdb:couchdb /usr/local/etc/couchdb
    chown -R couchdb:couchdb /usr/local/var/lib/couchdb
    chown -R couchdb:couchdb /usr/local/var/log/couchdb
    chown -R couchdb:couchdb /usr/local/var/run/couchdb

Change the permission of the CouchDB directories by running:

    chmod 0770 /usr/local/etc/couchdb
    chmod 0770 /usr/local/var/lib/couchdb
    chmod 0770 /usr/local/var/log/couchdb
    chmod 0770 /usr/local/var/run/couchdb

I have changed the couchdb password and used  -> user:couchdb pass:mycouchdbpass

Code:
root@j064:~/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:true]

Eshell V5.9.1  (abort with ^G)
(ecoinpool_test@j064)1> [12:29:23.245][ebitcoin/fatal] config_db - couchbeam:open_or_create_db/3 returned an error:
{ok,"401",
    [{"Server","CouchDB/1.2.0 (Erlang OTP/R15B01)"},
     {"Date","Thu, 30 Aug 2012 12:29:23 GMT"},
     {"Content-Type","application/json"},
     {"Content-Length","67"},
     {"Cache-Control","must-revalidate"}],
    <<"{\"error\":\"unauthorized\",\"reason\":\"Name or password is incorrect.\"}\n">>}
{"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
root@j064:~/ecoinpool#

Im really not a linux super geek and pretty happy i got that far, would be very happy about a little support.
Not much, but ill give 1 BTC to the person who gets this working (posts the right solution here).

EDIT: i have also edited the local.ini to bind the couchdb to 0.0.0.0.




Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on August 31, 2012, 02:51:50 PM
I still face this problem, would be nice if anybody knows whats wrong with my config.
RGDS

EDIT: Well, i posted this on stackoverflow.com http://stackoverflow.com/questions/12218312/ecoinpool-setup-error-with-couchdb


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: maaku on September 18, 2012, 04:13:30 AM
Also going to give ecoinpool a try - a wonder i came that far but its still not working.

Code:
root@j064:~/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:true]

Eshell V5.9.1  (abort with ^G)
(ecoinpool_test@j064)1> [12:29:23.245][ebitcoin/fatal] config_db - couchbeam:open_or_create_db/3 returned an error:
{ok,"401",
    [{"Server","CouchDB/1.2.0 (Erlang OTP/R15B01)"},
     {"Date","Thu, 30 Aug 2012 12:29:23 GMT"},
     {"Content-Type","application/json"},
     {"Content-Length","67"},
     {"Cache-Control","must-revalidate"}],
    <<"{\"error\":\"unauthorized\",\"reason\":\"Name or password is incorrect.\"}\n">>}
{"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
root@j064:~/ecoinpool#

Im really not a linux super geek and pretty happy i got that far, would be very happy about a little support.
Not much, but ill give 1 BTC to the person who gets this working (posts the right solution here).

EDIT: i have also edited the local.ini to bind the couchdb to 0.0.0.0.

In case anyone else encounters this same problem, it appears to be a case of source code atrophy. The most recent builds of ecoinpool's dependencies no longer work together as expected. Pegging the dependencies to versions around the same time as p2k's last commit solved it for me:

Code: (rebar.config)
{sub_dirs, ["apps/ecoinpool", "apps/ebitcoin", "rel"]}.

{deps, [
    {protobuffs, ".*", {git, "git://github.com/basho/erlang_protobuffs.git", "e0f5f6ea4c3dcb4e7b824496d2b48333fbd5a8c8"}},
    {ejson, ".*", {git, "git://github.com/benoitc/ejson.git", "820ff1725008e664293b88e13c16193857afc072"}},
    {oauth, ".*", {git, "git://github.com/refuge/erlang-oauth.git", "f332b77371d334d0faa13e106d0c36f948b325b6"}},
    {ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse.git", "eb8b62cf84ccae141700c8fd251277df8be27f28"}},
    {mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", "b7f3693a9008de6d31a67174f7184fe24093a1b4"}},
    {couchbeam, ".*", {git, "git://github.com/benoitc/couchbeam.git", "7148bbdb19aca91b7b74e5392a23c94d33ca4e27"}},
    {log4erl, ".*", {git, "git://github.com/SemanticSugar/log4erl.git", "ec580f75ef9e28dfcfac92dc0d42c435520bd3d7"}},
    {mysql, ".*", {git, "git://github.com/elbrujohalcon/erlang-mysql-driver.git", "1dd4e22a80546fa1bda81607d6397a549fd791ae"}},
    {epgsql, ".*", {git, "git://github.com/wg/epgsql.git", "fc434772276475ac4e5b0bed6b18ed4732502156"}}
]}.

@sippsnapp, does that offer for 1BTC still hold? 17SRxATG3LZrD7WWTCr5EfCapprShVEtP ;)


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Mobius on September 18, 2012, 08:28:58 AM
Thanks for the fix, it will work with prev version of bitcoind v0.6.3
how do we fix it for version v0.7.0?

I'm sending you a btc for finding the atrophy as a thanks.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on September 18, 2012, 04:12:55 PM
@sippsnapp, does that offer for 1BTC still hold? 17SRxATG3LZrD7WWTCr5EfCapprShVEtP ;)

HAHA, well, you got my by the balls  ::)

Quote
Status: 0/unconfirmed, broadcast through 7 nodes
Date: 9/18/2012 18:12
To: maaku 17SRxATG3LZrD7WWTCr5EfCapprShVEtP
Debit: -1.00 BTC
Net amount: -1.00 BTC
Transaction ID: 243a1d64540a04e290a2a1278c9f52985f6e43e613e20b35d569bcbc8161bfb8


SENT!

PS: Hopefully other guys who use this solution see it the same way... well done!

EDIT: Of course, i did not tested it but i beliefe its reasonable....



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: maaku on September 20, 2012, 05:55:25 AM
thx :)

Thanks for the fix, it will work with prev version of bitcoind v0.6.3
how do we fix it for version v0.7.0?
The system I was working on still has v0.6.3. What changed with v0.7.0? Does it throw a new error?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Mobius on September 20, 2012, 12:21:05 PM
I know that in 0.6.3.rc you need to
# gedit  apps/ecoinpool/src/btc_daemon_util.erl
# replace getblocknumber with getblockcount line 220

in 0.7.0
getmemorypool has been removed in 0.7.0 and replaced with getblocktemplate

in the release notes:
Incompatible Changes
--------------------
* Replaced the 'getmemorypool' RPC command with 'getblocktemplate/submitblock'
  and 'getrawmempool' commands.
* Remove deprecated RPC 'getblocknumber'


and it was suggested that  apps/ecoinpool/src/btc_daemon_util.erl line 238 be tweaked as well



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: slush on September 27, 2012, 03:52:43 PM
p2k, I heard some rumours that you're going to implement Stratum protocol. Feel free to join us at #stratum, there are already people willing to answer your potential questions.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Mobius on October 02, 2012, 08:27:26 AM
bump


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: maaku on October 04, 2012, 03:53:07 AM
As it says, you've got a syntax error on line 88 starting with "Format". You shouldn't have uncommented that line (or the one further down starting with "MM Format".


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: psilan on October 04, 2012, 10:10:46 AM
Anybody tried running this on a Pi?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: betatest512 on October 04, 2012, 03:42:10 PM
my test_launch.config is:

% This is an example configuration file. Lists are denoted with [...] and tuples
% are denoted with {...}. Together they form a nested structure of names and
% parameters. If you make changes and add or remove options, make sure not to
% have a comma before a closing bracket or curly brace.

[
    % SASL is Erlang's internal error and crash logger; it also logs starting
    % and stopping of certain processes. I set it to "error" here so it won't
    % pollute stdout/stderr.
    {sasl, [
        {errlog_type, error}
    ]},
   
    % This is ecoinpool's main configuration. The CouchDB connection is
    % configured here.
    {ecoinpool, [
        % The following commented lines are default settings.
        {db_host, "localhost"},
        {db_port, 5984},
        {db_prefix, ""},
       
        % The next line should be changed, depending on your CouchDB
        % authentication settings: username password
        {db_options, [{basic_auth, {"admin", "admin"}}]},
       
        % Here you can change ecoinpool's HTTP service port, currently used to
        % serve global RPC functions used by the frontend.
        %{service_port, 8080},
       
        % The last line in this section contains your blowfish secret key, share
        % this among your servers and don't tell it to anyone else. Minimum key
        % length is 4 bytes, maximum is 56 bytes.
        % If you have pwgen (a password generator), try "pwgen -s 56 1" to get
        % 56 random characters.
        {blowfish_secret, "1a2a3a4a5a"}
    ]},
   
    % This is the ebitcoin configuration. ebitcoin forms a separate application,
    % thus it doesn't share ecoinpool's database settings. If you use the same
    % CouchDB server and authentication, copy it from above.
    {ebitcoin, [
        % You can also disable ebitcoin altogether by uncommenting the following
        % line. Note that you will fall back to the polling system then.
        %{enabled, false},
       
        {db_host, "localhost"},
        {db_port, 5984},
        {db_prefix, ""},
        {db_options, [{basic_auth, {"admin", "admin"}}]}
    ]},
   
    % The third separate application (it also has to be started separately) is
    % the MySQL Replicator. It is used to bridge legacy MySQL worker tables to
    % CouchDB and also stores copies of the shares into a MySQL table.
    {ecoinpool_mysql_replicator, [
        % Again, commented lines are default settings.
        %{couchdb_host, "localhost"},
        %{couchdb_port, 5984},
        %{couchdb_prefix, ""},
        {couchdb_options, [{basic_auth, {"ecoinpool", "localtest"}}]},
        %{couchdb_database, "ecoinpool"},
       
        %{mysql_host, "localhost"},
        %{mysql_port, 3306},
        %{mysql_prefix, ""},
        {mysql_options, [{auth, {"ecoinpool", "localtest"}}]},
        %{mysql_database, "ecoinpool"},
       
        % This is a setting that certainly has to be changed. Configure one or
        % more worker table replicators here (if you have multiple sub-pools).
        % Please only connect one sub-pool to one table or things get jammed up.
        {replicator_configs, [
            % Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
        ]},
       
        % Next is your blowfish secret key. Copy it from above.
        {blowfish_secret, "Replace me!"},
       
        % And the last one, also to be likely changed, is the shares deployer
        % configuration. There are two possible formats here, one with and one
        % without using merged mining. The config ID is used as basename for
        % saving the deployment state file and for the "source" column.
        {share_deployer_configs, [
            % Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"ltc_test_shares", "ltc-test", "shares", 60},
            % MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
        ]}
    ]}
].

i get the following error when i run test_launch.sh :

==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [smp:1:1] [async-threads:0] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test@ubuntu)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()




Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: maaku on October 04, 2012, 04:45:43 PM
Did you apply the fix the dependency versions as I mentioned a few pages back? Are you using v0.7 (not supported)?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 05, 2012, 05:22:02 AM
I tried once again to get ecoinpool working.
Im pretty sure everything is setup fine (couchdb, erlang) except the last part of the configuration file.

Here is the error i actually encounter:
Code:
root@j064:/opt/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test@j064)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
root@j064:/opt/ecoinpool#


Anybody here who can post a sample config and a describtion on the nessecary steps from here to get this working?
What parts to be edited, removed, replaced and database settings outside of this config file.

Code:
% This is a setting that certainly has to be changed. Configure one or
        % more worker table replicators here (if you have multiple sub-pools).
        % Please only connect one sub-pool to one table or things get jammed up.
        {replicator_configs, [
            % Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
        ]},
        
        % Next is your blowfish secret key. Copy it from above.
        {blowfish_secret, "Replace me!"},
        
        % And the last one, also to be likely changed, is the shares deployer
        % configuration. There are two possible formats here, one with and one
        % without using merged mining. The config ID is used as basename for
        % saving the deployment state file and for the "source" column.
        {share_deployer_configs, [
            % Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"ltc_test_shares", "ltc-test", "shares", 60},
            % MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
        ]}
    ]}
].


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: OgStar on October 05, 2012, 11:54:01 PM
I tried once again to get ecoinpool working.
Im pretty sure everything is setup fine (couchdb, erlang) except the last part of the configuration file.

Here is the error i actually encounter:
Code:
root@j064:/opt/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test@j064)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
root@j064:/opt/ecoinpool#


Anybody here who can post a sample config and a describtion on the nessecary steps from here to get this working?
What parts to be edited, removed, replaced and database settings outside of this config file.

Code:
% This is a setting that certainly has to be changed. Configure one or
        % more worker table replicators here (if you have multiple sub-pools).
        % Please only connect one sub-pool to one table or things get jammed up.
        {replicator_configs, [
            % Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
        ]},
        
        % Next is your blowfish secret key. Copy it from above.
        {blowfish_secret, "Replace me!"},
        
        % And the last one, also to be likely changed, is the shares deployer
        % configuration. There are two possible formats here, one with and one
        % without using merged mining. The config ID is used as basename for
        % saving the deployment state file and for the "source" column.
        {share_deployer_configs, [
            % Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"ltc_test_shares", "ltc-test", "shares", 60},
            % MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
        ]}
    ]}
].


I'm stuck with this exact same error. I think it's something related to ebitcoin, since line 34 of src/ecoinpool_test_launch.erl is an include of an ebitcoin module. I tried disabling ebitcoin, but the exception was still the same.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: OgStar on October 06, 2012, 12:03:14 AM
ebitcoin's database was created in couchdb, but it stopped there because of that error.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: betatest512 on October 06, 2012, 07:48:08 AM
I tried once again to get ecoinpool working.
Im pretty sure everything is setup fine (couchdb, erlang) except the last part of the configuration file.

Here is the error i actually encounter:
Code:
root@j064:/opt/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test@j064)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
root@j064:/opt/ecoinpool#


Anybody here who can post a sample config and a describtion on the nessecary steps from here to get this working?
What parts to be edited, removed, replaced and database settings outside of this config file.

Code:
% This is a setting that certainly has to be changed. Configure one or
        % more worker table replicators here (if you have multiple sub-pools).
        % Please only connect one sub-pool to one table or things get jammed up.
        {replicator_configs, [
            % Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
        ]},
        
        % Next is your blowfish secret key. Copy it from above.
        {blowfish_secret, "Replace me!"},
        
        % And the last one, also to be likely changed, is the shares deployer
        % configuration. There are two possible formats here, one with and one
        % without using merged mining. The config ID is used as basename for
        % saving the deployment state file and for the "source" column.
        {share_deployer_configs, [
            % Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"ltc_test_shares", "ltc-test", "shares", 60},
            % MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
        ]}
    ]}
].

i am also stuck with the same error can someone help?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: OgStar on October 06, 2012, 02:04:43 PM
I tried once again to get ecoinpool working.
Im pretty sure everything is setup fine (couchdb, erlang) except the last part of the configuration file.

Here is the error i actually encounter:
Code:
root@j064:/opt/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test@j064)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
root@j064:/opt/ecoinpool#


Anybody here who can post a sample config and a describtion on the nessecary steps from here to get this working?
What parts to be edited, removed, replaced and database settings outside of this config file.

Code:
% This is a setting that certainly has to be changed. Configure one or
        % more worker table replicators here (if you have multiple sub-pools).
        % Please only connect one sub-pool to one table or things get jammed up.
        {replicator_configs, [
            % Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
        ]},
        
        % Next is your blowfish secret key. Copy it from above.
        {blowfish_secret, "Replace me!"},
        
        % And the last one, also to be likely changed, is the shares deployer
        % configuration. There are two possible formats here, one with and one
        % without using merged mining. The config ID is used as basename for
        % saving the deployment state file and for the "source" column.
        {share_deployer_configs, [
            % Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"ltc_test_shares", "ltc-test", "shares", 60},
            % MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
        ]}
    ]}
].

i am also stuck with the same error can someone help?

I have the same issue.

Let's try to help ourselves, before someone comes to our aid. What distro and version are you using? spidermonkey version? couchdb version? Erlang version?

I'll start:

Distro and distro version:
Terminal ->
Code:
$ lsb_release -a
Prints:
Code:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.5 (squeeze)
Release: 6.0.5
Codename: squeeze


Spidermonkey version:
Terminal ->
Code:
$ dpkg -p libmozjs-dev
(I use debian, that would be rpm for Red Hat)
Prints:
Code:
Architecture: amd64
Source: iceweasel (3.5.16-17)
Version: 1.9.1.16-17
Depends: libmozjs2d (= 1.9.1.16-17), libnspr4-dev

CouchDB version:
Terminal ->
Code:
couchdb -V
Prints:
Code:
couchdb - Apache CouchDB 1.3.0a-ac32047-git

Erlang version:
Terminal ->
Code:
erl --version
Hit Ctrl + C twice to come back to console
Prints:
Code:
Erlang R15B02 (erts-5.9.2) [source] [64-bit] [smp:11:11] [async-threads:0] [hipe] [kernel-poll:false]


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 06, 2012, 03:34:18 PM
Code:
root@j064:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:        12.04
Codename:       precise
root@j064:~#

Code:
root@j064:~# dpkg -p libmozjs-dev
Package `libmozjs-dev' is not available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
root@j064:~#

Code:
couchdb - Apache CouchDB 1.2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

root@j064:~#

Code:
root@j064:~# erl --version
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
root@j064:~#






Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: OgStar on October 06, 2012, 04:21:48 PM

Code:
root@j064:~# dpkg -p libmozjs-dev
Package `libmozjs-dev' is not available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
root@j064:~#

Code:
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

root@j064:~#

How did you install spidermonkey (the mozilla foundation js interpreter)?
On the couchdb version, you didn't show the version itself, only the license version.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 06, 2012, 04:31:14 PM
I have edited the post above, couchdb is 1.2.

Dont know how spidermonkey was installed but libmozjs185-1.0 and libmozjs185-dev seem to be installed.

Code:
root@j064:/opt/ecoinpool# apt-cache search spidermonkey
js2-mode - Emacs mode for editing Javascript programs
libmozjs185-1.0 - Spidermonkey javascript engine
libmozjs185-dev - Spidermonkey javascript library - development headers
root@j064:/opt/ecoinpool# sudo apt-get install libmozjs185-1.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmozjs185-1.0 is already the newest version.
libmozjs185-1.0 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@j064:/opt/ecoinpool# sudo apt-get install libmozjs185-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmozjs185-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: OgStar on October 06, 2012, 11:30:07 PM
Interesting! I thought the problem could be my spidermoney version that is different than the version in the README file, but clearly it isn't, since you have the same problem with that version.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 07, 2012, 11:35:53 AM
http://pastebin.com/vjHVuJxq

Found this yesterday, ironically this never got linked here, obv p2k has written it.

Would love to have something that exactly for the config file.

My idea right now is thats a database (maybe tables have to be created manually or a sql imported) or writing permission error.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 07, 2012, 05:58:31 PM
http://pastebin.com/ph1PJKgJ

seems its working with the solution makuu stated erlier.

Replace all dependencies with the ones linked in the /ecoinpool/deps folder - seems to work on ubuntu 12, will post once i connected a miner.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: betatest512 on October 08, 2012, 11:59:32 AM
i installed ecoinpool and when i activate subpool i get error :

heap_size: 4181
    stack_size: 24
    reductions: 5395
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.229.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.621][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.241.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,106535,110632,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[04:50:09.622][daemon/warn] SCrypt-ltc CoinDaemon starting...

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.241.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 4181
    stack_size: 24
    reductions: 5401
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.241.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.647][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.253.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,114727,118824,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[04:50:09.648][daemon/warn] SCrypt-ltc CoinDaemon starting...

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.253.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 4181
    stack_size: 24
    reductions: 5407
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.253.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.681][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.265.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,122919,127016,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[04:50:09.686][daemon/warn] SCrypt-ltc CoinDaemon starting...

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.265.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 2584
    stack_size: 24
    reductions: 5295
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.265.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.708][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.276.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,131111,135208,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.276.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 2584
    stack_size: 24
    reductions: 5392
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.276.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]


=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    shutdown
     Reason:     reached_max_restart_intensity
     Offender:   [{pid,<0.276.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.718][default/warn] ecoinpool_rpc: Stopped RPC on port 8888
[04:50:09.718][server/warn] Subpool 057d86df9633b99cdd54246b3d000f00 terminated.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: dishwara on October 08, 2012, 01:12:24 PM
i installed ecoinpool and when i activate subpool i get error :

Code:
heap_size: 4181
    stack_size: 24
    reductions: 5395
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.229.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.621][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.241.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,106535,110632,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[04:50:09.622][daemon/warn] SCrypt-ltc CoinDaemon starting...

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.241.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 4181
    stack_size: 24
    reductions: 5401
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.241.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.647][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.253.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,114727,118824,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[04:50:09.648][daemon/warn] SCrypt-ltc CoinDaemon starting...

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.253.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 4181
    stack_size: 24
    reductions: 5407
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.253.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.681][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.265.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,122919,127016,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
[04:50:09.686][daemon/warn] SCrypt-ltc CoinDaemon starting...

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.265.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 2584
    stack_size: 24
    reductions: 5295
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.265.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.708][daemon/warn] SCrypt-ltc CoinDaemon terminated.

=ERROR REPORT==== 8-Oct-2012::04:50:09 ===
** Generic server <0.276.0> terminating
** Last message in was {'$gen_cast',post_workunit}
** When Server state == {state,<<"057d86df9633b99cdd54246b3d000f00">>,ltc,
                            "http://127.0.0.1:9332/",
                            {"user","pass"},
                            <<"eco">>,
                            {default,
                                <<153,123,34,121,57,195,171,20,191,106,153,34,
                                  8,73,251,157,196,81,70,185>>},
                            undefined,131111,135208,undefined,undefined,
                            undefined,undefined}
** Reason for termination ==
** {{badmatch,{ok,"404",
                  [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                   {"Connection","close"},
                   {"Content-Length","79"},
                   {"Content-Type","application/json"},
                   {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                  "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
    [{btc_daemon_util,get_block_number,2,
                      [{file,"src/btc_daemon_util.erl"},{line,220}]},
     {btc_daemon_util,fetch_work,11,
                      [{file,"src/btc_daemon_util.erl"},{line,328}]},
     {scrypt_coindaemon,fetch_work_with_state,1,
                        [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
     {scrypt_coindaemon,handle_cast,2,
                        [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

=CRASH REPORT==== 8-Oct-2012::04:50:09 ===
  crasher:
    initial call: scrypt_coindaemon:init/1
    pid: <0.276.0>
    registered_name: []
    exception exit: {{badmatch,
                         {ok,"404",
                             [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                              {"Connection","close"},
                              {"Content-Length","79"},
                              {"Content-Type","application/json"},
                              {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                             "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                     [{btc_daemon_util,get_block_number,2,
                          [{file,"src/btc_daemon_util.erl"},{line,220}]},
                      {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,328}]},
                      {scrypt_coindaemon,fetch_work_with_state,1,
                          [{file,"src/scrypt_coindaemon.erl"},{line,203}]},
                      {scrypt_coindaemon,handle_cast,2,
                          [{file,"src/scrypt_coindaemon.erl"},{line,143}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,597}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 737)
    ancestors: [<0.188.0>,ecoinpool_sup,<0.101.0>]
    messages: []
    links: [<0.188.0>,<0.143.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 2584
    stack_size: 24
    reductions: 5392
  neighbours:

=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    child_terminated
     Reason:     {{badmatch,{ok,"404",
                                [{"Date","Mon, 08 Oct 2012 11:50:09 +0000"},
                                 {"Connection","close"},
                                 {"Content-Length","79"},
                                 {"Content-Type","application/json"},
                                 {"Server","litecoin-json-rpc/v0.6.3c-beta"}],
                                "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                  [{btc_daemon_util,get_block_number,2,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,220}]},
                   {btc_daemon_util,fetch_work,11,
                                    [{file,"src/btc_daemon_util.erl"},
                                     {line,328}]},
                   {scrypt_coindaemon,fetch_work_with_state,1,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,203}]},
                   {scrypt_coindaemon,handle_cast,2,
                                      [{file,"src/scrypt_coindaemon.erl"},
                                       {line,143}]},
                   {gen_server,handle_msg,5,
                               [{file,"gen_server.erl"},{line,597}]},
                   {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.276.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]


=SUPERVISOR REPORT==== 8-Oct-2012::04:50:09 ===
     Supervisor: {global,
                                           ecoinpool_server_sup_057d86df9633b99cdd54246b3d000f00}
     Context:    shutdown
     Reason:     reached_max_restart_intensity
     Offender:   [{pid,<0.276.0>},
                  {name,coindaemon},
                  {mfargs,
                      {scrypt_coindaemon,start_link,
                          [<<"057d86df9633b99cdd54246b3d000f00">>,
                           [{pool_type,ltc},{host,<<"127.0.0.1">>}]]}},
                  {restart_type,permanent},
                  {shutdown,5000},
                  {child_type,worker}]

[04:50:09.718][default/warn] ecoinpool_rpc: Stopped RPC on port 8888
[04:50:09.718][server/warn] Subpool 057d86df9633b99cdd54246b3d000f00 terminated.

Next time use code & /code


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 08, 2012, 01:37:44 PM
I can not create a worker.

System is ubuntu 12.04
bitcoind http://gitorious.org/~Luke-Jr/bitcoin/luke-jr-bitcoin/commits/next-eligius
getinfo
Code:
{
    "version" : 60010,
    "protocolversion" : 70000,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 202383,
    "connections" : 13,
    "proxy" : "",
    "difficulty" : 3054627.52694864,
    "testnet" : false,
    "keypoololdest" : 1349160278,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "maxtxfee" : 0.01000000,
    "forcetxfee" : false,
    "errors" : ""
}



#EDIT, the prev printed error is replaced, it was a wrong username set.
This error most probably is a wrong bitcoin version.
Code:
    =ERROR REPORT==== 8-Oct-2012::17:18:32 ===
    ** Generic server <0.232.0> terminating
    ** Last message in was {'$gen_cast',post_workunit}
    ** When Server state == {state,<<"1cade7e67fdab5080fab0a2afd0050c1">>,btc,
                                "http://127.0.0.1:8332/",
                                {"user",
                                 "passwd"},
                                <<"eco">>,
                                {default,
                                    <<80,214,174,106,246,223,58,77,209,76,17,192,
                                      154,154,39,42,98,241,111,85>>},
                                undefined,<<"81c8fd55f5316039ae579bbf0900870e">>,
                                106535,110632,undefined,undefined,undefined,
                                undefined,undefined}
    ** Reason for termination ==
    ** {{case_clause,{ok,"404",
                         [{"Date","Mon, 08 Oct 2012 17:18:32 +0000"},
                          {"Connection","close"},
                          {"Content-Length","79"},
                          {"Content-Type","application/json"},
                          {"Server","bitcoin-json-rpc/0.6.0.10-beta"}],
                         "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
        [{btc_daemon_util,get_memory_pool,5,
                          [{file,"src/btc_daemon_util.erl"},{line,225}]},
         {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,316}]},
         {btc_coindaemon,fetch_work_with_state,1,
                         [{file,"src/btc_coindaemon.erl"},{line,206}]},
         {btc_coindaemon,handle_cast,2,
                         [{file,"src/btc_coindaemon.erl"},{line,150}]},
         {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
         {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
    
    =CRASH REPORT==== 8-Oct-2012::17:18:32 ===
      crasher:
        initial call: btc_coindaemon:init/1
        pid: <0.232.0>
        registered_name: []
        exception exit: {{case_clause,
                             {ok,"404",
                                 [{"Date","Mon, 08 Oct 2012 17:18:32 +0000"},
                                  {"Connection","close"},
                                  {"Content-Length","79"},
                                  {"Content-Type","application/json"},
                                  {"Server","bitcoin-json-rpc/0.6.0.10-beta"}],
                                 "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                         [{btc_daemon_util,get_memory_pool,5,
                              [{file,"src/btc_daemon_util.erl"},{line,225}]},
                          {btc_daemon_util,fetch_work,11,
                              [{file,"src/btc_daemon_util.erl"},{line,316}]},
                          {btc_coindaemon,fetch_work_with_state,1,
                              [{file,"src/btc_coindaemon.erl"},{line,206}]},
                          {btc_coindaemon,handle_cast,2,
                              [{file,"src/btc_coindaemon.erl"},{line,150}]},
                          {gen_server,handle_msg,5,
                              [{file,"gen_server.erl"},{line,597}]},
                          {proc_lib,init_p_do_apply,3,
                              [{file,"proc_lib.erl"},{line,227}]}]}
          in function  gen_server:terminate/6 (gen_server.erl, line 737)
        ancestors: [<0.158.0>,ecoinpool_sup,<0.100.0>]
        messages: []
        links: [<0.158.0>]
        dictionary: []
        trap_exit: true
        status: running
        heap_size: 2584
        stack_size: 24
        reductions: 4215
      neighbours:
    
    =SUPERVISOR REPORT==== 8-Oct-2012::17:18:32 ===
         Supervisor: {global,
                                               ecoinpool_server_sup_1cade7e67fdab5080fab0a2afd0050c1}
         Context:    child_terminated
         Reason:     {{case_clause,{ok,"404",
                                       [{"Date","Mon, 08 Oct 2012 17:18:32 +0000"},
                                        {"Connection","close"},
                                        {"Content-Length","79"},
                                        {"Content-Type","application/json"},
                                        {"Server",
                                         "bitcoin-json-rpc/0.6.0.10-beta"}],
                                       "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                      [{btc_daemon_util,get_memory_pool,5,
                                        [{file,"src/btc_daemon_util.erl"},
                                         {line,225}]},
                       {btc_daemon_util,fetch_work,11,
                                        [{file,"src/btc_daemon_util.erl"},
                                         {line,316}]},
                       {btc_coindaemon,fetch_work_with_state,1,
                                       [{file,"src/btc_coindaemon.erl"},
                                        {line,206}]},
                       {btc_coindaemon,handle_cast,2,
                                       [{file,"src/btc_coindaemon.erl"},
                                        {line,150}]},
                       {gen_server,handle_msg,5,
                                   [{file,"gen_server.erl"},{line,597}]},
                       {proc_lib,init_p_do_apply,3,
                                 [{file,"proc_lib.erl"},{line,227}]}]}
         Offender:   [{pid,<0.232.0>},
                      {name,coindaemon},
                      {mfargs,
                          {btc_coindaemon,start_link,
                              [<<"1cade7e67fdab5080fab0a2afd0050c1">>,
                               [{pool_type,btc},
                                {host,<<"127.0.0.1">>},
                                {port,8332},
                                {user,<<"user">>},
                                {pass,<<"passwd">>},
                                {ebitcoin_client_id,
                                    <<"81c8fd55f5316039ae579bbf0900870e">>}]]}},
                      {restart_type,permanent},
                      {shutdown,5000},
                      {child_type,worker}]
    
    [17:18:32.276][daemon/warn] Bitcoin-btc CoinDaemon terminated.
    
    =ERROR REPORT==== 8-Oct-2012::17:18:32 ===
    ** Generic server <0.245.0> terminating
    ** Last message in was {'$gen_cast',post_workunit}
    ** When Server state == {state,<<"1cade7e67fdab5080fab0a2afd0050c1">>,btc,
                                "http://127.0.0.1:8332/",
                                {"user",
                                 "passwd"},
                                <<"eco">>,
                                {default,
                                    <<80,214,174,106,246,223,58,77,209,76,17,192,
                                      154,154,39,42,98,241,111,85>>},
                                undefined,<<"81c8fd55f5316039ae579bbf0900870e">>,
                                114727,118824,undefined,undefined,undefined,
                                undefined,undefined}
    ** Reason for termination ==
    ** {{case_clause,{ok,"404",
                         [{"Date","Mon, 08 Oct 2012 17:18:32 +0000"},
                          {"Connection","close"},
                          {"Content-Length","79"},
                          {"Content-Type","application/json"},
                          {"Server","bitcoin-json-rpc/0.6.0.10-beta"}],
                         "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
        [{btc_daemon_util,get_memory_pool,5,
                          [{file,"src/btc_daemon_util.erl"},{line,225}]},
         {btc_daemon_util,fetch_work,11,
                          [{file,"src/btc_daemon_util.erl"},{line,316}]},
         {btc_coindaemon,fetch_work_with_state,1,
                         [{file,"src/btc_coindaemon.erl"},{line,206}]},
         {btc_coindaemon,handle_cast,2,
                         [{file,"src/btc_coindaemon.erl"},{line,150}]},
         {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,597}]},
         {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
    
    =CRASH REPORT==== 8-Oct-2012::17:18:32 ===
      crasher:
        initial call: btc_coindaemon:init/1
        pid: <0.245.0>
        registered_name: []
        exception exit: {{case_clause,
                             {ok,"404",
                                 [{"Date","Mon, 08 Oct 2012 17:18:32 +0000"},
                                  {"Connection","close"},
                                  {"Content-Length","79"},
                                  {"Content-Type","application/json"},
                                  {"Server","bitcoin-json-rpc/0.6.0.10-beta"}],
                                 "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                         [{btc_daemon_util,get_memory_pool,5,
                              [{file,"src/btc_daemon_util.erl"},{line,225}]},
                          {btc_daemon_util,fetch_work,11,
                              [{file,"src/btc_daemon_util.erl"},{line,316}]},
                          {btc_coindaemon,fetch_work_with_state,1,
                              [{file,"src/btc_coindaemon.erl"},{line,206}]},
                          {btc_coindaemon,handle_cast,2,
                              [{file,"src/btc_coindaemon.erl"},{line,150}]},
                          {gen_server,handle_msg,5,
                              [{file,"gen_server.erl"},{line,597}]},
                          {proc_lib,init_p_do_apply,3,
                              [{file,"proc_lib.erl"},{line,227}]}]}
          in function  gen_server:terminate/6 (gen_server.erl, line 737)
        ancestors: [<0.158.0>,ecoinpool_sup,<0.100.0>]
        messages: []
        links: [<0.158.0>]
        dictionary: []
        trap_exit: true
        status: running
        heap_size: 2584
        stack_size: 24
        reductions: 4215
      neighbours:
    
    =SUPERVISOR REPORT==== 8-Oct-2012::17:18:32 ===
         Supervisor: {global,
                                               ecoinpool_server_sup_1cade7e67fdab5080fab0a2afd0050c1}
         Context:    child_terminated
         Reason:     {{case_clause,{ok,"404",
                                       [{"Date","Mon, 08 Oct 2012 17:18:32 +0000"},
                                        {"Connection","close"},
                                        {"Content-Length","79"},
                                        {"Content-Type","application/json"},
                                        {"Server",
                                         "bitcoin-json-rpc/0.6.0.10-beta"}],
                                       "{\"result\":null,\"error\":{\"code\":-32601,\"message\":\"Method not found\"},\"id\":null}\n"}},
                      [{btc_daemon_util,get_memory_pool,5,
                                        [{file,"src/btc_daemon_util.erl"},
                                         {line,225}]},
                       {btc_daemon_util,fetch_work,11,
                                        [{file,"src/btc_daemon_util.erl"},
                                         {line,316}]},
                       {btc_coindaemon,fetch_work_with_state,1,
                                       [{file,"src/btc_coindaemon.erl"},
                                        {line,206}]},
                       {btc_coindaemon,handle_cast,2,
                                       [{file,"src/btc_coindaemon.erl"},
                                        {line,150}]},
                       {gen_server,handle_msg,5,
                                   [{file,"gen_server.erl"},{line,597}]},
                       {proc_lib,init_p_do_apply,3,
                                 [{file,"proc_lib.erl"},{line,227}]}]}
         Offender:   [{pid,<0.245.0>},
                      {name,coindaemon},
                      {mfargs,
                          {btc_coindaemon,start_link,
                              [<<"1cade7e67fdab5080fab0a2afd0050c1">>,
                               [{pool_type,btc},
                                {host,<<"127.0.0.1">>},
                                {port,8332},
                                {user,<<"user">>},
                                {pass,<<"passwd">>},
                                {ebitcoin_client_id,
                                    <<"81c8fd55f5316039ae579bbf0900870e">>}]]}},
                      {restart_type,permanent},
                      {shutdown,5000},
                      {child_type,worker}]
    
    [17:18:32.277][default/warn] ecoinpool_rpc: Stopped RPC on port 8888
    
    =SUPERVISOR REPORT==== 8-Oct-2012::17:18:32 ===
         Supervisor: {global,
                                               ecoinpool_server_sup_1cade7e67fdab5080fab0a2afd0050c1}
         Context:    shutdown
         Reason:     reached_max_restart_intensity
         Offender:   [{pid,<0.245.0>},
                      {name,coindaemon},
                      {mfargs,
                          {btc_coindaemon,start_link,
                              [<<"1cade7e67fdab5080fab0a2afd0050c1">>,
                               [{pool_type,btc},
                                {host,<<"127.0.0.1">>},
                                {port,8332},
                                {user,<<"user">>},
                                {pass,<<"8passwd">>},
                                {ebitcoin_client_id,
                                    <<"81c8fd55f5316039ae579bbf0900870e">>}]]}},
                      {restart_type,permanent},
                      {shutdown,5000},
                      {child_type,worker}]
    
    [17:18:32.277][server/warn] Subpool 1cade7e67fdab5080fab0a2afd0050c1 terminated.
    [17:18:32.285][ebitcoin/warn] srae44sss: Connecting to 127.0.0.1:8333...
    [17:18:32.285][ebitcoin/warn] srae44sss: Connection established.
    [17:18:32.306][ebitcoin/warn] srae44sss: Alert received: URGENT: upgrade required, see http://bitcoin.org/dos for details






Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 09, 2012, 10:05:36 AM
Still dont know which version of bitcoin is the correct one to run ecoinpool with.
\\\\\\\\\\\\\\\\\\\\\\
EDIT:
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.3/

Obv its working, i mine on my own server.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: mu50stang on October 09, 2012, 08:02:27 PM
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
:~/ecoinpool$ ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


Can anyone help with this error.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: betatest512 on October 10, 2012, 02:47:25 AM
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
:~/ecoinpool$ ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


Can anyone help with this error.


can you provide your test_launch.config file so i can help


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 10, 2012, 08:46:30 AM
He already has the solution, just did not post it here..  ;D


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: betatest512 on October 10, 2012, 09:43:47 AM
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
:~/ecoinpool$ ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


Can anyone help with this error.


this is my test_launch.config file just change the line's i have uncomment'ed to your setting's

Code:

% This is an example configuration file. Lists are denoted with [...] and tuples
% are denoted with {...}. Together they form a nested structure of names and
% parameters. If you make changes and add or remove options, make sure not to
% have a comma before a closing bracket or curly brace.

[
    % SASL is Erlang's internal error and crash logger; it also logs starting
    % and stopping of certain processes. I set it to "error" here so it won't
    % pollute stdout/stderr.
    {sasl, [
        {errlog_type, error}
    ]},
   
    % This is ecoinpool's main configuration. The CouchDB connection is
    % configured here.
    {ecoinpool, [
        % The following commented lines are default settings.
        {db_host, "127.0.0.1"},
        % {db_port, 5984},
        % {db_prefix, ""},
       
        % The next line should be changed, depending on your CouchDB
        % authentication settings: username password
        {db_options, [{basic_auth, {"admin", "adminpassword"}}]},
       
        % Here you can change ecoinpool's HTTP service port, currently used to
        % serve global RPC functions used by the frontend.
        % {service_port, 8080},
       
        % The last line in this section contains your blowfish secret key, share
        % this among your servers and don't tell it to anyone else. Minimum key
        % length is 4 bytes, maximum is 56 bytes.
        % If you have pwgen (a password generator), try "pwgen -s 56 1" to get
        % 56 random characters.
        {blowfish_secret, "1a2a3a4a5a"}
    ]},
   
    % This is the ebitcoin configuration. ebitcoin forms a separate application,
    % thus it doesn't share ecoinpool's database settings. If you use the same
    % CouchDB server and authentication, copy it from above.
    {ebitcoin, [
        % You can also disable ebitcoin altogether by uncommenting the following
        % line. Note that you will fall back to the polling system then.
        %{enabled, false},
       
        {db_host, "127.0.0.1"},
        % {db_port, 5984},
        % {db_prefix, ""},
        {db_options, [{basic_auth, {"admin", "adminpassword"}}]}
    ]},
   
    % The third separate application (it also has to be started separately) is
    % the MySQL Replicator. It is used to bridge legacy MySQL worker tables to
    % CouchDB and also stores copies of the shares into a MySQL table.
    {ecoinpool_mysql_replicator, [
        % Again, commented lines are default settings.
        {couchdb_host, "127.0.0.1"},
        %{couchdb_port, 5984},
        %{couchdb_prefix, ""},
        {couchdb_options, [{basic_auth, {"admin", "adminpassword"}}]},
        {couchdb_database, "ecoinpool"},
       
        %{mysql_host, "127.0.0.1"},
        %{mysql_port, 3306},
        %{mysql_prefix, ""},
        {mysql_options, [{auth, {"admin", "adminpassword"}}]},
        {mysql_database, "ecoinpool"},
       
        % This is a setting that certainly has to be changed. Configure one or
        % more worker table replicators here (if you have multiple sub-pools).
        % Please only connect one sub-pool to one table or things get jammed up.
        {replicator_configs, [
             %Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
        ]},
       
        % Next is your blowfish secret key. Copy it from above.
        {blowfish_secret, "1a2a3a4a5a"},
       
        % And the last one, also to be likely changed, is the shares deployer
        % configuration. There are two possible formats here, one with and one
        % without using merged mining. The config ID is used as basename for
        % saving the deployment state file and for the "source" column.
        {share_deployer_configs, [
            % Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"ltc_test_shares", "ltc-test", "shares", 60},
            % MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
            {"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
        ]}
    ]}
].



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: mu50stang on October 10, 2012, 02:05:13 PM
I still can't get it to work with the suggested changes.  Is anyone interested in setting this up for a bounty.



Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: OgStar on October 14, 2012, 09:18:49 PM
I still can't get it to work with the suggested changes.  Is anyone interested in setting this up for a bounty.



If you want to give someone a bounty to fix your error, give it to maaku. He gave this solution, that worked for me and for slippsnapp:

Code:
{sub_dirs, ["apps/ecoinpool", "apps/ebitcoin", "rel"]}.

{deps, [
    {protobuffs, ".*", {git, "git://github.com/basho/erlang_protobuffs.git", "e0f5f6ea4c3dcb4e7b824496d2b48333fbd5a8c8"}},
    {ejson, ".*", {git, "git://github.com/benoitc/ejson.git", "820ff1725008e664293b88e13c16193857afc072"}},
    {oauth, ".*", {git, "git://github.com/refuge/erlang-oauth.git", "f332b77371d334d0faa13e106d0c36f948b325b6"}},
    {ibrowse, ".*", {git, "git://github.com/cmullaparthi/ibrowse.git", "eb8b62cf84ccae141700c8fd251277df8be27f28"}},
    {mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", "b7f3693a9008de6d31a67174f7184fe24093a1b4"}},
    {couchbeam, ".*", {git, "git://github.com/benoitc/couchbeam.git", "7148bbdb19aca91b7b74e5392a23c94d33ca4e27"}},
    {log4erl, ".*", {git, "git://github.com/SemanticSugar/log4erl.git", "ec580f75ef9e28dfcfac92dc0d42c435520bd3d7"}},
    {mysql, ".*", {git, "git://github.com/elbrujohalcon/erlang-mysql-driver.git", "1dd4e22a80546fa1bda81607d6397a549fd791ae"}},
    {epgsql, ".*", {git, "git://github.com/wg/epgsql.git", "fc434772276475ac4e5b0bed6b18ed4732502156"}}
]}.

Backup your test_launch.config, delete the whole ecoinpool directory, change the dependencies in rebar.config to the aboves, and run:
Code:
$ ./rebar get-deps && ./rebar compile
This error we were getting happens because of incompatible dependencies. It was getting the master branch of everything, and ecoinpool was designed almost an year ago, so maaku changed the dependencies of everything in his rebar.config to someday close to when ecoinpool was designed.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: hashking on October 29, 2012, 02:27:03 AM
Has anyone been able to setup the included website with ecoinpool. 


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on October 29, 2012, 02:38:20 PM
Yes, its working, you got to compile it.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: tvasconcelos on November 13, 2012, 12:22:12 PM
Hi, i got it all running, but i'm facing a couple of problems.
I'm running linux on a VM Virtualbox, i installed everything but now i get this message:

[default/warn] ecoinpool_rpc: Stopped RPC on port 3333
[server/warn] Subpool 57dc82dcaab734d3436fe29287004bc0 terminated.

And, maybe because of that i can't add a worker. I'd like to be able to access the VM by the host machine and test with cgminer to see if it's running but can't connect. Can someone tell me what i'm doing wrong?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on November 19, 2012, 06:56:43 PM
I had to reinstall the server for the final setup and now i get a no db file error when creating a worker.
Anybody an idea what causes this?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: mich on December 09, 2012, 05:14:48 PM
Hi! Server has been installed, all working fine except one problem - ecoinpool does not write shares into MySql table. With `pool_worker` it working good. May be I using wrong table shares' structure? I try from pushpool and poolserverJ - in both cases result is negative. test_launch_mysql_replicator in log got columns of table shares and then works with pool_worker only.
And second question - where I can edit shares difficulty (for litecoin)?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: tvasconcelos on December 10, 2012, 06:28:17 PM
Hey mich, i'm stuck at the replicator, how did you manage to replicate users to mysql? When i start the replicator it crashes...


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: mich on December 11, 2012, 10:18:28 AM
Hey mich, i'm stuck at the replicator, how did you manage to replicate users to mysql? When i start the replicator it crashes...
I've copy from subtool ID (left bottom corner) to config file
Code:
  % Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
            {"da15293f5a1a3c7e88e04e8338c5073e", "pool_worker", 15}
ID is da15293f5a1a3c7e88e04e8338c5073e


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: tvasconcelos on December 11, 2012, 12:18:38 PM
Ok, thatīs the subpool Id, the internal name ecoinpool gives the subpool. But already had the mysql database and tables created? And what info does the couchdb passes to mysql?

My idea was to use a php frontend with ecoinpool, but with no success. Also couchdb share database grows a lot, and i have limited space. It was good if couchdb could pass data to mysql and the erase what passed on. Or after no long needed, couch db discarded data. Like shares, when a block is found, just discard the documents.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: mich on December 11, 2012, 02:54:58 PM
Ok, thatīs the subpool Id, the internal name ecoinpool gives the subpool. But already had the mysql database and tables created? And what info does the couchdb passes to mysql?
couchdb makes copy of pool_worker table with encrypted data and trigger on change of pool_worker. Any times per minute takes data from that table.
Quote
My idea was to use a php frontend with ecoinpool, but with no success. Also couchdb share database grows a lot, and i have limited space. It was good if couchdb could pass data to mysql and the erase what passed on. Or after no long needed, couch db discarded data. Like shares, when a block is found, just discard the documents.
I dont know how to do it. Seems couchdb compact itselves after reach some volume.
And my problem is very high usage of CPU by couchdb process.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: martychubbs on December 12, 2012, 03:51:18 PM
Anyone share their fronted with me? or point me a direction to a repository Thanks!!!


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: sippsnapp on December 13, 2012, 05:41:18 PM
Hi guys,
was abroad busy and had to lay down all pool projects, today i just start over againbut for some reson eloipool does not work right now, so im back to ecoin.

Ill try to get the mysql thing working. Is ecoinpool automatically creating the tables?

Which bitcoin version you guys use, is there a mod for the most up to date bitcoin so that we dont have to use some ancient version?

regards.,

EDIT: i get a strange error in couchdb An error occurred accessing the view: missing


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: joshstandalone on December 17, 2012, 11:41:17 PM
I just started it, some thinks still confusing, but il give a report about all, since i have miners waiting for it, i am not happy with old software.
Can you explain me how payout thinks works, it send shares and pays from confirmed shares or ?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: joshstandalone on December 18, 2012, 01:36:46 AM
All works fine, but when i click on activate subpool

http://pastebin.com/g1XE6Wj1

here is what happends
i tryed many times with variable options what Tittiez said.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Pontius on December 18, 2012, 07:20:11 AM
All works fine, but when i click on activate subpool

http://pastebin.com/g1XE6Wj1

here is what happends
i tryed many times with variable options what Tittiez said.

ecoinpool won't work with bitcoind >= 0.7 (as getmemorypool has been removed), use bitcoind 0.6.3.

Anyway you should reconsider your software choice as ecoinpool

  • seems unmaintained (last activity on github was 10 months ago)
  • cannot deal with recent bitcoind (see above)
  • will break when v2 blocks become mandatory (https://en.bitcoin.it/wiki/BIP_0034)
  • doesn't support neither Stratum nor GBT

http://blog.itil.org/wp-content/uploads/2012/12/flogging_dead_horse_what.jpg


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: joshstandalone on December 18, 2012, 04:37:36 PM
Thanks a lot for help!

It is very sad because this ecoinpool for me seems to be best one, and i feel very bad that it dont works :(
i would like that owner work on it and fix this issues.


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: arruah on April 04, 2013, 05:12:46 AM
hi. i've error when a try to start

root@feinman:~/ltc/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
src/abstract_coindaemon.erl:26: parameterized modules are no longer supported
src/abstract_coindaemon.erl:44: variable 'M' is unbound
src/abstract_coindaemon.erl:47: variable 'M' is unbound
src/abstract_coindaemon.erl:50: variable 'M' is unbound
src/abstract_coindaemon.erl:53: variable 'M' is unbound
src/abstract_coindaemon.erl:56: variable 'M' is unbound
src/abstract_coindaemon.erl:59: variable 'M' is unbound
src/abstract_coindaemon.erl:62: variable 'M' is unbound
src/abstract_coindaemon.erl:62: variable 'PID' is unbound
src/abstract_coindaemon.erl:65: variable 'M' is unbound
src/abstract_coindaemon.erl:65: variable 'PID' is unbound
src/abstract_coindaemon.erl:68: variable 'M' is unbound
src/abstract_coindaemon.erl:68: variable 'PID' is unbound
src/abstract_coindaemon.erl:71: variable 'M' is unbound
src/abstract_coindaemon.erl:71: variable 'PID' is unbound
src/abstract_coindaemon.erl:74: variable 'M' is unbound
src/abstract_coindaemon.erl:78: variable 'PID' is unbound
src/abstract_coindaemon.erl:79: variable 'THIS' is unbound
src/abstract_coindaemon.erl:81: variable 'M' is unbound


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: arruah on April 05, 2013, 06:41:45 AM
So that error now

root@feinman:~/ltc/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9.3.1  (abort with ^G)
(ecoinpool_test@feinman)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Keninishna on April 06, 2013, 11:40:12 PM
So that error now

root@feinman:~/ltc/ecoinpool# ./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9.3.1  (abort with ^G)
(ecoinpool_test@feinman)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

[/quote

I get this same exact error, any workaround?


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: Nimbulan on April 12, 2013, 03:33:52 PM
./test_launch.sh
==> ecoinpool (compile)
==> ebitcoin (compile)
==> rel (compile)
==> ecoinpool (compile)
Erlang R15B (erts-5.9) [source] [64-bit] [smp:32:24] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.9  (abort with ^G)
(ecoinpool_test@s869)1> {"init terminating in do_boot",{{badmatch,{error,{shutdown,{ebitcoin_app,start,[normal,[]]}}}},[{ecoinpool_test_launch,start,0,[{file,"src/ecoinpool_test_launch.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


what its bad? can where help me


Title: Re: [ANNOUNCE] ecoinpool - A brand new pool mining software written in Erlang
Post by: nemercry on June 16, 2013, 10:55:50 AM
PLEASE DO NOT USE THIS SOFTWARE ANYMORE

It appears that there are no more updates for a long time. It would be extremely dangerous to open a Pool with this kind of Software.