Issues with "bench --site sitename make-demo"!

As discussed here: Good quality demo data helps us to learn the system better. Agree with this statement!!

I also want to try out demo data, to explore more things, for practical knowledge. Decided to import demo data which is currently used at demo.erpnext.com. However, there are many entries which were inserted by going through the demo. I’m not looking for mirror.

While, looking for actual mapped demo data, where they have gone through various modules likes entries are mapped with accounts as well as BOM or selling. Finally, they’re dispatched. What I mean, data proceeds with complete ERPNext Ecosystem.

To achieve this what I had done:

  1. However, reached Deprecated Version and used command to achieve: bench --site [site] execute erpnext.demo.demo.make Got errors because I was out of my sense that I’m trying the deprecated command.

  2. Now, dived into ERPNext repo, and used command: bench --site sitename make-demo. I hope, now I’m doing right? But, somehow this also giving errors !! This worked well till 7 days, but sudden it gifted these errors. Errors are as follows:

root@ip-172-31-13-150:/home/frappe/frappe-bench# bench --site subdomain.domain.com make-demo
Complete Setup...
Simulating 2017-06-19: Day 7Traceback (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 <module>
    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/erpnext/erpnext/commands/__init__.py", line 45, in make_demo
    demo.make(domain, days)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/demo.py", line 39, in make
    simulate(domain, days)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/demo.py", line 75, in simulate
    stock.work()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/user/stock.py", line 17, in work
    make_delivery_note()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/user/stock.py", line 60, in make_delivery_note
    dn.submit()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 741, in submit
    self._submit()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 730, in _submit
    self.save()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 230, in save
    return self._save(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 280, in _save
    self.run_post_save_methods()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 793, in run_post_save_methods
    self.run_method("on_submit")
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 666, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 887, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 870, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 660, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/delivery_note/delivery_note.py", line 218, in on_submit
    self.make_gl_entries()
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py", line 29, in make_gl_entries
    gl_entries = self.get_gl_entries(warehouse_account)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py", line 67, in get_gl_entries
    sle = self.update_stock_ledger_entries(sle)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py", line 98, in update_stock_ledger_entries
    self.doctype, self.name, currency=self.company_currency, company=self.company)
  File "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py", line 464, in get_valuation_rate
    frappe.throw(_("Valuation rate not found for the Item {0}, which is required to do accounting entries for {1} {2}. If the item is transacting as a sample item in the {1}, please mention that in the {1} Item table. Otherwise, please create an incoming stock transaction for the item or mention valuation rate in the Item record, and then try submiting/cancelling this entry").format(item_code, voucher_type, voucher_no))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 319, 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.ValidationError: Valuation rate not found for the Item Wind Turbine-M, which is required to do accounting entries for Delivery Note DN-00001. If the item is transacting as a sample item in the Delivery Note, please mention that in the Delivery Note Item table. Otherwise, please create an incoming stock transaction for the item or mention valuation rate in the Item record, and then try submiting/cancelling this entry