-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug]: Cosmovisor Upgrade Bug in v1.7.0 #22731
Comments
@akhilkumarpilli are you able to check this? |
Can confirm this bug. |
Hi! This may also happen without using an |
Hey @lucas2brh, we attempted to reproduce the issue with simapp by testing an upgrade scheduled for a block that takes 5 hours to reach. However, cosmovisor functioned as expected and the binary was successfully replaced after the upgrade. Could you please share additional logs or details that might help us investigate further? Thanks! |
Hi @akhilkumarpilli, thanks for your response. I reproduced the issue with our Story client. FYI:
Dec 26 03:00:25 ip-172-31-1-73.us-west-1.compute.internal cosmovisor[2235044]: 24-12-26 03:00:25.841 ERRO UPGRADE "v0.12.1" NEEDED at height: 322000: module=x/upgrade
Dec 26 03:00:25 ip-172-31-1-73.us-west-1.compute.internal cosmovisor[2235044]: 24-12-26 03:00:25.841 ERRO Finalize req failed [BUG] height=322000 err="module manager preblocker: UPGRADE \"v0.12.1\" NEEDED at height: 322000: " stacktrace="[errors.go:39 app.go:161 baseapp.go:706 abci.go:756 abci.go:884 cmt_abci.go:44 abci.go:99 local_client.go:185 app_conn.go:104 execution.go:224 execution.go:219 replay.go:534 replay.go:433 replay.go:274 setup.go:182 node.go:359 node.go:279 start.go:251 start.go:133 start.go:56 cmd.go:56 command.go:985 command.go:1117 command.go:1041 command.go:1034 cmd.go:34 main.go:10 proc.go:272 asm_amd64.s:1700]"
Dec 26 03:00:25 ip-172-31-1-73.us-west-1.compute.internal cosmovisor[2235044]: 24-12-26 03:00:25.841 ERRO error in proxyAppConn.FinalizeBlock module=consensus err="module manager preblocker: UPGRADE \"v0.12.1\" NEEDED at height: 322000: " stacktrace="[errors.go:39 app.go:161 baseapp.go:706 abci.go:756 abci.go:884 cmt_abci.go:44 abci.go:99 local_client.go:185 app_conn.go:104 execution.go:224 execution.go:219 replay.go:534 replay.go:433 replay.go:274 setup.go:182 node.go:359 node.go:279 start.go:251 start.go:133 start.go:56 cmd.go:56 command.go:985 command.go:1117 command.go:1041 command.go:1034 cmd.go:34 main.go:10 proc.go:272 asm_amd64.s:1700]"
Dec 26 03:00:25 ip-172-31-1-73.us-west-1.compute.internal cosmovisor[2235044]: 24-12-26 03:00:25.841 ERRO !! Fatal error occurred, app died️ unexpectedly !! err="create comet node: create node: error during handshake: error on replay: module manager preblocker: UPGRADE \"v0.12.1\" NEEDED at height: 322000: " stacktrace="[errors.go:39 start.go:261 start.go:133 start.go:56 cmd.go:56 command.go:985 command.go:1117 command.go:1041 command.go:1034 cmd.go:34 main.go:10 proc.go:272 asm_amd64.s:1700]"
Dec 26 03:00:25 ip-172-31-1-73.us-west-1.compute.internal cosmovisor[2235036]: Error: exit status 1 Related[ec2-user@ip-172-31-1-73 ~]$ cosmovisor version
cosmovisor version: v1.7.0
5:44AM INF running app args=["version"] module=cosmovisor path=/home/ec2-user/.story/story/cosmovisor/genesis/bin/story
5:44AM INF starting the batch watcher loop module=cosmovisor
Version v0.12.0-stable
Git Commit fcfb283
Git Timestamp 2024-10-25T04:32:37Z
[ec2-user@ip-172-31-1-73 ~]$ go version
go version go1.23.4 linux/amd64
[ec2-user@ip-172-31-1-73 ~]$ cat ~/.story/story/data/upgrade-info.json
{"name":"v0.12.1","time":"0001-01-01T00:00:00Z","height":322000} |
@lucas2brh That's strange, we will try to reproduce issue with story client. |
@lucas2brh, would you be able to share any documentation or steps on scheduling an upgrade on-chain using story and geth clients? |
Is there an existing issue for this?
What happened?
Summary
Cosmovisor appears to have a bug in version v1.7.0. When using the add-upgrade command to schedule an upgrade, the binary is not replaced after reaching the expected height. This issue does not occur in version v1.6.0.
Observations and Configuration
The upgrade target is v0.12.1, and the expected height for the upgrade is 322000.
The directory structure confirms that the upgrade binary for v0.12.1 is properly prepared:
.story/story/cosmovisor/ ├── upgrades/ │ └── v0.12.1/ │ └── bin/ │ └── story └── current -> upgrades/v0.12.0.test3
The binary for the upgrade is located in the correct path and has appropriate permissions:
The active version of Cosmovisor is v1.7.0:
Expected Behavior
At the configured upgrade height (322000), Cosmovisor should replace the binary and start using the v0.12.1 binary.
Actual Behavior
The binary remains unchanged, and the process continues to use the v0.12.0.test3 binary.
Error logs:
Additional Notes
Environment
How to reproduce?
add-upgrade
command to schedule an upgrade.Please investigate this issue and provide a fix or workaround. Let me know if further information is required.
The text was updated successfully, but these errors were encountered: