tonutils / reverse-proxy

Reverse proxy for TON sites
Apache License 2.0
104 stars 24 forks source link

TON Site is not responding. #16

Open locngoxuan opened 4 months ago

locngoxuan commented 4 months ago

Hi, I've set up both my website and reverse-proxy in my vps. However, when I access to my site (using both domain .ton and .adnl), it shows

TON site {domain} is not responding.

I did tried with curl, and it still not work (even it works with foundation.ton)

$ curl -v -x in1.ton.org:8080 http://v6x7vya2vpafqy7ese4ks76m7ilc5m4uihzruwwxgfebxi3mnjoae34.adnl
*   Trying 5.2.76.237:8080...
* TCP_NODELAY set
* Connected to in1.ton.org (5.2.76.237) port 8080 (#0)
> GET http://v6x7vya2vpafqy7ese4ks76m7ilc5m4uihzruwwxgfebxi3mnjoae34.adnl/ HTTP/1.1
> Host: v6x7vya2vpafqy7ese4ks76m7ilc5m4uihzruwwxgfebxi3mnjoae34.adnl
> User-Agent: curl/7.68.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 504 Gateway Timeout
< Connection: keep-alive
< Content-length: 0
<
* Connection #0 to host in1.ton.org left intact

In my vps, reverse-proxy shows

$ tonutils-reverse-proxy-linux-amd64 --domain {domain.ton}
2024/07/22 02:14:00 Server's ADNL address is v6x7vya2vpafqy7ese4ks76m7ilc5m4uihzruwwxgfebxi3mnjoae34.adnl
Domain {domain.ton} is already configured to use with current ADNL address. Everything is OK!
2024/07/22 02:14:02 Starting server on v6x7vya2vpafqy7ese4ks76m7ilc5m4uihzruwwxgfebxi3mnjoae34.adnl
2024/07/22 02:14:06 DHT ADNL address record for TON Site was refreshed successfully on 5 nodes to ip {ip} with port 12928

And configuration is

{
        "proxy_pass": "http://127.0.0.1:80/",
        "private_key": "{private-key}",
        "external_ip": "{ip}",
        "listen_ip": "0.0.0.0",
        "network_config_url": "https://ton-blockchain.github.io/global.config.json",
        "port": 12928
}

My nginx is running at port 80, netstat -nlptu shows

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      784/sshd: /usr/sbin
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      809/nginx: master p
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      809/nginx: master p
tcp6       0      0 :::22                   :::*                    LISTEN      784/sshd: /usr/sbin
udp6       0      0 :::56828                :::*                                2432/./tonutils-rev
udp6       0      0 :::12928                :::*                                2432/./tonutils-rev

Do you have any advice for this situation?

xssnick commented 4 months ago

Hi, please try with newer version of reverse proxy, for example v0.3.3

bincosmo commented 4 months ago

Hi! I have the same problem. Using v0.3.3. Ports opened, apache running, but ./tonutils-reverse-proxy-linux-amd64.1 --domain **.ton freezed on “Starting server on ****.adnl” And in curl I receive “504 Gateway Timeout”

xssnick commented 4 months ago

Hi! I have the same problem. Using v0.3.3. Ports opened, apache running, but ./tonutils-reverse-proxy-linux-amd64.1 --domain **.ton freezed on “Starting server on ****.adnl” And in curl I receive “504 Gateway Timeout”

Hi, have you used older version of reverse proxy before?

bincosmo commented 4 months ago

Hi! I have the same problem. Using v0.3.3. Ports opened, apache running, but ./tonutils-reverse-proxy-linux-amd64.1 --domain **.ton freezed on “Starting server on ****.adnl” And in curl I receive “504 Gateway Timeout”

Hi, have you used older version of reverse proxy before?

Yep, but had the same problem

xssnick commented 4 months ago

Hi! I have the same problem. Using v0.3.3. Ports opened, apache running, but ./tonutils-reverse-proxy-linux-amd64.1 --domain **.ton freezed on “Starting server on ****.adnl” And in curl I receive “504 Gateway Timeout”

Hi, have you used older version of reverse proxy before?

Yep, but had the same problem

Added info to FAQ about this, please try: https://github.com/tonutils/reverse-proxy?tab=readme-ov-file#my-ton-site-is-not-working-in-telegram-and-before-i-used-older-reverse-proxy-version