Error while updating 28 May

Hi, we got this error:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
    main()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands.py", line 28, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/commands.py", line 207, in migrate
    frappe.model.sync.sync_all(verbose=context.verbose)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 43, in sync_for
    import_file_by_path(doc_path, force=force)
  File "/home/erpnext/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)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 120, in import_doc
    doc.insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 194, in insert
    self.run_post_save_methods()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 559, in run_post_save_methods
    self.run_method("on_update")
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 507, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 623, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 606, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 501, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 102, in on_update
    updatedb(self.name)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 62, in updatedb
    tab.sync()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 88, in sync
    self.alter()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 201, in alter
    col.build_for_alter_table(self.current_columns.get(col.fieldname, None))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 297, in build_for_alter_table
    if (self.default_changed(current_def) \
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 310, in default_changed
    return float(current_def['default'])!=float(self.default)
ValueError: could not convert string to float:

I forgot to say, this is in the develop branch.

Hi,

Can you put it on https://github.com/frappe/erpnext/issues

That way you will be reported when the bug is fixed

-Anand.

Thank you very much, here is the Github issue, we will definitely follow it as all our services are currently down.

It is solved, thank you very much it was really fast.

Updating after the bug was successful, but we stopped receiving incoming email in ERPNext, do we have to restart the email accounts or something? Maybe after some hours of unavailablity of the ERPNext, it takes time until the pop3 settings work again?

bench doctor

should give a clue

Here is the result:

Workers online: True
Pending tasks 0
Timed out locks:
site1.local/locks/scheduler.lock

Should we just remove the scheduler.lock file?

Removed the scheduler.lock file and now works.

This topic was automatically closed after 2 days. New replies are no longer allowed.