While trying to pull any report, the following error happens : “Something unexpected happened. Please try again, or report an issue if the problem persists.”
@andyasne I think the best place to start is to verify that all the services are running correctly (cchq your-env django-manage check_services).
Next I would look at the log files. The log files should be located on the webworker machine under the cchq user's profile at the following directory location:
/home/cchq/www/your-env/log/
In this directory there's a bunch of files, but the django.log file(s) would be a good place to start.
Feel free to paste some errors here if you find any.
hey @andyasne , can you please confirm whether you've been able to follow these steps? perhaps this will require @danmulu1 's support?
hey @danmulu1 and @andyasne (cc @Anteneh), this issue should actually be resolved by pulling the latest version of CCHQ. I understand it's been about a month since updating, so why don't you try that, and then see if this issue still persists. thanks!
@Ali_Flaming Thank you. Unfortunately, @andyasne had no means of trying the suggessions as it was a task that should be taken care of by our DevOps engineers. We will follow up with @danmulu1 if he can try them once he completes his training.
HI @Ali_Flaming and @CharlSmit , Yes i have been able to run the script yesterday found missing multimedia files and updated the missing file based on the script now we don't have missing file on the server but while trying to pull to the latest version of the application from cloud(commcare) it responds 500 , error i have been able to investigate to get the logs here is attached logs while pulling `Traceback (most recent call last):
File
“/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/django/core/handlers/exception.py”, line 47, in inner
response = get_response(request)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/django/core/handlers/base.py”, line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py”, line 67, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/domain/decorators.py”, line 111, in _inner
return call_view()
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/domain/decorators.py”, line 84, in call_view
def call_view(): return view_func(req, domain_name, *args, **kwargs)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/users/decorators.py”, line 45, in _inner
return view_func(request, domain, *args, **kwargs)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/apps.py”, line 1047, in pull_upstream_app
update_linked_app(app, upstream_app_id, request.couch_user.get_id)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/utils.py”, line 364, in update_linked_app
app = overwrite_app(app, master_build, report_map)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/utils.py”, line 197, in overwrite_app
wrapped_app = _update_forms(wrapped_app, master_build, ids_map)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/views/utils.py”, line 221, in _update_forms
return new_wrapped_app.save_attachments(attachments, save)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4643, in save_attachments
self.put_attachment(attachment, name)
File “/usr/lib/python3.9/contextlib.py”, line 126, in __exit__
next(self.gen)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 268, in atomic_blobs_context
six.reraise(typ, exc, tb)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/six.py”, line 719, in reraise
raise value
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 256, in atomic_blobs_context
(self.save if save is None else save)()
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4841, in save
super(Application, self).save(*args, **kwargs)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4696, in save
super(ApplicationBase, self).save(**params)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4118, in save
super(LazyBlobDoc, self).put_attachment(name=name, **info)
File “/usr/lib/python3.9/contextlib.py”, line 126, in __exit__
next(self.gen)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 268, in atomic_blobs_context
six.reraise(typ, exc, tb)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/six.py”, line 719, in reraise
raise value
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/blobs/mixin.py”, line 256, in atomic_blobs_context
(self.save if save is None else save)()
File “/home/cchq/www/echis/releases/2022-10-02_13.58/corehq/apps/app_manager/models.py”, line 4112, in super_save
super(LazyBlobDoc, self).save(**params)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/couchdbkit/schema/base.py”, line 134, in save
db.save_doc(doc, **params)
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/couchdbkit/client.py”, line 523, in save_doc
put_resp.raise_for_status()
File “/home/cchq/www/echis/releases/2022-10-02_13.58/python_env-3.9/lib/python3.9/site-packages/requests/models.py”, line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://172.x.x.x:25984/commcarehq__apps/49a390c8938c90f81c00f0a65d00bc27`
This issue has been fixed offline, working with Dan.
cause of an issue: couchdb_proxy's disk space was full or no space left on disk
. CouchDB is unable to perform its operation. Now fixed.
I tried this morning and the issue still exists. Can you please quickly check on this?
My bad, Eyoel
the fix only resolves, pulling the remote app to the local
. working on this
This issue has been fixed by working offline with the team.
cause of issue: outdated code-deploy on production server
fix steps:
-
apply all the change logs
-
redeploy code