New node can't read or write to chain even after given permissions

+1 vote

So basically I have a node who has valid permissions but is getting an error saying they have invalid permissions.

So first I created a new node like this:
multichaind myChainName@12.345.678.910:8080 -daemon

I then got this message:
Please ask blockchain admin or user having activate permission to let you connect and/or transact:
multichain-cli myChainName grant MyNewNodeAddress connect
multichain-cli myChainName grant MyNewNodeAddress connect,send,receive

I then granted connect,send,receive,create,admin permissions to the new node

then I ran:
multichaind myChainName@12.345.678.910:8080 -daemon
again and it connected

But now this node cannot read any data on the blockchain or write any data

multichain-cli myChainName liststreams
returns nothing (I have 5 or 6 streams on the chain)

multichain-cli myChainName create stream newStream true
gives this error:
error code: -704
error message:
This wallet doesn't have keys with create permission

multichain-cli myChainName listPermissions
returns this:
[
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "mine",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "admin",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "activate",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "connect",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "send",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "receive",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "issue",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "MyAdminNodeAddress",
        "for" : null,
        "type" : "create",
        "startblock" : 0,
        "endblock" : 4294967295
    }
]

Am I missing a step here or should that node be able to read and create streams?

 

 

asked Jun 27 by Cael

1 Answer

0 votes

Most likely the second node is not successfully syncing up with the first node.

You can confirm this using the getinfo command on both nodes and checking the blocks value.

The underlying problem is usually that one of the node's system clocks is significantly wrong.

answered Jun 27 by MultiChain
Yes the node that can't write or connect has only "blocks" : 0 while my admin node is on blocks 1000
Do you know what is most likely to be causing this issue?
The problem is usually that one of the node's clock time is wrong, by some margin. Please check the system date on each.
...