synechron-finlabs / quorum-maker

Utility to create and monitor Quorum nodes
Apache License 2.0
195 stars 99 forks source link

Approve/Reject Join Request #30

Closed horca17 closed 6 years ago

horca17 commented 6 years ago

I am not receiving any notification on UI or e-mail for the join request and approval. Using quorum-maker:2.0.2_2.1.

Any help?

dhyansraj commented 6 years ago

Are you setting up on local computer or on Cloud? If on cloud, are you sure the containers are reachable? Are you getting any errors on Joining node? Usually if not reachable, it would throw error some connections errors.

horca17 commented 6 years ago

Thank you, I am just trying on a local computer, and no getting any error, just nothing happens. Using the tutorial on the main site of Quorum-Maker 2.1

dhyansraj commented 6 years ago

To get an email, you will have to configure smtp. But UI notifications works out of box. Did you try to refresh the page on the main node? Can you tell me whats main and joining ports you chose as well as the IP(you can mask it, Just want to know what you entered).

horca17 commented 6 years ago

I configure SMTP using gmail. And on UI there is no icon on the right up sector of the site like on the screenshot3.png. I use IP using the same and different ones between the main and the one trying to join, and because I am using the same computer I am using different port numbers.

horca17 commented 6 years ago

Org1 & Org2 both 10.0.2.15 >> 22000-4 and 23000-4 and I tried different IP numbers.

horca17 commented 6 years ago

done, I was able to make it work on the UI, still working on the mail

dhyansraj commented 6 years ago

You might have to enable connection from untrusted device in Google.

horca17 commented 6 years ago

Ok, any reason why I am not able to compile/deploy a .sol contract?

dhyansraj commented 6 years ago

From QM UI? Just today another person confirmed it's working for him. Can you check the geth and constellation logs from QM UI?

horca17 commented 6 years ago

[*] Starting Constellation node 21:13:03 [INFO] Log level is LevelWarn

horca17 commented 6 years ago
screen shot 2018-06-25 at 6 19 31 pm
horca17 commented 6 years ago

DEBUG[06-25|21:25:04] VM returned with error err="invalid opcode 0xfe" DEBUG[06-25|21:25:04] Executing EVM call finished runtime=763.546µs DEBUG[06-25|21:25:04] Executing EVM call finished runtime=497.001µs DEBUG[06-25|21:25:04] Executing EVM call finished runtime=488.544µs DEBUG[06-25|21:25:04] Executing EVM call finished runtime=1.021293ms DEBUG[06-25|21:25:04] VM returned with error err="invalid opcode 0xfe" DEBUG[06-25|21:25:04] Executing EVM call finished runtime=1.289729ms DEBUG[06-25|21:25:04] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s TRACE[06-25|21:25:05] Dial task done task="wait for dial hist expire (29.999991856s)" TRACE[06-25|21:25:05] New dial task task="staticdial e11c7cbba37e9de6 10.50.0.2:22001" TRACE[06-25|21:25:05] Accepted connection addr=172.17.0.1:59394 TRACE[06-25|21:25:05] Quorum permissioning EnableNodePermission=false DataDir=/home/node/qdata Current Node ID=e11c7cbba37e9de69742548656d98c7f38aae8829b86e849ece22cb802b445505b58ee790193a649fbc148ac2a58f0f7f349d9de3c960e2a096d956e234d5367 Node Name=Geth/v1.7.2-stable-df4267a2/linux-amd64/go1.10.2 Dialed Dest=nil Connection ID=e11c7cbba37e9de6 Connection String=e11c7cbba37e9de69742548656d98c7f38aae8829b86e849ece22cb802b445505b58ee790193a649fbc148ac2a58f0f7f349d9de3c960e2a096d956e234d5367 TRACE[06-25|21:25:05] Node Permissioning is Disabled. TRACE[06-25|21:25:05] Rejected peer before protocol handshake id=e11c7cbba37e9de6 addr=172.17.0.1:59394 conn=inbound err="connected to self" TRACE[06-25|21:25:05] Quorum permissioning EnableNodePermission=false DataDir=/home/node/qdata Current Node ID=e11c7cbba37e9de69742548656d98c7f38aae8829b86e849ece22cb802b445505b58ee790193a649fbc148ac2a58f0f7f349d9de3c960e2a096d956e234d5367 Node Name=Geth/v1.7.2-stable-df4267a2/linux-amd64/go1.10.2 Dialed Dest="enode://e11c7cbba37e9de69742548656d98c7f38aae8829b86e849ece22cb802b445505b58ee790193a649fbc148ac2a58f0f7f349d9de3c960e2a096d956e234d5367@10.50.0.2:22001?discport=0&raftport=22003" Connection ID=e11c7cbba37e9de6 Connection String=e11c7cbba37e9de69742548656d98c7f38aae8829b86e849ece22cb802b445505b58ee790193a649fbc148ac2a58f0f7f349d9de3c960e2a096d956e234d5367 TRACE[06-25|21:25:05] Node Permissioning is Disabled. TRACE[06-25|21:25:05] Rejected peer before protocol handshake id=e11c7cbba37e9de6 addr=10.50.0.2:22001 conn=staticdial err="connected to self" TRACE[06-25|21:25:05] Dial task done task="staticdial e11c7cbba37e9de6 10.50.0.2:22001" TRACE[06-25|21:25:05] New dial task task="wait for dial hist expire (29.999994518s)" DEBUG[06-25|21:25:07] Executing EVM call finished runtime=535.828µs DEBUG[06-25|21:25:07] Executing EVM call finished runtime=478.274µs DEBUG[06-25|21:25:10] Executing EVM call finished runtime=721.691µs DEBUG[06-25|21:25:10] Executing EVM call finished runtime=482.01µs

