π Setup and run a Collator
Installation > Configuration > Running > Sync > Session keys > Bond
βοΈ Runningβ
- docker
- fedora
- ubuntu
- other linux
start your docker node
#Non production sample
docker run \
-it \
-p 9933:9933 \
-p 30333:30333 \
-p 30334:30334 \
-p 9615:9615 \
-p 9516:9516 \
-v host_path:/container_path \
--name your_container_name \
mantanetwork/manta:latest \
--base-path /container_path/data \
--keystore-path /container_path/keystore \
--name your_collator_name \
--rpc-cors all \
--collator \
--rpc-methods=unsafe \
--unsafe-rpc-external
#Production sample
docker run \
-it \
-p 9933:9933 \
-p 30333:30333 \
-p 30334:30334 \
-v host_path:/container_path \
--restart=unless-stopped \
--name your_container_name \
mantanetwork/manta:latest \
--base-path /container_path/data \
--keystore-path /container_path/keystore \
--name your_collator_name \
--rpc-cors all \
--collator \
--rpc-methods=safe \
-- \
--telemetry-url 'wss://api.telemetry.manta.systems/submit/ 0'Examples of these name and paths:
host_path:/container_path
=>~/my-manta-db:/manta
your_collator_name
=>Community-Collator-1
You may want to consider the following:
- if using http (not configured for ssl with certbot) for metrics, add ports
-p 9615:9615 -p 9616:9616
- add auto restart to ensure start on system boot or reboot
--restart=unless-stopped
- remove unsafe-rpb-external when you are ready for production
- change rpc-methods to safe when ready for production
--rpc-methods=safe
- additional Pokadot configuration. at the end of your command stack, add -- to designate Pokadot configuration, then add telemetry-url
-- --telemetry-url 'wss://api.telemetry.manta.systems/submit/ 0'
Ensure you can see a line of log like this:
π€ Role: AUTHORITY
- if using http (not configured for ssl with certbot) for metrics, add ports
check the status of the manta service:
#!/bin/bash
systemctl status manta.serviceenable manta service (the service will start automatically on system boot):
#!/bin/bash
sudo systemctl enable manta.servicestart manta service:
#!/bin/bash
sudo systemctl start manta.servicestop manta service:
#!/bin/bash
sudo systemctl stop manta.servicetail the manta service logs:
#!/bin/bash
journalctl -u manta.service -fdebug manta service configuration (run manta as the manta user, to quickly check for runtime errors):
#!/bin/bash
sudo -H -u manta bash -c '/usr/bin/manta --chain /usr/share/substrate/manta.json --base-path /var/lib/substrate --port 31333 --ws-port 9144 --ws-max-connections 100 --rpc-port 9133 --rpc-cors all --rpc-methods safe --state-cache-size 0 --bootnodes /dns/a1.manta.systems/tcp/30333/p2p/12D3KooWCpnkG834s9ETesFTWtGqRDjs6Te1UCXHib3iD8GEmXLU /dns/a4.manta.systems/tcp/30333/p2p/12D3KooWN9Zud842idiiUypJF9nzQfNrSsuWQRdtRA8D6sqsPXMb /dns/a5.manta.systems/tcp/30333/p2p/12D3KooWM6Txo8orkxGsSTPByzzWhtTSfdFi2u9KJtd9eWCkry3k /dns/a7.manta.systems/tcp/30333/p2p/12D3KooWFKMcE12XRLZfktX3crfkZyyBetpHsffDjPopYVhQLXwP /dns/c1.manta.systems/tcp/30333/p2p/12D3KooWSNwD7tJkqKGdMfCVTJbbzrGFTGbXoeMFZCTwEytpFCM4 -- --chain /usr/share/substrate/polkadot.json'
check the status of the manta service:
#!/bin/bash
systemctl status manta.serviceenable manta service (the service will start automatically on system boot):
#!/bin/bash
sudo systemctl enable manta.servicestart manta service:
#!/bin/bash
sudo systemctl start manta.servicestop manta service:
#!/bin/bash
sudo systemctl stop manta.servicetail the manta service logs:
#!/bin/bash
journalctl -u manta.service -fdebug manta service configuration (run manta as the manta user, to quickly check for runtime errors):
#!/bin/bash
sudo -H -u manta bash -c '/usr/bin/manta --chain /usr/share/substrate/manta.json --base-path /var/lib/substrate --port 31333 --ws-port 9144 --ws-max-connections 100 --rpc-port 9133 --rpc-cors all --rpc-methods safe --state-cache-size 0 --bootnodes /dns/a1.manta.systems/tcp/30333/p2p/12D3KooWCpnkG834s9ETesFTWtGqRDjs6Te1UCXHib3iD8GEmXLU /dns/a4.manta.systems/tcp/30333/p2p/12D3KooWN9Zud842idiiUypJF9nzQfNrSsuWQRdtRA8D6sqsPXMb /dns/a5.manta.systems/tcp/30333/p2p/12D3KooWM6Txo8orkxGsSTPByzzWhtTSfdFi2u9KJtd9eWCkry3k /dns/a7.manta.systems/tcp/30333/p2p/12D3KooWFKMcE12XRLZfktX3crfkZyyBetpHsffDjPopYVhQLXwP /dns/c1.manta.systems/tcp/30333/p2p/12D3KooWSNwD7tJkqKGdMfCVTJbbzrGFTGbXoeMFZCTwEytpFCM4 -- --chain /usr/share/substrate/polkadot.json'
check the status of the manta service:
#!/bin/bash
systemctl status manta.serviceenable manta service (the service will start automatically on system boot):
#!/bin/bash
sudo systemctl enable manta.servicestart manta service:
#!/bin/bash
sudo systemctl start manta.servicestop manta service:
#!/bin/bash
sudo systemctl stop manta.servicetail the manta service logs:
#!/bin/bash
journalctl -u manta.service -fdebug manta service configuration (run manta as the manta user, to quickly check for runtime errors):
#!/bin/bash
sudo -H -u manta bash -c '/usr/bin/manta --chain /usr/share/substrate/manta.json --base-path /var/lib/substrate --port 31333 --ws-port 9144 --ws-max-connections 100 --rpc-port 9133 --rpc-cors all --rpc-methods safe --state-cache-size 0 --bootnodes /dns/a1.manta.systems/tcp/30333/p2p/12D3KooWCpnkG834s9ETesFTWtGqRDjs6Te1UCXHib3iD8GEmXLU /dns/a4.manta.systems/tcp/30333/p2p/12D3KooWN9Zud842idiiUypJF9nzQfNrSsuWQRdtRA8D6sqsPXMb /dns/a5.manta.systems/tcp/30333/p2p/12D3KooWM6Txo8orkxGsSTPByzzWhtTSfdFi2u9KJtd9eWCkry3k /dns/a7.manta.systems/tcp/30333/p2p/12D3KooWFKMcE12XRLZfktX3crfkZyyBetpHsffDjPopYVhQLXwP /dns/c1.manta.systems/tcp/30333/p2p/12D3KooWSNwD7tJkqKGdMfCVTJbbzrGFTGbXoeMFZCTwEytpFCM4 -- --chain /usr/share/substrate/polkadot.json'