Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Customizations for Frappe Health failed #274

Open
1 task done
AhmedHassanEldesoky opened this issue Sep 16, 2023 · 0 comments
Open
1 task done

Removing Customizations for Frappe Health failed #274

AhmedHassanEldesoky opened this issue Sep 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AhmedHassanEldesoky
Copy link

Information about bug

I'm trying to uninstall healthcare app from my site but it gives me this error.
I used this commend
$ bench --site erp.alpharalph.com uninstall-app healthcare --no-backup --force --yes

Module

Setup / Configuration, Integration with ERPNext modules

Version

erpnext 14.x.x-develop
frappe 15.x.x-develop
healthcare 15.0.0-dev

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

Uninstalling App healthcare from Site erp.alpharalph.com...
Removing customizations created by Frappe Health...
Removing Customizations for Frappe Health failed due to an error. Please try again or report the issue on https://github.com/frappe/health/issues/new if not resolved.
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/var/www/bench/frappe/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
    main()
  File "/var/www/bench/frappe/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/var/www/bench/frappe/env/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/var/www/bench/frappe/apps/frappe/frappe/commands/__init__.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/var/www/bench/frappe/apps/frappe/frappe/commands/site.py", line 859, in uninstall
    remove_app(app_name=app, dry_run=dry_run, yes=yes, no_backup=no_backup, force=force)
  File "/var/www/bench/frappe/apps/frappe/frappe/installer.py", line 376, in remove_app
    frappe.get_attr(before_uninstall)()
  File "/var/www/bench/frappe/apps/healthcare/healthcare/uninstall.py", line 20, in before_uninstall
    raise e
  File "/var/www/bench/frappe/apps/healthcare/healthcare/uninstall.py", line 10, in before_uninstall
    remove_customizations()
  File "/var/www/bench/frappe/apps/healthcare/healthcare/setup.py", line 180, in before_uninstall
    domain = frappe.get_doc("Domain", "Healthcare")
  File "/var/www/bench/frappe/apps/frappe/frappe/__init__.py", line 1254, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
  File "/var/www/bench/frappe/apps/frappe/frappe/model/document.py", line 80, in get_doc
    return controller(*args, **kwargs)
  File "/var/www/bench/frappe/apps/frappe/frappe/model/document.py", line 121, in __init__
    self.load_from_db()
  File "/var/www/bench/frappe/apps/frappe/frappe/model/document.py", line 173, in load_from_db
    frappe.throw(
  File "/var/www/bench/frappe/apps/frappe/frappe/__init__.py", line 559, in throw
    msgprint(
  File "/var/www/bench/frappe/apps/frappe/frappe/__init__.py", line 531, in msgprint
    _raise_exception()
  File "/var/www/bench/frappe/apps/frappe/frappe/__init__.py", line 480, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Domain Healthcare not found

Code of Conduct

  • I agree to follow this project's Code of Conduct
@AhmedHassanEldesoky AhmedHassanEldesoky added the bug Something isn't working label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant