Setup failed : Could not start up: Failed to create website

I have installed frappe & erpnext - 14 in multi bench setup, wizard setup failed


Traceback (most recent call last):
  File "env/lib/python3.10/site-packages/redis/", line 559, in connect
    sock = self._connect()
  File "env/lib/python3.10/site-packages/redis/", line 615, in _connect
    raise err
  File "env/lib/python3.10/site-packages/redis/", line 603, in _connect
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "env/lib/python3.10/site-packages/tenacity/", line 407, in __call__
    result = fn(*args, **kwargs)
  File "apps/frappe/frappe/utils/", line 333, in get_redis_conn
    redis_connection = RedisQueue.get_connection(**cred)
  File "apps/frappe/frappe/utils/", line 24, in get_connection
  File "env/lib/python3.10/site-packages/redis/", line 1378, in ping
    return self.execute_command('PING')
  File "env/lib/python3.10/site-packages/redis/", line 898, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "env/lib/python3.10/site-packages/redis/", line 1192, in get_connection
  File "env/lib/python3.10/site-packages/redis/", line 563, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:11001. Connection refused.

or: Error 111 connecting to localhost:11001. Connection refused.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "apps/frappe/frappe/desk/page/setup_wizard/", line 79, in process_setup_stages
  File "apps/erpnext/erpnext/setup/setup_wizard/", line 64, in stage_four
  File "apps/erpnext/erpnext/setup/setup_wizard/operations/", line 125, in create_website
  File "apps/erpnext/erpnext/setup/setup_wizard/operations/", line 18, in __init__
  File "apps/erpnext/erpnext/setup/setup_wizard/operations/", line 49, in make_blog
  File "apps/frappe/frappe/model/", line 283, in insert
  File "apps/frappe/frappe/model/", line 1095, in run_post_save_methods
  File "apps/frappe/frappe/model/", line 908, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1260, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1242, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/", line 905, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/website/", line 90, in on_change
  File "apps/frappe/frappe/website/", line 177, in update_website_search_index
    frappe.enqueue(update_index_for_path, path=self.route)
  File "apps/frappe/frappe/", line 2138, in enqueue
    return frappe.utils.background_jobs.enqueue(*args, **kwargs)
  File "apps/frappe/frappe/utils/", line 90, in enqueue
    q = get_queue(queue, is_async=is_async)
  File "apps/frappe/frappe/utils/", line 295, in get_queue
    return Queue(generate_qname(qtype), connection=get_redis_conn(), is_async=is_async)
  File "env/lib/python3.10/site-packages/tenacity/", line 324, in wrapped_f
    return self(f, *args, **kw)
  File "env/lib/python3.10/site-packages/tenacity/", line 404, in __call__
    do = self.iter(retry_state=retry_state)
  File "env/lib/python3.10/site-packages/tenacity/", line 361, in iter
    raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f99b39d7220 state=finished raised ConnectionError>]

please check status of node also check do you install correct version of NVM and python.

1 Like

yes i did installed python 3.10 version and node - v16.14.0
nvm - 0.39.1