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

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

setipfailed

Traceback (most recent call last):
  File "env/lib/python3.10/site-packages/redis/connection.py", line 559, in connect
    sock = self._connect()
  File "env/lib/python3.10/site-packages/redis/connection.py", line 615, in _connect
    raise err
  File "env/lib/python3.10/site-packages/redis/connection.py", line 603, in _connect
    sock.connect(socket_address)
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/__init__.py", line 407, in __call__
    result = fn(*args, **kwargs)
  File "apps/frappe/frappe/utils/background_jobs.py", line 333, in get_redis_conn
    redis_connection = RedisQueue.get_connection(**cred)
  File "apps/frappe/frappe/utils/redis_queue.py", line 24, in get_connection
    conn.ping()
  File "env/lib/python3.10/site-packages/redis/client.py", line 1378, in ping
    return self.execute_command('PING')
  File "env/lib/python3.10/site-packages/redis/client.py", line 898, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "env/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection
    connection.connect()
  File "env/lib/python3.10/site-packages/redis/connection.py", 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/setup_wizard.py", line 79, in process_setup_stages
    task.get("fn")(task.get("args"))
  File "apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py", line 64, in stage_four
    company_setup.create_website(args)
  File "apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.py", line 125, in create_website
    website_maker(args)
  File "apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.py", line 18, in __init__
    self.make_blog()
  File "apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.py", line 49, in make_blog
    ).insert()
  File "apps/frappe/frappe/model/document.py", line 283, in insert
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1095, in run_post_save_methods
    self.run_method("on_change")
  File "apps/frappe/frappe/model/document.py", line 908, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1260, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1242, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 905, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/website/website_generator.py", line 90, in on_change
    self.update_website_search_index()
  File "apps/frappe/frappe/website/website_generator.py", line 177, in update_website_search_index
    frappe.enqueue(update_index_for_path, path=self.route)
  File "apps/frappe/frappe/__init__.py", line 2138, in enqueue
    return frappe.utils.background_jobs.enqueue(*args, **kwargs)
  File "apps/frappe/frappe/utils/background_jobs.py", line 90, in enqueue
    q = get_queue(queue, is_async=is_async)
  File "apps/frappe/frappe/utils/background_jobs.py", 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/__init__.py", line 324, in wrapped_f
    return self(f, *args, **kw)
  File "env/lib/python3.10/site-packages/tenacity/__init__.py", line 404, in __call__
    do = self.iter(retry_state=retry_state)
  File "env/lib/python3.10/site-packages/tenacity/__init__.py", 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