Internal Server Error during the initial setup

I have a brand new ERPNext install, on a new CentOS 7.
Used ‘easy Install’ option. Scripts executed successfully.

I can log in as Administrator and start the setup wizard, but after I enter all the required data and get to ‘Setting up your system’ message, I get an ‘internal server error’.
Log:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1019, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 787, in sign_up
user.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 249, in insert
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 905, in run_post_save_methods
self.run_method(“on_update”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 772, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1048, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1031, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 766, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 95, in on_update
self.send_password_notification(self.__new_password)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 203, in send_password_notification
self.send_welcome_mail_to_user()
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 269, in send_welcome_mail_to_user
site_url=get_url(),
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py”, line 295, in send_login_mail
delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 463, in sendmail
inline_images=inline_images, header=header, print_letterhead=print_letterhead)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py”, line 71, in send
sender = email_account.default_sender
AttributeError: ‘NoneType’ object has no attribute ‘default_sender’
[ERROR] 2019-02-06 15:07:02,802 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/error.py:
New Exception collected with id: 2019-02-06 15:07:02.444600-192.168.0.1-901

Looks like it dies on not having a default email set up, but as it dies on initial setup, I have no idea how to fix it. Except maybe by entering it directly into the database, but I don’t know enough about the system to try that.

Any advice much appreciated!

In case anyone else gets the same problem…
Install bench manager
Change default site (frappe-bench/sites/currentsite.txt), log into bench manager, create default outgoing email.
Change default site back, log in as Administrator, and all is good

may can help
https://github.com/frappe/erpnext/issues/12996