upgrade Zulip 3.4 to 4.0: subprocess.CalledProcessError: Command '['supervisorctl', 'stop']' returned non-zero exit status 1
See original GitHub issueI would like to upgrade Zulip 3.4 to 4.0 as latest release :
Os: Ubuntu 20.4 and as root:
wget https://www.zulip.org/dist/releases/zulip-server-latest.tar.gz
/home/zulip/deployments/current/scripts/upgrade-zulip zulip-server-latest.tar.gz
I got below error and the upgrade process stoped
2021-05-13 23:43:29,145 upgrade-zulip-stage-2: Stopping Zulip...
Error: stop requires a process name
stop <name> Stop a process
stop <gname>:* Stop all processes in a group
stop <name> <name> Stop multiple processes or groups
stop all Stop all processes
Traceback (most recent call last):
File "./scripts/stop-server", line 38, in <module>
subprocess.check_call(["supervisorctl", "stop", *services])
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['supervisorctl', 'stop']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/zulip/deployments/2021-05-14-01-41-09/scripts/lib/upgrade-zulip-stage-2", line 267, in <module>
shutdown_server()
File "/home/zulip/deployments/2021-05-14-01-41-09/scripts/lib/upgrade-zulip-stage-2", line 108, in shutdown_server
subprocess.check_call(["./scripts/stop-server"], preexec_fn=su_to_zulip)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./scripts/stop-server']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/zulip/deployments/current/scripts/lib/upgrade-zulip", line 68, in <module>
subprocess.check_call([os.path.abspath("./scripts/lib/upgrade-zulip-stage-2"), deploy_path]
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/zulip/deployments/2021-05-14-01-41-09/scripts/lib/upgrade-zulip-stage-2', '/home/zulip/deployments/2021-05-14-01-41-09']' returned non-zero exit status 1.
Please help to solve this issue,
Thank you
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Upgrade from 3.3 to 5.1 - Permission Denied #21791 - GitHub
Hi, I haven't updated Zulip for longer than I should have (I thought it was Nov 2021, but it turned out to be...
Read more >subprocess.CalledProcessError: returned non-zero exit status 0
It happens when I start a subprocess, then tell that subprocess to cleanly exit via a zmq socket. It appears that while zmq...
Read more >Troubleshooting and monitoring - the Zulip documentation!
Use the supervisor client supervisorctl to list the status of, stop, start, and restart various services. Checking status with supervisorctl status. You can ......
Read more >Command works on terminal, but gives a "returned non-zero ...
CalledProcessError, stating " the command returned non-zero exit status 1" ... ***UPDATE*** so this all worked when I changed the command to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jarforce OK, I believe I have a fix for this available on the
4.xbranch; can you try:I believe things should proceed smoothly from there.
(We’ll turn that into a 4.1 release once the fix is confirmed).
The
purge-old-deploymentsissue was fixed in 6766a3f7802e2e7f1eb454f0fb82c021d128ef8f, and the 4.2 release.Can you open a separate issue for the postgresql upgrade item? I think that will need more details and investigation, so it’s best for it not to be on a closed issue.