Documentation
  • INTRODUCTION
  • USERS
    • White Paper
    • Main features of CyberWay
    • Bandwidth differences between EOS and CyberWay
    • Bandwidth implementation
    • How to Launch EOS dApps on CyberWay
    • Glossary
  • DEVELOPMENT ENVIRONMENT
    • Core Concepts
    • 1 Before You Begin
    • 2 Install the CDT
    • 3 Create Development Wallet
    • 4 Start keosd and nodeos
    • 5 Create Test Accounts
  • SOFTWARE MANUALS
    • Core
      • nodeos
      • cleos
      • keosd
      • cyberway.cdt
    • How To Guides
      • How To Ban An Unwanted Account
      • How To Calculate Reward For An Author
      • How To Calculate Reward For A Beneficiary
      • How To Calculate Reward For A Curator
      • How To Create A Wallet
      • How To Create An Account
      • How To Create A Proxy Account
      • How To Create Key Pair
      • How To Delegate Resources
      • How To Deploy A Node Using A Snapshot
      • How To Deploy A Smart Contract
      • How To Get Account Information
      • How To Get Block Information
      • How To Get Transaction Information
      • How To Import A Key
      • How To Link Permission
      • How To List All Key Pair
      • How To Stake Tokens
      • How To Stop A Node Using Docker
      • How To Submit A Proposal For HardFork
      • How To Transfer Tokens To A Worker
      • How To Undelegate Resources
      • How To Unlink Permission
      • How To Unstake Tokens
      • How To Vote
    • API Reference
      • Nodeos Chain API
      • Nodeos Producer API
      • Nodeos Net API
    • Cleos Command Reference
      • Convert
      • Create
      • Get
      • Multisig
      • Net
      • Push
      • Set
      • Sign
      • System
      • Transfer
      • Version
      • Wallet
    • Explorer Command Reference
      • How To Check Your Balance
      • How To Find Out Account ID
      • How To Convert Golos To Golos Power And Vice Versa
      • How To Stake Tokens CYBER
      • How To Transfer Funds From One Account To Another
      • How To Transfer Funds From Pending to Liquid
      • How To Bay Stake
      • How To Withdraw Stake
      • How To Vote For A Validator
      • How To Revoke Your Vote For A Validator
      • How To Bay Vesting Using Explorer
      • How To Vote For A Witness
      • How To Revoke Your Vote For A Witness
  • DEVPORTAL
    • System Contracts
      • BIOS
      • Domain names
      • Govern
      • Multi-Signature
      • Stake
      • Tokens
    • Application Contracts
      • Golos Contracts
        • Charge
        • Control
        • Emission
        • Publication
        • Referral program
        • Social
        • Vesting
        • Memo-keys
        • Determining Rewards for a Post
    • Guide to Creating and Deploying an Application on CyberWay
      • 1 Preliminary Work
      • 2 Creating a Simple Contract
      • 3 Creating Tokens
      • 4 Understanding ABI Files
      • 5 Data Persistence
      • 6 Secondary Indexes
      • 7 Adding Inline Actions
      • 8 Inline Action to External Contract
      • 9 Conclusion
    • The cyberway_wallet designed for the Bittrex market
    • The Event Model
  • VALIDATORS
    • Testnet Installation Guide
      • 1 General
      • 2 Configuring the Docker Image
      • 3 Create Container
      • 4 Connecting to a Node
      • 5 List of Commands Applicable to Any Kind of Container
    • Mainnet Connection Guide
      • Docker-Compose Start-up Instructions
      • APPENDIX A
      • APPENDIX B
    • Golos Blockchain Transit
    • How to join CyberWay for those who are interested in being validators ?
    • Stake Usage Guide
    • Regulations for CyberWay validators. Voting for Validators
Powered by GitBook
On this page
  • Step 1: Start nodeosd
  • Start a node
  • Check a launch of containers
  • Step 2: Start keosd
  • Start the keosd service
  • Start the cleos service
  • Check connection to blockchain
  • Create storage for private key
  • Import the private key
  • Troubleshutting
  1. DEVELOPMENT ENVIRONMENT

4 Start keosd and nodeos

This section provides guidance on how to start keosd and nodeosd services.

Step 1: Start nodeosd

Start a node

To start a node, it is necessary to start two services — nodeosd and mongo. To simplify the startup process, use the docker-compose utility. Enter the directory where docker-compose.yml is located, and execute the services load command:

$ sudo docker-compose up -d

The option -d is required to run container in background.

Check a launch of containers

To check if containers have been started successfully, run the following command:

$ sudo docker ps

To see text of log files, you can use the following commands:

$ sudo docker logs --tail 100 -f nodeosd
$ sudo docker logs --tail 100 -f mongo

Options: --tail — sets a number of text lines; -f — indicates that it is necessary to monitor the update log file.

Check that the text of log files does not contain error messages. There should also be messages about created containers with the names nodeosd and mongo. The text should have the following form:

info  2019-03-07T06:57:09.024 thread-0  producer_plugin.cpp:1491      produce_block        ] Produced block 00000c992d36ab56... #3225 @ 2019-03-07T06:57:09.000 signed by producera [trxs: 0, lib: 2564, confirmed: 0]

It should also have information about blocks received over the network:

info  2019-03-07T06:57:00.096 thread-0  producer_plugin.cpp:344       on_incoming_block    ] Received block 6d6ac52bfe754174... #3222 @ 2019-03-07T06:57:00.000 signed by cyber [trxs: 0, lib: 2562, conf: 0, latency: 96 ms]

Step 2: Start keosd

Start the keosd service

Connecting a node to blockchain is done using the cleos utility. This utility requires a running keosd service to store private keys. The keosd service can be started on user's computer via Docker.

Start the keosd service and connect it to the Docker network where nodeosd is running:

$ sudo docker run -ti -d --name keosd --net cyberway-net cyberway/cyberway:stable /opt/cyberway/bin/keosd

Start the cleos service

Assign alias to run cleos in the container keosd:

$ alias cleos='sudo docker exec -ti keosd cleos --url http://nodeosd:8888'

Check connection to blockchain

Check if your node has been connected to blockchain:

$ cleos get info

No errors should be while the services are running.

Create storage for private key

$ cleos wallet create --file wallet.pass

The keosd service automatically locks storage if it is not in use. Storage can be unlocked using the command:

$ cleos wallet unlock --password 'sudo docker exec -ti keosd cat wallet.pass'

Import the private key

To import your private key, you can use:

$ cleos wallet import --private-key <private-key>

Troubleshutting

In case of errors while container is running, it is recommended to stop the services, remove Docker volume and create it again. To stop the services, you can use:

$ sudo docker-compose down

To remove Docker volume, you can use the following command:

$ sudo docker volume rm cyberway-mongodb-data cyberway-nodeos-data
Previous3 Create Development WalletNext5 Create Test Accounts

Last updated 5 years ago