ERPNext 7 Issues and Info Megathread

ERPNext 7 is live!


  • You can upgrade your setup by running bench update --upgrade
  • People previously on develop to test out ERPNext 7 can now move back to master for a more stable experience in the future.
  • You can download the latest Production ready VM with ERPNext 7 right here : https://erpnext.com/download
  • Cloud Users, we’ll be upgrading your accounts with utmost care, so it will take time (during next month)
  • New signups on cloud will get v7 from Monday.

Solutions to commmon problems

If you’re getting an error with this at the end:

bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/frappe/requirements.txt

If you’re on Ubuntu run:

sudo apt-get install libffi-dev libssl-dev

If you’re on CentOS run:

sudo yum install libffi-devel openssl-devel

If you’re on macOS run:

 brew install openssl

And try updating again

5 Likes

after running sudo yum install libffi-devel libssl-devel

libssl-devel not installed 

" No package libssl-devel available.
Nothing to do "

nothing happen still got error


From https://github.com/frappe/erpnext
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Command "/home/frappe/frappe-bench/env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tbN2tx/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ViDwCq-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/frappe/frappe-bench/env/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-tbN2tx/cryptography/
Traceback (most recent call last):
  File "/usr/bin/bench", line 9, in <module>
    load_entry_point('bench==3.0.0', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/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/frappe/bench-repo/bench/commands/update.py", line 79, in _update
    update_requirements(bench_path=bench_path)
  File "/home/frappe/bench-repo/bench/utils.py", line 329, in update_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
  File "/home/frappe/bench-repo/bench/utils.py", line 88, in exec_cmd
    raise CommandFailedError(cmd)

Sorry, my bad, it’s sudo yum install openssl-devel on CentOS

Thank you for quick response,
i had run
sudo yum install openssl-devel on centOS
but still same

bench update --upgrade

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 GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch master → FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch master → FETCH_HEAD
    Already up-to-date.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Command “/home/frappe/frappe-bench/env/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-UV7DO3/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-5MOy3U-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/frappe/frappe-bench/env/include/site/python2.7/cryptography” failed with error code 1 in /tmp/pip-build-UV7DO3/cryptography/
    Traceback (most recent call last):
    File “/usr/bin/bench”, line 9, in
    load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
    File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    File “/usr/lib/python2.7/site-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/lib/python2.7/site-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/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/frappe/bench-repo/bench/commands/update.py”, line 79, in _update
    update_requirements(bench_path=bench_path)
    File “/home/frappe/bench-repo/bench/utils.py”, line 329, in update_requirements
    exec_cmd(“{pip} install -q -r {req_file}”.format(pip=pip, req_file=req_file))
    File “/home/frappe/bench-repo/bench/utils.py”, line 88, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/frappe/requirements.txt

Im getting this error:

Success
Updating frappe : [========================================]
Updating erpnext : [========== ]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/hemant/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/hemant/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/hemant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/hemant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/hemant/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/hemant/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/hemant/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/hemant/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/hemant/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/hemant/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/hemant/frappe-bench/apps/frappe/frappe/commands/site.py”, line 196, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/hemant/frappe-bench/apps/frappe/frappe/migrate.py”, line 29, in migrate
frappe.model.sync.sync_all(verbose=verbose)
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/sync.py”, line 19, in sync_all
sync_for(app, force, verbose=verbose)
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/sync.py”, line 43, in sync_for
import_file_by_path(doc_path, force=force)
File “/home/hemant/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 54, in import_file_by_path
import_doc(doc, force=force, data_import=data_import, pre_process=pre_process)
File “/home/hemant/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 122, in import_doc
doc.insert()
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in insert
self.run_post_save_methods()
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/document.py”, line 705, in run_post_save_methods
self.run_method(“on_update”)
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/document.py”, line 638, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/document.py”, line 816, in composer
return composed(self, method, *args, **kwargs)
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/document.py”, line 799, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/hemant/frappe-bench/apps/frappe/frappe/model/document.py”, line 632, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/hemant/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 148, in on_update
self.run_module_method(“on_doctype_update”)
File “/home/hemant/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 157, in run_module_method
module = load_doctype_module(self.name, self.module)
File “/home/hemant/frappe-bench/apps/frappe/frappe/modules/init.py”, line 64, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix, suffix))
File “/home/hemant/frappe-bench/apps/frappe/frappe/init.py”, line 643, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/hemant/frappe-bench/apps/erpnext/erpnext/crm/doctype/newsletter/newsletter.py”, line 10, in
from frappe.email.bulk import check_bulk_limit
ImportError: No module named bulk
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/hemant/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/hemant/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/hemant/bench-repo/bench/commands/update.py”, line 90, in _update
patch_sites(bench_path=bench_path)
File “/home/hemant/bench-repo/bench/utils.py”, line 122, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench_path=bench_path)
File “/home/hemant/bench-repo/bench/utils.py”, line 451, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)

Same here. Any solutions to this? Thanks!

@zahidshuja

Try updating your setuptools sudo pip install --upgrade setuptools

No luck. Same error again.

@batata Which exact error are you referring to?

@hpema108 Was your erpnext updated properly? Can you go into apps/erpnext folder and run git pull

Yes it seemed to update successfully, but fails on migration
git pull - “Already up-to-date.”

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/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 700, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 680, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 508, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 16, 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 196, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 27, in migrate
frappe.modules.patch_handler.run_all()
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_home_page.py”, line 19, in execute
homepage.setup_items()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/portal/doctype/homepage/homepage.py”, line 23, in setup_item
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 242, in save
self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 269, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 687, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 638, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 816, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 799, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 632, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py”, line 65, in validate
super(Item, self).validate()
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/website_generator.py”, line 35, in validate
self.route = self.make_route()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py”, line 141, in make_route
return frappe.db.get_value(‘Item Group’, self.item_group, ‘route’) + ‘/’ + self.scrub(self.item_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 410, in get_value
ret = self.get_values(doctype, filters, fieldname, ignore, as_dict, debug, cache=cache)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 451, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 563, in _get_values_from_table
conditions, order_by), values, as_dict=as_dict, debug=debug, update=update)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 137, in sql
self._cursor.execute(query, values)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaul
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, “Unknown column ‘route’ in ‘field list’”)
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 40, in cli
bench_command()
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/frappe/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/frappe/bench-repo/bench/commands/update.py”, line 90, in _update
patch_sites(bench_path=bench_path)
File “/home/frappe/bench-repo/bench/utils.py”, line 122, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench_path=bench_path)
File “/home/frappe/bench-repo/bench/utils.py”, line 451, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)

Tried the git pull command on the apps/erpnext folder and ran the upgrade command again. No luck.

no luck still same

@zahidshuja try installing cryptography lib independently

@batata we will need to push a fix for this.

Another Issue with v7 or is it not since the update I am unable to run my bench start command:

00:20:08 redis_cache.1    |  |`-._`-._    `-.__.-'    _.-'_.-'|
00:20:08 redis_cache.1    |  |    `-._`-._        _.-'_.-'    |
00:20:08 redis_cache.1    |   `-._    `-._`-.__.-'_.-'    _.-'
00:20:08 redis_cache.1    |       `-._    `-.__.-'    _.-'
00:20:08 redis_cache.1    |           `-._        _.-'
00:20:08 redis_cache.1    |               `-.__.-'
00:20:08 redis_cache.1    |
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.435 # Server started, Redis version 2.8.19
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.435 # 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.
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.435 # 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.
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.435 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.437 * The server is now ready to accept connections on port 13000
00:20:08 redis_queue.1    | [1806] 23 Jul 00:20:08.437 * The server is now ready to accept connections on port 11000
00:20:08 redis_socketio.1 | [1809] 23 Jul 00:20:08.437 * The server is now ready to accept connections on port 12000
00:20:08 worker.1         | /home/aditya/frappe-bench/sites/../env/bin/python: libmariadbclient.so.18: cannot open shared object file: No such file or directory
00:20:08 longjob_worker.1 | /home/aditya/frappe-bench/sites/../env/bin/python: libmariadbclient.so.18: cannot open shared object file: No such file or directory
00:20:08 workerbeat.1     | /home/aditya/frappe-bench/sites/../env/bin/python: libmariadbclient.so.18: cannot open shared object file: No such file or directory
00:20:08 system           | worker.1 stopped (rc=1)
00:20:08 system           | sending SIGTERM to redis_socketio.1 (pid 1793)
00:20:08 system           | sending SIGTERM to workerbeat.1 (pid 1797)
00:20:08 system           | sending SIGTERM to watch.1 (pid 1811)
00:20:08 system           | sending SIGTERM to redis_queue.1 (pid 1804)
00:20:08 system           | sending SIGTERM to web.1 (pid 1801)
00:20:08 system           | sending SIGTERM to async_worker.1 (pid 1803)
00:20:08 system           | sending SIGTERM to socketio.1 (pid 1802)
00:20:08 system           | sending SIGTERM to redis_cache.1 (pid 1813)
00:20:08 system           | sending SIGTERM to longjob_worker.1 (pid 1810)
00:20:08 redis_socketio.1 | [1809 | signal handler] (1469213408) Received SIGTERM scheduling shutdown...
00:20:08 redis_socketio.1 | [1809] 23 Jul 00:20:08.538 # User requested shutdown...
00:20:08 redis_socketio.1 | [1809] 23 Jul 00:20:08.538 # Redis is now ready to exit, bye bye...
00:20:08 system           | redis_socketio.1 stopped (rc=-15)
00:20:08 redis_queue.1    | [1806 | signal handler] (1469213408) Received SIGTERM scheduling shutdown...
00:20:08 redis_queue.1    | [1806] 23 Jul 00:20:08.542 # User requested shutdown...
00:20:08 redis_queue.1    | [1806] 23 Jul 00:20:08.542 # Redis is now ready to exit, bye bye...
00:20:08 system           | redis_queue.1 stopped (rc=-15)
00:20:08 redis_cache.1    | [1827 | signal handler] (1469213408) Received SIGTERM scheduling shutdown...
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.545 # User requested shutdown...
00:20:08 redis_cache.1    | [1827] 23 Jul 00:20:08.545 # Redis is now ready to exit, bye bye...
00:20:08 system           | redis_cache.1 stopped (rc=-15)
00:20:08 system           | socketio.1 stopped (rc=-15)
00:20:08 system           | watch.1 stopped (rc=-15)
00:20:08 system           | async_worker.1 stopped (rc=-15)
00:20:08 system           | web.1 stopped (rc=-15)
00:20:08 system           | workerbeat.1 stopped (rc=-15)
00:20:08 system           | longjob_worker.1 stopped (rc=-15)

@rmehta i tried to install crytography lib by
pip install cryptography
but still same error.

 nserted
    {standard input}:11963: Error: unknown pseudo-op: `.'
    {standard input}: Error: open CFI at the end of file; missing .cfi_endproc d                              irective
    gcc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    error: command 'gcc' failed with exit status 4

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-b                              uild-2urs3U/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(                              __file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tm                              p/pip-n_G7NQ-record/install-record.txt --single-version-externally-man

do you have any idea?

Edit: @zahidshuja Kindly enter the code in the code format

I was able to resolve the cryptography error by restarting my server after running pip install cryptography, but now I’ve got this error:

Executing erpnext.patches.v7_0.convert_timelog_to_timesheet 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 79, in
main()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, 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/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/site.py”, line 196, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py”, line 27, 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/v7_0/convert_timelog_to_timesheet.py”, line 16, in execute
time_sheet.save(ignore_permissions=True)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 242, in save
self._save(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 259, in save
self.insert()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in insert
self.run_post_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 708, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 638, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 816, in composer
return composed(self, method, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 799, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 632, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/projects/doctype/timesheet/timesheet.py”, line 68, in on_submit
self.validate_mandatory_fields()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/projects/doctype/timesheet/timesheet.py”, line 95, in validate_mandatory_fields
frappe.throw(
(“Row {0}: Billing Rate must be greater than zero.”).format(data.idx))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 299, in throw
msgprint(msg, raise_exception=exc, title=title)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 292, in msgprint
_raise_exception()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 265, in _raise_exception
raise raise_exception, encode(msg)
frappe.exceptions.ValidationError: Row 1: Billing Rate must be greater than zero.
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 40, in cli
bench_command()
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/commands/update.py”, line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File “/home/ubuntu/bench-repo/bench/commands/update.py”, line 90, in _update
patch_sites(bench_path=bench_path)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 122, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench_path=bench_path)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 451, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘–site’, ‘all’, ‘migrate’)

EDIT: I was able to fix this by manually changing the convert_timelog_to_timesheet.py to prevent Billable from being checked (in our company nothing is billable in this way - we just use time logs for tracking employee hours).

after restart i had installed crytography lib . after this i had run bench update --upgrade with frappe user and seems every thing working .

:slight_smile:

@rohit_w can you fix this patch?