-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Cosmovisor doesn't report its version properly #15360
Comments
Additionally I am facing the following when running it as
|
How have you installed cosmovisor? $ go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
$ DAEMON_NAME=simd DAEMON_HOME=~/.simapp DAEMON_DATA_BACK_DIR=~/.simapp/bak cosmovisor version
cosmovisor version: v1.4.0
... |
For the second point, this is related to gaia not returning a valid JSON and not to Cosmovisor |
I compiled it from source, like described here: https://docs.cosmos.network/main/tooling/cosmovisor#installation.
Just tested it, got the same result as you did. I assume that this is not working only when compiling Cosmovisor from source then. It was totally working before though, I've seen some changes where the version injected into app from ldflags was removed and ReadBuildInfo was used instead, my assumption is that it was broken at that time.
Seems not, I also have it on other nodes, for example this is bitsong (also compiled from source):
I am not sure whether these bitsongd/gaiad daemons are writing to stderr or stdout though. |
Oh yes, we wanted to make it work with On your second point I am not sure. Does it work for you too with simapp? I know Gaia had some inconsistencies with where some commands were returning (seen a issue recently on their repo about that). |
I guess it makes sense to either deprecate building from binary or make it work properly for binaries built from source, what do you think?
Actually just tested and it seem to work file with simd:
On the other hand I just noticed I have some chains that have it working (emoney, simd, jackal) and some have it not working (gaia, bitsong, decentr, sentinel). Wonder if it has something to do with cosmos-sdk version, not sure about it. |
I think this is fine, given that it works as intended with I can add a disclaimer in the docs. |
I'm all in, my concern here is that one of the officially recommended ways of installing it is by building from source, so it's nice to have it noted somewhere that the versioning won't work in that case. Adding a disclaimer would work I guess. On the other issue I've mentioned here in comments, should I open another issue on this repository or it isn't something to be fixed and should be rather asked to be fixed by the chain maintainers for the chains it doesn't work properly with? |
Right, I've added a disclaimer for that, so it is more clear
Given that it works with (latest) simapp v0.45, (latest) simapp v0.46, (latest) simapp v0.47 and (latest) simapp from main, // set the default command outputs
cmd.SetOut(cmd.OutOrStdout())
cmd.SetErr(cmd.ErrOrStderr()) |
Summary of Bug
When running
cosmovisor version
it displays its version as(devel)
instead of a proper version (like 1.4.0, the one I've tested it on).Version
Steps to Reproduce
cosmovisor version
The text was updated successfully, but these errors were encountered: