Update to Version 8

Hi,

We are using ERPNext in Self hosted server, Current version is as below, but we need to update to version 8,
how can we update . ??
we have tied bench update , but error are occurred.

ERPNext: v7.2.19

Frappe Framework: v7.2.15

@dineshpanchal432,

Please share what error occurred while updating the ERPNext.

Also, to upgrade from version 7 to version 8 please use the following command

bench update --upgrade

please take the database backup before running bench update command

[root@localhost frappe-bench]# bench update --upgrade
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)

Cannot proceed with update: You have local changes in app “frappe” that are not committed.

Here are your choices:

  1. Merge the frappe app manually with “git pull” / “git pull --rebase” and fix conflicts.
  2. Temporarily remove your changes with “git stash” or discard them completely
    with “bench update --reset” or for individual repositries “git reset --hard”
  3. If your changes are helpful for others, send in a pull request via GitHub and
    wait for them to be merged in the core.

@dineshpanchal432
You have made some changes in frappe app ,you need to add these changes then commit .
then try bench update

Hi @dineshpanchal432! If you didn’t change anything in the frappe application, you can do the following:

  1. change your directory to apps/frappe
  2. use: git reset --hard
  3. cd to your frappe-bench folder and do bench update --upgrade

If ERPNext prompts with the same error (and you haven’t edited anything in erpnext), just do the same steps. Do git reset --hard inside the apps/erpnext folder and try to run update again. :slight_smile:

Cheers!
Hera

how do i commit these changes ?

@ci2016 thank but no it gives me error on permission

