Cardinal-Cryptography / aleph-node-issues

Issue tracker for aleph-node related problems.
2 stars 0 forks source link

Not able to make public rpc calls on aleph-nodes #16

Open nikitagugale opened 3 months ago

nikitagugale commented 3 months ago

Did you read the documentation and guides?

Is there an existing issue?

Description of the problem

As per instructions I have aleph-node running(by running scripts/run_nodes.sh), it is accessible through local host but on deployment to docker /kubernetes I am not able to connect to network through rpc url. (Example: wss://node.mynetwork.in) Is there any flag missing while running the node so that I can access it publically?

Information on your setup.

  1. Running on testnet or mainnet? - Running on a server on digital ocean (scripts/run_nodes.sh).
  2. Version of aleph-node - Cloned the repo from github(aleph-node)
  3. How do you run aleph-node - directly, docker, aleph-node-runner? - Docker
  4. s it a validator node or RPC-node? Full Node(6 running)
  5. what flags do you run aleph-node with - Default values from run script
  6. operating system - Unix

Steps to reproduce

No response

Did you attach relevant logs?

kostekIV commented 3 months ago

Hi, it does not look anything is missing rather there is something off with docker/kubernetes setup you are using. I can't help much here but my guess is that something is not exposed in docker/accessible outside it.

nikitagugale commented 3 months ago

Below is my docker file, if that helps to understand the issue.
`Use Ubuntu as the base image FROM debian:latest

Avoid prompts from apt ENV DEBIAN_FRONTEND=noninteractive ENV TERM=xterm

Install required packages RUN apt-get update && \ apt-get install -y curl build-essential pkg-config libssl-dev git protobuf-compiler clang libclang-dev llvm-dev librocksdb-dev jq make && \ rm -rf /var/lib/apt/lists/*

Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh -s -- -y ENV PATH="/root/.cargo/bin:${PATH}"

Verify Rust installation RUN rustc --version && cargo --version

Copy the source code into the image COPY . /app WORKDIR /app

Build the Rust project RUN cargo build --release && \ rm -rf /app/target/debug

Expose the necessary ports EXPOSE 30333 30343 9944

Make the release and scripts directories and its contents executable RUN chmod +x /app/target/release RUN chmod +x /app/scripts RUN chmod +x /app

Keep the container running CMD ["/bin/sh", "-c", "/app/scripts/run_nodes.sh"]`