vsys-host / shkeeper.io

SHKeeper is a self-hosted and open-source cryptocurrency gateway payment processor. It's integrate with popular CMS, any e-commerce, your own code or product
https://shkeeper.io/
GNU General Public License v3.0
264 stars 68 forks source link

Server Showing Offline Status in TRON Configuration #56

Closed ohblue closed 1 month ago

ohblue commented 3 months ago

I am experiencing an issue where the server status for TRON shows as offline. Below are the contents of my configuration file:

#
# TRON
#
tron_fullnode:
  enabled: false
  url: http://fullnode.tron.shkeeper.io

trx:
  enabled: true
usdt:
  enabled: true
usdc:
  enabled: true

As shown, the tron_fullnode is currently set to enabled: false, which I suspect might be related to why the server appears offline. Could this setting be causing the issue, or should I be looking at other potential causes? Any guidance on how to resolve this problem would be greatly appreciated. Thank you for your assistance.

yukonet commented 3 months ago

Hello, Your configuration is correct if you want to use a public tron ​​fullnode You should check the tron-shkeeper pod logs

MingYi0226 commented 2 months ago

Hi @yukonet , I have same issue for BNB configuration with following yaml.

storageClassName: local-path

#
# BTC and forks
#
btc:
  enabled: false
ltc:
  enabled: false
doge:
  enabled: false

bnb_fullnode:
  enabled: false

bnb:
  enabled: true
bnb_usdt:
  enabled: true
bnb_usdc:
  enabled: true

I checked the bnb-shkeeper pod logs, and it seems like http connection to fullnode is unreachable.

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='bnb', port=8545): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b102aab80>: Failed to establish a new connection: [Errno -2] Name or service not known'))

I can see bnb url in here

bnb_fullnode:
  enabled: false
  url: http://bnb:8545
  mainnet: true
  nodeSelector: {}
  tolerations: []

Urls in values.yaml has updated or not working?

yukonet commented 2 months ago

Hello,

If you want to use a public node instead of your own fullnode, please check the following link: https://shkeeper.io/kb/use-cases/how-to-use-bnb-with-shkeeper-public-fullnode

MingYi0226 commented 2 months ago

Thank you for your reply @yukonet! Above url works for BNB test network too? I used following as values.yaml

#
# BNB
#
bnb_shkeeper:
  extraEnv:
    LAST_BLOCK_LOCKED: "FALSE"

bnb_fullnode:
  enabled: false
  mainnet: false
  url: https://data-seed-prebsc-1-s3.binance.org:8545/
bnb:
  enabled: true
bnb_usdt:
  enabled: true
bnb_usdc:
  enabled: true

But as time go by, Server gets Sync In Progress (99 blocks behind) I tried every test nodes here, but its same.

yukonet commented 2 months ago

Your values.yaml looks correct You can check the bnb-shkeeper logs to find the cause of the problem

aboozaid commented 1 month ago

Hello, Your configuration is correct if you want to use a public tron ​​fullnode You should check the tron-shkeeper pod logs

I have the same problem and I get on the log this exception app.exceptions.NoServerSet: Current server is not set..

This is my yaml config

#
# TRON
#
tron_fullnode:
  enabled: false
  url: http://fullnode.tron.shkeeper.io

trx:
  enabled: true
usdt:
  enabled: true
usdc:
  enabled: true
aboozaid commented 1 month ago

@yukonet

aboozaid commented 1 month ago

I solved it by adding mainnet: true like below

#
# TRON
#
tron_fullnode:
  enabled: false
  mainnet: true
  url: http://fullnode.tron.shkeeper.io

trx:
  enabled: true
usdt:
  enabled: true
usdc:
  enabled: true