Main > Technical Support

My testnet no bitshares-ui write access but works with cli_wallet

<< < (2/2)

sschiessl:
Any console log output? Added chainid to ChainConfig ws-js?

j-v-h-silver:
I have a VM with Ubuntu 16.04 LTS and downloaded https://github.com/bitshares/bitshares-core built it as per instructions and witness_node is running.
The witness_node starts with
./witness_node --data-dir=data-bts/myblocktestnet  --genesis-json=genesis/my-genesis.json --enable-stale-production --seed-nodes "[]"
and is running properly
The Cli_wallet starts with
 ./cli_wallet --wallet-file my-wallet.json --chain-id c3807ea4b7d28da76249c6be53dc6342a12888327aab9d66ac1d53e31e797ae3 --server-rpc-endpoint ws://0.0.0.0:8090 -u '' -p ''

as the config file in the data-bts/myblocktestnet has the rpc as
# Endpoint for websocket RPC to listen on
rpc-endpoint = 0.0.0.0:8090

I note that the line for API is still commented out as I chose to rely on defaults
# JSON file specifying API permissions
# api-access =

and I have made users and sent "test" assets to them successfully
"info command in cli_wallet shows the following
unlocked >>> info
{
  "head_block_num": 5359,
  "head_block_id": "000014ef5d66f77c29bce7c12bdc83722520818e",
  "head_block_age": "0 second old",
  "next_maintenance_time": "31 minutes in the future",
  "chain_id": "c3807ea4b7d28da76249c6be53dc6342a12888327aab9d66ac1d53e31e797ae3",
  "participation": "100.00",
  "active_witnesses": [
    "1.6.1",
    "1.6.2",
    "1.6.3",
    "1.6.4",
    "1.6.5",
    "1.6.6",
    "1.6.7",
    "1.6.8",
    "1.6.9",
    "1.6.10",
    "1.6.11"
  ],
  "active_committee_members": [
    "1.5.0",
    "1.5.1",
    "1.5.2",
    "1.5.3",
    "1.5.4",
    "1.5.5",
    "1.5.6",
    "1.5.7",
    "1.5.8",
    "1.5.9",
    "1.5.10"
  ]
}


However the  bitshares-ui which I built also from latest github code connects once I populate "settings" / "nodes" / "personal"
with ws://localhost:8090 in the firefox browser within the VM
However "send" and permissions are "greyed out" and I cannot seem to do anything but have readonly "database_api" access.
This is the case whether in a VM browser like firefox on Ubuntu or my Windows host accessing the VM ip address via the VM bridged network .. which also allows connections but active buttons greyed out.

 I have not built a faucet so logins are via saved BIN wallet files generated via brainkeys made from the suggest_brain_key cli_wallet feature

So I cant use the bitshares-ui with my testnet and am wondering if its because of using local login via a brainkey restored wallet OR that I need a API referenced file in config.ini with something like
{
   "permission_map" :
   [
     
      [
         "*",
         {
            "password_hash_b64" : "*",
            "password_salt_b64" : "*",
            "allowed_apis" : ["database_api", "network_broadcast_api", "history_api"]
         }
      ]
   ]
}


Any help would be greatly appreciated for which direction to take and perhaps any steps required.
Regards John

Navigation

[0] Message Index

[*] Previous page

Go to full version