-
Notifications
You must be signed in to change notification settings - Fork 521
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
Myriad Social Milestone 1 Initial Deliverables Submission #1019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the delivery, @gilangbh! https://github.com/myriadsocial/myriad-infrastructure and https://github.com/myriadsocial/myriad-scripts are currently not accessible to me. Are they private? If so, can you make them public?
Also, I can run the node through docker-compose
, but only after removing the collator
parameter:
❯ ./.maintain/docker/start-docker-compose.sh
~/myriad-social/myriad-node-parachain ~/myriad-social/myriad-node-parachain
Starting docker compose
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Starting myriad-node ... done
Attaching to myriad-node
myriad-node | error: Found argument '--collator' which wasn't expected, or isn't valid in this context
myriad-node |
myriad-node | If you tried to supply `--collator` as a value rather than a flag, use `-- --collator`
myriad-node |
myriad-node | USAGE:
myriad-node | myriad --base-path <PATH> --dev --alice
myriad-node |
myriad-node | For more information try --help
myriad-node exited with code 2
And when I try building the node locally, I get the following error:
❯ docker-compose -p myriad-node -f .maintain/docker/docker-compose.yml up
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Building node
[+] Building 0.4s (9/27) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.66kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 555B 0.0s
=> [internal] load metadata for docker.io/library/debian:buster-20210816-slim@sha256:bdb7370812bd65a465f929fd8e61af294f 0.0s
=> [internal] load metadata for docker.io/paritytech/ci-linux:42a94a57-20220730@sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0 0.0s
=> CANCELED [chef 1/3] FROM docker.io/paritytech/ci-linux:42a94a57-20220730@sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a 0.3s
=> => resolve docker.io/paritytech/ci-linux:42a94a57-20220730@sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a33ecff4fb0efd9 0.0s
=> => sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a33ecff4fb0efd9baf03f24093483 761B / 761B 0.0s
=> => sha256:71b0eec07d9ff48ffb9b7549d377d39a22c9720a5131b8449d36c20a3f7f2097 9.38kB / 9.38kB 0.0s
=> => sha256:ac2fb615420c18b61e0693f2569a3d38e3b9b58456b691bac44405e08389a591 0B / 27.14MB 0.3s
=> => sha256:0406b5049860b8df0a4464bb9a17984c46256fe8946f4864984b71e25d8ab607 0B / 527.87MB 0.3s
=> => sha256:9e248e436011fd2197cc0ce490e76c87b0695d826a175cb59b3992de3797243a 0B / 336.84MB 0.3s
=> CACHED [runner 1/4] FROM docker.io/library/debian:buster-20210816-slim@sha256:bdb7370812bd65a465f929fd8e61af294fe598 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2.60kB 0.0s
=> ERROR [runner 2/4] RUN useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && mkdir -p /home/myriad/.local/sha 0.3s
=> [auth] paritytech/ci-linux:pull token for registry-1.docker.io 0.0s
------
> [runner 2/4] RUN useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && mkdir -p /home/myriad/.local/share && mkdir /data && chown -R myriad:myriad /data && ln -s /data /home/myriad/.local/share/myriad:
0.292 exec /bin/sh: exec format error
------
Dockerfile:28
--------------------
27 | # Create user and set ownership and permissions as required
28 | >>> RUN useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && \
29 | >>> # manage folder data
30 | >>> mkdir -p /home/myriad/.local/share && \
31 | >>> mkdir /data && \
32 | >>> chown -R myriad:myriad /data && \
33 | >>> ln -s /data /home/myriad/.local/share/myriad
34 | # Copy from builder stage
--------------------
ERROR: failed to solve: process "/bin/sh -c useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && mkdir -p /home/myriad/.local/share && mkdir /data && chown -R myriad:myriad /data && ln -s /data /home/myriad/.local/share/myriad" did not complete successfully: exit code: 1
ERROR: Service 'node' failed to build
Can you check if you can replicate and fix these?
pinging @gilangbh |
@gilangbh is there any reason for not making them public? Note that for acceptance of the milestone they'll need to be open-sourced anyway. |
Hi Seraya, to be frank there is no reason to not make them public, and that's an oversight from our end. I have changed the visibility of both repos and I believe you can access them now. |
@gilangbh great, now it works, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gilangbh did you have the chance to look into the failing docker script? For me it failed as well:
~/myriad-node-parachain# ./.maintain/docker/start-docker-compose.sh
~/myriad-node-parachain ~/myriad-node-parachain
Starting docker compose
Creating volume "myriad-node_data" with default driver
Building node
[+] Building 34.2s (8/25) docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.55kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 555B 0.0s
=> [internal] load metadata for docker.io/library/debian:buster-20210816-slim@sha256:bdb7370812bd65a465f929fd8e61af294fe5988a954ea3c373511f125697603d 1.4s
=> [internal] load metadata for docker.io/paritytech/ci-linux:42a94a57-20220730@sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a33ecff4fb0efd9baf03f24093483 1.6s
=> [runner 1/3] FROM docker.io/library/debian:buster-20210816-slim@sha256:bdb7370812bd65a465f929fd8e61af294fe5988a954ea3c373511f125697603d 5.2s
=> => resolve docker.io/library/debian:buster-20210816-slim@sha256:bdb7370812bd65a465f929fd8e61af294fe5988a954ea3c373511f125697603d 0.0s
=> => sha256:bdb7370812bd65a465f929fd8e61af294fe5988a954ea3c373511f125697603d 529B / 529B 0.0s
=> => sha256:5e8343a069dbd8b1d89005d7949ec52c858d6691b8b7b27c9f37415a5edf5931 1.48kB / 1.48kB 0.0s
=> => sha256:64ac1a72c06aa20e6c3b2e37ce66ddf902187eb683a427a477895f158a930e31 25.92MB / 25.92MB 2.3s
=> => extracting sha256:64ac1a72c06aa20e6c3b2e37ce66ddf902187eb683a427a477895f158a930e31 2.4s
=> CANCELED [chef 1/3] FROM docker.io/paritytech/ci-linux:42a94a57-20220730@sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a33ecff4fb0efd9baf03f24093483 32.4s
=> => resolve docker.io/paritytech/ci-linux:42a94a57-20220730@sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a33ecff4fb0efd9baf03f24093483 0.0s
=> => sha256:9666da1a0ad5f4d127e3cbd7fcf2aae0165a33ecff4fb0efd9baf03f24093483 761B / 761B 0.0s
=> => sha256:71b0eec07d9ff48ffb9b7549d377d39a22c9720a5131b8449d36c20a3f7f2097 9.38kB / 9.38kB 0.0s
=> => sha256:ac2fb615420c18b61e0693f2569a3d38e3b9b58456b691bac44405e08389a591 27.14MB / 27.14MB 1.1s
=> => sha256:0406b5049860b8df0a4464bb9a17984c46256fe8946f4864984b71e25d8ab607 527.87MB / 527.87MB 30.6s
=> => extracting sha256:ac2fb615420c18b61e0693f2569a3d38e3b9b58456b691bac44405e08389a591 2.2s
=> => sha256:9e248e436011fd2197cc0ce490e76c87b0695d826a175cb59b3992de3797243a 336.84MB / 336.84MB 21.5s
=> => extracting sha256:0406b5049860b8df0a4464bb9a17984c46256fe8946f4864984b71e25d8ab607 1.5s
=> [internal] load build context 0.5s
=> => transferring context: 8.65MB 0.1s
=> ERROR [runner 2/3] RUN useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && mkdir -p /home/myriad/.local/share && mkdir /data && chown -R myri 27.2s
------
> [runner 2/3] RUN useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && mkdir -p /home/myriad/.local/share && mkdir /data && chown -R myriad:myriad /data && ln -s /data /home/myriad/.local/share/myriad:
0.458 exec /bin/sh: exec format error
------
Dockerfile:28
--------------------
27 | # Create user and set ownership and permissions as required
28 | >>> RUN useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && \
29 | >>> # manage folder data
30 | >>> mkdir -p /home/myriad/.local/share && \
31 | >>> mkdir /data && \
32 | >>> chown -R myriad:myriad /data && \
33 | >>> ln -s /data /home/myriad/.local/share/myriad
34 | # Copy from builder stage
--------------------
ERROR: failed to solve: process "/bin/sh -c useradd -m -u 1001 -U -s /bin/sh -d /home/myriad myriad && mkdir -p /home/myriad/.local/share && mkdir /data && chown -R myriad:myriad /data && ln -s /data /home/myriad/.local/share/myriad" did not complete successfully: exit code: 1
ERROR: Service 'node' failed to build : Build failed
@agustinustheo it's still failing on my machine:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
Hey @takahser, I pushed a new build a day after your comment. Now, Myriad Social uses Substrate v1.2.0. I've cleaned all the images and containers related to this and tried running everything from scratch and everything is downloading and building fine on my machine.
(note it updates from the Can you please pull the latest version and try again? |
We've tried to compile it on multiple devices, and it seems promising. No errors. Please pull the most recent commits and try again 😊 UPDATE here are the full build logs: https://gist.github.com/agustinustheo/b4b874458f06ba210334ac2e66f8b756 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @agustinustheo. Thanks for the updates. The image is building now (using commit 150f39e30716e80f842519a93fb0e1a3324859ce), but starting it fails with the following errors. Could you look into that?
Starting myriad-node-parachain ... done
Attaching to myriad-node-parachain
myriad-node-parachain | /usr/local/bin/myriad: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/local/bin/myriad)
myriad-node-parachain | /usr/local/bin/myriad: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/bin/myriad)
myriad-node-parachain | /usr/local/bin/myriad: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by /usr/local/bin/myriad)
myriad-node-parachain | /usr/local/bin/myriad: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /usr/local/bin/myriad)
myriad-node-parachain exited with code 1
pinging @agustinustheo |
Apologies for the late reply, let me take a look. |
Hi @semuelle @keeganquigley the team have found a solution and have pushed a fix: myriadsocial/myriad-node-parachain@bd3fd3c Please kindly re-review. Thank you for your patience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update, @gilangbh, but it's still not running. Now when I try to run the node using Docker, I get
> ./.maintain/docker/start-docker-compose.sh
~/myriad-social/myriad-node-parachain ~/myriad-social/myriad-node-parachain
Starting docker compose
Starting myriad-node-parachain ... done
Attaching to myriad-node-parachain
myriad-node-parachain | error: unexpected argument ' --dev' found
myriad-node-parachain exited with code 2
I tried fiddling around with the parameters, but nothing seems to help. I am on the main branch of the repo, if that makes a difference.
Let me see what I can do. |
Hi @semuelle the team pushed a new fix here: myriadsocial/myriad-node-parachain@737473b Can you please kindly do a re-review? |
@semuelle and w3f team, please also highlight what we mentioned last week: w3f/Grants-Program#1795 (comment) Note that we've actually finished Milestone 2 tasks as well (although we can't deliver until our chain is actually up), so once the block production issue is solved, we can deliver two milestones back to back. Details are in the comment link above. |
Thanks for the update, the Docker is working now.
https://github.com/myriadsocial/myriad-infrastructure is still private, @gilangbh/@agustinustheo. |
I opened the repository to the public @semuelle, please check again. |
@Decentricity, could you send some MYRIA to 5DyWMh8kskJeHTTYsU4aWeqoNdtpMidikk4kBeGmhooqkP81 for testing? |
@semuelle -- sent |
Thanks for the update, @gilangbh & @agustinustheo. I'm sorry that the block production issue on Rococo is ongoing. I am going to try and find someone to look into it. In the meantime, I am approving your milestone delivery, so that it's out of the way. You can find my evaluation notes here. |
Thank you @semuelle for approving and merging the PR! Looking forward to solving our problem with Rococo. |
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#1795 < please fill this in with the PR number of your application.