erpnext@dos-dev:/opt/bench/frappe-bench**$ bench get-app erpnext --branch version-13 --resolve-deps
Following apps will be installed
1. erpnext
Compatible version of erpnext is already installed
Do you wish to clone and install the already installed Compatible app [y/N]: y
An error occurred while installing erpnext: ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall
Traceback (most recent call last):
File "apps/frappe/frappe/commands/site.py", line 293, in install_app
_install_app(app, verbose=context.verbose)
File "apps/frappe/frappe/installer.py", line 179, in install_app
out = frappe.get_attr(before_install)()
File "apps/erpnext/erpnext/setup/install.py", line 43, in check_setup_wizard_not_completed
frappe.throw(message) # nosemgrep
File "apps/frappe/frappe/__init__.py", line 504, in throw
msgprint(
File "apps/frappe/frappe/__init__.py", line 479, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 434, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall
If you’ve already run the frappe setup wizard, that’s expected behavior. I don’t believe it’s possible at present to setup a frappe site and add erpnext later. If you don’t have any data you need, it should be as simple as using the restore command that’s given to you in the last line. If you do need the data, it will be a bit more complicated.
Is it possible that you’re confusing the get-app command and the install-app commands? The fact that an app is present in /apps doesn’t tell you whether or not it has been installed in a particular site.