{"action":"closed","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/13102","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/13102/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/13102/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/13102/events","html_url":"https://github.com/frappe/erpnext/issues/13102","id":300244718,"number":13102,"title":"[Bug] erpnext.patches.v9_2.rename_translated_domains_in_en in site1.local","user":{"login":"giuseppelamatrice","id":4445879,"avatar_url":"https://avatars1.githubusercontent.com/u/4445879?v=4","gravatar_id":"","url":"https://api.github.com/users/giuseppelamatrice","html_url":"https://github.com/giuseppelamatrice","followers_url":"https://api.github.com/users/giuseppelamatrice/followers","following_url":"https://api.github.com/users/giuseppelamatrice/following{/other_user}","gists_url":"https://api.github.com/users/giuseppelamatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppelamatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppelamatrice/subscriptions","organizations_url":"https://api.github.com/users/giuseppelamatrice/orgs","repos_url":"https://api.github.com/users/giuseppelamatrice/repos","events_url":"https://api.github.com/users/giuseppelamatrice/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppelamatrice/received_events","type":"User","site_admin":false},"labels":[{"id":514325089,"url":"https://api.github.com/repos/frappe/erpnext/labels/to%20validate","name":"to validate","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"rohitwaghchaure","id":8780500,"avatar_url":"https://avatars0.githubusercontent.com/u/8780500?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitwaghchaure","html_url":"https://github.com/rohitwaghchaure","followers_url":"https://api.github.com/users/rohitwaghchaure/followers","following_url":"https://api.github.com/users/rohitwaghchaure/following{/other_user}","gists_url":"https://api.github.com/users/rohitwaghchaure/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitwaghchaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitwaghchaure/subscriptions","organizations_url":"https://api.github.com/users/rohitwaghchaure/orgs","repos_url":"https://api.github.com/users/rohitwaghchaure/repos","events_url":"https://api.github.com/users/rohitwaghchaure/events{/privacy}","received_events_url":"https://api.github.com/users/rohitwaghchaure/received_events","type":"User","site_admin":false},"assignees":[{"login":"rohitwaghchaure","id":8780500,"avatar_url":"https://avatars0.githubusercontent.com/u/8780500?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitwaghchaure","html_url":"https://github.com/rohitwaghchaure","followers_url":"https://api.github.com/users/rohitwaghchaure/followers","following_url":"https://api.github.com/users/rohitwaghchaure/following{/other_user}","gists_url":"https://api.github.com/users/rohitwaghchaure/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitwaghchaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitwaghchaure/subscriptions","organizations_url":"https://api.github.com/users/rohitwaghchaure/orgs","repos_url":"https://api.github.com/users/rohitwaghchaure/repos","events_url":"https://api.github.com/users/rohitwaghchaure/events{/privacy}","received_events_url":"https://api.github.com/users/rohitwaghchaure/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/frappe/erpnext/milestones/75","html_url":"https://github.com/frappe/erpnext/milestone/75","labels_url":"https://api.github.com/repos/frappe/erpnext/milestones/75/labels","id":3196731,"number":75,"title":"April 2018","description":"","creator":{"login":"umairsy","id":910238,"avatar_url":"https://avatars0.githubusercontent.com/u/910238?v=4","gravatar_id":"","url":"https://api.github.com/users/umairsy","html_url":"https://github.com/umairsy","followers_url":"https://api.github.com/users/umairsy/followers","following_url":"https://api.github.com/users/umairsy/following{/other_user}","gists_url":"https://api.github.com/users/umairsy/gists{/gist_id}","starred_url":"https://api.github.com/users/umairsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umairsy/subscriptions","organizations_url":"https://api.github.com/users/umairsy/orgs","repos_url":"https://api.github.com/users/umairsy/repos","events_url":"https://api.github.com/users/umairsy/events{/privacy}","received_events_url":"https://api.github.com/users/umairsy/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":32,"state":"open","created_at":"2018-03-19T05:25:41Z","updated_at":"2018-04-12T09:16:07Z","due_on":"2018-04-30T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-02-26T13:48:07Z","updated_at":"2018-04-12T09:16:07Z","closed_at":"2018-04-12T09:16:07Z","author_association":"NONE","body":"```\r\nsudo bench update --reset\r\n[sudo] password di nadivia: \r\nINFO:bench.utils:updating bench\r\nINFO:bench.utils:git pull\r\nAlready up-to-date.\r\nINFO:bench.utils:./env/bin/pip install Pillow\r\nRequirement already satisfied: Pillow in ./env/lib/python2.7/site-packages\r\nRequirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)\r\nINFO:bench.app:pulling frappe\r\nINFO:bench.utils:git fetch --all\r\nFetching upstream\r\nINFO:bench.utils:git reset --hard upstream/master\r\nHEAD ora si trova a d46ac5e Merge branch 'hotfix'\r\nINFO:bench.utils:find . -name \"*.pyc\" -delete\r\nINFO:bench.app:pulling erpnext\r\nINFO:bench.utils:git fetch --all\r\nFetching upstream\r\nINFO:bench.utils:git reset --hard upstream/master\r\nHEAD ora si trova a 4ff4d18 Merge branch 'hotfix'\r\nINFO:bench.utils:find . -name \"*.pyc\" -delete\r\nUpdating Python libraries...\r\nINFO:bench.utils:./env/bin/pip install --upgrade pip\r\nRequirement already up-to-date: pip in ./env/lib/python2.7/site-packages\r\nINFO:bench.utils:./env/bin/pip install -q -r /home/frappe/.bench/requirements.txt\r\nINFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt\r\nINFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt\r\nUpdating node packages...\r\nINFO:bench.utils:yarn install\r\nyarn install v1.3.2\r\n[1/4] Resolving packages...\r\nsuccess Already up-to-date.\r\nDone in 0.54s.\r\nBacking up sites...\r\nPatching sites...\r\nMigrating site1.local\r\nExecuting erpnext.patches.v9_2.rename_translated_domains_in_en in site1.local (1bd3e0294da19198)\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/runpy.py\", line 174, 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 94, in <module>\r\n    main()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py\", line 18, 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 722, 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 697, 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 1066, 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 1066, 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 895, 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 535, 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 17, 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 222, in migrate\r\n    migrate(context.verbose, rebuild_website=rebuild_website)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py\", line 31, 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/erpnext/erpnext/patches/v9_2/rename_translated_domains_in_en.py\", line 29, in execute\r\n    domain.setup_domain()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/domain/domain.py\", line 33, in setup_domain\r\n    frappe.get_attr(self.data.on_setup)()\r\n  File \"/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/setup.py\", line 17, in setup_healthcare\r\n    create_lab_test_items()\r\n  File \"/home/frappe/frappe-bench/apps/erpnext/erpnext/healthcare/setup.py\", line 205, in create_lab_test_items\r\n    insert_record(records)\r\n  File \"/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/utils.py\", line 130, in insert_record\r\n    doc.insert(ignore_permissions=True)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 218, in insert\r\n    self.run_before_save_methods()\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 859, in run_before_save_methods\r\n    self.run_method(\"validate\")\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 755, 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 1024, in composer\r\n    return composed(self, method, *args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py\", line 1007, 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 749, in <lambda>\r\n    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)\r\n  File \"/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py\", line 100, in validate\r\n    self.validate_retain_sample()\r\n  File \"/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/item/item.py\", line 261, in validate_retain_sample\r\n    if self.retain_sample and not frappe.db.get_single_value('Stock Settings', 'sample_retention_warehouse'):\r\nAttributeError: 'Item' object has no attribute 'retain_sample'\r\n```\r\n\r\nThis problem generate Error 503 on website."}}
{"actor":{"display_login":"rohitwaghchaure"}}