Skip to content

Updated Cosmovisor versions #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions validators/getting-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ Follow the instructions [here](https://golang.org/doc/install) to install Go.
For an Ubuntu, you can probably use:

```bash
wget https://golang.org/dl/go1.19.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz
wget https://golang.org/dl/go1.22.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.2.linux-amd64.tar.gz
```

Please install Go v1.19.2 or later.
Please install Go v1.22.2 or later.

Unless you want to configure in a non standard way, then set these in the `.profile` in the user's home (i.e. `~/`) folder.

Expand Down
2 changes: 1 addition & 1 deletion validators/joining-the-testnets.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you get stuck, then please ask on Discord.

| chain-id | Current Github version tag |
| -------- | -------------------------- |
| uni-6 | v16.0.0 |
| uni-6 | v27.0.0 |

## Minimum Hardware Requirements

Expand Down
17 changes: 6 additions & 11 deletions validators/setting-up-cosmovisor.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ First, go and get cosmovisor (recommended approach):
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

To install a previous version, you can specify the version after the @ sign. Note that versions older than 1.4.0 can also target a specific version, at a slightly different location:
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.0.0
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.5.0
```

{% hint style="danger" %}
Expand All @@ -43,15 +43,14 @@ This will return something like:
```

{% hint style="info" %}
Building from source allows you to target a specific version of Cosmovisor, in case you do not want to run 1.0.0 yet.
Building from source allows you to target a specific version of Cosmovisor, in case you do not want to run 1.7.0 yet.
{% endhint %}

You can also build from source; cosmovisor is in the main `cosmos-sdk` repo on Github, so you can use Git tags to target a specific version. This example uses a tag, `v0.42.7` that refers to the Cosmos SDK, as Cosmovisor-specific tags did not exist before August 2021. The first of these was `cosmovisor/v0.1.0`, and the second is the current release, `cosmovisor/v1.0.0`.

You can also build from source; cosmovisor is in the main `cosmos-sdk` repo on Github, so you can use Git tags to target a specific version. This example uses a tag, `cosmovisor/v1.5.0`, the current more stable version as some bugs are reported on v1.7.0.
```bash
git clone https://github.com/cosmos/cosmos-sdk
cd cosmos-sdk
git checkout v0.42.7
git checkout cosmovisor/v1.5.0
make cosmovisor
cp cosmovisor/cosmovisor $GOPATH/bin/cosmovisor
cd $HOME
Expand Down Expand Up @@ -167,20 +166,16 @@ Environment="DAEMON_NAME=junod"
Environment="DAEMON_HOME=/home/<your-user>/.juno"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="DAEMON_LOG_BUFFER_SIZE=512"
Environment="UNSAFE_SKIP_BACKUP=true"

[Install]
WantedBy=multi-user.target
```

{% hint style="info" %}
A description of what the environment variables do can be found [here](https://docs.cosmos.network/master/run-node/cosmovisor.html). Change them depending on your setup.
A description of what the environment variables do can be found [here](https://docs.cosmos.network/main/build/tooling/cosmovisor). Change them depending on your setup.
{% endhint %}

Note also that we set buffer size explicitly because of a [live bug in Cosmovisor](https://github.com/cosmos/cosmos-sdk/pull/8590) before version `v1.0.0`. If you are using `v1.0.0`, you may omit that line.

In addition, the same issue can be fixed by reducing the log via env variable. If you are unsure, ask on Discord.

## Start Cosmovisor

{% hint style="warning" %}
Expand Down