Open Tachtas opened 2 weeks ago
Hi, thank you for your feedback, in order to solve this please follow this steps:
bench --site mariadb
DELETE FROM tabModule Def
WHERE module_name
= 'ClefinCode Chat';
exit
bench clear-cache
bench --site migrate
you can install the app again let me know if you need any more help
got error : frappe.exceptions.DoesNotExistError: DocType ClefinCode Chat Settings not found
ERPNext ver15.39.3 Arm64
I got this error when installing:
Installing clefincode_chat... An error occurred while installing clefincode_chat: ('Module Def', 'ClefinCode Chat', IntegrityError(1062, "Duplicate entry 'ClefinCode Chat' for key 'PRIMARY'")) Traceback with variables (most recent call last): File "apps/frappe/frappe/commands/site.py", line 452, in install_app _install_app(app, verbose=context.verbose, force=force) context = {'sites': ['frontend'], 'force': False, 'verbose': False, 'profile': False} apps = ('clefincode_chat',) force = False _install_app = <function install_app at 0xfe93579e8720> filelock = <function filelock at 0xfe93579d9e40> exit_code = 0 site = 'frontend' app = 'clefincode_chat' err = DuplicateEntryError('Module Def', 'ClefinCode Chat', IntegrityError(1062, "Duplicate entry 'ClefinCode Chat' for key 'PRIMARY'")) File "apps/frappe/frappe/installer.py", line 310, in install_app add_module_defs(name, ignore_if_duplicate=force) name = 'clefincode_chat' verbose = False set_as_patched = True force = False sync_jobs = <function sync_jobs at 0xfe9356fed120> sync_for = <function sync_for at 0xfe9356fee0c0> sync_customizations = <function sync_customizations at 0xfe93584dc9a0> sync_fixtures = <function sync_fixtures at 0xfe9356fee3e0> app_hooks = {'after_install': ['clefincode_chat.setup.install.after_install'], 'after_migrate': ['clefincode_chat.setup.after_migrate.after_migrate'], 'app_description': ['ERPNext & Frappe Business Chat: A self-hosted communication solution.'], 'app_email': ['info@clefincode.com'], 'app_include_css': ['clefincode_chat.bundle.css'], 'app_include_js': ['clefincode_chat.bundle.js', 'override.bundle.js'], 'app_license': ['GNU General Public License (v3)'], 'app_name': ['clefincode_chat'], 'app_publisher': ['ClefinCode L.L.C-FZ'], 'app_title': ['ClefinCode Chat'], 'app_version': ['1.1.1'], 'doc_events': {'Contact': {'after_insert': ['clefincode_chat.api.api_1_0_1.api.sync_with_chat_profile'], 'on_update': ['clefincode_chat.api.api_1_0_1.api.sync_with_chat_profile']}}, 'frappe_version': ['15.44.2'], 'guest_title': ['ClefinCode Chat'], 'is_frappe_above_v13': [True], 'override_whitelisted_methods': {'frappe.desk.form.load.getdoc': ['clefincode_chat.desk.custom_load.getdoc'], 'frappe.desk.form.load.get_doc... installed_apps = ['frappe', 'erpnext', 'commit', 'whitelabel', 'quick_kanban', 'print_designer'] File "apps/frappe/frappe/installer.py", line 650, in add_module_defs d.insert(ignore_permissions=True, ignore_if_duplicate=ignore_if_duplicate) app = 'clefincode_chat' ignore_if_duplicate = False modules = ['ClefinCode Chat'] module = 'ClefinCode Chat' d =
File "apps/frappe/frappe/model/document.py", line 302, in insert
self.db_insert(ignore_if_duplicate=ignore_if_duplicate)
self =
ignore_permissions = True
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
File "apps/frappe/frappe/model/base_document.py", line 581, in db_insert
raise frappe.DuplicateEntryError(self.doctype, self.name, e)
self =
ignore_if_duplicate = False
conflict_handler = ''
d = {'name': 'ClefinCode Chat', 'creation': '2024-10-28 21:29:24.453515', 'modified': '2024-10-28 21:29:24.453515', 'modified_by': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'idx': 0, 'module_name': 'ClefinCode Chat', 'custom': 0, 'package': None, 'app_name': 'clefincode_chat', 'restrict_to_domain': None, '_user_tags': None, '_comments': None, '_assign': None, '_liked_by': None}
columns = ['name', 'creation', 'modified', 'modified_by', 'owner', 'docstatus', 'idx', 'module_name', 'custom', 'package', 'app_name', 'restrict_to_domain', '_user_tags', '_comments', '_assign', '_liked_by']
frappe.exceptions.DuplicateEntryError: ('Module Def', 'ClefinCode Chat', IntegrityError(1062, "Duplicate entry 'ClefinCode Chat' for key 'PRIMARY'"))