Unable to complete setup wizard


I am using CentOS7 in VirtualBox and installed using the automated script. I see the setup wizard but always see an error when trying to “Complete Setup”.

The message that pops up is this:

Adding System Manager to this User as there must be atleast one System Manager
Setting this Address Template as default as there is no other default
Server Error: Please check your server logs or contact tech support.
There were errors.

Traceback (most recent call last):
File “/home/arsyad/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/arsyad/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
File “/home/arsyad/frappe-bench/apps/frappe/frappe/handler.py”, line 42, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/arsyad/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/arsyad/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py”, line 38, in setup_complete
File “/home/arsyad/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py”, line 23, in setup_complete
File “/home/arsyad/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py”, line 220, in install
File “/home/arsyad/frappe-bench/apps/frappe/frappe/model/document.py”, line 193, in insert
File “/home/arsyad/frappe-bench/apps/frappe/frappe/model/document.py”, line 772, in run_before_save_methods
File “/home/arsyad/frappe-bench/apps/frappe/frappe/model/document.py”, line 667, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/arsyad/frappe-bench/apps/frappe/frappe/model/document.py”, line 892, in composer
return composed(self, method, *args, **kwargs)
File “/home/arsyad/frappe-bench/apps/frappe/frappe/model/document.py”, line 875, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/arsyad/frappe-bench/apps/frappe/frappe/model/document.py”, line 661, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/arsyad/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 64, in validate
if self.password or self.smtp_server in (‘’ or ‘localhost’):
TypeError: coercing to Unicode: need string or buffer, NoneType found

What could be wrong?

Sorry just pushed a fix in develop

Please run bench update and try again

I did a bench update and those errors are gone. Now I have another error which shows up as “There were errors”.

In chrome console, it shows:

localStorage cleared
desk.min.js:147 Cleared App Cache.
desk.min.js:181 localStorage cleared
jquery.min.js:4 POST http://frappe-local.boxcows.com:8000/ net::ERR_EMPTY_RESPONSE

1 Like

Please run: bench update --build to rebuild Js and CSS

I am getting the same error:
jquery.min.js:4 POST net::ERR_EMPTY_RESPONSE
I have tried bench update --build as you suggest, but it doesn’t solve it.
Both the develop and master branches.

1 Like

I face the same issue (both manually, easy script install), look the community stuck on this issue for along times, because I see many threads opened but not get confirmed as it solved .