How to setup Helpdesk locally in my system.

I am trying to setup the helpdesk locally in my local VM itself and facing some issues.
Can anyone who has knowledge regarding it guide me through the process.
Thanks.

Can you update on the issue you are facing?

When I am trying to setup the helpdesk locally even though when installing the bench the prerequisites that should be downloaded automatically doesn’t and when running the command “bench --site dev.helpdesk.local install-app helpdesk” it’s showing error and when I am trying to resolve it every time it’s showing a new error

have you run bench get-app helpdesk?

Can you send the errors you are receiving?

So like this is the error I am getting right now
frap@frap:~/Desktop/frappe-bench$ bench --site dev.helpdesk.local install-app helpdesk

Installing helpdesk…
An error occurred while installing helpdesk: (‘Module Def’, ‘Helpdesk’, IntegrityError(1062, “Duplicate entry ‘Helpdesk’ for key ‘PRIMARY’”))
Traceback (most recent call last):
File “apps/frappe/frappe/model/base_document.py”, line 524, in db_insert
frappe.db.sql(
File “apps/frappe/frappe/database/database.py”, line 244, in sql
self._cursor.execute(query, values)
File “env/lib/python3.10/site-packages/pymysql/cursors.py”, line 153, in execute
result = self._query(query)
File “env/lib/python3.10/site-packages/pymysql/cursors.py”, line 322, in _query
conn.query(q)
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 563, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 825, in _read_query_result
result.read()
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 1199, in read
first_packet = self.connection._read_packet()
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 775, in _read_packet
packet.raise_for_error()
File “env/lib/python3.10/site-packages/pymysql/protocol.py”, line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File “env/lib/python3.10/site-packages/pymysql/err.py”, line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1062, “Duplicate entry ‘Helpdesk’ for key ‘PRIMARY’”)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 406, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 293, in install_app
add_module_defs(name, ignore_if_duplicate=force)
File “apps/frappe/frappe/installer.py”, line 640, in add_module_defs
d.insert(ignore_permissions=True, ignore_if_duplicate=ignore_if_duplicate)
File “apps/frappe/frappe/model/document.py”, line 290, in insert
self.db_insert(ignore_if_duplicate=ignore_if_duplicate)
File “apps/frappe/frappe/model/base_document.py”, line 551, in db_insert
raise frappe.DuplicateEntryError(self.doctype, self.name, e)
frappe.exceptions.DuplicateEntryError: (‘Module Def’, ‘Helpdesk’, IntegrityError(1062, “Duplicate entry ‘Helpdesk’ for key ‘PRIMARY’”))

and when this error is resolved everytime it’s throwing some other error.

image

Please check installed apps on your site. Is helpdesk already installed?

Try again removing and re installing if already installed
bench --site dev.helpdesk.local uninstall-app helpdesk
bench remove-app helpdesk
bench get-app helpdesk --resolve-deps
bench --site dev.helpdesk.local install-app helpdesk

Thankyou. I will be going through these steps and update you once done.