I ran bench update
on my site, because it had some errors running bench run-tests
and now I can’t login to my site. There are no errors in logs/web.error.log
. The bench update
was successful until my own site which errored out. Can someone suggest a debugging idea ?
Did you check the OS language before writing the password?
What’s the error?
That’s the thing, cannot see any errors. I just cannot login with the username / password.
Can you run bench update again and share the error trace
myapp is my own app that is not put in any repo.
Updating frappe : [========================================]
Updating erpnext : [========================================]
Updating myapp : [========================================]
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/lowks/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/lowks/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/lowks/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/lowks/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/lowks/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/lowks/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/lowks/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/lowks/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/lowks/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/lowks/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/lowks/frappe-bench/apps/frappe/frappe/commands.py", line 205, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/lowks/frappe-bench/apps/frappe/frappe/migrate.py", line 31, in migrate
sync_fixtures()
File "/home/lowks/frappe-bench/apps/frappe/frappe/utils/fixtures.py", line 23, in sync_fixtures
import_doc(frappe.get_app_path(app, "fixtures", fname), ignore_links=True, overwrite=True)
File "/home/lowks/frappe-bench/apps/frappe/frappe/core/page/data_import_tool/data_import_tool.py", line 90, in import_doc
frappe.modules.import_file.import_file_by_path(f, data_import=True, force=True, pre_process=pre_process)
File "/home/lowks/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/lowks/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 122, in import_doc
doc.insert()
File "/home/lowks/frappe-bench/apps/frappe/frappe/model/document.py", line 194, in insert
self._validate()
File "/home/lowks/frappe-bench/apps/frappe/frappe/model/document.py", line 341, in _validate
self._validate_mandatory()
File "/home/lowks/frappe-bench/apps/frappe/frappe/model/document.py", line 533, in _validate_mandatory
raise frappe.MandatoryError(", ".join((each[0] for each in missing)))
frappe.exceptions.MandatoryError: parent, parenttype
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==2.0.0', 'console_scripts', 'bench')()
File "/home/lowks/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/lowks/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/lowks/bench-repo/bench/commands/update.py", line 90, in _update
patch_sites(bench=bench_path)
File "/home/lowks/bench-repo/bench/utils.py", line 131, in patch_sites
run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
File "/home/lowks/bench-repo/bench/utils.py", line 454, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate') myapp
I think you installed myapp
in a site and that app has problems.
I think you installed myapp
in a site and that app has problems.
What would the best thing to do to get it to work ?