Closed ohld closed 3 years ago
This is the full output of curl -v
with increased verbosity:
* Trying 0.0.0.0:8555...
* TCP_NODELAY set
* Connected to 0.0.0.0 (127.0.0.1) port 8555 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* error:1408F10B:SSL routines:ssl3_get_record:wrong version number
* Closing connection 0
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Try to put in entrypoint.sh
sed -i 's/localhost/127.0.0.1/g' ~/.chia/mainnet/config/config.yaml
# allow for port forward using cloudflare of full node
sed -i 's/self_hostname: 127.0.0.1/self_hostname: 0.0.0.0/g' ~/.chia/mainnet/config/config.yaml
@epaypool-admin no, same result. 😔
Just found out that the cause of this problem was running nginx who listened to 8555 and 8444 ports. I disabled it and everything worked fine: I can successfully query the dockerized node from outside of the container.
But I really want to route traffic using nginx (I'm using heroku-style opensource PaaS called Dokku, and nginx is built-in there). Well, at least I define there the problem is.
Just found out that the cause of this problem was running nginx who listened to 8555 and 8444 ports. I disabled it and everything worked fine: I can successfully query the dockerized node from outside of the container.
But I really want to route traffic using nginx (I'm using heroku-style opensource PaaS called Dokku, and nginx is built-in there). Well, at least I define there the problem is.
I am also considering using nginx proxy, how is nginx configured.
The problem
I want to run the node in the docker container and access its PRC interface from another docker container.
When I call PRC endpoints from inside the Node's container - everything works perfectly. If I try to do the same from outside (e.g. from machine where docker is deployed) I received
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
.Steps to reproduce
Run node
Open logs to make sure everything started fine.
Get blockchain status to make sure everything is fine (again)
Enter the container to check if local PRC requests work.
curl
request found here.Doing the same from machine where the docker was depoyed (from outside of the node's container):
Receiving error:
Docker contained didn't write anything to stdout:
Chia Debug logs are empty as well - nothing was added after the
curl
:More info about my setup
I have run and synced the node without docker on that machine before. So I in the attached volumes I have the data of synced node and its keys. I tried to remove all synced node data (
rm -rf /root/.chia/mainnet
) but it didn't help.