Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TON Site is not responding. #16

Open
locngoxuan opened this issue Jul 21, 2024 · 5 comments
Open

TON Site is not responding. #16

locngoxuan opened this issue Jul 21, 2024 · 5 comments

Comments

@locngoxuan
Copy link

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
Copy link
Contributor

xssnick commented Aug 1, 2024

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

@bincosmo
Copy link

bincosmo commented Aug 1, 2024

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
Copy link
Contributor

xssnick commented Aug 1, 2024

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
Copy link

bincosmo commented Aug 1, 2024

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
Copy link
Contributor

xssnick commented Aug 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants