okay thank you, a full debug log file may help better.
The BTC daemon is still not synced, but the alpha 5 version enabled the BTC pool, while occasionally complaining of time-outs from the daemon.
The web-bindings version, does not enable the BTC pool at all. Here are my config file and the logs:
bitcoin.json
{
# detailed sample config file for pool which explicility sets all settings.
"enabled": true,
# -------------------------------
# Coin configuration
# -------------------------------
# coin: name of the coin configuration file that should exist in config/coins/.
"coin": "bitcoin.json",
# -------------------------------
# Coin Daemon RPC Connection
# -------------------------------
# host: ip/hostname of coin-daemon.
# port: the port coin daemon is listening on.
# username: username for rpc connection.
# password: password for rpc connection.
"daemon": {
"host": "127.0.0.1",
"port": 8388,
"username": "removed",
"password": "removed"
},
# -------------------------------
# Meta Configuration
# -------------------------------
# motd: message of the day.
# txMessage: message to be included used within generation transactions.
"meta": {
"motd": "Welcome to CoiniumServ pool, enjoy your stay! - http://www.coiniumserv.com",
"txMessage": "http://www.coiniumserv.com/"
},
# -------------------------------
# Wallet & Rewards Configuration
# -------------------------------
# address: generated coins will arrive here.
"wallet" : {
"address": "1QGWCNk7oDYTJKYkCgBB4tuJCyav1LS7Kg"
},
# rewards: list of addresses that gets a percentage from each mined block (ie, pool fee.)
"rewards": [
{"1QGWCNk7oDYTJKYkCgBB4tuJCyav1LS7Kg": 1}
],
# -------------------------------
# Payment Processing Configuration
# -------------------------------
# enabled: set this true to let CoiniumServ handle the payments, false if you would like some other software like mpos to handle them.
# interval: interval in seconds that payment-processor will be running.
# minimum: minimum amount of coins before a miner is eligable for getting a payment.
"payments": {
"enabled": true,
"interval": 60,
"minimum": 0.002
},
# -------------------------------
# Miner Configuration
# -------------------------------
# validateUsername: set true to validate miner usernames as an addresses against the coin daemon.
# timeout: timeout in seconds to disconnect miners that did not submit any shares for the period.
"miner": {
"validateUsername": true,
"timeout": 300
},
# -------------------------------
# Job Manager Configuration
# -------------------------------
# blockRefresh: timeout in miliseconds to poll coin daemon for a new block.
# rebroadcast: if now new blocks are found in this many seconds, a new job will be created and broadcasted.
"job": {
"blockRefreshInterval": 1000,
"rebroadcastTimeout": 55
},
# -------------------------------
# Stratum Server Configuration
# -------------------------------
# stratum:
# enabled: set this true to enable stratum server.
# bind: interface to bind stratum server.
# port: port to listen for stratum connections.
# diff: default difficulty assigned to newly connected miners.
# vardiff:
# enabled: set this true to enable variable-difficulty support.
# minDiff: minimum difficulty that can be assigned to miners.
# maxDiff: maximum difficulty that can be assigned to miners.
# targetTime: try to get a single share per this many seconds from miner.
# retargetTime: retarget a miners difficulty ever this many seconds.
# variancePercent: allow difficulty for a miner to vary this percent without retargeting.
"stratum": {
"enabled": true,
"bind": "0.0.0.0",
"port": 3333,
"diff": 16,
"vardiff": {
"enabled": true,
"minDiff": 8,
"maxDiff": 512,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 30
}
},
# -------------------------------
# Ban Configuration
# -------------------------------
# you can ban miners which submits invalid work / data to reduce system/network load.
# enabled: set this true to enable banning support.
# duration: duration of ban when a miner gets flagged for so.
# invalidPercent: percentage of invalid shares to trigger a ban.
# checkThreshold: number of shares required before a miner's shares are considered for a ban.
# purgeInterval: purge interval in seconds that bans are checked to see if they are expired.
"banning": {
"enabled": true,
"duration": 600,
"invalidPercent": 50,
"checkThreshold": 100,
"purgeInterval": 300
},
# -------------------------------
# Per-pool Storage Configuration
# -------------------------------
# hybrid storage layer
# enabled: set this true to enable hybrid storage mode where redis and mysql is used together.
# mpos layer
# enabled: set this true to enable mpos compatibility mode - make sure to internal disable payment-processor!
# redis
# host: redis host.
# port: redis port.
# password: set the password if your redis installation requires one.
# databaseId: redis database instance id (optional)
# mysql
# host: database host.
# port: database port.
# username: username for connecting the database.
# password: password for connecting the database.
# database: database name.
"storage": {
"hybrid": {
"enabled": true,
"redis": {
"host": "127.0.0.1",
"port": 6379,
"password": "removed",
"databaseId": 0
},
"mysql": {
"host": "127.0.0.1",
"port": 3306,
"user": "removed",
"password": "removed",
"database": "bitcoin"
}
},
"mpos": {
"enabled": false,
"mysql": {
"host": "127.0.0.1",
"port": 3306,
"user": "username",
"password": "password",
"database": "db-name"
}
}
},
# -------------------------------
# Getwork Server Configuration
# -------------------------------
# EXPERIMENTAL!; This feature is still in development and not complete yet.
# enabled: Set this true to enable getwork server.
# bind: interface to bind getwork server.
# port: port to listen for getwork connections.
"vanilla": {
"enabled": false,
"bind": "localhost",
"port": 2223
}
}
config.json
{
# -------------------------------
# Stack Configuration
# -------------------------------
# name: name of the pool stack.
"stack": {
"name": "ArtBatista.com"
},
# -------------------------------
# Statistics Configuration
# -------------------------------
# updateInterval: interval for recaching statistics.
# hashrateWindow: how many seconds worth of shares should be gathered to generate hashrate.
"statistics": {
"updateInterval": 60,
"hashrateWindow": 120
},
# -------------------------------
# Website Configuration
# -------------------------------
# enabled: set this true to enable frontend.
# bind: interface to bind webserver.
# port: port to listen for http connections.
# backend:
# enabled: set this true to enable admin backend.
# password: password for enabling administrator
"website": {
"enabled": true,
"bind": "",
"port": 80,
"backend" : {
"metrics": {
"enabled": false
}
}
},
# -------------------------------
# Logging Configuration
# -------------------------------
# root: relative path of logs.
# targets: log targets.
# target:
# enabled: is the log target enabled?
# type: console, file or packet.
# filename: filename of the log file.
# rolling: set this true to get a seperate log file for every day.
# level: minimum log level.
# logging configuration
"logging": {
"root": "logs",
"targets": [
{
"enabled": true,
"type": "console",
"level": "debug"
},
{
"enabled": true,
"type": "file",
"filename": "server.log",
"rolling": false,
"level": "information"
},
{
"enabled": true,
"type": "file",
"filename": "debug.log",
"rolling": false,
"level": "verbose"
},
{
"enabled": true,
"type": "packet",
"filename": "packet.log",
"rolling": false,
"level": "verbose"
}
]
}
}
debug.log, I waited a while on this one, but there was not BTC pool activity
09/08/2014 22:35:55 -04:00 [Information] [Program] [global] CoiniumServ Piri Reis 0.1.5.24989 warming-up..
09/08/2014 22:35:55 -04:00 [Information] [PlatformManager] [global] Running over .Net, framework: 4.5 (v4.0.30319.34014).
09/08/2014 22:35:55 -04:00 [Debug] [ConfigManager] [global] Discovering enabled pool configs..
09/08/2014 22:35:56 -04:00 [Information] [ConfigManager] [global] Discovered a total of 1 enabled pool configurations: [Bitcoin]
09/08/2014 22:35:56 -04:00 [Debug] [Pool] [Bitcoin] Generated cryptographically random instance Id: 731018519
09/08/2014 22:35:57 -04:00 [Information] [NetworkInfo] [Bitcoin] symbol: BTC algorithm: sha256 version: 90201 protocol: 70002 wallet: 60000 network difficulty: 3815723798.81463000 block difficulty: 3815723798.81 network hashrate: 31.78 PH/s network: mainnet peers: 20 blocks: 289829 errors: none
09/08/2014 22:35:57 -04:00 [Information] [MySqlProvider] [Bitcoin] Mysql storage initialized: 127.0.0.1:3306, database: bitcoin.
09/08/2014 22:35:57 -04:00 [Information] [RedisProvider] [Bitcoin] Redis storage initialized: 127.0.0.1:6379, v2.8.14.
09/08/2014 22:35:57 -04:00 [Error] [Pool] [Bitcoin] Error initializing pool; Unable to resolve type: CoiniumServ.Persistance.Layers.Hybrid.IMigrationManager
09/08/2014 22:35:58 -04:00 [Debug] [StatisticsManager] [global] Recached statistics - took 0.100 seconds
09/08/2014 22:35:58 -04:00 [Information] [HttpServer] [global] Web-server listening on: http://localhost/
packet.log
09/08/2014 22:35:56 -04:00 [Verbose] [DaemonClient] [Bitcoin] tx: "{
'method' : 'getinfo',
'params' : [
],
'id' : 0
}"
09/08/2014 22:35:56 -04:00 [Verbose] [DaemonClient] [Bitcoin] rx: "{
'result' : {
'version' : 90201,
'protocolversion' : 70002,
'walletversion' : 60000,
'balance' : 0.00000000,
'blocks' : 289829,
'timeoffset' : -1,
'connections' : 20,
'proxy' : '',
'difficulty' : 3815723798.81463000,
'testnet' : false,
'keypoololdest' : 1410119942,
'keypoolsize' : 101,
'paytxfee' : 0.00010000,
'relayfee' : 0.00001000,
'errors' : ''
},
'error' : null,
'id' : 0
}"
09/08/2014 22:35:57 -04:00 [Verbose] [DaemonClient] [Bitcoin] tx: "{
'method' : 'getmininginfo',
'params' : [
],
'id' : 1
}"
09/08/2014 22:35:57 -04:00 [Verbose] [DaemonClient] [Bitcoin] rx: "{
'result' : {
'blocks' : 289829,
'currentblocksize' : 81761,
'currentblocktx' : 69,
'difficulty' : 3815723798.81463000,
'errors' : '',
'genproclimit' : -1,
'networkhashps' : 31780470568310748,
'pooledtx' : 160,
'testnet' : false,
'generate' : false,
'hashespersec' : 0
},
'error' : null,
'id' : 1
}"
09/08/2014 22:35:57 -04:00 [Verbose] [DaemonClient] [Bitcoin] tx: "{
'method' : 'getdifficulty',
'params' : [
],
'id' : 2
}"
09/08/2014 22:35:57 -04:00 [Verbose] [DaemonClient] [Bitcoin] rx: "{
'result' : 3815723798.81463000,
'error' : null,
'id' : 2
}"
server.log
09/08/2014 22:35:55 -04:00 [Information] [Program] [global] CoiniumServ Piri Reis 0.1.5.24989 warming-up..
09/08/2014 22:35:55 -04:00 [Information] [PlatformManager] [global] Running over .Net, framework: 4.5 (v4.0.30319.34014).
09/08/2014 22:35:56 -04:00 [Information] [ConfigManager] [global] Discovered a total of 1 enabled pool configurations: [Bitcoin]
09/08/2014 22:35:57 -04:00 [Information] [NetworkInfo] [Bitcoin] symbol: BTC algorithm: sha256 version: 90201 protocol: 70002 wallet: 60000 network difficulty: 3815723798.81463000 block difficulty: 3815723798.81 network hashrate: 31.78 PH/s network: mainnet peers: 20 blocks: 289829 errors: none
09/08/2014 22:35:57 -04:00 [Information] [MySqlProvider] [Bitcoin] Mysql storage initialized: 127.0.0.1:3306, database: bitcoin.
09/08/2014 22:35:57 -04:00 [Information] [RedisProvider] [Bitcoin] Redis storage initialized: 127.0.0.1:6379, v2.8.14.
09/08/2014 22:35:57 -04:00 [Error] [Pool] [Bitcoin] Error initializing pool; Unable to resolve type: CoiniumServ.Persistance.Layers.Hybrid.IMigrationManager
09/08/2014 22:35:58 -04:00 [Information] [HttpServer] [global] Web-server listening on: http://localhost/
The "CoiniumServ.Persistance.Layers.Hybrid.IMigrationManager" error does not occur in the alpha 5 version.
Something else of note, this version would not build because the csredis dependencies directory was empty. I had to copy that from the alpha 5 version. I guess GitHUb does not package them with the zip file, just a blank directory in place of csredis directory.
Finally, the web site works flawlessly in this version, I have tried to find a scenario where I can't connect via browser, but so far I have not seen a problem.
Let me know if I can do more.
Art