-
Notifications
You must be signed in to change notification settings - Fork 17
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
Barge issues: pdr-trueval, connecting subgraph #194
Comments
One more error:
|
that is just a warning, you can ignore it |
Looks like pdr-backend is trying to connect to "172.15.0.15:8000". But on MacOs, container do not have ip addresses, so we need to find another way to connect to subgraph (maybe something like host.docker.internal:8000 ?). I don't use a Mac, so I cannot test it |
all good, all contracts are deployed on "development" network |
I don't see any log messages from the subgraph, could it be down? Could you check the subgraph logs? |
I rebooted everything, cleaned everything, it's working now My guess it was a subgraph issue. But now it's all good. Thanks everyone for your help. |
So I had it going, good. Then I stopped it, and re-started it. Now it's failing again :(. Looks like a subgraph error. Here's the log from the subgraph docker process:
|
Looks like the subgraph is unavailable, could you check if it's running and inspect the logs if it's running? |
Yes, exactly, the subgraph is unavailable. That error listed above was from the docker subgraph process. Here's the "liveness" of the process:
And, from
|
Thanks for providing the logs. Looks interesting, I haven't seen something like this before. Could be related to what @alexcos20 mentioned above #194 (comment) although it's weird that it works from time to time and then fails |
Yet this was working two weeks ago. And earlier today, if briefly. Perhaps it's the following. There are two possible subgraph URLs:
IIRC one was working (top one?) and the other wasn't. |
Yep first one should work. However this error occurs in the subgraph container while deploying the subgraph. Perhaps try a clean start by running the cleanup script and removing |
Yep, WIP. I hit another snag: earlier today "to be prudent" I upgraded my Docker from 4.22 to 4.24. Then Docker kept randomly hanging. After googling around, it seems many people had that issue, and the fix was to go back to 4.22. I'll keep you posted. |
Docker seems to be behaving better now. However, the
|
Good news! I think in the previous run, while I'd run the cleanup script, I had missed deleting Some logging from subgraph container is below. Fingers crossed...
Summary of lessons so far:
|
Great! |
Alas, I am still having trouble getting predictoor to see the subgraph. In console, I do the following:
And the result I get from the last line is:
Also, the subgraph url of interest does not load in my browser. http://172.15.0.15:8000/subgraphs/name/oceanprotocol/ocean-subgraph Help? @trizin |
Try to use the localhost:9000 for subgraph url |
Aha! And that works! My predictoor log:
And that url (http://localhost:9000/subgraphs/name/oceanprotocol/ocean-subgraph) also works in my browser, bringing up the expected text boxes for entering queries. |
This issue is solved, hooray:) |
@trizin so that I can update my own mental model:
What's the relation between these urls? Why is it a remote IP address for the docker container, and a local (IP address?) for the agent & browser? Thanks! |
because docker on macOS does not support brige, which is the driver that we are using to create and assign ip addrs to all containers (https://docker-docs.uclv.cu/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos) |
Thanks Alex! |
According to my knowledge: https://github.com/oceanprotocol/barge/blob/main/compose-files/thegraph.yml#L6 This exposes the port 8000 in the container to the host network, thus it's accessible. "172.15.0.15" is the internal ip of the container, other containers in the network can access it. As far as I know the docker network is isolated from host network unless you expose a port so you cannot access it. |
See attached log.
temp.txt
The text was updated successfully, but these errors were encountered: