erpuser@erpubuntu:~$ cd frappe-bench/
erpuser@erpubuntu:~/frappe-bench$ bench switch-to-develop --upgrade
Already on 'develop'
Your branch is up-to-date with 'upstream/develop'.
Already up-to-date.
Already on 'develop'
Your branch is up-to-date with 'upstream/develop'.
Already up-to-date.
Switched to develop
Please run `bench update --patch` to be safe from any differences in database schema
erpuser@erpubuntu:~/frappe-bench$ bench update --patch
Migrating site1.local
Executing erpnext.patches.v7_0.remove_features_setup 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/erpuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/commands/site.py", line 166, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/migrate.py", line 27, in migrate
frappe.modules.patch_handler.run_all()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/erpuser/frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_features_setup.py", line 10, in execute
stock_settings.save()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 250, in save
self._validate()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 364, in _validate
self._validate_links()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in _validate_links
frappe.LinkValidationError)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 299, in throw
msgprint(msg, raise_exception=exc, title=title)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 292, in msgprint
_raise_exception()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 265, in _raise_exception
raise raise_exception, encode(msg)
frappe.exceptions.LinkValidationError: Could not find Default Stock UOM: Nos
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.0.0', 'console_scripts', 'bench')()
File "/home/erpuser/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpuser/bench-repo/bench/commands/update.py", line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File "/home/erpuser/bench-repo/bench/commands/update.py", line 90, in _update
patch_sites(bench_path=bench_path)
File "/home/erpuser/bench-repo/bench/utils.py", line 134, in patch_sites
run_frappe_cmd('--site', 'all', 'migrate', bench_path=bench_path)
File "/home/erpuser/bench-repo/bench/utils.py", line 499, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')
erpuser@erpubuntu:~/frappe-bench$ bench start
14:23:01 system | redis_socketio.1 started (pid=2530)
14:23:00 redis_socketio.1 | 2535:M 17 Jun 14:23:00.786 * Increased maximum number of open files to 10032 (it was originally set to 1024).
14:23:00 redis_socketio.1 | 2535:M 17 Jun 14:23:00.801 # Creating Server TCP listening socket 127.0.0.1:12311: bind: Address already in use
14:23:01 system | redis_socketio.1 stopped (rc=1)
14:23:01 system | worker_long.1 started (pid=2533)
14:23:01 system | redis_queue.1 started (pid=2539)
14:23:01 system | schedule.1 started (pid=2547)
14:23:01 system | socketio.1 started (pid=2544)
14:23:01 system | watch.1 started (pid=2537)
14:23:01 redis_queue.1 | 2549:M 17 Jun 14:23:01.553 * Increased maximum number of open files to 10032 (it was originally set to 1024).
14:23:01 redis_queue.1 | 2549:M 17 Jun 14:23:01.555 # Creating Server TCP listening socket 127.0.0.1:6379: bind: Address already in use
14:23:01 system | redis_queue.1 stopped (rc=1)
14:23:02 system | redis_cache.1 started (pid=2553)
14:23:02 system | worker_default.1 started (pid=2558)
14:23:03 system | worker_short.1 started (pid=2550)
14:23:03 redis_cache.1 | 2564:M 17 Jun 14:23:03.499 * Increased maximum number of open files to 10032 (it was originally set to 1024).
14:23:03 redis_cache.1 | 2564:M 17 Jun 14:23:03.502 # Creating Server TCP listening socket 127.0.0.1:11311: bind: Address already in use
14:23:03 system | redis_cache.1 stopped (rc=1)
14:23:04 system | web.1 started (pid=2541)
14:23:04 system | sending SIGTERM to worker_long.1 (pid 2533)
14:23:04 system | sending SIGTERM to watch.1 (pid 2537)
14:23:04 system | sending SIGTERM to web.1 (pid 2541)
14:23:04 system | sending SIGTERM to schedule.1 (pid 2547)
14:23:04 system | sending SIGTERM to worker_default.1 (pid 2558)
14:23:04 system | sending SIGTERM to socketio.1 (pid 2544)
14:23:04 system | sending SIGTERM to worker_short.1 (pid 2550)
14:23:04 system | schedule.1 stopped (rc=-15)
14:23:04 system | watch.1 stopped (rc=-15)
14:23:04 system | worker_short.1 stopped (rc=-15)
14:23:04 system | worker_default.1 stopped (rc=-15)
14:23:04 system | web.1 stopped (rc=-15)
14:23:04 system | socketio.1 stopped (rc=-15)
14:23:04 system | worker_long.1 stopped (rc=-15)
erpuser@erpubuntu:~/frappe-bench$ bench
Usage: bench [OPTIONS] COMMAND [ARGS]...
Bench manager for Frappe
Options:
--help Show this message and exit.
Commands:
backup backup site
backup-all-sites backup all sites
config change bench configuration
download-translations Download latest translations
get-app clone an app from the internet and set it up...
init Create a new bench
new-app start a new app
new-site Create a new site in the bench
release Release app (internal to the Frappe team)
restart Restart supervisor processes
retry-upgrade
set-default-site Set default site for bench
set-mariadb-host Set MariaDB host for bench
set-nginx-port Set nginx port for site
set-ssl-certificate Set ssl certificate path for site
set-ssl-key Set ssl certificate private key path for site
set-url-root Set url root for site
setup Setup bench
shell
start Start Frappe development processes
switch-to-develop Switch frappe and erpnext to develop branch
switch-to-master Switch frappe and erpnext to master branch
switch-to-v4 Switch frappe and erpnext to v4 branch
switch-to-v5 Switch frappe and erpnext to v4 branch
update Update bench
erpuser@erpubuntu:~/frappe-bench$ bench restart
[sudo] password for erpuser:
frappe-bench-node-socketio: stopped
frappe-bench-frappe-web: stopped
frappe-bench-frappe-schedule: stopped
frappe-bench-frappe-default-worker-0: stopped
frappe-bench-frappe-long-worker-0: stopped
frappe-bench-frappe-short-worker-0: stopped
frappe-bench-node-socketio: started
frappe-bench-frappe-web: started
frappe-bench-frappe-short-worker-0: started
frappe-bench-frappe-schedule: started
frappe-bench-frappe-default-worker-0: started
frappe-bench-frappe-long-worker-0: started
erpuser@erpubuntu:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe
* branch develop -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From https://github.com/frappe/erpnext
* branch develop -> FETCH_HEAD
Already up-to-date.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
benchMigrating site1.local
Executing erpnext.patches.v7_0.remove_features_setup 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/erpuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/commands/site.py", line 166, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/migrate.py", line 27, in migrate
frappe.modules.patch_handler.run_all()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/erpuser/frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_features_setup.py", line 10, in execute
stock_settings.save()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 250, in save
self._validate()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 364, in _validate
self._validate_links()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in _validate_links
frappe.LinkValidationError)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 299, in throw
msgprint(msg, raise_exception=exc, title=title)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 292, in msgprint
_raise_exception()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 265, in _raise_exception
raise raise_exception, encode(msg)
frappe.exceptions.LinkValidationError: Could not find Default Stock UOM: Nos
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.0.0', 'console_scripts', 'bench')()
File "/home/erpuser/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpuser/bench-repo/bench/commands/update.py", line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File "/home/erpuser/bench-repo/bench/commands/update.py", line 90, in _update
patch_sites(bench_path=bench_path)
File "/home/erpuser/bench-repo/bench/utils.py", line 134, in patch_sites
run_frappe_cmd('--site', 'all', 'migrate', bench_path=bench_path)
File "/home/erpuser/bench-repo/bench/utils.py", line 499, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')
erpuser@erpubuntu:~/frappe-bench$ bench --force update
Usage: bench frappe [OPTIONS] COMMAND [ARGS]...
Error: No such command "update".
erpuser@erpubuntu:~/frappe-bench$ bench update --force
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe
* branch develop -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From https://github.com/frappe/erpnext
* branch develop -> FETCH_HEAD
Already up-to-date.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Migrating site1.local
Executing erpnext.patches.v7_0.remove_features_setup 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/erpuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpuser/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/commands/site.py", line 166, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/migrate.py", line 27, in migrate
frappe.modules.patch_handler.run_all()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/erpuser/frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_features_setup.py", line 10, in execute
stock_settings.save()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 250, in save
self._validate()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 364, in _validate
self._validate_links()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in _validate_links
frappe.LinkValidationError)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 299, in throw
msgprint(msg, raise_exception=exc, title=title)
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 292, in msgprint
_raise_exception()
File "/home/erpuser/frappe-bench/apps/frappe/frappe/__init__.py", line 265, in _raise_exception
raise raise_exception, encode(msg)
frappe.exceptions.LinkValidationError: Could not find Default Stock UOM: Nos
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.0.0', 'console_scripts', 'bench')()
File "/home/erpuser/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpuser/bench-repo/bench/commands/update.py", line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File "/home/erpuser/bench-repo/bench/commands/update.py", line 90, in _update
patch_sites(bench_path=bench_path)
File "/home/erpuser/bench-repo/bench/utils.py", line 134, in patch_sites
run_frappe_cmd('--site', 'all', 'migrate', bench_path=bench_path)
File "/home/erpuser/bench-repo/bench/utils.py", line 499, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')
erpuser@erpubuntu:~/frappe-bench$