[Solved] Setup failed >> Could not start up: Error in setup

Hi,

I getting Setup failed >> “Could not start up: Error in setup” message, when try to complete setup wizard.

With these error message.

06:45:35 worker_default.1 | 06:45:35 default: frappe.utils.background_jobs.execute_job(async=True, event=None, job_name=u'frappe.core.doctype.user.user.update_gravatar', kwargs={'name': u'sdf@fsdf.csdf'}, method=u'frappe.core.doctype.user.user.update_gravatar', site='site1.local', user=u'Administrator') (28042bb1-9375-4b92-9181-fecc5f40889f)
06:45:35 worker_default.1 | 06:45:35 default: Job OK (28042bb1-9375-4b92-9181-fecc5f40889f)
06:45:35 worker_default.1 | 06:45:35 Result is kept for 500 seconds
06:45:36 worker_default.1 | 06:45:36 default: frappe.utils.background_jobs.execute_job(async=True, event=None, job_name=u'frappe.core.doctype.user.user.update_gravatar', kwargs={'name': u'sdf@fsdf.csdf'}, method=u'frappe.core.doctype.user.user.update_gravatar', site='site1.local', user=u'Administrator') (6d8eea25-136a-496b-aa21-700ce2ac0747)
06:45:36 worker_default.1 | 06:45:36 default: Job OK (6d8eea25-136a-496b-aa21-700ce2ac0747)
06:45:36 worker_default.1 | 06:45:36 Result is kept for 500 seconds
06:45:45 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/__init__.pyc', reloading
06:45:45 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/__init__.pyc', reloading
06:45:45 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/__init__.pyc', reloading
06:45:45 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/__init__.pyc', reloading
06:45:45 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/standard_chart_of_accounts_with_account_number.pyc', reloading
06:45:45 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/standard_chart_of_accounts_with_account_number.pyc', reloading
06:45:45 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/standard_chart_of_accounts_with_account_number.pyc', reloading
06:45:45 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/verified/standard_chart_of_accounts_with_account_number.pyc', reloading
06:45:46 web.1            | ----------------------------------------
06:45:46 web.1            | Exception happened during processing of request from ('172.17.0.1', 37978)
06:45:46 web.1            | Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-18, stopped daemon 140550875354880)>>
06:45:46 web.1            | Traceback (most recent call last):
06:45:46 web.1            |   File "/usr/lib64/python2.7/threading.py", line 785, in __bootstrap
06:45:46 web.1            |     self.__bootstrap_inner()
06:45:46 web.1            |   File "/usr/lib64/python2.7/threading.py", line 825, in __bootstrap_inner
06:45:46 web.1            |     (self.name, _format_exc()))
06:45:46 web.1            |   File "/usr/lib64/python2.7/traceback.py", line 240, in format_exc
06:45:46 web.1            |     etype, value, tb = sys.exc_info()
06:45:46 web.1            | AttributeError: 'NoneType' object has no attribute 'exc_info'
06:45:46 web.1            |  * Restarting with inotify reloader
06:45:47 web.1            |  * Debugger is active!
06:45:47 web.1            |  * Debugger PIN: 159-781-423

I using docker, here is my dockerfile

FROM centos:7.4.1708

# install prerequisite
RUN yum -y update \
    && yum -y install \
	build-essential \
	python-setuptools \
	wget \
	nano \
	sudo

# install NodeJS 8.x
RUN curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - \
    && sudo yum install -y nodejs

# add users without sudo password
ENV systemUser=frappe

RUN useradd $systemUser \
	&& usermod -aG wheel $systemUser \
	&& echo "%wheel  ALL=(ALL)  NOPASSWD: ALL" > /etc/sudoers.d/sudoers

# install bench with easy install script
ENV easyinstallRepo='https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py' \
    adminPass=12345 \
	mysqlPass=12345 \
	benchSetup=develop \
	benchName=bench-dev

RUN wget $easyinstallRepo \
	&& python install.py --without-site --$benchSetup --mysql-root-password $mysqlPass --admin-password $adminPass --user $systemUser --bench-name $benchName

# set user and workdir
USER $systemUser
WORKDIR /home/$systemUser/$benchName

# create new site & install erpnext
ENV erpnextRepo='https://github.com/frappe/erpnext' \
    siteName=site1.local \
	erpnextBranch=develop

