Custom app installation from app installer fails

I am able to get the custom app into my instance using the command
bench get-app reponame, it also shows up in the app installer while clicking on the install button “Queued for install” message appears and nothing happens.

Hi @Thomas_Mathew,

Please check it.

Reference:

https://www.youtube.com/results?search_query=custom+app+install+in+erpnext

Thank You!

Hi running this command

bench --site [sitename] install-app your_custom_app_name

gave the below error

Installing frappe_sync...
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 94, in <module>
    main()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 165, in install_app
    _install_app(app, verbose=context.verbose)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/installer.py", line 139, in install_app
    add_module_defs(name)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/installer.py", line 335, in add_module_defs
    d.save(ignore_permissions=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 259, in save
    return self._save(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 282, in _save
    self.insert()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 236, in insert
    raise e
frappe.exceptions.DuplicateEntryError: (u'Module Def', u'Frappe Sync', IntegrityError(1062, u"Duplicate entry 'Frappe Sync' for key 'PRIMARY'"))

Which frappe/erpnext version do you want to install?

Hi,
erpnext 10.1.64 is the version

Hey @Thomas_Mathew, your version is too old.

We don’t support versions 13 or older anymore. Also, we’re not sure about the installation steps for v10 and whether it’s possible or not.

For more information, please refer to the guidelines.

Thank You!

Actually, the same app is installed in other instances having the same version of erpnext. but unfortunately there is no documentation available.
If you come across any solution please help

But i don’t have a any idea about that but try to find or search for something in the forum.