i repeatedly try to redeploy echis but failed on this step. i am not able to figure out the problem
[172.19.3.41] sudo: sudo -S -p 'sudo password:' -H -u "root" nginx -s reload
Traceback (most recent call last):
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/main.py", line 749, in main
*args, **kwargs
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 385, in execute
multiprocessing
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 275, in _execute
return task.run(*args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 172, in run
return self.wrapped(*args, **kwargs)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/fabfile.py", line 550, in deploy_commcare
_deploy_without_asking(skip_record)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/fabfile.py", line 406, in _deploy_without_asking
deploy_checkpoint(index, command.name, execute_with_timing, command)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/fabfile.py", line 399, in deploy_checkpoint
fn(*args, **kwargs)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/utils.py", line 25, in execute_with_timing
execute(fn, *args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 385, in execute
multiprocessing
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 275, in _execute
return task.run(*args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 172, in run
return self.wrapped(*args, **kwargs)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/fabfile.py", line 389, in conditionally_stop_pillows_and_celery_during_migrate
execute_with_timing(db.migrate)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/utils.py", line 25, in execute_with_timing
execute(fn, *args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 385, in execute
multiprocessing
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 275, in _execute
return task.run(*args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/tasks.py", line 172, in run
return self.wrapped(*args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/decorators.py", line 52, in inner_decorator
return func(*args, **kwargs)
File "/home/ansible/commcare-cloud/src/commcare_cloud/fab/operations/db.py", line 96, in migrate
sudo('%(py3_virtualenv_root)s/bin/python manage.py migrate_multi --noinput' % env)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/network.py", line 654, in host_prompting_wrapper
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/network.py", line 654, in host_prompting_wrapper
return func(*args, **kwargs)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/operations.py", line 1121, in sudo
stderr=stderr, timeout=timeout, shell_escape=shell_escape,
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/operations.py", line 952, in _run_command
error(message=msg, stdout=out, stderr=err)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/utils.py", line 359, in error
return func(message)
File "/home/ansible/.virtualenvs/cchq/lib/python3.6/site-packages/fabric/utils.py", line 55, in abort
raise env.abort_exception(msg)
Exception: sudo() received nonzero return code 1 while executing!
Requested: /home/cchq/www/echis/releases/2021-06-17_04.58/python_env-3.6/bin/python manage.py migrate_multi --noinput
Executed: sudo -S -p 'sudo password:' -H -u "cchq" /bin/bash -l -c "cd /home/cchq/www/echis/releases/2021-06-17_04.58 >/dev/null && /home/cchq/www/echis/re
leases/2021-06-17_04.58/python_env-3.6/bin/python manage.py migrate_multi --noinput"