RUN  sudo service mysql start \
    && bench new-site $siteName --mariadb-root-password $mysqlPass --admin-password $adminPass \
	&& bench get-app erpnext $erpnextRepo  --branch $erpnextBranch \
	&& bench --site $siteName install-app erpnext

# expose port
EXPOSE 8000 8001 8002 8003 8004 8005 3306 3307 3308

Even with Master branch, I still got a same error.

Dockerfile
FROM centos:7.4.1708

# install prerequisite
RUN yum -y update \
    && yum -y install \
	build-essential \
	python-setuptools \
	wget \
	nano \
	sudo

# install NodeJS 8.x
RUN curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - \
    && sudo yum install -y nodejs

# add users without sudo password
ENV systemUser=frappe

RUN useradd $systemUser \
	&& usermod -aG wheel $systemUser \
	&& echo "%wheel  ALL=(ALL)  NOPASSWD: ALL" > /etc/sudoers.d/sudoers

# install bench with easy install script
ENV easyinstallRepo='https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py' \
    adminPass=12345 \
	mysqlPass=12345 \
	benchSetup=develop \
	benchBranch=master \
	benchName=bench-dev

RUN wget $easyinstallRepo \
	&& python install.py \
	--without-site \
	--$benchSetup \
	--mysql-root-password $mysqlPass  \
	--admin-password $adminPass  \
	--user $systemUser  \
	--bench-name $benchName  \
	--bench-branch $benchBranch

# set user and workdir
USER $systemUser
WORKDIR /home/$systemUser/$benchName

# create new site & install erpnext
ENV erpnextRepo='https://github.com/frappe/erpnext' \
    siteName=site1.local \
	erpnextBranch=master

RUN  sudo service mysql start \
    && bench new-site $siteName --mariadb-root-password $mysqlPass --admin-password $adminPass \
	&& bench get-app erpnext $erpnextRepo  --branch $erpnextBranch \
	&& bench --site $siteName install-app erpnext

# expose port
EXPOSE 8000 8001 8002 8003 8004 8005 3306 3307 3308

Error

07:52:08 web.1            | 172.17.0.1 - - [23/Jan/2018 07:52:08] "POST / HTTP/1.1" 200 -
07:52:08 web.1            | INFO:werkzeug:172.17.0.1 - - [23/Jan/2018 07:52:08] "POST / HTTP/1.1" 200 -
07:52:08 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:08 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:08 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:10 web.1            |  * Restarting with inotify reloader
07:52:10 web.1            |  * Debugger is active!
07:52:10 web.1            |  * Debugger PIN: 159-781-423
07:52:20 web.1            | 172.17.0.1 - - [23/Jan/2018 07:52:20] "POST / HTTP/1.1" 200 -
07:52:20 web.1            | INFO:werkzeug:172.17.0.1 - - [23/Jan/2018 07:52:20] "POST / HTTP/1.1" 200 -
07:52:21 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:21 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:21 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:21 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:22 web.1            |  * Restarting with inotify reloader
07:52:22 web.1            |  * Debugger is active!
07:52:22 web.1            |  * Debugger PIN: 159-781-423
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:34 web.1            |  * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:34 web.1            | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:35 web.1            | ----------------------------------------
07:52:35 web.1            | Exception happened during processing of request from ('172.17.0.1', 51988)
07:52:35 web.1            | Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-18, stopped daemon 140281533945600)>>
07:52:35 web.1            | Traceback (most recent call last):
07:52:35 web.1            |   File "/usr/lib64/python2.7/threading.py", line 785, in __bootstrap
07:52:35 web.1            |     self.__bootstrap_inner()
07:52:35 web.1            |   File "/usr/lib64/python2.7/threading.py", line 825, in __bootstrap_inner
07:52:35 web.1            |     (self.name, _format_exc()))
07:52:35 web.1            |   File "/usr/lib64/python2.7/traceback.py", line 240, in format_exc
07:52:35 web.1            |     etype, value, tb = sys.exc_info()
07:52:35 web.1            | AttributeError: 'NoneType' object has no attribute 'exc_info'
07:52:35 web.1            |  * Restarting with inotify reloader
07:52:36 web.1            |  * Debugger is active!
07:52:36 web.1            |  * Debugger PIN: 159-781-423

I able to complete setup wizard after run :joy:

bench switch-to-branch master
bench update --patch

3 Likes

This issue actually persists. Currently as far as I tried neither develop nor master works.

2 Likes