UNOMP / unified-node-open-mining-portal

Development stopped and is now unsupported. The node.js version is being deprecated in October 2016.
GNU General Public License v2.0
347 stars 396 forks source link

miner says stratum not avail.. #83

Closed justinvforvendetta closed 8 years ago

justinvforvendetta commented 8 years ago

i put my ip for host as well as stratum host in the config.json.. heres what im getting: (btw im using a bitcoin clone (latest source), that is currently not mined at all yet, still at block 0)

newcoin@newcoin-firstnode:~/unomp# node init.js [2016-01-20 00:16:37.159] [INFO] [default] - New Relic [2016-01-20 00:16:37.163] [DEBUG] [default] - NewRelic Monitor New Relic initiated [2016-01-20 00:16:37.166] [INFO] [default] - POSIX Not Installed [2016-01-20 00:16:37.166] [DEBUG] [default] - POSIX Connection Limit (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised [2016-01-20 00:16:37.166] [INFO] [default] - Run Workers [2016-01-20 00:16:37.432] [DEBUG] [default] - Master PoolSpawner Spawned 1 pool(s) on 1 thread(s) [2016-01-20 00:16:38.078] [INFO] [default] - New Relic [2016-01-20 00:16:38.083] [INFO] [default] - POSIX Not Installed [2016-01-20 00:16:38.084] [INFO] [default] - Run Workers [2016-01-20 00:16:38.096] [INFO] [default] - Switching Setup Thread 1 Loading last proxy state from redis [2016-01-20 00:16:38.112] [DEBUG] [default] - Pool newcoin Thread 1 Share processing setup with redis (127.0.0.1:6379) [2016-01-20 00:16:38.121] [DEBUG] [default] - Pool newcoin Thread 1 Daemon is still syncing with network (download blockchain) - server will be started once synced [2016-01-20 00:16:38.125] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:16:43.132] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:16:47.189] [DEBUG] [default] - Master CLI CLI listening on port 17117 [2016-01-20 00:16:48.137] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:16:48.469] [INFO] [default] - New Relic [2016-01-20 00:16:48.472] [INFO] [default] - New Relic [2016-01-20 00:16:48.481] [INFO] [default] - POSIX Not Installed [2016-01-20 00:16:48.482] [INFO] [default] - Run Workers [2016-01-20 00:16:48.483] [INFO] [default] - POSIX Not Installed [2016-01-20 00:16:48.484] [INFO] [default] - Run Workers [2016-01-20 00:16:48.530] [DEBUG] [default] - Payments newcoin Payment processing setup to run every 600 second(s) with daemon (rpcuser@127.0.0.1:8288) and redis (127.0.0.1:6379) [2016-01-20 00:16:48.581] [DEBUG] [default] - Website Server Website started on pool.box.ip.address:80 [2016-01-20 00:16:53.146] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:16:58.154] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:17:03.161] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:17:08.165] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers [2016-01-20 00:17:13.172] [DEBUG] [default] - Pool newcoin Thread 1 Downloaded NaN% of blockchain from 2 peers

console looks fine, except it seems that it is thinking it still needs to download the blockchain even though its still at block 0. remote miner reads that the stratum is not open.

sigwo commented 8 years ago

Coin issue, not a pool issue. You must sync the blockchain.

Infernoman commented 8 years ago

to expand on that slightly, the last block minted needs to be less than 15 minutes ago, if you have a new coin, start the chain with a cpu or gpu miner, then turn unomp on after you find the first few blocks.

justinvforvendetta commented 8 years ago

@Infernoman yeah i realized this.. the only issue im having now, is that since its an SHA256 algo, cpuminer wont work because it cant parse the work, due to the json rpc 1.0, and bitcoin spits work out at 2.0.. so i've ordered a small asic.. didnt realize that change took place with btc.. thanks for the responses though @sigwo and @Infernoman =]

russnes commented 6 years ago

Sorry to comment on an old and closed issue, but from what you're saying @Infernoman that the last block needs to be less than 15 minutes ago - would that mean that if the blockchain lags behind for more than 15 minutes, the UNOMP based pool would stop working?

George55555 commented 6 years ago

Is there a way to increse this 15 mins time limit?

phantanthanh1996 commented 6 years ago

So could anyone pls tell me how to fix it?

justinvforvendetta commented 6 years ago

@phantqnthanh1996 are you starting from block 0?

phantanthanh1996 commented 6 years ago

Hi Mr. @justinvforvendetta , yes, I am starting from block 0. Could you pls help me, sir? :)

phantanthanh1996 commented 6 years ago

I am clone new coin from PIVX so can't mine directly. So I use unomp to create pool and mine but when I start pool, It notify that Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers

This is all: New Relic [2018-03-21 07:44:51.147] [DEBUG] [default] - NewRelic Monitor New Relic initiated [2018-03-21 07:44:51.153] [INFO] [default] - POSIX Not Installed [2018-03-21 07:44:51.153] [DEBUG] [default] - POSIX Connection Limit (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised [2018-03-21 07:44:51.153] [INFO] [default] - Run Workers [2018-03-21 07:44:51.418] [DEBUG] [default] - Master PoolSpawner Spawned 1 pool(s) on 1 thread(s) [2018-03-21 07:44:51.912] [INFO] [default] - New Relic [2018-03-21 07:44:51.918] [INFO] [default] - POSIX Not Installed [2018-03-21 07:44:51.920] [INFO] [default] - Run Workers [2018-03-21 07:44:51.940] [INFO] [default] - Switching Setup Thread 1 Loading last proxy state from redis [2018-03-21 07:44:51.968] [DEBUG] [default] - Pool pivxcoin Thread 1 Share processing setup with redis (127.0.0.1:6379) [2018-03-21 07:44:51.985] [DEBUG] [default] - Pool pivxcoin Thread 1 Daemon is still syncing with network (download blockchain) - server will be started once synced [2018-03-21 07:44:51.992] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:44:56.996] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:01.187] [DEBUG] [default] - Master CLI CLI listening on port 17117 [2018-03-21 07:45:02.011] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:02.585] [INFO] [default] - New Relic [2018-03-21 07:45:02.584] [INFO] [default] - New Relic [2018-03-21 07:45:02.592] [INFO] [default] - POSIX Not Installed [2018-03-21 07:45:02.593] [INFO] [default] - Run Workers [2018-03-21 07:45:02.592] [INFO] [default] - POSIX Not Installed [2018-03-21 07:45:02.593] [INFO] [default] - Run Workers [2018-03-21 07:45:02.629] [DEBUG] [default] - Payments pivxcoin Payment processing setup to run every 10 second(s) with daemon (client@127.0.0.1:7766) and redis (127.0.0.1:6379) [2018-03-21 07:45:02.668] [DEBUG] [default] - Website Server Website started on 209.250.239.148:8080 [2018-03-21 07:45:07.008] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:12.023] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:17.020] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:22.027] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:27.033] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:32.046] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:37.049] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:42.059] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:47.063] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:52.070] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:45:57.079] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:46:02.084] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:46:02.737] [INFO] [default] - Payments pivxcoin addressAccount: [2018-03-21 07:46:02.737] [INFO] [default] - Payments pivxcoin [2018-03-21 07:46:02.738] [INFO] [default] - Payments pivxcoin addressAmounts: [2018-03-21 07:46:02.738] [INFO] [default] - Payments pivxcoin {} [2018-03-21 07:46:02.740] [DEBUG] [default] - Payments pivxcoin Finished interval - time spent: 60011ms total, 1ms redis, 3ms daemon RPC [2018-03-21 07:46:07.090] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:46:12.097] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:46:12.639] [INFO] [default] - Payments pivxcoin addressAccount: [2018-03-21 07:46:12.640] [INFO] [default] - Payments pivxcoin [2018-03-21 07:46:12.640] [INFO] [default] - Payments pivxcoin addressAmounts: [2018-03-21 07:46:12.640] [INFO] [default] - Payments pivxcoin {} [2018-03-21 07:46:12.641] [DEBUG] [default] - Payments pivxcoin Finished interval - time spent: 60013ms total, 1ms redis, 3ms daemon RPC [2018-03-21 07:46:17.103] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers [2018-03-21 07:46:22.109] [DEBUG] [default] - Pool pivxcoin Thread 1 Downloaded NaN% of blockchain from 1 peers

Lesther993 commented 6 years ago

I'm having the same issue with block 0. Please, help!! @justinvforvendetta

Lesther993 commented 6 years ago

@phantanthanh1996 Could you solve the issue?

phantanthanh1996 commented 6 years ago

I think maybe about source.

nohea commented 6 years ago

I had this problem. You can fix it in your *coind code if you can call the getblocktemplate rpc call without error. If you can disable this error while on block 0 it will work with UNOMP. Then you can put it back after the blocks 1+ are mined.