frappe / hrms

Open Source HR and Payroll Software
https://frappehr.com
GNU General Public License v3.0
1.01k stars 561 forks source link

frappe.exceptions.DoesNotExistError: DocType Job Opening not found - on installing Hrms on bitnami erpnext #1382

Open aquananu opened 5 months ago

aquananu commented 5 months ago

Information about bug

trying to install hrms on exrpnext ova by bitnami

it just stops working after add hrms

Module

HR

Version

Bench 5.2.14 frappe -15 frappe-hr installed using bench add-app hrms

Installation method

None

Relevant log output / Stack trace / Full Error Message.

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 95, in application
    init_request(request)
  File "apps/frappe/frappe/app.py", line 179, in init_request
    raise frappe.SessionStopped("Session Stopped")
frappe.exceptions.SessionStopped: Session Stopped

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "apps/frappe/frappe/website/serve.py", line 17, in get_response
    endpoint, renderer_instance = path_resolver.resolve()
  File "apps/frappe/frappe/website/path_resolver.py", line 63, in resolve
    if renderer_instance.can_render():
  File "apps/frappe/frappe/website/page_renderers/document_page.py", line 17, in can_render
    if self.search_in_doctypes_with_web_view():
  File "apps/frappe/frappe/website/page_renderers/document_page.py", line 26, in search_in_doctypes_with_web_view
    if document := _find_matching_document_webview(self.path):
  File "apps/frappe/frappe/utils/caching.py", line 157, in redis_cache_wrapper
    val = func(*args, **kwargs)
  File "apps/frappe/frappe/website/page_renderers/document_page.py", line 92, in _find_matching_document_webview
    meta = frappe.get_meta(doctype)
  File "apps/frappe/frappe/__init__.py", line 1294, in get_meta
    return frappe.model.meta.get_meta(doctype, cached=cached)
  File "apps/frappe/frappe/model/meta.py", line 63, in get_meta
    meta = Meta(doctype)
  File "apps/frappe/frappe/model/meta.py", line 117, in __init__
    super().__init__("DocType", doctype)
  File "apps/frappe/frappe/model/document.py", line 123, in __init__
    self.load_from_db()
  File "apps/frappe/frappe/model/meta.py", line 123, in load_from_db
    super().load_from_db()
  File "apps/frappe/frappe/model/document.py", line 169, in load_from_db
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 578, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 550, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 501, in _raise_exception
    raise exc
frappe.exceptions.DoesNotExistError: DocType Job Opening not found

Code of Conduct

zefanja commented 6 days ago

Make sure, bench is running during installation.

You can try to run bench migrate and see if it fixes the issue.