Conversation
|
Thanks for the delivery. We will look into it as soon as possible. |
|
@randombishop thanks for your patience! I just took a first look at the deliverables and noticed that in the How we built on top of Subquery of your article you made 2 titles starting with "3." (3. Defining our dataset and 3. Mapping logic). That being said, I'm going to start reviewing your other deliverables now and be back with more feedback soon. |
|
@randombishop after following your build instructions I only have 4 docker containers up and running: % docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dc668fc317ab onfinality/subql-query:v0.11.0 "/sbin/tini -- /usr/…" 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp subql_wika_graphql-engine_1
88c627543a2c onfinality/subql-node:v0.27.2 "/sbin/tini -- /usr/…" 2 minutes ago Up 2 minutes (healthy) subql_wika_subquery-node_1
dc3bbec77748 docker.elastic.co/kibana/kibana:7.16.3 "/bin/tini -- /usr/l…" 3 minutes ago Up 3 minutes 0.0.0.0:5601->5601/tcp subql_wika_kibana_1
9f9e8625cf9b postgres:12-alpine "docker-entrypoint.s…" 3 minutes ago Up 3 minutes (healthy) 5432/tcp, 0.0.0.0:5433->5433/tcp subql_wika_postgres_1However, according to your Postgres, Neo4j and Elastic Search databases section the containers mentioned should also be running and accessible on their corresponding ports on localhost, correct? Am I missing something? |
Thanks a lot for the catch, just made the correction in the article |
There are a couple of possible causes:
|
|
@takahser FYI, started a branch to work on the review feedback: https://github.com/randombishop/wika_etl/compare/review_w3f?expand=1 |
|
Hey @randombishop % docker exec -it e1529f197395 /bin/bash
bash-4.4$ sudo chown -R 1000:1000 .data/esHowever bash: sudo: command not foundRegarding RAM, I still have ~2GB free (of 16GB) on my machine. But I can try on a different, more powerful machine. I'll get back to you in this regard after. |
You have to run the |
|
@randombishop so on the more powerful machine I have more containers, probably RAM was actually an issue. I started having a look at the postgres node and I can connect to it. However, there are only the following dbs available: Unfortunately, I can't find any of the tables mentioned in your instructions (e.g. What's the supposed db name and do you have any idea why the tables don't show up? |
|
Also, once you have everything up and running, you can try submitting a like transaction to the test net and check its sync with your databases. You can do that by using the frontend at https://app.wika.network |
|
@randombishop thx, yes, after switching to the app schema I can see the tables. I was checking the other dbs:
Any ideas? |
|
|
@randombishop Thanks for your patience.
Thanks, I received them. 👍
So I managed to resolve these issues however, now my $ sudo docker-compose up
Creating network "subql_wika_default" with the default driver
Creating subql_wika_kibana_1 ... done
Creating subql_wika_es_1 ... done
Creating subql_wika_neo4j_1 ... done
Creating subql_wika_postgres_1 ... done
Creating subql_wika_subquery-node_1 ... done
ERROR: for graphql-engine Container "8c532658ae8a" is unhealthy.
ERROR: Encountered errors while bringing up the project.In your Dockerfile I saw that it relies on the $ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f7ca9e0ecad5 postgres:12-alpine "docker-entrypoint.s…" 25 seconds ago Up 23 seconds (healthy) 5432/tcp, 0.0.0.0:5433->5433/tcp, :::5433->5433/tcp subql_wika_postgres_1
f4dac8a2fd44 docker.elastic.co/elasticsearch/elasticsearch:7.16.3 "/bin/tini -- /usr/l…" 25 seconds ago Up 23 seconds 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp subql_wika_es_1
927098d34d27 neo4j "tini -g -- /startup…" 25 seconds ago Up 24 seconds (healthy) 0.0.0.0:7474->7474/tcp, :::7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp, :::7687->7687/tcp subql_wika_neo4j_1
2d040d46ff65 docker.elastic.co/kibana/kibana:7.16.3 "/bin/tini -- /usr/l…" 25 seconds ago Up 24 seconds 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp subql_wika_kibana_1Have you ever experienced this error in the past? It's weird because these services used to be running. What I also tried was restarting the containers with If it helps, here is the log data that also indicates that the connection (to the subquery-node I guess, although the $ docker-compose logs 8c532658ae8a
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
PermissionError: [Errno 13] Permission denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "requests/adapters.py", line 449, in send
File "urllib3/connectionpool.py", line 727, in urlopen
File "urllib3/util/retry.py", line 410, in increment
File "urllib3/packages/six.py", line 734, in reraise
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker/api/client.py", line 214, in _retrieve_server_version
File "docker/api/daemon.py", line 181, in version
File "docker/utils/decorators.py", line 46, in inner
File "docker/api/client.py", line 237, in _get
File "requests/sessions.py", line 543, in get
File "requests/sessions.py", line 530, in request
File "requests/sessions.py", line 643, in send
File "requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 200, in perform_command
File "compose/cli/command.py", line 70, in project_from_options
File "compose/cli/command.py", line 153, in get_project
File "compose/cli/docker_client.py", line 43, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in __init__
File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
[561549] Failed to execute script docker-compose |
|
takahser thanks for making progress and debugging together, never mind about the delay...
|
|
@randombishop thanks, removing the $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cc59d3663e28 onfinality/subql-query:v0.11.0 "/sbin/tini -- /usr/…" 9 minutes ago Up 9 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp subql_wika-graphql-engine-1
55b5d99bb8ed onfinality/subql-node:v0.27.2 "/sbin/tini -- /usr/…" 9 minutes ago Up 9 minutes (healthy) subql_wika-subquery-node-1
2e5cd7b53711 docker.elastic.co/elasticsearch/elasticsearch:7.16.3 "/bin/tini -- /usr/l…" 9 minutes ago Up 9 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 9300/tcp subql_wika-es-1
9b8db754a9d6 postgres:12-alpine "docker-entrypoint.s…" 9 minutes ago Up 9 minutes (healthy) 5432/tcp, 0.0.0.0:5433->5433/tcp, :::5433->5433/tcp subql_wika-postgres-1
37fb3fb02761 docker.elastic.co/kibana/kibana:7.16.3 "/bin/tini -- /usr/l…" 9 minutes ago Up 9 minutes 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp subql_wika-kibana-1
cfb7dcd95281 neo4j "tini -g -- /startup…" 9 minutes ago Up 9 minutes (healthy) 0.0.0.0:7474->7474/tcp, :::7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp, :::7687->7687/tcp subql_wika-neo4j-1I was also able to successfully submit some likes on your frontend, pretty cool! |
Amazing, thanks a lot! |
|
@randombishop here you go: randombishop/wika_etl#12 |
|
@randombishop Thanks for your patience! I just pushed my evaluation. |
@takahser Thanks a lot for the evaluation and feedback, good job! We'll work right away on:
In the meantime, some comments about the other points:
We could also add an example linux script that sets the env variables with I think that's pretty much it, will get back to you with a PR by the end of week with the new comments and tests, excited to finalize this milestone 💯 |
|
PS: Also noted your recommendation to apply some refactoring and avoid duplicated code, working on it... |
35 passing (1s)
2 failing
1) PluginEmails
should send a test email:
TypeError: Only absolute URLs are supported
at getNodeRequestOptions (node_modules/node-fetch/lib/index.js:1327:9)
at /app/node_modules/node-fetch/lib/index.js:1440:19
at new Promise (<anonymous>)
at fetch (node_modules/node-fetch/lib/index.js:1437:9)
at PluginEmails.sendError (dist/plugins/emails.js:35:57)
at Context.<anonymous> (dist/tests/tests_emails.js:8:22)
at processImmediate (node:internal/timers:464:21)
2) fetchMetadata
for valid urls
should work for https://github.com/randombishop/wika_etl:
AssertionError: expected 'https://opengraph.githubassets.com/4c96abea53e105751300eab9412a10d78636768326ffe58418e6dfc5667ec15b/randombishop/wika_etl' to equal 'https://opengraph.githubassets.com/1eb16d9d35b2a179a6b0c41c4fc97356852d3457a40196d1bf73dabc1717d5d8/randombishop/wika_etl'
+ expected - actual
-https://opengraph.githubassets.com/4c96abea53e105751300eab9412a10d78636768326ffe58418e6dfc5667ec15b/randombishop/wika_etl
+https://opengraph.githubassets.com/1eb16d9d35b2a179a6b0c41c4fc97356852d3457a40196d1bf73dabc1717d5d8/randombishop/wika_etl
at Context.<anonymous> (dist/tests/tests_metadata.js:33:51)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Well, the expectation would certainly be that one could successfully run the tests without manually introducing additional infrastructure. Maybe you can use some kind of email sending mock service or spin up a container containing a mail server within the docker network? Just an idea.
In that case I'm fine with that. Just please make sure to update the README accordingly, as you suggested. 👍 Looking forward to your update! |
|
@takahser Here is a big PR for you! :) This should address all open issues, except The problem with EmailsPlugin is that I didn't find a standard email library that works inside the Subquery sandbox (anything that depends on Finally, I added you as a contributor to the repo, feel free to comment or contribute directly to the Looking forward to hearing back from you on this, cheers! |
|
@randombishop thanks, I added my comments directly to your PR. Thanks also for filing the feature request and elaborating on the email issue. Although the solution is imho not optimal, I'm fine with it, considering the circumstances. 👍
I didn't run them yet, but I'll do soon and let you know the results.
Thanks for putting so much trust in me, definitively appreciated! 🙏 |
|
Hey @takahser thanks for reviewing the PR, learnt a lot by going through it.
Of course, you're welcome to join our discord as well to be part of the Wika community: https://discord.com/invite/sPEwJUmAwH Cheers! |
|
@randombishop I just accepted your delivery, thanks for all the work you put into this! |
|
Great news @takahser ! Thank you as well for all the time and guidance on this codebase. Looking forward to next milestones... Also, is there any action we need to take to get the invoice processed or just wait? How long does it typically take? |
|
@randombishop somebody from the invoice team will contact here as soon as they've processed the payment or if they have any questions, I've already forwarded the invoice. |
Fantastic, thank you!
Social Networking fits, super glad to join the list! |
|
hi @randombishop we transferred the payment today. Thanks! |
|
@RouvenP This is the first tx ever received by the project and means a lot, big thanks! |





Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#682