Remote to local with 2 sites- with updated & nonupdated erpnext

I dont know how to do this,

I have remote server installed 6.0 version erpnext & frappe…

I wants to copy it to local as in 2 diffrent sites
Site 1. Latest updated erpnext + custom app + datebase

(Site 1 done)

Site 2. current nonupdate erpnext + custom app + database

But in site 2 when installing frappe or erpnext from my pushed git it shows error while entering
bench get-app https:// MY GIT ACCOUNT…/erpnext

Getting error as
*bench.utils.commandfailederror: git clone https:/// MY GIT ACCOUNT/erpnext --origin upstream*

getting same error while doing getapp MY GIT ACCOUNT/frappe

I know upstream is latest where a get-app command is from origin which is old version…

how to do that?


Please share full traceback

Hi Mr. saurabh! Here it is.

frappe@erpnext:~/frappe-bench$ bench get-app********/erpnext app erpnext
INFO:bench.utils:git clone********/erpnext   --origin upstream
fatal: destination path 'erpnext' already exists and is not an empty directory.
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/", line 40, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/commands/", line 32, in get_app
    get_app(git_url, branch=branch)
  File "/home/frappe/bench-repo/bench/", line 65, in get_app
    cwd=os.path.join(bench_path, 'apps'))
  File "/home/frappe/bench-repo/bench/", line 140, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone********/erpnext   --origin upstream

app already exists under apps directory.

Hi Sourabh,

Yes I know that, but I want my site2 to be installed from my erpnext/frappe repo. (Site1 is from GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP))

I think I will require another bench to do that.


Yes, create a new bench.