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

Error during install of the app. #1990

Open
anuranjit opened this issue Sep 20, 2024 · 2 comments
Open

Error during install of the app. #1990

anuranjit opened this issue Sep 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@anuranjit
Copy link

Information about bug

I have tried installing different helpdesk versions and all have the same issue.

Version

frappe 15.x.x-develop

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

Installing helpdesk...
Updating DocTypes for helpdesk      : [========================================] 100%
An error occurred while installing helpdesk: Could not find Default ticket type: Bug
Traceback with variables (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 496, in install_app
    _install_app(app, verbose=context.verbose, force=force)
      context = {'sites': ['ceepayout.bigbasket.com'], 'force': False, 'verbose': False, 'profile': False}
      apps = ('helpdesk',)
      force = False
      _install_app = <function install_app at 0x73d6a110a5c0>
      filelock = <function filelock at 0x73d6a2f177e0>
      exit_code = 0
      site = 'ceepayout.bigbasket.com'
      app = 'helpdesk'
      err = LinkValidationError('Could not find Default ticket type: Bug')
  File "apps/frappe/frappe/installer.py", line 324, in install_app
    frappe.get_attr(after_install)()
      name = 'helpdesk'
      verbose = False
      set_as_patched = True
      force = False
      sync_jobs = <function sync_jobs at 0x73d6a044e660>
      sync_for = <function sync_for at 0x73d6a044f420>
      sync_customizations = <function sync_customizations at 0x73d6a10c4400>
      sync_fixtures = <function sync_fixtures at 0x73d6a044f6a0>
      app_hooks = {'after_install': ['helpdesk.setup.install.after_install'], 'app_color': ['grey'], 'app_description': ['Customer Service Software'], 'app_email': ['[email protected]'], 'app_icon': ['octicon octicon-file-directory'], 'app_license': ['AGPLv3'], 'app_name': ['helpdesk'], 'app_publisher': ['Frappe Technologies'], 'app_title': ['Helpdesk'], 'before_install': ['helpdesk.setup.install.before_install'], 'doc_events': {'*': {'validate': ['helpdesk.helpdesk.doctype.hd_service_level_agreement.hd_service_level_agreement.apply']}, 'Communication': {'on_update': ['helpdesk.helpdesk.doctype.hd_service_level_agreement.hd_service_level_agreement.on_communication_update', 'helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.set_first_response_time'], 'after_insert': ['helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.set_descritption_from_communication', 'helpdesk.helpdesk.hooks.communication.after_insert']}, 'Contact': {'before_insert': ['helpdesk.helpdesk.hooks.contact.before_insert'], 'on_trash': ['helpdesk.hel...
      installed_apps = ['frappe', 'bb_delivery']
      before_install = 'helpdesk.setup.install.before_install'
      out = None
      after_install = 'helpdesk.setup.install.after_install'
  File "apps/helpdesk/helpdesk/setup/install.py", line 18, in after_install
    add_default_sla()
  File "apps/helpdesk/helpdesk/setup/install.py", line 72, in add_default_sla
    enable_track_service_level_agreement_in_support_settings()
  File "apps/helpdesk/helpdesk/setup/install.py", line 183, in enable_track_service_level_agreement_in_support_settings
    support_settings.save()
      support_settings = <HDSettings: HD Settings>
  File "apps/frappe/frappe/model/document.py", line 340, in save
    return self._save(*args, **kwargs)
      self = <HDSettings: HD Settings>
      args = ()
      kwargs = {}
  File "apps/frappe/frappe/model/document.py", line 375, in _save
    self._validate_links()
      self = <HDSettings: HD Settings>
      ignore_permissions = None
      ignore_version = None
  File "apps/frappe/frappe/model/document.py", line 947, in _validate_links
    frappe.throw(_("Could not find {0}").format(msg), frappe.LinkValidationError)
      self = <HDSettings: HD Settings>
      invalid_links = [('default_ticket_type', 'Bug', 'Default ticket type: Bug')]
      cancelled_links = []
      msg = 'Default ticket type: Bug'
  File "apps/frappe/frappe/__init__.py", line 687, in throw
    msgprint(
      msg = 'Could not find Default ticket type: Bug'
      exc = <class 'frappe.exceptions.LinkValidationError'>
      title = None
      is_minimizable = False
      wide = False
      as_list = False
      primary_action = None
  File "apps/frappe/frappe/__init__.py", line 652, in msgprint
    _raise_exception()
      msg = 'Could not find Default ticket type: Bug'
      title = None
      raise_exception = <class 'frappe.exceptions.LinkValidationError'>
      as_table = False
      as_list = False
      indicator = 'red'
      alert = False
      primary_action = None
      is_minimizable = False
      wide = False
      realtime = False
      _raise_exception = <function msgprint.<locals>._raise_exception at 0x73d69e0acfe0>
      inspect = <module 'inspect' from '/usr/lib/python3.12/inspect.py'>
      out = {'message': 'Could not find Default ticket type: Bug', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': 'bc37977f4f3e0c7894df74e1a6406afec5c26c96e0e56725f6ac17c8'}
  File "apps/frappe/frappe/__init__.py", line 603, in _raise_exception
    raise exc
      exc = LinkValidationError('Could not find Default ticket type: Bug')
      inspect = <module 'inspect' from '/usr/lib/python3.12/inspect.py'>
      msg = 'Could not find Default ticket type: Bug'
      out = {'message': 'Could not find Default ticket type: Bug', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': 'bc37977f4f3e0c7894df74e1a6406afec5c26c96e0e56725f6ac17c8'}
      raise_exception = <class 'frappe.exceptions.LinkValidationError'>
frappe.exceptions.LinkValidationError: Could not find Default ticket type: Bug
@anuranjit anuranjit added the bug Something isn't working label Sep 20, 2024
@Cruze08
Copy link

Cruze08 commented Nov 8, 2024

solution found?

@RitvikSardana
Copy link
Member

are you still facing the issue ?
@anuranjit @Cruze08

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

3 participants