Skip to content
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

Cannot start Cosmovisor #74

Open
jprupp opened this issue May 17, 2022 · 4 comments
Open

Cannot start Cosmovisor #74

jprupp opened this issue May 17, 2022 · 4 comments

Comments

@jprupp
Copy link

jprupp commented May 17, 2022

Followed instructions in manual on a fresh Debian installation. Cosmovisor fails to start at the last step:

sifnode@hera:~$ cosmovisor start --pruning nothing
4:08PM INF Configuration is valid:
Configurable Values:
  DAEMON_HOME: /srv/sifnode/.sifnoded
  DAEMON_NAME: sifnoded
  DAEMON_ALLOW_DOWNLOAD_BINARIES: true
  DAEMON_RESTART_AFTER_UPGRADE: true
  DAEMON_POLL_INTERVAL: 300ms
  UNSAFE_SKIP_BACKUP: true
  DAEMON_PREUPGRADE_MAX_RETRIES: 0
Derived Values:
        Root Dir: /srv/sifnode/.sifnoded/cosmovisor
     Upgrade Dir: /srv/sifnode/.sifnoded/cosmovisor/upgrades
     Genesis Bin: /srv/sifnode/.sifnoded/cosmovisor/genesis/bin/sifnoded
  Monitored File: /srv/sifnode/.sifnoded/data/upgrade-info.json
 module=cosmovisor
4:08PM INF running app args=["start","--pruning","nothing"] module=cosmovisor path=/srv/sifnode/.sifnoded/cosmovisor/genesis/bin/sifnoded
4:08PM ERR failed to read error="lstat /srv/sifnode/.sifnoded/cosmovisor/current/upgrade-info.json: no such file or directory" filename=/srv/sifnode/.sifnoded/cosmovisor/current/upgrade-info.json module=cosmovisor
4:08PM INF starting ABCI with Tendermint
4:08PM INF Daemon shutting down in an attempt to restart module=cosmovisor
4:08PM INF pre-upgrade command does not exist. continuing the upgrade. module=cosmovisor
4:08PM INF No upgrade binary found, beginning to download it module=cosmovisor
4:08PM ERR  error="cannot download binary. downloading reference link : invalid source string: " module=cosmovisor
@jprupp
Copy link
Author

jprupp commented May 17, 2022

If I disable binary downloads:

sifnode@hera:~$ cosmovisor start --pruning nothing
4:11PM INF Configuration is valid:
Configurable Values:
  DAEMON_HOME: /srv/sifnode/.sifnoded
  DAEMON_NAME: sifnoded
  DAEMON_ALLOW_DOWNLOAD_BINARIES: false
  DAEMON_RESTART_AFTER_UPGRADE: true
  DAEMON_POLL_INTERVAL: 300ms
  UNSAFE_SKIP_BACKUP: true
  DAEMON_PREUPGRADE_MAX_RETRIES: 0
Derived Values:
        Root Dir: /srv/sifnode/.sifnoded/cosmovisor
     Upgrade Dir: /srv/sifnode/.sifnoded/cosmovisor/upgrades
     Genesis Bin: /srv/sifnode/.sifnoded/cosmovisor/genesis/bin/sifnoded
  Monitored File: /srv/sifnode/.sifnoded/data/upgrade-info.json
 module=cosmovisor
4:11PM INF running app args=["start","--pruning","nothing"] module=cosmovisor path=/srv/sifnode/.sifnoded/cosmovisor/genesis/bin/sifnoded
4:11PM ERR failed to read error="lstat /srv/sifnode/.sifnoded/cosmovisor/current/upgrade-info.json: no such file or directory" filename=/srv/sifnode/.sifnoded/cosmovisor/current/upgrade-info.json module=cosmovisor
4:11PM INF starting ABCI with Tendermint
4:11PM INF Daemon shutting down in an attempt to restart module=cosmovisor
4:11PM INF pre-upgrade command does not exist. continuing the upgrade. module=cosmovisor
4:11PM ERR  error="binary not present, downloading disabled: cannot stat dir /srv/sifnode/.sifnoded/cosmovisor/upgrades/0.13.2/bin/sifnoded: stat /srv/sifnode/.sifnoded/cosmovisor/upgrades/0.13.2/bin/sifnoded: no such file or directory" module=cosmovisor

@intl-man
Copy link
Contributor

intl-man commented May 18, 2022

@jprupp - Cosmovisor is telling you what the issue there is: it can't find 0.13.2. The snapshot you downloaded would have contained upgrade information and because DAEMON_ALLOW_DOWNLOAD_BINARIES is set to false, it won't download the latest version (so you will need to build and place into the cosmovisor/upgrades folder).

I've updated the documentation with the latest release. If you give that another try, you'll find it'll run correctly.

I think some more detailed operational docs concerning cosmovisor might be necessary here.

@jprupp
Copy link
Author

jprupp commented May 18, 2022

Thank you @intl-man,

I'll deploy and read on cosmovisor. Also I'll create a new document meant to run sifnode without cosmovisor, and test the Docker and Kubernetes documents as well to see if they have any issues.

Cheers

@jprupp
Copy link
Author

jprupp commented May 18, 2022

Your solution didn't work in my case, but it might be because I didn't start the whole process from scratch this time around.

But you gave me an idea: compiling the sifnoded version 0.13.2 manually and putting it in the folder where it was expected, which ended up working successfully:

cp ~/go/bin/sifnoded ~/.sifnoded/cosmovisor/upgrades/0.13.2/bin/sifnoded

It is interesting that even with binary upgrades enabled, cosmovisor didn't manage to find it. I presume that cosmovisor looks for these binaries in a server somewhere. Perhaps we are not uploading new versions of our binaries to that server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants