question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

upgrade Zulip 3.4 to 4.0: subprocess.CalledProcessError: Command '['supervisorctl', 'stop']' returned non-zero exit status 1

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
timabbottcommented, May 14, 2021

@jarforce OK, I believe I have a fix for this available on the 4.x branch; can you try:

/home/zulip/deployments/current/scripts/upgrade-zulip-from-git 4.x

I believe things should proceed smoothly from there.

(We’ll turn that into a 4.1 release once the fix is confirmed).

0reactions
timabbottcommented, May 14, 2021

The purge-old-deployments issue 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found