dhyansraj commented 6 years ago

What are the Raft IDs of each node. You can see this from each nodes UI. There is an issue with Raft that while retrying multiple times, the node setup gets messed up. If the Raft IDs are in sequential order, this might not be the case. Also since you are trying to deploy privately, if there should have been an error in constellation log.

horca17 commented 6 years ago

URRENT_IP=10.50.0.2 RPC_PORT=22000 WHISPER_PORT=22001 CONSTELLATION_PORT=22002 RAFT_PORT=22003 THIS_NODEMANAGER_PORT=22004 NETWORK_ID=50299 RAFT_ID=1 NODENAME=Bank1

PUBKEY=/tAzKQDY4v/nsm73reciK327+KnVr8K7WdA1sWZCu20= CONTRACT_ADD=0xbcc693d2147ea8d2cbec43929d999a19471dd33c REGISTERED=TRUE

horca17 commented 6 years ago

NODENAME=Bank3 MASTER_IP=10.50.0.2 WHISPER_PORT=24001 RAFT_PORT=24003 RPC_PORT=24000 CONSTELLATION_PORT=24002 THIS_NODEMANAGER_PORT=24004 MAIN_NODEMANAGER_PORT=22004 CURRENT_IP=10.50.0.2

NETWORK_ID=50299 MASTER_CONSTELLATION_PORT=22002 CONTRACT_ADD=0xbcc693d2147ea8d2cbec43929d999a19471dd33c RAFT_ID=3 PUBKEY=1qJtteFgB5GzpiAEi5s+IJAc7vxyD+1pmZ3yym9B8W0=

REGISTERED=TRUE

horca17 commented 6 years ago

NODENAME=Bank2 MASTER_IP=10.50.0.2 WHISPER_PORT=23001 RAFT_PORT=23003 RPC_PORT=23000 CONSTELLATION_PORT=23002 THIS_NODEMANAGER_PORT=23004 MAIN_NODEMANAGER_PORT=22004 CURRENT_IP=10.50.0.2

NETWORK_ID=50299 MASTER_CONSTELLATION_PORT=22002 CONTRACT_ADD=0xbcc693d2147ea8d2cbec43929d999a19471dd33c RAFT_ID=2 PUBKEY=sQdtlrMY80L1cd4zkpg3zSKii1Jac4xoF8ux7bFySCM=

REGISTERED=TRUE

dhyansraj commented 6 years ago

I just setup Bank1, Bank2 and Bank3 with V2.1 image and everything worked without any issue. I was able to deploy a contract as well. Could you please repeat from a clean slate? remove all docker containers and nodes created.

horca17 commented 6 years ago

Ok, I tried starting from scratch, removed all docker containers and nodes, but still not able to deploy/compile a contract. I am not able to load the contract, I can choose it but then the button to Submit is not available to click, let me know, and not able yet to make the email work, thanks.

dhyansraj commented 6 years ago

Can you give us some more details on your environment? OS, Virtual Machine etc? This is first time someone reporting an issue like this. We have already tried in many different operating systems and setups, this was never a problem. Also meanwhile, can you choose option 4 and create a test network and try same? That might help you familiarize with QM2.

horca17 commented 6 years ago

Using Chrome, FireFox, and Safari, different but the same problem. Unless I am doing something really wrong, same result with Docker and on Vagrant(VirtualBox), looks like a bug.

Also, I am trying to upload (deploy/compile) a contract from external access, using RPC port and url http://localhost:22000(Docker) or http://192.168.33.11:22000(vagrant) and I receive the following message:

  1. Connecting to target node: http://192.168.33.11:22000 Found account in the target node: 0xe85B4F6B78981b4DB63D1FD899baD9dc1504BE7D
  2. Deploying smart contract Failed to deploy the smart contract. Error: Error: Returned error: authentication needed: password or unlock

Do I need to provide an ID, public or private key, to access the node? something like this? https://xxxxxx:yyyyyyyyyyy@localhost:22000

let me know, thanks.

screen shot 2018-06-28 at 3 11 53 pm screen shot 2018-06-28 at 3 09 47 pm

If I hardcode the button submit and remove the disabled"", it tries to do it but with many errors.

screen shot 2018-06-28 at 3 08 56 pm screen shot 2018-06-28 at 3 08 35 pm
horca17 commented 6 years ago

Hello, anything to say?

dhyansraj commented 6 years ago

Been busy with 2.2 release. But your issue is really puzzling. Have you tried creating a Test/Dev network using option 4? Are you getting any errors on Chrome console or Network tab?

horca17 commented 6 years ago

Hello, yes same issue, look images:

screen shot 2018-06-30 at 8 43 12 pm

This is the case, now when I try to deploy a contract:

screen shot 2018-06-30 at 8 45 16 pm

Also, I tried on Windows, and I have the Submit button activated like with Firefox, but when I click on it, have the same errors, like these ones:

screen shot 2018-06-30 at 8 55 39 pm

And with Safari, everything is messed up.

Let me know if I can try something for you, or any other test.

Ah, I am using your Dev2.2 version with same results.

thanks.

dhyansraj commented 6 years ago

Have you seen the UI changed with V2.2 ? The orange box on the top side is changed. If not can you clear the browser cache? On Chrome, you can do shift + F5.

horca17 commented 6 years ago

will do now

horca17 commented 6 years ago

Ok, I tried the last version of dev2.2 with these results:

screen shot 2018-06-30 at 9 31 52 pm

The Submit button is not activated and if I html edit on the console:

screen shot 2018-06-30 at 9 34 11 pm

First time I have this:

screen shot 2018-06-30 at 9 35 50 pm

Waiting:

screen shot 2018-06-30 at 9 39 06 pm

Many errors occurred.

horca17 commented 6 years ago

on firefox:

screen shot 2018-06-30 at 9 47 09 pm screen shot 2018-06-30 at 9 51 22 pm

On Safari is better but:

screen shot 2018-06-30 at 10 00 07 pm screen shot 2018-06-30 at 10 00 48 pm
dhyansraj commented 6 years ago
quorummaker1

Tested from a friend's Macbook and everything worked fine. Used Chrome. See attached screenshot. Created a Testnetwork with 3 nodes. The button is not enabled on Safari. I will add note to the section that only on Chrome is supported.

All I had to install was Docker for mac downloaded from docker.com

horca17 commented 6 years ago

Hello, I found several problems.

1- I had to update my chrome and now the disable button is working. 2- I was trying to deploy inherited (SimpleStorage.sol attached) contracts with no results, but now we realize it only works with simple contracts (Owned.sol attached).

Will now use a Docker on a Server, because I am having problems with Docker subnet and Mac.

Let you know,

horacio

On Mon, Jul 2, 2018 at 3:49 PM, dhyansraj notifications@github.com wrote:

[image: quorummaker1] https://user-images.githubusercontent.com/22983630/42180839-b369464c-7e06-11e8-82bc-d27244c44df6.png

Tested from a friend's Macbook and everything worked fine. Used Chrome. See attached screenshot. Created a Testnetwork with 3 nodes. The button is not enabled on Safari. I will add note to the section that only on Chrome is supported.

All I had to install was Docker for mac downloaded from docker.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/synechron-finlabs/quorum-maker/issues/30#issuecomment-401898940, or mute the thread https://github.com/notifications/unsubscribe-auth/AFo4fBH1dqGyRxJCETvGLytggyPQBN_zks5uCms8gaJpZM4U2no8 .

dhyansraj commented 6 years ago

Closing this issue as it was related browser, and currently QM only supports Chrome and it was reporting working fine on it.