Comments (9)
@ourlink the environment variables don't change the actual files, they just take precedence over the values in the config files.
The value for API_ENABLE is true
not 1
as per the config files. I suspect that's all you need to change to fix this issue.
from cosmos-omnibus.
Okay, I understand now. The files do not change it is the ENVIRONMENT VARIABLES that are passed to the docker instance at startup.
However, I tried all the variations of the following and none worked.
COMDEX_API_ENABLE=True
COMDEX_API_ENABLE=true
COMDEX_API_ENABLE=TRUE
During my testing, I tried different providers to ensure it was not the provider having network issues.
None of these settings enabled the API port 1317 although the port was mapped and presented with a redirect.
Any ideas?
I have pasted my test SDL below
---
version: "2.0"
services:
node:
image: ghcr.io/akash-network/cosmos-omnibus:v0.4.4-comdex-v13.4.0
env:
- MONIKER=ValidatorNode_Sentry1
- CHAIN_JSON=https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/chain.json
- STATESYNC_RPC_SERVERS=https://comdex-rpc.polkachu.com:443,https://rpc.comdex.one:443,https://rpc-comdex.goldenratiostaking.net:443
- STATESYNC_SNAPSHOT_INTERVAL=1000
- MINIMUM_GAS_PRICES=0.025ucmdx
- P2P_POLKACHU=1
- STATESYNC_POLKACHU=1
- COMDEX_API_ENABLE=true
- COMDEX_P2P_PRIVATE_PEER_IDS=9e1ee53832d330adcaf0f9830e2b4ee1be6b6123
- COMDEX_P2P_UNCONDITIONAL_PEER_IDS=9e1ee53832d330adcaf0f9830e2b4ee1be6b6123
- PRUNING=custom
- PRUNING_KEEP_RECENT=100
- PRUNING_KEEP_EVERY=0
- PRUNING_INTERVAL=10
expose:
- port: 26657
to:
- global: true
- port: 26656
to:
- global: true
- port: 1317
to:
- global: true
profiles:
compute:
node:
resources:
cpu:
units: 2
memory:
size: 10Gi
storage:
size: 125Gi
placement:
dcloud:
pricing:
node:
denom: uakt
amount: 1000
# signedBy:
# anyOf:
# - akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63
attributes:
host: akash
deployment:
node:
dcloud:
profile: node
count: 1
from cosmos-omnibus.
I use this config (COMDEX_API_ENABLE=true
) on one of my public nodes so I'm sure it works, I suspect it's just a port mapping issue. Have you deployed the test SDL on Akash currently, and do you have the mapped port I can test? Your SDL looks fine.
from cosmos-omnibus.
Yes, I have it (above SDL) deployed and the current mapping for port 1317 is http://provider.validatornode.com:31787/
BTW - I have tried deploying this SDL to other providers and I get the same results.
from cosmos-omnibus.
Could you try setting the following additional config:
COMDEX_API_ADDRESS=tcp://0.0.0.0:1317
The default may have changed to use a different port or be more restrictive.
from cosmos-omnibus.
Good Catch!
That change appears to have resolved the issue.
from cosmos-omnibus.
Letting the chain re-sync and I'll know for sure in 15 minutes.
from cosmos-omnibus.
Issue has been resolved!
from cosmos-omnibus.
Great news, thanks for confirming @ourlink
from cosmos-omnibus.
Related Issues (20)
- [kava] ENV namespace error? HOT 1
- [lumnetwork] Binary named wrong and possible ENV namespace error HOT 1
- [BUILD ERROR] note: module requires Go 1.19 HOT 1
- [KAVA] Update to v0.24.0 required HOT 1
- Update Jackal Protocol version to 2.1.0 HOT 2
- canto 5.0.0: fail to start with error panic: unknown field "merge_fork_block" in types.ChainConfig HOT 4
- cosmovisor: update to 1.5.0 and leverage its new DAEMON_SHUTDOWN_GRACE flag
- Update Jackal Protocol node to v3.0.0 HOT 1
- Canto 7.0.0 hardfork release HOT 1
- Decentr deployment does not start syncing. HOT 2
- Add support to Polkachu API v2
- Akash node fails to start HOT 4
- Upgrade Sentinel to latest version 11.3
- Node fails to start HOT 6
- Sorj DCS backup (`uplink`) fails to upload: might have to reduce the defaults
- Polkachu's live_peers API v2 is back! HOT 1
- Decentr chain update to v1.6.3 HOT 1
- cosmos-omnibus should not start if it fails to obtain (download/extract) the snapshot
- chain updates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmos-omnibus.