[Mar-2017] Showing there were error during setup ERPNext

When I do setup ERPNext after run bench start then is showing there were error at last step.

Same error here, version 7.2.29

1 Like

@RWEMA_Aimable, @arif,

Can you please share the console log error traceback ?

Thanks,
Makarand

Hi @makarand_b,
I did not see any error at console.
It is very disgusting for us.
Previously it was working nicely.

This error is showing from setup_wizard.js

Hi @makarand_b ,
Same error
Console Traceback:
Failed to load resource: net::ERR_EMPTY_RESPONSE

Thanks

1 Like

I had errors related to payment request whenever I tried to bench --site site install-app erpnext. I can’t provide logs now as I have already upated and seem not to be able to reproduce it now.

@arif, @sagar, @RWEMA_Aimable

Can not recreate the issue, please pull the latest frappe and erpnext app and then try to complete the setup wizard.

Thanks,
Makarand

1 Like

Hi @makarand_b

Till now showing the below error at setup-wizard/10

23:03:53 web.1 | Traceback (most recent call last):
23:03:53 web.1 | File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
23:03:53 web.1 | File “/home/arifur/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py”, line 237, in run
23:03:53 web.1 | <type ‘exceptions.AttributeError’>: ‘NoneType’ object has no attribute ‘Empty’

Hello,

We have taken the pull,still its showing the same issue.

These are my logs

18:19:21 web.1            | Exception in thread Thread-12 (most likely raised during interpreter shutdown):
18:19:21 web.1            | Traceback (most recent call last):
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
18:19:21 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
18:19:21 web.1            |   File "/home/frappe/bot/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
18:19:21 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
18:19:21 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
18:19:21 web.1            | Traceback (most recent call last):
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
18:19:21 web.1            |   File "/home/frappe/bot/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 237, in run
18:19:21 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
18:19:21 web.1            | Exception in thread Thread-1 (most likely raised during interpreter shutdown):
18:19:21 web.1            | Traceback (most recent call last):
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
18:19:21 web.1            |   File "/home/frappe/bot/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 699, in inner
18:19:21 web.1            |   File "/home/frappe/bot/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 536, in serve_forever
18:19:21 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 236, in serve_forever
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 585, in set
18:19:21 web.1            |   File "/usr/lib/python2.7/threading.py", line 407, in notifyAll
18:19:21 web.1            | <type 'exceptions.TypeError'>: 'NoneType' object is not callable
18:19:21 web.1            |  * Restarting with inotify reloader
18:19:21 web.1            |  * Debugger is active!
18:19:21 web.1            |  * Debugger PIN: XXX-XXX-XXX
18:19:30 web.1            | xxx.xxx.xxx.xxx - - [16/Mar/2017 18:19:30] "POST / HTTP/1.1" 200 -

same error here

Same Issue with Me . I tried it in two different Systems. In one system I am not able to solve this error. Whereas in other System the issue was not raised.

I am not able to understand the reason behind this error.

Here I have attached the details regarding the issue .

I am getting this:

Could be related to these errors?

did not find /home/bbb/ERPNext/frappe-bench-dev/apps/frappe/frappe/public/js/lib/notify.js
did not find /home/bbb/ERPNext/frappe-bench-dev/apps/frappe/frappe/public/js/lib/tag-it.min.js

This is after a fresh bench init and bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

Hmm there is killing me for now a week, these are my logs this morning on the master branch using easy setup. bench update and git pull upstream master say already up to date

1st attempt:

21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/__init__.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/__init__.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/__init__.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/default_website.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/utils/make_random.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/domainify.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/industry_type.py', reloading
21:46:43 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
21:46:43 web.1            | Traceback (most recent call last):
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
21:46:43 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 237, in run
21:46:43 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
21:46:43 web.1            | Exception in thread Thread-17 (most likely raised during interpreter shutdown):
21:46:43 web.1            | Traceback (most recent call last):
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
21:46:43 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
21:46:43 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
21:46:43 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
21:46:43 web.1            | Exception in thread Thread-19 (most likely raised during interpreter shutdown):
21:46:43 web.1            | Traceback (most recent call last):
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
21:46:43 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
21:46:43 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
21:46:43 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
21:46:43 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
21:46:43 web.1            |  * Restarting with inotify reloader

2nd attempt

