{"action":"opened","issue":{"url":"https://api.github.com/repos/frappe/frappe/issues/2221","repository_url":"https://api.github.com/repos/frappe/frappe","labels_url":"https://api.github.com/repos/frappe/frappe/issues/2221/labels{/name}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/2221/comments","events_url":"https://api.github.com/repos/frappe/frappe/issues/2221/events","html_url":"https://github.com/frappe/frappe/issues/2221","id":185597776,"number":2221,"title":"AttributeError: 'DocType' object has no attribute 'engine'","user":{"login":"yashodhank","id":1083792,"avatar_url":"https://avatars.githubusercontent.com/u/1083792?v=3","gravatar_id":"","url":"https://api.github.com/users/yashodhank","html_url":"https://github.com/yashodhank","followers_url":"https://api.github.com/users/yashodhank/followers","following_url":"https://api.github.com/users/yashodhank/following{/other_user}","gists_url":"https://api.github.com/users/yashodhank/gists{/gist_id}","starred_url":"https://api.github.com/users/yashodhank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yashodhank/subscriptions","organizations_url":"https://api.github.com/users/yashodhank/orgs","repos_url":"https://api.github.com/users/yashodhank/repos","events_url":"https://api.github.com/users/yashodhank/events{/privacy}","received_events_url":"https://api.github.com/users/yashodhank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T07:54:49Z","updated_at":"2016-10-27T07:54:49Z","closed_at":null,"body":"After running update today.\r\n```\r\n$bench update\r\n```\r\n\r\n\r\nEncountered Error:\r\n```\r\nMigrating site1.local\r\nExecuting frappe.patches.v7_1.rename_scheduler_log_to_error_log in site1.local (1bd3e0294d)\r\nSuccess\r\nExecuting execute:frappe.reload_doc('core', 'doctype', 'doctype', force=True) #2016-10-17 in site1.local (1bd3e0294d)\r\nSuccess\r\nExecuting execute:frappe.reload_doc('core', 'doctype', 'user') in site1.local (1bd3e0294d)\r\nSuccess\r\nExecuting execute:frappe.clear_cache() in site1.local (1bd3e0294d)\r\nSuccess\r\nExecuting frappe.patches.v7_1.sync_language_doctype in site1.local (1bd3e0294d)\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/runpy.py\", line 162, in _run_module_as_main\r\n    \"__main__\", fname, loader, pkg_name)\r\n  File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py\", line 79, in <module>\r\n    main()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py\", line 16, in main\r\n    click.Group(commands=commands)(prog_name='bench')\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py\", line 700, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py\", line 680, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py\", line 873, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py\", line 16, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py\", line 24, in _func\r\n    ret = f(frappe._dict(ctx.obj), *args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py\", line 209, in migrate\r\n    migrate(context.verbose, rebuild_website=rebuild_website)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py\", line 30, in migrate\r\n    frappe.modules.patch_handler.run_all()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py\", line 29, in run_all\r\n    if not run_single(patchmodule = patch):\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py\", line 63, in run_single\r\n    return execute_patch(patchmodule, method, methodargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py\", line 83, in execute_patch\r\n    frappe.get_attr(patchmodule.split()[0] + \".execute\")()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/patches/v7_1/sync_language_doctype.py\", line 5, in execute\r\n    frappe.reload_doc('core', 'doctype', 'language')\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py\", line 645, in reload_doc\r\n    return frappe.modules.reload_doc(module, dt, dn, force=force)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py\", line 141, in reload_doc\r\n    return import_files(module, dt, dn, force=force)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py\", line 17, in import_files\r\n    return import_file(module, dt, dn, force=force, pre_process=pre_process)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py\", line 22, in import_file\r\n    ret = import_file_by_path(path, force, pre_process=pre_process)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py\", line 54, in import_file_by_path\r\n    import_doc(doc, force=force, data_import=data_import, pre_process=pre_process)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py\", line 122, in import_doc\r\n    doc.insert()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 222, in insert\r\n    self.run_post_save_methods()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 771, in run_post_save_methods\r\n    self.run_method(\"on_update\")\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 654, in run_method\r\n    out = Document.hook(fn)(self, *args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 882, in composer\r\n    return composed(self, method, *args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 865, in runner\r\n    add_to_return_value(self, fn(self, *args, **kwargs))\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 648, in <lambda>\r\n    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py\", line 142, in on_update\r\n    updatedb(self.name, self)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py\", line 69, in updatedb\r\n    tab.sync()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py\", line 146, in sync\r\n    self.create()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py\", line 181, in create\r\n    engine=self.meta.engine or 'InnoDB') % (self.name, add_text))\r\nAttributeError: 'DocType' object has no attribute 'engine'\r\n```"}}
{"actor":{"display_login":"yashodhank"}}