Giter Club home page Giter Club logo

Comments (16)

dandanlen avatar dandanlen commented on June 11, 2024 4

Update:

@chevdor I checked my docker settings and I was not using Rosetta - this is what the QEMU warnings were about: in the absence of Rosetta, Docker uses QEMU emulation.

Apparently Rosetta is still considered an experimental feature, and not activated by default. So I activated it (see here for details), and now, magically, it works 🥳

Thanks everyone for your help and suggestions!

from polkadot.

oleg-plakida avatar oleg-plakida commented on June 11, 2024 2

I can confirm. Got the same results on my M1.

from polkadot.

mrcnski avatar mrcnski commented on June 11, 2024 1

Cannot fully enable landlock, a Linux kernel security feature. Running validation of malicious PVF code has a higher risk of compromising this machine. Consider upgrading the kernel version for maximum security

Not sure if this can cause issues further down the road.

Hopefully not, should just be an unrelated warning. But let me know if you suspect otherwise.

from polkadot.

dandanlen avatar dandanlen commented on June 11, 2024 1

It's an M1 (see above - I think we replied at the same time, you might have missed it).

from polkadot.

ggwpez avatar ggwpez commented on June 11, 2024 1

Okay thanks! We will use you tip for the next when someone has this problem.

from polkadot.

mrcnski avatar mrcnski commented on June 11, 2024

@paritytech/ci?

from polkadot.

alvicsam avatar alvicsam commented on June 11, 2024

cc @paritytech/release-engineering

from polkadot.

chevdor avatar chevdor commented on June 11, 2024

Can you test with the binary polkadot 1.0.0-1ed6e2e50a4 ? (to exclude any issue related to the Docker image).

from polkadot.

ggwpez avatar ggwpez commented on June 11, 2024

Cannot reproduce for the given version.

This is the expected behaviour if you are running under QEMU

Where is this running?

Cannot fully enable landlock, a Linux kernel security feature. Running validation of malicious PVF code has a higher risk of compromising this machine. Consider upgrading the kernel version for maximum security

Not sure if this can cause issues further down the road.

from polkadot.

dandanlen avatar dandanlen commented on June 11, 2024

Where is this running?

It's running locally under docker on a Mac M1.

I have compiled and run the same version locally on my machine (ie. no docker), and it worked fine, so it does seem to be docker-related in some way.

We will try running the image on non-apple hardware and see if it helps.

from polkadot.

chevdor avatar chevdor commented on June 11, 2024

I am not running into the issue with:

podman run --rm -it parity/polkadot:v1.0.0 --dev
Resolving "parity/polkadot" using unqualified-search registries (/etc/containers/registries.conf.d/999-podman-machine.conf)
Trying to pull docker.io/parity/polkadot:v1.0.0...
Getting image source signatures
Copying blob sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1
Copying blob sha256:01085d60b3a624c06a7132ff0749efc6e6565d9f2531d7685ff559fb5d0f669f
Copying blob sha256:5a91df77b5430e07cf56f1955bb30d72c798f942c514fcd4db4ab47b22d3c980
Copying config sha256:10e23f611d8ed8a80c904af1f37f1188df2af3a9281e175e1d0bdbdf3893c778
Writing manifest to image destination
2023-08-14 13:06:22 Parity Polkadot    
2023-08-14 13:06:22 ✌️  version 1.0.0-1ed6e2e50a4    
2023-08-14 13:06:22 ❤️  by Parity Technologies <[email protected]>, 2017-2023    
2023-08-14 13:06:22 📋 Chain specification: Development    
2023-08-14 13:06:22 🏷  Node name: woozy-horn-9722    
2023-08-14 13:06:22 👤 Role: AUTHORITY    
2023-08-14 13:06:22 💾 Database: RocksDb at /tmp/substrateHLzzJ3/chains/polkadot_dev/db/full    
2023-08-14 13:06:24 [0] 💸 generated 1 npos voters, 1 from validators and 0 nominators    
2023-08-14 13:06:24 [0] 💸 generated 1 npos targets    
2023-08-14 13:06:24 Took active validators from set with wrong size    
2023-08-14 13:06:24 Took active validators from set with wrong size    
2023-08-14 13:06:24 Took active validators from set with wrong size.    
2023-08-14 13:06:24 Took active validators from set with wrong size    
2023-08-14 13:06:27 🔨 Initializing Genesis block/state (state: 0xfdb0…1e23, header-hash: 0x8539…07b7)    
2023-08-14 13:06:27 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.    
2023-08-14 13:06:29 👶 Creating empty BABE epoch changes on what appears to be first startup.    
2023-08-14 13:06:29 🏷  Local node identity is: 12D3KooWDFeUynnZ3f2wFiaX83mZgrY3ohNCMjShtEdgKK9SJwop    
2023-08-14 13:06:30 💻 Operating system: linux    
2023-08-14 13:06:30 💻 CPU architecture: x86_64    
2023-08-14 13:06:30 💻 Target environment: gnu    
2023-08-14 13:06:30 💻 CPU: 06/a5    
2023-08-14 13:06:30 💻 CPU cores: 4    
2023-08-14 13:06:30 💻 Memory: 31327MB    
2023-08-14 13:06:30 💻 Kernel: 6.4.7-200.fc38.x86_64    
2023-08-14 13:06:30 💻 Linux distribution: Ubuntu 20.04.6 LTS    
2023-08-14 13:06:30 💻 Virtual machine: yes    
2023-08-14 13:06:30 📦 Highest known block at #0    
2023-08-14 13:06:30 〽️ Prometheus exporter started at 127.0.0.1:9615    
2023-08-14 13:06:30 Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["*"]    
2023-08-14 13:06:30 🏁 CPU score: 766.87 MiBs    
2023-08-14 13:06:30 🏁 Memory score: 10.20 GiBs    
2023-08-14 13:06:30 🏁 Disk score (seq. writes): 4.83 GiBs    
2023-08-14 13:06:30 🏁 Disk score (rand. writes): 741.96 MiBs    
2023-08-14 13:06:30 ⚠️  The hardware does not meet the minimal requirements for role 'Authority' find out more at:
https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot#reference-hardware    
2023-08-14 13:06:30 👶 Starting BABE Authorship worker    
2023-08-14 13:06:30 Starting with an empty approval vote DB.
2023-08-14 13:06:35 💤 Idle (0 peers), best: #0 (0x8539…07b7), finalized #0 (0x8539…07b7), ⬇ 0 ⬆ 0    
2023-08-14 13:06:36 🙌 Starting consensus session on top of parent 0x8539ae76e5fc755a81ef7d73724d9bacf2519c4d313efcced0b839a719e807b7    
2023-08-14 13:06:38 ParentBlockRandomness did not provide entropy    
2023-08-14 13:06:38 ParentBlockRandomness did not provide entropy    
2023-08-14 13:06:38 🎁 Prepared block for proposing at 1 (0 ms) [hash: 0x06b86c8728e2598e9f4d3e15df88d81c9cb1d2192547f73baf9a6fa932886809; parent_hash: 0x8539…07b7; extrinsics (2): [0xe52e…918c, 0x3846…aa48]    
2023-08-14 13:06:38 🔖 Pre-sealed block for proposal at 1. Hash now 0x9d884bad56ec45b64fa4a1d63de75c4f83c3723291a231fe4900611997fb1e74, previously 0x06b86c8728e2598e9f4d3e15df88d81c9cb1d2192547f73baf9a6fa932886809.    
2023-08-14 13:06:38 👶 New epoch 0 launching at block 0x9d88…1e74 (block slot 282003066 >= start slot 282003066).    
2023-08-14 13:06:38 👶 Next epoch starts at slot 282005466    
2023-08-14 13:06:38 ✨ Imported #1 (0x9d88…1e74)    
2023-08-14 13:06:40 💤 Idle (0 peers), best: #1 (0x9d88…1e74), finalized #0 (0x8539…07b7), ⬇ 0 ⬆ 0    
2023-08-14 13:06:42 🙌 Starting consensus session on top of parent 0x9d884bad56ec45b64fa4a1d63de75c4f83c3723291a231fe4900611997fb1e74    
2023-08-14 13:06:42 🎁 Prepared block for proposing at 2 (1 ms) [hash: 0xde788d64c1c76ce455516e8ba317311582df0071654d6d7a2f709030d3771185; parent_hash: 0x9d88…1e74; extrinsics (2): [0x6ac2…606e, 0x642c…209f]    
2023-08-14 13:06:42 🔖 Pre-sealed block for proposal at 2. Hash now 0x550d54d8137e93860686e73f0a89e32ed1bdce73fe1a9eae72050bee35493c3e, previously 0xde788d64c1c76ce455516e8ba317311582df0071654d6d7a2f709030d3771185.    
2023-08-14 13:06:42 ✨ Imported #2 (0x550d…3c3e) 

from polkadot.

chevdor avatar chevdor commented on June 11, 2024

The error sounds similar to apache/kvrocks#1122

I can reproduce it on my M1 Pro if wrongly specified the platform:

What machine do you have @dandanlen ?

from polkadot.

dandanlen avatar dandanlen commented on June 11, 2024

M1 Pro (not MAX) if that's relevant (seems to be discussed in the linked issue).

from polkadot.

chevdor avatar chevdor commented on June 11, 2024

I am still on an Intel Mac so I cannot test your case but are you sure that your Docker config is ok and you are not running under Rosetta for instance ?
You could also test with podman so we can exclude errors on the container side.

from polkadot.

dandanlen avatar dandanlen commented on June 11, 2024

Yes, thanks - we ran it on amd hardware and it worked. Seems to be arm/M1-related.

from polkadot.

chevdor avatar chevdor commented on June 11, 2024

Thanks for providing the explanation @dandanlen

from polkadot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.