22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.py', reloading
22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:27 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:27 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py', reloading
22:29:28 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
22:29:28 web.1            | Traceback (most recent call last):
22:29:28 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:29:28 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 236, in run
22:29:28 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 401, in dispatch_events
22:29:28 web.1            |   File "/usr/lib/python2.7/Queue.py", line 177, in get
22:29:28 web.1            |   File "/usr/lib/python2.7/threading.py", line 355, in wait
22:29:28 web.1            | <type 'exceptions.TypeError'>: 'NoneType' object is not callable
22:29:28 web.1            |  * Restarting with inotify reloader
22:29:28 web.1            |  * Debugger is active!
22:29:28 web.1            |  * Debugger PIN: 312-785-609
22:29:48 web.1            | 192.168.99.1 - - [21/Mar/2017 22:29:48] "POST / HTTP/1.1" 200 -
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/__init__.py', reloading
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:08 web.1            |  * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/system_settings/system_settings.py', reloading
22:30:09 web.1            | Exception in thread Thread-16 (most likely raised during interpreter shutdown):
22:30:09 web.1            | Traceback (most recent call last):
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
22:30:09 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 545, in handle_error
22:30:09 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_error'
22:30:09 web.1            | Exception in thread Thread-1 (most likely raised during interpreter shutdown):
22:30:09 web.1            | Traceback (most recent call last):
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 754, in run
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 699, in inner
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py", line 536, in serve_forever
22:30:09 web.1            |   File "/usr/lib/python2.7/SocketServer.py", line 236, in serve_forever
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 585, in set
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 407, in notifyAll
22:30:09 web.1            | <type 'exceptions.TypeError'>: 'NoneType' object is not callable
22:30:09 web.1            | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
22:30:09 web.1            | Traceback (most recent call last):
22:30:09 web.1            |   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
22:30:09 web.1            |   File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py", line 237, in run
22:30:09 web.1            | <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Empty'
22:30:09 web.1            |  * Restarting with inotify reloader
22:30:09 web.1            |  * Debugger is active!

Same error here any fix

I am getting same error as mentioned above, please suggest a solution

first do bench reinstall
then complete setup wizard

1 Like

Latest updates should fix the problem. If not,

you can force this workaround if you can enter bench console

[1] # substitute your details in args
[2] args = {
	"language":"English (United States)",
	"country":"India",
	"timezone":"Asia/Kolkata",
	"currency":"INR",
	"full_name":"Revant",
	"email":"r@r.com",
	"password":"r",
	"domain":"Services",
	"company_name":"R",
	"company_abbr":"R",
	"company_tagline":"R",
	"bank_account":"R",
	"fy_start_date":"2017-04-01",
	"fy_end_date":"2018-03-31",
	"user_sales_1":1,
	"user_purchaser_1":1,
	"user_accountant_1":1,
	"user_sales_2":1,
	"user_purchaser_2":1,
	"user_accountant_2":1,
	"user_sales_3":1,
	"user_purchaser_3":1,
	"user_accountant_3":1,
	"user_sales_4":1,
	"user_purchaser_4":1,
	"user_accountant_4":1,
	"customer_1":"A1", #
	"supplier_1":"S1",
	"item_1":"I1",
	"item_group_1":"Products",
	"item_uom_1":"Unit",
	"is_sales_item_1":1,
	"is_purchase_item_1":0,
	"item_group_2":"Products",
	"item_uom_2":"Unit",
	"is_sales_item_2":0,
	"is_purchase_item_2":0,
	"item_group_3":"Products",
	"item_uom_3":"Unit",
	"is_sales_item_3":0,
	"is_purchase_item_3":0,
	"item_group_4":"Products",
	"item_uom_4":"Unit",
	"is_sales_item_4":0,
	"is_purchase_item_4":0,
	"item_group_5":"Products",
	"item_uom_5":"Unit",
	"is_sales_item_5":0,
	"is_purchase_item_5":0,
	"add_sample_data":0,
	"setup_website":0
}

[3] from frappe.desk.page.setup_wizard.setup_wizard import setup_complete
[4] setup_complete(args)
4 Likes

I was able to make this work with appropriate personalizations, but with it threw a error about the language. Changing it to:
args = {
“language”:“English”,
“country”:“United States”…

worked just fine. I may never use the setup wizard again!
Thanks a million @revant_one!

1 Like