[Update] Frappe version 6 has been merged into develop

Hi everyone,

We are going to merge the Frappe’s v6 branch into develop on Monday, 17 August, 2015.

Frappe v6 includes Async operations and real-time updates. We haven’t done any breaking changes like change of fieldnames or doctypes, so this release should be very smooth.

When you do bench update you will be prompted to run bench update --upgrade as this is a major version change.

If issues do arise, we will be there to fix them right away.

Once v6 is out in the wild, we will be using these shiny new capabilities to improve ERPNext’s user experience with features like “Who is looking into this document”, “Real time notifications”, “List auto-refresh”, “Stale document”, etc.

We are planning to deploy v6 to our cloud customers during the next release, i.e. Wednesday, when v6.0.0 will be merged into master.

Like always, we would love to have your feedback :smile:

Thanks,
Anand Doshi.

5 Likes

Good Luck, looking forward

Nice to hear this

Update: v6 has been merged into Frappe’s develop branch. Please post any issues you face about it on github/forum.

i got this result:
root@ssd:~# bench update --upgrade
Already up-to-date.
File “/home/frappe/bench-repo/bench/cli.py”, line 253, in update
validate_upgrade(version_upgrade[0], version_upgrade[1], bench=bench_path)
TypeError: ‘bool’ object has no attribute ‘getitem

Try again. We have fixed this.

Hi,

I also getting same error even after your fix.

hemant@ubuntu:~/frappe-bench$ bench update --upgrade
Already up-to-date.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/hemant/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/hemant/bench-repo/bench/cli.py”, line 240, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade)
File “/home/hemant/bench-repo/bench/cli.py”, line 253, in update
validate_upgrade(version_upgrade[0], version_upgrade[1], bench=bench_path)
TypeError: ‘bool’ object has no attribute ‘getitem
hemant@ubuntu:~/frappe-bench$

Ah lovely! I had read long back someone had made a reverse auction system using frappe. Think to have it running on frappe 6 would be great!

Hi,

I ran ‘bench switch-to-develop’ and then ‘bench update --patch’ and all is working.

Thnx

You will also need to run bench setup socketio or disable async by setting “disable_async”: 1 in common_site_config.json or site_config.json

[edit] changed no_async to disable_async for consistency

Im getting an error:
hemant@ubuntu:~/frappe-bench$ bench setup socketio
/bin/sh: 1: npm: not found
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/hemant/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 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/hemant/bench-repo/bench/cli.py”, line 478, in _setup_socketio
setup_socketio()
File “/home/hemant/bench-repo/bench/utils.py”, line 112, in setup_socketio
exec_cmd(“npm install nodemon socket.io redis express superagent cookie”, cwd=bench)
File “/home/hemant/bench-repo/bench/utils.py”, line 104, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install nodemon socket.io redis express superagent cookie
hemant@ubuntu:~/frappe-bench$

have you got a way to install just npm or must node also be installed?

npm is node package manager. So you need both node and npm. We have added a validation in the bench update script. You will need to install it using sudo apt-get install nodejs npm

Also you will need to run bench setup socketio. I am fixing these issues in the upgrade process so that others don’t face it in the future.


additional steps so far for you:

bench setup socketio
bench setup supervisor
bench setup nginx
service nginx reload
supervisorctl reload

I am getting this error:

any ideas is it related to v6 or not.

Hi @adityaduggal

Did you run bench update --upgrade?

I am getting this error on running bench update --upgrade

Try bench setup supervisor and try update again

Nope…Same error.

hmm… also after bench setup supervisor, run sudo supervisorctl reload and try