Deployment failed on sync_finish_couchdb_hq

Hi All,

i was trying to redeploy commcarehq on local server. but failed on the following step.

2020-07-30 09:45:37,927 INFO AXES: BEGIN LOG
2020-07-30 09:45:38,356 INFO Copy prepared design docs for ‘app_manager’ in couchdb
2020-07-30 09:45:38,371 WARNING _design/app_manager-tmp not found.
2020-07-30 09:45:38,377 INFO Copy prepared design docs for ‘auditcare’ in couchdb
Copying design docs for plugin app_manager
Copying design docs for plugin auditcare

and this is the log output

Traceback (most recent call last):
File “manage.py”, line 189, in
main()
File “manage.py”, line 41, in main
execute_from_command_line(sys.argv)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/python_env-3.6/lib/python3.6/site-packages/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/home/cchq/www/echis/releases/2020-07-11_13.27/python_env-3.6/lib/python3.6/site-packages/django/core/management/init.py”, line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py”, line 283, in run_from_argv
self.execute(*args, **cmd_options)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/corehq/preindex/management/commands/sync_finish_couchdb_hq.py”, line 11, in handle
plugin.copy_designs(temp=‘tmp’)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/corehq/preindex/preindex_plugins.py”, line 51, in copy_designs
copy_design_doc(design, temp=temp, delete=delete)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/corehq/preindex/accessors.py”, line 52, in copy_design_doc
delete=delete,
File “/home/cchq/www/echis/releases/2020-07-11_13.27/corehq/ex-submodules/dimagi/utils/couch/sync_docs.py”, line 58, in copy_designs
db.copy_doc(from_id, to_id)
File “/home/cchq/www/echis/releases/2020-07-11_13.27/python_env-3.6/lib/python3.6/site-packages/couchdbkit/client.py”, line 740, in copy_doc
resp.raise_for_status()
File “/home/cchq/www/echis/releases/2020-07-11_13.27/python_env-3.6/lib/python3.6/site-packages/requests/models.py”, line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error unknown_error function_clause for url: http://172.19.3.41:25984/commcarehq__auditcare/_design/auditcare-tmp

That is an error from couchdb. I’ve seen unknown_error function_clause before, but unfortunately I think it’s just a generic error that can have any number of causes. Can you checked the couchdb logs to see if there’s more information there?

it’s working now. Thanks

The issue was caused by the new imported app to the server. I think there were errors during the import process.