nothing added to commit but untracked files present (use “git add” to track)
[root@localhost erpnext]# git add --all
[root@localhost erpnext]# git stash
Saved working directory and index state WIP on master: efd5ead Merge branch ‘hotfix’
HEAD is now at efd5ead Merge branch ‘hotfix’
[root@localhost erpnext]# bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
INFO:bench.app:pulling frappe
INFO:bench.utils:git pull upstream master
From https://github.com/frappe/frappe

  • branch master -> FETCH_HEAD
    Updating efbd7ea…3f6121b
    Fast-forward
    frappe/init.py | 2 ±
    frappe/desk/page/modules/modules.js | 6 ++±–
    frappe/email/doctype/email_alert/email_alert.py | 11 ++++±-----
    frappe/email/doctype/email_alert/test_email_alert.py | 6 +++±-
    4 files changed, 13 insertions(+), 12 deletions(-)
    INFO:bench.utils:find . -name “*.pyc” -delete
    INFO:bench.app:pulling erpnext
    INFO:bench.utils:git pull upstream master
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    Updating efd5ead…a1c23a5
    warning: unable to unlink erpnext/buying/report/supplier_addresses_and_contacts/init.py: Permission denied
    warning: unable to unlink erpnext/buying/report/supplier_addresses_and_contacts/supplier_addresses_and_contacts.json: Permission denied
    warning: unable to unlink erpnext/controllers/js/contact_address_common.js: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/init.py: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/expense-claim-3.1.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/expense-claim-3.2.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/vehicle-1.1.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/vehicle-1.2.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/vehicle-1.3.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/vehicle-expenses.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/vehicle-log-2.1.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/fleet-management/vehicle-log-2.2.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/init.py: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/api-step-1.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/api-step-2.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/api-step-3.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/create_dropbox_service.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/dropbox-2.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/dropbox-3.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/dropbox-open-1.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/dropbox-open-2.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/dropbox-open-3.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/ldap_settings.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/login_via_ldap.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/payment_gateway_account_paypal.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/payment_gateway_account_razorpay.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/paypal_coa.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/paypal_settings.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/razorpay_coa.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/razorpay_settings.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/sanbox-credentials.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/setup-backup-frequency.png: Permission denied
    warning: unable to unlink erpnext/docs/assets/img/setup/integration-service/setup-sanbox-1.png: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/init.py: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/dropbox-backup.md: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/index.md: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/index.txt: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/ldap-integration.md: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/paypal-integration.md: Permission denied
    warning: unable to unlink erpnext/docs/user/manual/en/setting-up/integration-services/razorpay-integration.md: Permission denied
    warning: unable to unlink erpnext/fleet_management/report/init.py: Permission denied
    warning: unable to unlink erpnext/fleet_management/report/vehicle_expenses/init.py: Permission denied
    warning: unable to unlink erpnext/fleet_management/report/vehicle_expenses/vehicle_expenses.js: Permission denied
    warning: unable to unlink erpnext/fleet_management/report/vehicle_expenses/vehicle_expenses.json: Permission denied
    warning: unable to unlink erpnext/fleet_management/report/vehicle_expenses/vehicle_expenses.py: Permission denied
    warning: unable to unlink erpnext/hr/report/monthly_salary_register/init.py: Permission denied
    warning: unable to unlink erpnext/hr/report/monthly_salary_register/monthly_salary_register.html: Permission denied
    warning: unable to unlink erpnext/hr/report/monthly_salary_register/monthly_salary_register.js: Permission denied
    warning: unable to unlink erpnext/hr/report/monthly_salary_register/monthly_salary_register.json: Permission denied
    warning: unable to unlink erpnext/hr/report/monthly_salary_register/monthly_salary_register.py: Permission denied
    warning: unable to unlink erpnext/selling/report/customer_addresses_and_contacts/init.py: Permission denied
    warning: unable to unlink erpnext/selling/report/customer_addresses_and_contacts/customer_addresses_and_contacts.json: Permission denied
    error: unable to create file erpnext/docs/user/manual/en/CRM/crm_reports.md (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/CRM/customer.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/CRM/index.txt’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/CRM/lead.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/CRM/newsletter.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/CRM/opportunity.md’ (Permission denied)
    error: unable to create file erpnext/docs/user/manual/en/accounts/bank-guarantee.md (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/index.txt’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/item-wise-taxation.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/managing-fixed-assets.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/multi-currency-accounting.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/payment-request.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/payments.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/point-of-sale-pos-invoice.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/recurring-orders-and-invoices.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/sales-invoice.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/accounts/setup/accounts-settings.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/buying/request-for-quotation.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/customer-portal/portal-login.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/customer-portal/sign-up.md’ (Permission denied)
    error: unable to create file erpnext/docs/user/manual/en/human-resources/employee-loan-management.md (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/human-resources/expense-claim.md’ (Permission denied)
    error: unable to create file erpnext/docs/user/manual/en/human-resources/fleet-management.md (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/human-resources/index.txt’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/human-resources/job-applicant.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/introduction/the-champion.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/manufacturing/production-order.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/selling/articles/drop-shipping.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/selling/sales-order.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/setting-up/articles/rename-user.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/setting-up/company-setup.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/setting-up/email/email-account.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/setting-up/email/email-alerts.md’ (Permission denied)
    error: unable to unlink old ‘erpnext/docs/user/manual/en/setting-up/email/email-reports.md’ (Permission denied)
    fatal: cannot create directory at ‘erpnext/docs/user/manual/en/setting-up/feedback’: Permission denied
    Traceback (most recent call last):
    File “/usr/bin/bench”, line 9, in
    load_entry_point(‘bench==4.1.0’, ‘console_scripts’, ‘bench’)()
    File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    File “/usr/lib64/python2.7/site-packages/click/core.py”, line 722, in call
    return self.main(*args, **kwargs)
    File “/usr/lib64/python2.7/site-packages/click/core.py”, line 697, in main
    rv = self.invoke(ctx)
    File “/usr/lib64/python2.7/site-packages/click/core.py”, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/lib64/python2.7/site-packages/click/core.py”, line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/lib64/python2.7/site-packages/click/core.py”, line 535, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/bench-repo/bench/commands/update.py”, line 62, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force, reset=reset)
    File “/home/frappe/bench-repo/bench/commands/update.py”, line 78, in _update
    pull_all_apps(bench_path=bench_path, reset=reset)
    File “/home/frappe/bench-repo/bench/app.py”, line 170, in pull_all_apps
    remote=remote, branch=get_current_branch(app, bench_path=bench_path)), cwd=app_dir)
    File “/home/frappe/bench-repo/bench/utils.py”, line 130, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: git pull upstream master

Note: Repost from other post, since a lot of people have this problem. Please use the following instructions 1-7. It will work for sure:

I am close to a solution. Actually, I found a solution already.

  1. Go to the directory, either frappe-bench/apps/erpnext or frappe-bench/apps/frappe
  2. Type git status
  3. Check the list of the untracked files. There might be files, which do or don’t belong there.
  4. Type git add --all to track those files
  5. Type git stash
  6. Run bench update
  7. It should run successfully, if not, start over with 1. and repeat for the other directory

On this point you’re already done, but you may want to apply your changes, which you stashed. So continue with 8. if you stashed things, which you consider important.

8 . While you’re still in the folder, either frappe-bench/apps/erpnext or frappe-bench/apps/frappe type git stash apply

Your changes will be applied again, but on the next run, you will run into the same issue like you had before.

So 1. - 7. was the solution we were looking for.

Maybe someone can tell, why “print formats” and “support/web forms” are breaking bench update. These are my files:

erpnext/accounts/print_format/nameofsomeguy/__init__.py
erpnext/accounts/print_format/nameofsomeguy/nameofsomeguy.json
erpnext/accounts/print_format/nameofsomeotherguy/__init__.py
erpnext/accounts/print_format/nameofsomeotherguy/nameofsomeotherguy.json
erpnext/support/web_form/contact/__init__.py
erpnext/support/web_form/contact/contact.js
erpnext/support/web_form/contact/contact.json
erpnext/support/web_form/contact/contact.py

I see that you run everything as root and still have permission errors.

Go to the folder ~/frappe-bench/apps/ and post the output of the following command, so we see your file permissions and ownership.

ls -l

This update will cause a major version change in Frappe/ERPNext from 7 to 8.
This would take significant time to migrate and might break custom apps. Please run bench update --upgrade to confirm.
()
You can stay on the latest stable release by running bench switch-to-master or pin your bench to 7 by running bench switch-to-v7

│ ├─┬ send@0.15.3
│ │ ├── debug@2.6.7
│ │ └── http-errors@1.6.1
│ ├── serve-static@1.12.3
│ ├── setprototypeof@1.0.3
│ ├─┬ type-is@1.6.15
│ │ └─┬ mime-types@2.1.15
│ │ └── mime-db@1.27.0
│ └── vary@1.1.1
├─┬ less@2.7.2
│ ├─┬ errno@0.1.4
│ │ └── prr@0.0.0
│ ├── graceful-fs@4.1.11
│ ├── image-size@0.5.5
│ └─┬ promise@7.3.1
│ └── asap@2.0.5
├─┬ nightwatch@0.9.16
│ ├─┬ chai-nightwatch@0.1.1
│ │ ├── assertion-error@1.0.0
│ │ └─┬ deep-eql@0.1.3
│ │ └── type-detect@0.1.1
│ ├── ejs@0.8.3
│ ├─┬ lodash.clone@3.0.3
│ │ ├─┬ lodash._baseclone@3.3.0
│ │ │ ├── lodash._arraycopy@3.0.0
│ │ │ ├── lodash._arrayeach@3.0.0
│ │ │ ├─┬ lodash._baseassign@3.2.0
│ │ │ │ └── lodash._basecopy@3.0.1
│ │ │ ├── lodash._basefor@3.0.3
│ │ │ ├── lodash.isarray@3.0.4
│ │ │ └─┬ lodash.keys@3.1.2
│ │ │ ├── lodash._getnative@3.9.1
│ │ │ └── lodash.isarguments@3.1.0
│ │ ├── lodash._bindcallback@3.0.1
│ │ └── lodash._isiterateecall@3.0.9
│ ├─┬ lodash.defaultsdeep@4.3.2
│ │ ├── lodash._baseclone@4.5.7
│ │ ├── lodash._stack@4.1.3
│ │ ├── lodash.keysin@4.2.0
│ │ ├── lodash.mergewith@4.6.0
│ │ └── lodash.rest@4.0.5
│ ├── minimatch@3.0.3
│ ├── mkpath@1.0.0
│ ├─┬ mocha-nightwatch@3.2.2
│ │ ├── browser-stdout@1.3.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ debug@2.2.0
│ │ │ └── ms@0.7.1
│ │ ├── diff@1.4.0
│ │ ├── escape-string-regexp@1.0.5
│ │ ├── glob@7.0.5
│ │ ├── growl@1.9.2
│ │ ├── json3@3.3.2
│ │ ├─┬ lodash.create@3.1.1
│ │ │ └── lodash._basecreate@3.0.3
│ │ └─┬ supports-color@3.1.2
│ │ └── has-flag@1.0.0
│ ├─┬ optimist@0.6.1
│ │ └── wordwrap@0.0.3
│ ├─┬ proxy-agent@2.0.0
│ │ ├─┬ agent-base@2.1.1
│ │ │ └── semver@5.0.3
│ │ ├── http-proxy-agent@1.0.0
│ │ ├── https-proxy-agent@1.0.0
│ │ ├── lru-cache@2.6.5
│ │ ├─┬ pac-proxy-agent@1.1.0
│ │ │ ├─┬ get-uri@2.0.0
│ │ │ │ ├── data-uri-to-buffer@0.0.4
│ │ │ │ ├── file-uri-to-path@0.0.2
│ │ │ │ └─┬ ftp@0.3.10
│ │ │ │ ├─┬ readable-stream@1.1.14
│ │ │ │ │ ├── isarray@0.0.1
│ │ │ │ │ └── string_decoder@0.10.31
│ │ │ │ └── xregexp@2.0.0
│ │ │ ├─┬ pac-resolver@2.0.0
│ │ │ │ ├── co@3.0.6
│ │ │ │ ├─┬ degenerator@1.0.4
│ │ │ │ │ ├── ast-types@0.9.12
│ │ │ │ │ ├─┬ escodegen@1.8.1
│ │ │ │ │ │ ├── esprima@2.7.3
│ │ │ │ │ │ ├── estraverse@1.9.3
│ │ │ │ │ │ ├─┬ optionator@0.8.2
│ │ │ │ │ │ │ ├── deep-is@0.1.3
│ │ │ │ │ │ │ ├── fast-levenshtein@2.0.6
│ │ │ │ │ │ │ ├── levn@0.3.0
│ │ │ │ │ │ │ ├── prelude-ls@1.1.2
│ │ │ │ │ │ │ ├── type-check@0.3.2
│ │ │ │ │ │ │ └── wordwrap@1.0.0
│ │ │ │ │ │ └─┬ source-map@0.2.0
│ │ │ │ │ │ └── amdefine@1.0.1
│ │ │ │ │ └── esprima@3.1.3
│ │ │ │ ├── ip@1.0.1
│ │ │ │ ├── netmask@1.0.6
│ │ │ │ └── thunkify@2.1.2
│ │ │ └─┬ raw-body@2.2.0
│ │ │ ├── bytes@2.4.0
│ │ │ └── iconv-lite@0.4.15
│ │ └─┬ socks-proxy-agent@2.1.1
│ │ └─┬ socks@1.1.10
│ │ ├── ip@1.1.5
│ │ └── smart-buffer@1.1.15
│ └── q@1.4.1
├─┬ redis@2.7.1
│ └── redis-parser@2.6.0
└─┬ superagent@3.5.2
├── cookiejar@2.1.1
├── extend@3.0.1
├── form-data@2.1.4
└─┬ readable-stream@2.3.3
├── safe-buffer@5.1.1
└─┬ string_decoder@1.0.3
└── safe-buffer@5.1.1

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/ch okidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”} )
npm WARN frappe@ No description
Reloading bench…
Backing up sites…
Patching sites…
Migrating site1.local
Executing execute:frappe.utils.global_search.setup_global_search_table() in site 1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.update_global_search_table in site1.local (1bd3e02 94da19198)
Success
Executing frappe.patches.v7_2.remove_in_filter in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype’, force=True) #2 017-03-09 in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.drop_in_dialog in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘docfield’, force=True) # 2017-03-03 in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘docperm’) #2017-03-03 in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.drop_is_custom_from_docperm in site1.local (1bd3e0 294da19198)
Success
Executing frappe.patches.v8_0.update_records_in_global_search #11-05-2017 in sit e1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.update_published_in_global_search in site1.local ( 1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘custom_docperm’) in site 1.local (1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘deleted_document’) in si te1.local (1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘version’) #2017-04-01 in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.rename_page_role_to_has_role #2017-03-16 in site1. local (1bd3e0294da19198)
Success
Executing frappe.patches.v7_2.setup_custom_perms #2017-01-19 in site1.local (1bd 3e0294da19198)
Success
Executing frappe.patches.v8_0.set_user_permission_for_page_and_report #2017-03-2 0 in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘role’) #2017-05-23 in si te1.local (1bd3e0294da19198)
Success
Executing execute:frappe.core.doctype.language.language.update_language_names() # 2017-04-12 in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.drop_unwanted_indexes in site1.local (1bd3e0294da1 9198)
Success
Executing execute:frappe.db.sql(“update tabCommunication set communication_date = creation where time(communication_date) = 0”) in site1.local (1bd3e0294da19198 )
Success
Executing frappe.patches.v7_2.fix_email_queue_recipient in site1.local (1bd3e029 4da19198)
Success
Executing frappe.patches.v7_2.update_feedback_request # 2017-02-27 in site1.loca l (1bd3e0294da19198)
Success
Executing execute:frappe.rename_doc(‘Country’, ‘Macedonia, Republic of’, ‘Macedo nia’, ignore_if_exists=True) in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.rename_doc(‘Country’, ‘Iran, Islamic Republic of’, ‘Ira n’, ignore_if_exists=True) in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.rename_doc(‘Country’, ‘Tanzania, United Republic of’, ’ Tanzania’, ignore_if_exists=True) in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.rename_doc(‘Country’, ‘Syrian Arab Republic’, ‘Syria’, ignore_if_exists=True) in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.rename_listsettings_to_usersettings in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v7_2.update_communications in site1.local (1bd3e0294da1 9198)
/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/contact/contact.json missing
Success
Executing frappe.patches.v8_0.deprecate_integration_broker in site1.local (1bd3e 0294da19198)
Success
Executing frappe.patches.v8_0.setup_email_inbox #2017-03-29 in site1.local (1bd3 e0294da19198)
Success
Executing frappe.patches.v8_0.newsletter_childtable_migrate in site1.local (1bd3 e0294da19198)
Success
Executing execute:frappe.db.sql(“delete from tabDesktop Icon where module_name =‘Communication’”) in site1.local (1bd3e0294da19198)
Success
Executing execute:frappe.db.sql(“update tabDesktop Icon set type=‘list’ where _doctype=‘Communication’”) in site1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.fix_non_english_desktop_icons # 2017-04-12 in site 1.local (1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.set_doctype_values_in_custom_role in site1.local ( 1bd3e0294da19198)
Success
Executing frappe.patches.v8_0.install_new_build_system_requirements in site1.loc al (1bd3e0294da19198)
Please update your NodeJS version
frappe@ /home/frappe/frappe-bench
├── babel-core@6.25.0
├── babel-preset-babili@0.0.12
├── babel-preset-es2015@6.24.1
├── babel-preset-es2016@6.24.1
├── babel-preset-es2017@6.24.1
├── chokidar@1.7.0
└── less@2.7.2

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/ch okidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”} )
npm WARN frappe@ No description
Success
Executing frappe.patches.v8_0.set_currency_field_precision # 2017-05-09 in site1.local (1bd3e0294da19198)
Traceback (most recent call last):
File “/usr/lib64/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib64/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”, lin e 91, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, lin e 17, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py” , line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/core.py” , line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/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/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/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/lib/python2.7/site-packages/click/core.py” , line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/decorato rs.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 216 , in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in mi grate
frappe.modules.patch_handler.run_all()
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/frappe/frappe-bench/apps/frappe/frappe/patches/v8_0/set_currency_f ield_precision.py”, line 22, in execute
ss.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 23 0, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 26 3, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 77 2, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 66 6, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 88 7, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 87 0, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 66 0, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_setting s/system_settings.py”, line 16, in validate
minimum_password_score = cint(self.minimum_password_score) or 0
AttributeError: ‘SystemSettings’ object has no attribute 'minimum_password_score ’

“Executing frappe.patches.v8_0.install_new_build_system_requirements in site1.loc al (1bd3e0294da19198)
Please update your NodeJS version”

@dineshpanchal432
This my help: