[Update] Frappe version 6 has been merged into develop

frappe:frappe-web RUNNING pid 14619, uptime 1:47:32
frappe:frappe-worker RUNNING pid 14618, uptime 1:47:32
frappe:frappe-workerbeat RUNNING pid 14627, uptime 1:47:32
node-socketio FATAL Exited too quickly (process log may have details)
redis-async-broker FATAL Exited too quickly (process log may have details)
redis-cache FATAL Exited too quickly (process log may have details)

Also a novice question . How to check if I,m in production or development . And also from this stage if I want to do a fresh install how can I do that without re instantiating my server ?

Check for error in /var/log/supervisor/error.log

Your socketio, cache and async workers are down.

If you have ever used bench start you are running Dev server.

Do you want a new site or do you want to clean the existing site and start afresh?

For new site
bench new-site site2.local

For reinstalling existing site
bench --site site1.local reinstall

Here is what I got

2015-06-24 13:39:33,372 CRIT Supervisor running as root (no user in config file)
2015-06-24 13:39:33,390 INFO RPC interface ‘supervisor’ initialized
2015-06-24 13:39:33,390 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
2015-06-24 13:39:33,391 INFO daemonizing the supervisord process
2015-06-24 13:39:33,391 INFO supervisord started with pid 11482
2015-06-24 13:42:08,056 CRIT Supervisor running as root (no user in config file)
2015-06-24 13:42:08,056 WARN Included extra file “/etc/supervisor/conf.d/frappe.conf” during parsing
2015-06-24 13:42:08,057 INFO RPC interface ‘supervisor’ initialized
2015-06-24 13:42:08,057 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
2015-06-24 13:42:08,057 INFO supervisord started with pid 11482
2015-06-24 13:42:09,059 INFO spawned: ‘frappe-worker’ with pid 14151
2015-06-24 13:42:09,060 INFO spawned: ‘frappe-web’ with pid 14152
2015-06-24 13:42:09,061 INFO spawned: ‘frappe-workerbeat’ with pid 14153
2015-06-24 13:42:09,062 INFO spawned: ‘redis-cache’ with pid 14154
2015-06-24 13:42:10,412 INFO success: frappe-worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-24 13:42:10,412 INFO success: frappe-web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-24 13:42:10,412 INFO success: frappe-workerbeat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-24 13:42:10,412 INFO success: redis-cache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-04 19:40:29,709 WARN received SIGTERM indicating exit request
2015-07-04 19:40:29,709 INFO waiting for frappe-worker, frappe-web, frappe-workerbeat, redis-cache to die
2015-07-04 19:40:29,710 INFO stopped: redis-cache (terminated by SIGQUIT)
2015-07-04 19:40:29,712 INFO stopped: frappe-workerbeat (terminated by SIGQUIT)
2015-07-04 19:40:29,861 INFO stopped: frappe-web (exit status 0)
2015-07-04 19:40:31,234 INFO stopped: frappe-worker (exit status 0)
2015-07-22 12:10:43,331 CRIT Supervisor running as root (no user in config file)
2015-07-22 12:10:43,331 WARN Included extra file “/etc/supervisor/conf.d/frappe.conf” during parsing
2015-07-22 12:10:43,359 INFO RPC interface ‘supervisor’ initialized
2015-07-22 12:10:43,359 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
2015-07-22 12:10:43,360 INFO daemonizing the supervisord process
2015-07-22 12:10:43,360 INFO supervisord started with pid 1656
2015-07-22 12:10:44,364 INFO spawned: ‘frappe-worker’ with pid 1664
2015-07-22 12:10:44,365 INFO spawned: ‘frappe-web’ with pid 1665
2015-07-22 12:10:44,366 INFO spawned: ‘frappe-workerbeat’ with pid 1666
2015-07-22 12:10:44,369 INFO spawned: ‘redis-cache’ with pid 1667
2015-07-22 12:10:46,287 INFO success: frappe-worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-22 12:10:46,287 INFO success: frappe-web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-22 12:10:46,287 INFO success: frappe-workerbeat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-22 12:10:46,287 INFO success: redis-cache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-26 14:10:06,709 WARN received SIGTERM indicating exit request
2015-07-26 14:10:06,709 INFO waiting for frappe-worker, frappe-web, frappe-workerbeat, redis-cache to die
2015-07-26 14:10:06,710 INFO stopped: redis-cache (terminated by SIGQUIT)
2015-07-26 14:10:06,712 INFO stopped: frappe-workerbeat (terminated by SIGQUIT)
2015-07-26 14:10:06,859 INFO stopped: frappe-web (exit status 0)

This doesn’t seem to be error log. More like supervisor log of start and stop. No error messages in it.

Unfortunately I,m not that good enough with linux, there is no error.log file in /var/log/supervisor/ or /var/log/redis directory . First one has supervisord.log and 2nd one has redis-server.log .

Hello @anand

I did a fresh install . Everything goes fine . But now fronted is not working properly . Every time I create , edit or delete anything , I need to reload the page to make the change happen . Otherwise interface get hanged until I reload

Thanks

Thanks a lot and very much welcome for new version.

Any way Install the latest version through bench. Everything is OK. But when I try to first setup of site, I get these errors

Traceback (most recent call last):
11:20:29 web.1                |   File "/path to/app/apps/frappe/frappe/middlewares.py", line 15, in __call__
11:20:29 web.1                |     return super(StaticDataMiddleware, self).__call__(environ, start_response)
11:20:29 web.1                |   File "/path to/app/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 591, in __call__
11:20:29 web.1                |     return self.app(environ, start_response)
11:20:29 web.1                |   File "path to/app/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 591, in __call__
11:20:29 web.1                |     return self.app(environ, start_response)
11:20:29 web.1                |   File "path to/app/env/lib/python2.7/site-packages/werkzeug/local.py", line 224, in application
11:20:29 web.1                |     return ClosingIterator(app(environ, start_response), self.cleanup)
11:20:29 web.1                |   File "path to/app/env/lib/python2.7/site-

    packages/werkzeug/wrappers.py", line 290, in application
    11:20:29 web.1                |     return f(*args[:-2] + (request,))(*args[-2:])
    11:20:29 web.1                |   File "path to/app/apps/frappe/frappe/app.py", line 128, in application
    11:20:29 web.1                |     frappe.async.emit_via_redis(*args)
    11:20:29 web.1                |   File "path to/app/apps/frappe/frappe/async.py", line 157, in emit_via_redis
    11:20:29 web.1                |     r.publish('events', json.dumps({'event': event, 'message': message, 'room': room}))
    11:20:29 web.1                |   File "/usr/lib/python2.7/json/__init__.py", line 243, in dumps
    11:20:29 web.1                |     return _default_encoder.encode(obj)
    11:20:29 web.1                |   File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
    11:20:29 web.1                |     chunks = self.iterencode(o, _one_shot=True)
    11:20:29 web.1                |   File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
    11:20:29 web.1                |     return _iterencode(o, 0)
    11:20:29 web.1                |   File "/usr/lib/python2.7/json/encoder.py", line 184, in default
    11:20:29 web.1                |     raise TypeError(repr(o) + " is not JSON serializable")
    11:20:29 web.1                | TypeError: datetime.datetime(2015, 8, 23, 14, 50, 20, 231889) is not JSON serializable
 Thanks in advance

Hi,

This issue has been fixed. Can you update again?

Thanks,
Anand.

I got this error when updating today

ubuntu@ip-XX-X-XX-216:~/frappe-bench$ bench update
fatal: unable to access ‘GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps’: gnutls_handshake() failed: A TLS packet with unexpected length was received.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.92’, ‘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 700, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 680, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 508, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/bench-repo/bench/cli.py”, line 229, in _update
update_bench()
File “/home/ubuntu/bench-repo/bench/utils.py”, line 219, in update_bench
exec_cmd(“git pull”, cwd=cwd)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 104, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull

Looks like github is facing some issues today: status.github.com

I updated successfully after manually installing nodejs and npm.

However, doing a simple test like adding a comment and expecting it to turn up on another browser didn’t work as expected. How do I troubleshoot this? Thanks.

Open the browser’s network tab and look for an entry like this: Websocket Network Tab

@anand Thanks.

I have a slightly different setup whereby I have another nginx server sitting in front of the ERPNext server acting as a reverse proxy. I previously had errors showing on the JS console, after enabling websockets on my reverse proxy I no longer have errors. (please see screenshot), I can see the websocket connection which seems successful, I can see the subscribe event, but I cannot seem to get updates. I know its a little different from what you guys have but would you happen to have any idea why I dont get updates? Really is my first time playing with websockets etc.

Try opening another tab, type in a comment and check the previous tab gets the new comment automatically in the timeline.

Tried your suggestion to open a new tab and wrote a comment there, checked previous tab and the new comment is not shown. The timeline also remains the same. Although periodically there is a new frame that appears with some number e.g. 2 or 3.

hi , i just get error after updating :
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/myme/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/myme/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/myme/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/home/myme/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/home/myme/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/myme/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/myme/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/myme/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/commands.py”, line 214, in migrate
frappe.modules.patch_handler.run_all()
File “/home/myme/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/myme/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/myme/frappe-bench/apps/erpnext/erpnext/patches/v5_8/update_order_reference_in_return_entries.py”, line 17, in execute
“”", as_dict=1))
File “/home/myme/frappe-bench/apps/frappe/frappe/database.py”, line 146, in sql
self._cursor.execute(query)
File “/home/myme/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/myme/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, “Unknown column ‘dn.return_against’ in ‘field list’”)
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/myme/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/myme/bench-repo/bench/cli.py”, line 240, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File “/home/myme/bench-repo/bench/cli.py”, line 270, in update
patch_sites(bench=bench_path)
File “/home/myme/bench-repo/bench/utils.py”, line 158, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench=bench)
File “/home/myme/bench-repo/bench/utils.py”, line 489, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)

please fix this

Pushed a fix. Please update.

@bohlian

That is strange.

If you are using production setup, check if sudo supervisorctl status shows redis-async-broker as runnung.

Else check your Procfile and see if there is an entry for redis-async-broker

Best,
Anand.