-
-
Notifications
You must be signed in to change notification settings - Fork 683
Waiting for daemons to come online #362
Comments
you need to allow docker ip to connect to coin daemon |
@21void mhh i have :( |
and what ip do you use to connect to coin daemon? don't tell me it is 127.0.0.1 :) |
Thanks for the tip with the "curl".... I change in config.json the ip for deamon to public ip from my host. And now its runs. |
@21void How can I access the API Ip from outside? |
@montymotz if you want to access from outside, you need to publish port at docker, port forwarding at your router. |
@calvintam236 No. The Docker runs on a Dedicated Server with Public IP. |
@montymotz What port did you set API on? Did you add |
docker run -v /home/miningcore:/miningcore -d --name calvin_miningcore -p 3062:3062 -p 4000:4000 calvintam236/miningcore:x86_64 -c /miningcore/config.json and ccminer says: Stratum connection failed: Failed to connect to x.x.x.x port 3062: Connection refused |
@montymotz this command should work, and if you still have problems, something is not right at |
@calvintam236 in config is the listen ip 0.0.0.0. That should be right? curls says:
|
@montymotz It is correct for 0.0.0.0. You should test on port 4000, not 80 per your setting. |
@calvintam236 on port 4000 the same problem.
|
@montymotz Please attach |
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6b9ee5d1ae19 calvintam236/miningcore:x86_64 "dotnet /usr/local/m…" 4 minutes ago Up 4 minutes 0.0.0.0:3062->3062/tcp, 0.0.0.0:4000->80/tcp calvin_miningcore
2a2becaefc26 coinfoundry/miningcore-docker "/bin/sh -c 'dotnet …" 4 days ago Exited (137) 7 h ours ago dash-deamon
ef516df7bb85 portainer/portainer "/portainer" 7 days ago Up 7 days 0.0.0.0:9050->9000/tcp cranky_euler
f14ff9dd6bcd d288120f70c0 "/assets/wrapper" 5 months ago Up 5 months (hea lthy) 443/tcp, 0.0.0.0:2289->22/tcp, 0.0.0.0:8929->80/tcp gitlab
0b38174704f0 nextcloud:12-apache "/entrypoint.sh apac…" 5 months ago Up 5 months 127.0.0.1:32768->80/tcp nextcloud
d3e93a3725ff postgres:10.1-alpine "docker-entrypoint.s…" 5 months ago Up 5 months 5432/tcp postgres config.json: {
"logging": {
"level": "info",
"enableConsoleLog": true,
"enableConsoleColors": true,
"logFile": "",
"logBaseDirectory": "",
"perPoolLogFile": false
},
"banning": {
"manager": "integrated",
"banOnJunkReceive": true,
"banOnInvalidShares": false
},
"notifications": {
"enabled": true,
"email": {
"host": "smtp.example.com",
"port": 587,
"user": "user",
"password": "password",
"fromAddress": "info@yourpool.org",
"fromName": "support"
},
"admin": {
"enabled": false,
"emailAddress": "user@example.com",
"notifyBlockFound": true
}
},
"persistence": {
"postgres": {
"host": "148.x.x.x", <- My Public IP
"port": 5432,
"user": "xxxx",
"password": "xxxx",
"database": "miningcore"
}
},
"paymentProcessing": {
"enabled": true,
"interval": 600,
"shareRecoveryFile": "recovered-shares.txt"
},
"pools": [{
"id": "dash1",
"enabled": true,
"coin": {
"type": "DASH"
},
"address": "xxxxx",
"rewardRecipients": [{
"address": "xxxx",
"percentage": 0
}],
"blockRefreshInterval": 500,
"jobRebroadcastTimeout": 10,
"clientConnectionTimeout": 600,
"banning": {
"enabled": true,
"time": 600,
"invalidPercent": 50,
"checkThreshold": 50
},
"ports": {
"3062": {
"listenAddress": "0.0.0.0",
"difficulty": 1024,
"name": "ASIC Mining",
"varDiff": {
"minDiff": 512,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 30
}
}
},
"daemons": [{
"host": "148.x.x.x", <- Public IP from my Host
"port": 9998,
"user": "xxxx",
"password": "xxxx"
}],
"paymentProcessing": {
"enabled": true,
"minimumPayment": 0.5,
"payoutScheme": "PPLNS",
"payoutSchemeConfig": {
"factor": 2.0
}
}
}]
} Port 4000 is close. Why my Dedicated Web Server behind an Nginx. But I can not even access the container from the server. |
@montymotz Your API is disabled per your |
@calvintam236 Shame on me, that's it. Many thanks to all! |
@montymotz this is a bit off topic but... "host": "148.x.x.x", <- Public IP from my Host i would not recommend you listen coin rpc on public IP unless you know what you are doing. |
@21void Yes, my docker image could not connect to the local host ip. The Public IP was an test. I fix this with the docker run command "--network host".
Thanks anyway. |
Security:
|
Hello,
Maybe an idea?
Miningcore log says:
and
[2018-06-14 14:18:19.0099] [I] [dash1] [Bitcoin Job Manager] Waiting for daemons to come online ...
My Setup:
deamon start:
./dash-cli -conf=/home/.dashcore/dash.conf -datadir=/home/.dashcore/
deamon conf:
Miningcore Start:
docker run -d -p 3062:3062 -v /home/miningcore/dash_pool.json:/config.json:ro coinfoundry/miningcore-docker
Version:
Postgresql 9.6.7
Docker version 17.12.0-ce, build c97c6d6
.NET Core 4.6.26515.07 on Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) [X64]
Miningcore Release 24
Thanks in advanced.
The text was updated successfully, but these errors were encountered: