frappe.exceptions.LinkValidationError: Could not find Default Warehouse: Üzletek - KK/

I have a problem to update today:

frappe.exceptions.LinkValidationError: Could not find Default Warehouse: Üzletek - KK/

Full traceback:

frappe@ubuntu:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
remote: Counting objects: 183, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 183 (delta 148), reused 161 (delta 145), pack-reused 15
Receiving objects: 100% (183/183), 34.98 KiB | 0 bytes/s, done.
Resolving deltas: 100% (148/148), completed with 97 local objects.
From https://github.com/frappe/frappe
8b2e4a5…f717296 master -> upstream/master

  • c907e94…51a9619 allow_quick_entry_fields -> upstream/allow_quick_entry_fields (forced update)
  • [new branch] cc-python3-pdfread -> upstream/cc-python3-pdfread
    dc8af84…fc99d69 develop -> upstream/develop
    3298315…f717296 hotfix -> upstream/hotfix
  • [new tag] v10.1.30 -> v10.1.30
  • [new tag] v10.1.29 -> v10.1.29
    INFO:bench.utils:./env/bin/pip install Pillow
    Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
    You are using pip version 9.0.3, however version 10.0.1 is available.
    You should consider upgrading via the ‘pip install --upgrade pip’ command.
    INFO:bench.app:pulling frappe
    INFO:bench.utils:git pull upstream master
    From https://github.com/frappe/frappe
  • branch master -> FETCH_HEAD
    Updating 8b2e4a5…f717296
    Fast-forward
    frappe/init.py | 2 ±
    …/role_permission_for_page_and_report.py | 9 ++±-
    frappe/desk/query_report.py | 1 +
    frappe/model/rename_doc.py | 2 +
    frappe/patches.txt | 4 ±
    …/v10_0/increase_single_table_column_length.py | 8 ++++
    …/patches/v10_0/set_no_copy_to_workflow_state.py | 11 ++++++
    frappe/public/css/desk.css | 3 ++
    frappe/tests/test_utils.py | 20 ++++++++++
    frappe/utils/boilerplate.py | 12 +±—
    frappe/utils/data.py | 44 +++++++++++++++++++±-
    frappe/workflow/doctype/workflow/workflow.py | 1 +
    frappe/www/printview.html | 14 +++++++
    13 files changed, 114 insertions(+), 17 deletions(-)
    create mode 100644 frappe/patches/v10_0/increase_single_table_column_length.py
    create mode 100644 frappe/patches/v10_0/set_no_copy_to_workflow_state.py
    INFO:bench.utils:find . -name “*.pyc” -delete
    INFO:bench.app:pulling erpnext
    INFO:bench.utils:git pull upstream master
    remote: Counting objects: 124, done.
    remote: Compressing objects: 100% (48/48), done.
    remote: Total 124 (delta 100), reused 98 (delta 76), pack-reused 0
    Receiving objects: 100% (124/124), 17.62 KiB | 0 bytes/s, done.
    Resolving deltas: 100% (100/100), completed with 54 local objects.
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    0272fc0…9fc5ddc master -> upstream/master
    Updating 0272fc0…9fc5ddc
    Fast-forward
    .travis.yml | 1 +
    erpnext/init.py | 2 ±
    …/cheque_print_template/cheque_print_template.py | 20 ++±-
    …/student_report_generation_tool.js | 2 ±
    …/student_report_generation_tool.py | 10 ±-
    …/doctype/consultation/consultation.py | 4 ±
    erpnext/healthcare/doctype/lab_test/lab_test.py | 2 ±
    …/healthcare/doctype/vital_signs/vital_signs.py | 2 ±
    erpnext/hr/doctype/hr_settings/hr_settings.json | 89 ++++++++++++++++++++±
    erpnext/hr/doctype/hr_settings/test_hr_settings.js | 23 ++++++
    erpnext/hr/doctype/hr_settings/test_hr_settings.py | 10 +++
    …/doctype/leave_application/leave_application.py | 21 +++±
    erpnext/patches.txt | 4 ±
    …qty_in_transactions_based_on_serial_no_input.py | 12 +++
    …leaves_of_all_department_members_in_calendar.py | 5 ++
    erpnext/public/js/controllers/transaction.js | 2 ±
    erpnext/regional/report/gstr_1/gstr_1.py | 12 +±
    …/setup_wizard/operations/defaults_setup.py | 1 +
    erpnext/stock/doctype/item/item.py | 27 ++±—
    …/material_request/material_request_dashboard.py | 2 ±
    erpnext/stock/doctype/serial_no/serial_no.py | 2 ±
    …/doctype/stock_settings/stock_settings.json | 33 ++++++±
    …/stock/doctype/stock_settings/stock_settings.py | 5 ±
    setup.py | 12 ±-
    24 files changed, 251 insertions(+), 52 deletions(-)
    create mode 100644 erpnext/hr/doctype/hr_settings/test_hr_settings.js
    create mode 100644 erpnext/hr/doctype/hr_settings/test_hr_settings.py
    create mode 100644 erpnext/patches/v10_0/set_qty_in_transactions_based_on_serial_no_input.py
    create mode 100644 erpnext/patches/v10_0/show_leaves_of_all_department_members_in_calendar.py
    INFO:bench.utils:find . -name “*.pyc” -delete
    Updating Python libraries…
    INFO:bench.utils:./env/bin/pip install --upgrade pip==9.0.3
    Requirement already up-to-date: pip==9.0.3 in ./env/lib/python2.7/site-packages
    You are using pip version 9.0.3, however version 10.0.1 is available.
    You should consider upgrading via the ‘pip install --upgrade pip’ command.
    INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/.bench/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
    Updating node packages…
    INFO:bench.utils:npm install
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
    npm WARN frappe@ No description
    Backing up sites…
    Patching sites…
    Migrating site1.local
    Executing frappe.patches.v10_0.set_no_copy_to_workflow_state in site1.local (1bd3e0294da19198)
    Success
    Executing frappe.patches.v10_0.increase_single_table_column_length in site1.local (1bd3e0294da19198)
    Success
    Executing erpnext.patches.v10_0.set_qty_in_transactions_based_on_serial_no_input in site1.local (1bd3e0294da19198)
    Traceback (most recent call last):
    File “/usr/lib/python2.7/runpy.py”, line 174, 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 94, in
    main()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, 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 722, in call
    return self.main(*args, **kwargs)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
    rv = self.invoke(ctx)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, 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 1066, 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 895, 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 535, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/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/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 222, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
    if not run_single(patchmodule = patch):
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
    return execute_patch(patchmodule, method, methodargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + “.execute”)()
    File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v10_0/set_qty_in_transactions_based_on_serial_no_input.py”, line 12, in execute
    ss.save()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 259, in save
    return self._save(*args, **kwargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 292, in _save
    self._validate_links()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 727, in _validate_links
    frappe.LinkValidationError)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 323, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 309, in msgprint
    _raise_exception()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 282, in _raise_exception
    raise raise_exception(encode(msg))
    frappe.exceptions.LinkValidationError: Could not find Default Warehouse: Üzletek - KK/

I commented out in patches.txt:

Executing erpnext.patches.v10_0.set_qty_in_transactions_based_on_serial_no_input in site1.local (1bd3e0294da19198)

Then
bench migrate works
the ERPNext works,
but it only a permanent solution.

Or the Pach need a fix?

OK.

Solution:

My warehouse somehow disappeared.

I create my lost" “Üzletek” then everything works.

Please close this subject.