[Update] Frappe version 6 has been merged into develop

Done,turns out to be another damp squib…sorry for bothering you again (2wice in as many days).

My bench doesn’t start. Below is what I get each time I do ‘bench start’
krys@krys:~$ bench start
09:41:35 system | worker.1 started (pid=3164)
09:41:35 system | workerbeat.1 started (pid=3163)
09:41:35 system | socketio.1 started (pid=3166)
09:41:35 system | redis_async_broker.1 started (pid=3169)
09:41:35 system | redis_cache.1 started (pid=3173)
09:41:35 system | web.1 started (pid=3165)
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.119 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.120 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
09:41:35 redis_cache.1 | [3179] 19 Aug 09:41:35.119 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:41:35 redis_cache.1 | .
09:41:35 redis_cache.1 | .-__ ''-._ 09:41:35 redis_cache.1 | _.- . . ‘’-._ Redis 2.8.19 (00000000/0) 32 bit
09:41:35 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 09:41:35 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 09:41:35 redis_cache.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 11311 09:41:35 redis_cache.1 | | -. ._ / _.-' | PID: 3179 09:41:35 redis_cache.1 | -._ -._ -./ .-’ .-’
09:41:35 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 09:41:35 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 09:41:35 redis_cache.1 | -._ -._-..-'.-’ .-’
09:41:35 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 09:41:35 redis_cache.1 | | -.
-._ _.-'_.-' | 09:41:35 redis_cache.1 | -._ -._-.
.-‘.-’ .-’
09:41:35 redis_cache.1 | -._ -..-’ _.-’
09:41:35 redis_cache.1 | -._ _.-' 09:41:35 redis_cache.1 | -.
.-’
09:41:35 redis_cache.1 |
09:41:35 redis_cache.1 | [3179] 19 Aug 09:41:35.120 # Server started, Redis version 2.8.19
09:41:35 redis_cache.1 | [3179] 19 Aug 09:41:35.120 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
09:41:35 redis_cache.1 | [3179] 19 Aug 09:41:35.120 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
09:41:35 redis_cache.1 | [3179] 19 Aug 09:41:35.120 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
09:41:35 redis_cache.1 | [3179] 19 Aug 09:41:35.120 * The server is now ready to accept connections on port 11311
09:41:35 redis_async_broker.1 | .
09:41:35 redis_async_broker.1 | .-__ ''-._ 09:41:35 redis_async_broker.1 | _.- . . ‘’-.
Redis 2.8.19 (00000000/0) 32 bit
09:41:35 redis_async_broker.1 | .- .-```. ```\/ _.,_ ''-._ 09:41:35 redis_async_broker.1 | ( ' , .-` | `, ) Running in stand alone mode 09:41:35 redis_async_broker.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 12311 09:41:35 redis_async_broker.1 | | -._ ._ / _.-' | PID: 3177 09:41:35 redis_async_broker.1 | -._ -._ -./ .-’ .-’
09:41:35 redis_async_broker.1 | |-._-.
-.__.-' _.-'_.-'| 09:41:35 redis_async_broker.1 | | -.
-._ _.-'_.-' | http://redis.io 09:41:35 redis_async_broker.1 | -._ -._-..-'.-’ .-’
09:41:35 redis_async_broker.1 | |-._-.
-.__.-' _.-'_.-'| 09:41:35 redis_async_broker.1 | | -.
-._ _.-'_.-' | 09:41:35 redis_async_broker.1 | -._ -._-.
.-‘_.-’ _.-’
09:41:35 redis_async_broker.1 | -._ -..-’ _.-’
09:41:35 redis_async_broker.1 | -._ _.-' 09:41:35 redis_async_broker.1 | -.
.-’
09:41:35 redis_async_broker.1 |
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.132 # Server started, Redis version 2.8.19
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.133 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.133 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.134 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
09:41:35 redis_async_broker.1 | [3177] 19 Aug 09:41:35.134 * The server is now ready to accept connections on port 12311
09:41:37 workerbeat.1 | celery beat v3.1.18 (Cipater) is starting.
09:41:37 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
09:41:38 web.1 | * Restarting with inotify reloader
09:41:38 workerbeat.1 | __ - … __ - _
09:41:38 workerbeat.1 | Configuration →
09:41:38 workerbeat.1 | . broker → redis://localhost:6379//
09:41:38 workerbeat.1 | . loader → celery.loaders.app.AppLoader
09:41:38 workerbeat.1 | . scheduler → celery.beat.PersistentScheduler
09:41:38 workerbeat.1 | . db → scheduler.schedule
09:41:38 workerbeat.1 | . logfile → [stderr]@%INFO
09:41:38 workerbeat.1 | . maxinterval → now (0s)
09:41:38 workerbeat.1 | [2015-08-19 09:41:38,085: INFO/MainProcess] beat: Starting…
09:41:38 worker.1 |
09:41:38 worker.1 | -------------- celery@krys v3.1.18 (Cipater)
09:41:38 worker.1 | ---- **** -----
09:41:38 worker.1 | — * *** * – Linux-3.19.0-25-generic-i686-with-Ubuntu-15.04-vivid
09:41:38 worker.1 | – * - **** —
09:41:38 worker.1 | - ** ---------- [config]
09:41:38 worker.1 | - ** ---------- .> app: frappe:0xb660724c
09:41:38 worker.1 | - ** ---------- .> transport: redis://localhost:6379//
09:41:38 worker.1 | - ** ---------- .> results: disabled
09:41:38 worker.1 | - *** — * — .> concurrency: 4 (prefork)
09:41:38 worker.1 | – ******* ----
09:41:38 worker.1 | — ***** ----- [queues]
09:41:38 worker.1 | -------------- .> celery exchange=celery(direct) key=celery
09:41:38 worker.1 |
09:41:38 worker.1 |
09:41:38 workerbeat.1 | [2015-08-19 09:41:38,711: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
09:41:39 worker.1 | [2015-08-19 09:41:39,425: WARNING/MainProcess] celery@krys ready.
09:41:39 socketio.1 | Usage: nodemon [nodemon options] [script.js] [args]
09:41:39 socketio.1 |
09:41:39 socketio.1 | See “nodemon --help” for more.
09:41:39 socketio.1 |
09:41:39 system | socketio.1 stopped (rc=0)
09:41:39 system | sending SIGTERM to workerbeat.1 (pid 3163)
09:41:39 system | sending SIGTERM to worker.1 (pid 3164)
09:41:39 system | sending SIGTERM to web.1 (pid 3165)
09:41:39 system | sending SIGTERM to redis_async_broker.1 (pid 3169)
09:41:39 system | sending SIGTERM to redis_cache.1 (pid 3173)
09:41:39 worker.1 |
09:41:39 worker.1 | worker: Warm shutdown (MainProcess)
09:41:39 redis_cache.1 | [3179 | signal handler] (1439973699) Received SIGTERM scheduling shutdown…
09:41:39 redis_async_broker.1 | [3177 | signal handler] (1439973699) Received SIGTERM scheduling shutdown…
09:41:39 system | web.1 stopped (rc=-15)
09:41:39 system | workerbeat.1 stopped (rc=-15)
09:41:39 redis_cache.1 | [3179] 19 Aug 09:41:39.529 # User requested shutdown…
09:41:39 redis_cache.1 | [3179] 19 Aug 09:41:39.529 # Redis is now ready to exit, bye bye…
09:41:39 system | redis_cache.1 stopped (rc=-15)
09:41:39 redis_async_broker.1 | [3177] 19 Aug 09:41:39.529 # User requested shutdown…
09:41:39 redis_async_broker.1 | [3177] 19 Aug 09:41:39.529 # Redis is now ready to exit, bye bye…
09:41:39 system | redis_async_broker.1 stopped (rc=-15)
09:41:40 system | worker.1 stopped (rc=-15)
krys@krys:~$

do bench update again and run bench setup procfile. we have removed nodemon dependency.

1 Like

Thanks, it works fine!

Hello At the last stage I,m getting this error

Executing erpnext.patches.v5_7.item_template_attributes in site1.local (1bd3e0294d)

Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, 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/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 77, in
main()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 14, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 214, in migrate
frappe.modules.patch_handler.run_all()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v5_7/item_template_attributes.py”, line 15, in execute
rename_and_reload_doctypes()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v5_7/item_template_attributes.py”, line 42, in rename_and_reload_doctypes
frappe.reload_doctype(“Item Variant Attribute”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 548, in reload_doctype
reload_doc(scrub(db.get_value(“DocType”, doctype, “module”)), “doctype”, scrub(doctype), force=force)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 573, in scrub
return txt.replace(’ ‘,’
‘).replace(’-', '
‘).lower()
AttributeError: ‘NoneType’ object has no attribute ‘replace’
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/ubuntu/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/bench-repo/bench/cli.py”, line 241, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File “/home/ubuntu/bench-repo/bench/cli.py”, line 271, in update
patch_sites(bench=bench_path)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 158, in patch_sites
run_frappe_cmd(’–site’, ‘all’, ‘migrate’, bench=bench)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 489, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)

For an immediate solution run this and update again:

bench reload-doc stock doctype item_variant_attribute

thanks worked :smile:

Hey followed all the steps it went fine but now getting this Redis cache server not running

when i try to stay on v5, I get this error. the command "bench switch-to-v5’ is not recognized either. How do I stay in v5 and still run bench update?

root@ahplsvr01:/home/frappe/frappe-bench/apps/erpnext# bench switch-to-master
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 60, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
return processresult(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 319, in switchto_master
switch_to_master(upgrade=upgrade)
File “/home/frappe/bench-repo/bench/app.py”, line 174, in switch_to_master
switch_branch(‘master’, apps=apps, bench=bench, upgrade=upgrade)
File “/home/frappe/bench-repo/bench/app.py”, line 150, in switch_branch
raise MajorVersionUpgradeException(“Switching to {0} will cause upgrade from {1} to {2}. Pass --upgrade to confirm”.format(branch, version_upgrade[1], version_upgrade[2]), version_upgrade[1], version_upgrade[2])
bench.app.MajorVersionUpgradeException: Switching to master will cause upgrade from 5 to 6. Pass --upgrade to confirm

Executing erpnext.patches.v4_2.repost_reserved_qty #2015-08-17 in castlecraft.in (cpes-frappe)
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, 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/revant/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
    main()
  File "/home/revant/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/home/revant/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/revant/frappe-bench/apps/frappe/frappe/commands.py", line 214, in migrate
    frappe.modules.patch_handler.run_all()
  File "/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/repost_reserved_qty.py", line 26, in execute
    "reserved_qty": get_reserved_qty(item_code, warehouse)
  File "/home/revant/frappe-bench/apps/erpnext/erpnext/utilities/repost_stock.py", line 125, in update_bin_qty
    bin = get_bin(item_code, warehouse)
  File "/home/revant/frappe-bench/apps/erpnext/erpnext/stock/utils.py", line 76, in get_bin
    bin_obj.insert()
  File "/home/revant/frappe-bench/apps/frappe/frappe/model/document.py", line 179, in insert
    self._validate()
  File "/home/revant/frappe-bench/apps/frappe/frappe/model/document.py", line 301, in _validate
    self._validate_links()
  File "/home/revant/frappe-bench/apps/frappe/frappe/model/document.py", line 478, in _validate_links
    frappe.LinkValidationError)
  File "/home/revant/frappe-bench/apps/frappe/frappe/__init__.py", line 254, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/revant/frappe-bench/apps/frappe/frappe/__init__.py", line 247, in msgprint
    _raise_exception()
  File "/home/revant/frappe-bench/apps/frappe/frappe/__init__.py", line 232, in _raise_exception
    raise raise_exception, encode(msg)
frappe.exceptions.LinkValidationError: Could not find Item Code: PMC
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/revant/bench-repo/bench/cli.py", line 60, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/home/revant/bench-repo/bench/cli.py", line 241, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
  File "/home/revant/bench-repo/bench/cli.py", line 271, in update
    patch_sites(bench=bench_path)
  File "/home/revant/bench-repo/bench/utils.py", line 158, in patch_sites
    run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
  File "/home/revant/bench-repo/bench/utils.py", line 489, in run_frappe_cmd
    raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')

Some details of item PMC

"default_warehouse": null,
"item_name": "Project Management Consultancy",
"item_group": "Services",
"item_code": "PMC",
"is_stock_item": 0

Everything working after: Error : Executing erpnext.patches.v4_2.repost_reserved_qty · Issue #3913 · frappe/erpnext · GitHub

Same issue here:

franky1@June2015:~$ bench update

remote: Counting objects: 36, done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 36 (delta 11), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (36/36), done.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
b9f846f…59db22d master → upstream/master
fe72e05…59db22d develop → upstream/develop

  • [new tag] v6.0.2 → v6.0.2
  • [new tag] v6.0.1 → v6.0.1

This update will cause a major version change in Frappe/ERPNext from 5 to 6.
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 5 by running bench swtich-to-v5

franky1@June2015:~$ bench switch-to-v5

Usage: bench [OPTIONS] COMMAND [ARGS]…

Error: No such command “switch-to-v5”.

franky1@June2015:~$ bench swtich-to-v5

Usage: bench [OPTIONS] COMMAND [ARGS]…

Error: No such command “swtich-to-v5”.

Any idea?
I would like to try 5.4.7 to try the new POS printing enhancement.

Thanks

François

@inventobd if you are on production setup try running bench setup redis-cache and bench restart. Else for dev setup run bench setup procfile

@Francois_Ifitwala

We are yet to make the switch-to-v5 command. Will make it and get back to you.

-Anand.

Also, I think v5.4.7 of erpnext will require frappe 6 due to change in “Document Type” property of a doctype. Why not upgrade? You can try it on demo.erpnext.com which is already on v6.

-Anand.

Just run bench update from v5.6.3. Is upgrade to frappe v6 is a must now? I just want to update erpnext… Will upgrade frappe if it’s already stable release.

vef@srvbuntu01:~/frappe-bench$ bench update
From https://github.com/frappe/frappe
   8dee19e..dceec69  master     -> upstream/master
   8dee19e..dceec69  develop    -> upstream/develop
 * [new tag]         v6.0.3     -> v6.0.3
 * [new tag]         v6.0.0     -> v6.0.0
 * [new tag]         v6.0.1     -> v6.0.1
 * [new tag]         v6.0.2     -> v6.0.2


This update will cause a major version change in Frappe/ERPNext from 5 to 6 (bet                                                                                        a).
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 5 by running `bench swtich-to-v5`

Got this error when bench switch-to-master

vef@srvbuntu01:~/frappe-bench$ bench switch-to-master
From https://github.com/frappe/frappe
   dceec69..127134e  develop    -> upstream/develop
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/vef/bench-repo/bench/cli.py", line 56, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __ca                                                                                        ll__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invo                                                                                        ke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invo                                                                                        ke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invo                                                                                        ke
    return callback(*args, **kwargs)
  File "/home/vef/bench-repo/bench/cli.py", line 311, in _switch_to_master
    switch_to_master(upgrade=upgrade)
  File "/home/vef/bench-repo/bench/app.py", line 173, in switch_to_master
    switch_branch('master', apps=apps, bench=bench, upgrade=upgrade)
  File "/home/vef/bench-repo/bench/app.py", line 149, in switch_branch
    raise MajorVersionUpgradeException("Switching to {0} will cause upgrade from                                                                                         {1} to {2}. Pass --upgrade to confirm".format(branch, version_upgrade[0], versi                                                                                        on_upgrade[1]), version_upgrade[0], version_upgrade[1])
bench.app.MajorVersionUpgradeException: Switching to master will cause upgrade f                                                                                        rom 5 to 6. Pass --upgrade to confirm

Erpnext 5.7 upwards requires frappe 6. Even if you switch to v5.x.x branch you won’t be getting updates.

Frappe 6 doesn’t have any breaking change except a nodejs dependency for realtime. So it doesn’t have stability issues except the part of getting the nodejs dependency installed. You can wait for a week for any nagging issues to be resolved but we have deployed v6 in our cloud and so far it is stable.

Hi Anand,

Where can i get the nodejs? Where do I install it?

thank you!!

very excited about v. 6

@anand Followed your steps but still same message . I,m running in production

What’s the output of
sudo supervisorctl status

If you are using Ubuntu use
sudo apt-get install nodejs npm -y

For centos use
sudo yum install nodejs npm -y